Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 3 of 3) sorted by relevance

/rk3399_rockchip-uboot/fs/jffs2/
H A Djffs2_1pass.c180 u32 bytes_read = 0; in read_nand_cached() local
188 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 …]
/rk3399_rockchip-uboot/drivers/i2c/
H A Dkona_i2c.c307 unsigned int bytes_read = 0; in bcm_kona_i2c_read_fifo() local
312 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()
/rk3399_rockchip-uboot/drivers/usb/emul/
H A Dsandbox_flash.c339 ulong bytes_read; in sandbox_flash_bulk() local
341 bytes_read = os_read(priv->fd, buff, len); in sandbox_flash_bulk()
342 if (bytes_read != len) in sandbox_flash_bulk()