Lines Matching refs:bytes
919 uint8_t *data, int bytes) in stfsm_read_status() argument
927 cmd, bytes); in stfsm_read_status()
929 BUG_ON(bytes != 1 && bytes != 2); in stfsm_read_status()
938 for (i = 0; i < bytes; i++) in stfsm_read_status()
947 uint16_t data, int bytes, int wait_busy) in stfsm_write_status() argument
953 " %s wait-busy\n", cmd, bytes, data, wait_busy ? "with" : "no"); in stfsm_write_status()
955 BUG_ON(bytes != 1 && bytes != 2); in stfsm_write_status()
961 seq->seq[2] = (bytes == 1) ? STFSM_INST_STA_WR1 : STFSM_INST_STA_WR1_2; in stfsm_write_status()
1678 uint32_t bytes; in stfsm_mtd_read() local
1686 bytes = min_t(size_t, len, FLASH_PAGESIZE); in stfsm_mtd_read()
1688 stfsm_read(fsm, buf, bytes, from); in stfsm_mtd_read()
1690 buf += bytes; in stfsm_mtd_read()
1691 from += bytes; in stfsm_mtd_read()
1692 len -= bytes; in stfsm_mtd_read()
1694 *retlen += bytes; in stfsm_mtd_read()
1756 u32 bytes; in stfsm_mtd_write() local
1769 bytes = min_t(size_t, FLASH_PAGESIZE - page_offs, len); in stfsm_mtd_write()
1771 ret = stfsm_write(fsm, b, bytes, to); in stfsm_mtd_write()
1775 b += bytes; in stfsm_mtd_write()
1776 len -= bytes; in stfsm_mtd_write()
1777 to += bytes; in stfsm_mtd_write()
1782 *retlen += bytes; in stfsm_mtd_write()