Searched refs:bytes_read (Results 1 – 3 of 3) sorted by relevance
180 u32 bytes_read = 0; in read_nand_cached() local188 while (bytes_read < size) { in read_nand_cached()189 if ((off + bytes_read < nand_cache_off) || in read_nand_cached()190 (off + bytes_read >= nand_cache_off+NAND_CACHE_SIZE)) { in read_nand_cached()191 nand_cache_off = (off + bytes_read) & NAND_PAGE_MASK; in read_nand_cached()212 cpy_bytes = nand_cache_off + NAND_CACHE_SIZE - (off + bytes_read); in read_nand_cached()213 if (cpy_bytes > size - bytes_read) in read_nand_cached()214 cpy_bytes = size - bytes_read; in read_nand_cached()215 memcpy(buf + bytes_read, in read_nand_cached()216 nand_cache + off + bytes_read - nand_cache_off, in read_nand_cached()[all …]
307 unsigned int bytes_read = 0; in bcm_kona_i2c_read_fifo() local312 while (bytes_read < msg->len) { in bcm_kona_i2c_read_fifo()313 if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) { in bcm_kona_i2c_read_fifo()315 bytes_to_read = msg->len - bytes_read; in bcm_kona_i2c_read_fifo()323 bytes_read += bytes_to_read; in bcm_kona_i2c_read_fifo()
339 ulong bytes_read; in sandbox_flash_bulk() local341 bytes_read = os_read(priv->fd, buff, len); in sandbox_flash_bulk()342 if (bytes_read != len) in sandbox_flash_bulk()