Lines Matching defs:bytes
291 * a high byte of zero plus three data bytes: the manufacturer id,
754 dev_dbg(fsm->dev, "Reading %d bytes from FIFO\n", size);
780 * possible for the FIFO to contain an arbitrary number of bytes [1], the
790 * 2. Mop up any remaining bytes. At this point, it is not known if there
791 * are 0, 1, 2, or 3 bytes in the FIFO. To handle all cases, a dummy FSM
793 * word is formed; at most, 4 bytes will need to be loaded.
797 * incomplete bytes in the FIFO, only words and bytes are considered here.
813 * 2. Clear any remaining bytes
825 dev_err(fsm->dev, "failed to clear bytes from the data FIFO\n");
840 dev_dbg(fsm->dev, "writing %d bytes to FIFO\n", size);
914 uint8_t *data, int bytes)
922 cmd, bytes);
924 BUG_ON(bytes != 1 && bytes != 2);
933 for (i = 0; i < bytes; i++)
942 uint16_t data, int bytes, int wait_busy)
948 " %s wait-busy\n", cmd, bytes, data, wait_busy ? "with" : "no");
950 BUG_ON(bytes != 1 && bytes != 2);
956 seq->seq[2] = (bytes == 1) ? STFSM_INST_STA_WR1 : STFSM_INST_STA_WR1_2;
1526 dev_dbg(fsm->dev, "reading %d bytes from 0x%08x\n", size, offset);
1590 dev_dbg(fsm->dev, "writing %d bytes to 0x%08x\n", size, offset);
1596 /* Must write in multiples of 32 cycles (or 32*pads/8 bytes) */
1673 uint32_t bytes;
1681 bytes = min_t(size_t, len, FLASH_PAGESIZE);
1683 stfsm_read(fsm, buf, bytes, from);
1685 buf += bytes;
1686 from += bytes;
1687 len -= bytes;
1689 *retlen += bytes;
1751 u32 bytes;
1764 bytes = min_t(size_t, FLASH_PAGESIZE - page_offs, len);
1766 ret = stfsm_write(fsm, b, bytes, to);
1770 b += bytes;
1771 len -= bytes;
1772 to += bytes;
1777 *retlen += bytes;
1857 * string for after vendor-specific data, after the three bytes