Home
last modified time | relevance | path

Searched refs:toread (Results 1 - 25 of 35) sorted by relevance

12

/third_party/pulseaudio/src/pulsecore/
H A Dsrbchannel.c135 int toread; in pa_srbchannel_read() local
136 void *ptr = pa_ringbuffer_peek(&sr->rb_read, &toread); in pa_srbchannel_read()
138 if ((size_t) toread > l) in pa_srbchannel_read()
139 toread = l; in pa_srbchannel_read()
141 if (toread == 0) in pa_srbchannel_read()
144 memcpy(data, ptr, toread); in pa_srbchannel_read()
146 if (pa_ringbuffer_drop(&sr->rb_read, toread)) { in pa_srbchannel_read()
153 isread += toread; in pa_srbchannel_read()
154 data = (uint8_t*) data + toread; in pa_srbchannel_read()
155 l -= toread; in pa_srbchannel_read()
[all...]
/kernel/linux/linux-5.10/drivers/mtd/maps/
H A Dpcmciamtd.c145 int toread = win_size - (from & (win_size-1)); in pcmcia_copy_from_remap() local
148 if(toread > len) in pcmcia_copy_from_remap()
149 toread = len; in pcmcia_copy_from_remap()
155 pr_debug("memcpy from %p to %p len = %d\n", addr, to, toread); in pcmcia_copy_from_remap()
156 memcpy_fromio(to, addr, toread); in pcmcia_copy_from_remap()
157 len -= toread; in pcmcia_copy_from_remap()
158 to += toread; in pcmcia_copy_from_remap()
159 from += toread; in pcmcia_copy_from_remap()
/kernel/linux/linux-6.6/drivers/mtd/maps/
H A Dpcmciamtd.c145 int toread = win_size - (from & (win_size-1)); in pcmcia_copy_from_remap() local
148 if(toread > len) in pcmcia_copy_from_remap()
149 toread = len; in pcmcia_copy_from_remap()
155 pr_debug("memcpy from %p to %p len = %d\n", addr, to, toread); in pcmcia_copy_from_remap()
156 memcpy_fromio(to, addr, toread); in pcmcia_copy_from_remap()
157 len -= toread; in pcmcia_copy_from_remap()
158 to += toread; in pcmcia_copy_from_remap()
159 from += toread; in pcmcia_copy_from_remap()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/bcm47xxnflash/
H A Dops_bcm4706.c94 int toread; in bcm47xxnflash_ops_bcm4706_read() local
102 toread = min(len, 0x200); in bcm47xxnflash_ops_bcm4706_read()
120 for (i = 0; i < toread; i += 4, dest++) { in bcm47xxnflash_ops_bcm4706_read()
122 if (i == toread - 4) /* Last read goes without that */ in bcm47xxnflash_ops_bcm4706_read()
130 b47n->curr_column += toread; in bcm47xxnflash_ops_bcm4706_read()
131 len -= toread; in bcm47xxnflash_ops_bcm4706_read()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/bcm47xxnflash/
H A Dops_bcm4706.c94 int toread; in bcm47xxnflash_ops_bcm4706_read() local
102 toread = min(len, 0x200); in bcm47xxnflash_ops_bcm4706_read()
120 for (i = 0; i < toread; i += 4, dest++) { in bcm47xxnflash_ops_bcm4706_read()
122 if (i == toread - 4) /* Last read goes without that */ in bcm47xxnflash_ops_bcm4706_read()
130 b47n->curr_column += toread; in bcm47xxnflash_ops_bcm4706_read()
131 len -= toread; in bcm47xxnflash_ops_bcm4706_read()
/third_party/ffmpeg/libavformat/
H A Drtmppkt.c174 int ret, toread; in rtmp_packet_read_one_chunk() local
268 toread = FFMIN(size, chunk_size); in rtmp_packet_read_one_chunk()
269 if (ffurl_read_complete(h, p->data + p->offset, toread) != toread) { in rtmp_packet_read_one_chunk()
273 size -= toread; in rtmp_packet_read_one_chunk()
274 p->read += toread; in rtmp_packet_read_one_chunk()
275 p->offset += toread; in rtmp_packet_read_one_chunk()
/kernel/linux/linux-5.10/tools/iio/
H A Diio_generic_buffer.c345 unsigned long toread; in main() local
670 toread = buf_len; in main()
673 toread = 64; in main()
676 read_size = read(fp, data, toread * scan_size); in main()
/kernel/linux/linux-5.10/fs/jfs/
H A Dsuper.c743 size_t toread; in jfs_quota_read() local
752 toread = len; in jfs_quota_read()
753 while (toread > 0) { in jfs_quota_read()
754 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
755 sb->s_blocksize - offset : toread; in jfs_quota_read()
772 toread -= tocopy; in jfs_quota_read()
/third_party/lame/Dll/
H A DMP3export.pas250 //if FileRead(fs, buf[0], toread) = -1
251 if FileRead(fs, pbuffer^, toread) = -1
267 done := done + toread;
/kernel/linux/linux-5.10/drivers/iio/gyro/
H A Dmpu3050-core.c536 unsigned int toread; in mpu3050_trigger_handler() local
549 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
552 toread = bytes_per_datum; in mpu3050_trigger_handler()
561 toread); in mpu3050_trigger_handler()
578 fifocnt -= toread; in mpu3050_trigger_handler()
/kernel/linux/linux-6.6/fs/jfs/
H A Dsuper.c737 size_t toread; in jfs_quota_read() local
746 toread = len; in jfs_quota_read()
747 while (toread > 0) { in jfs_quota_read()
748 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in jfs_quota_read()
765 toread -= tocopy; in jfs_quota_read()
/kernel/linux/linux-6.6/drivers/iio/gyro/
H A Dmpu3050-core.c535 unsigned int toread; in mpu3050_trigger_handler() local
548 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
551 toread = bytes_per_datum; in mpu3050_trigger_handler()
560 toread); in mpu3050_trigger_handler()
578 fifocnt -= toread; in mpu3050_trigger_handler()
/kernel/linux/linux-6.6/tools/iio/
H A Diio_generic_buffer.c349 unsigned long toread; in main() local
742 toread = buf_len; in main()
744 read_size = read(buf_fd, data, toread * scan_size); in main()
/kernel/linux/linux-5.10/drivers/net/can/c_can/
H A Dc_can.c849 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
867 toread = c_can_adjust_pending(pend); in c_can_do_rx_poll()
869 toread = pend; in c_can_do_rx_poll()
872 pend &= ~toread; in c_can_do_rx_poll()
874 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
/kernel/linux/linux-5.10/fs/ocfs2/
H A Dquota_global.c177 size_t toread, tocopy; in ocfs2_quota_read() local
184 toread = len; in ocfs2_quota_read()
185 while (toread > 0) { in ocfs2_quota_read()
186 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read()
207 toread -= tocopy; in ocfs2_quota_read()
/kernel/linux/linux-6.6/drivers/net/can/c_can/
H A Dc_can_main.c883 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
893 toread = c_can_adjust_pending(pend, in c_can_do_rx_poll()
896 toread = pend; in c_can_do_rx_poll()
899 pend &= ~toread; in c_can_do_rx_poll()
901 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
/kernel/linux/linux-6.6/fs/ocfs2/
H A Dquota_global.c177 size_t toread, tocopy; in ocfs2_quota_read() local
184 toread = len; in ocfs2_quota_read()
185 while (toread > 0) { in ocfs2_quota_read()
186 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read()
207 toread -= tocopy; in ocfs2_quota_read()
/third_party/backends/backend/
H A Dsm3840_lib.c248 int toread; in record_head() local
255 toread = (bytes > 65536) ? 65536 : bytes; in record_head()
256 len = usb_bulk_read (udev, 1, buff, toread, rd_timeout); in record_head()
/kernel/linux/linux-5.10/fs/ext2/
H A Dsuper.c1487 size_t toread; in ext2_quota_read() local
1496 toread = len; in ext2_quota_read()
1497 while (toread > 0) { in ext2_quota_read()
1498 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1499 sb->s_blocksize - offset : toread; in ext2_quota_read()
1516 toread -= tocopy; in ext2_quota_read()
/kernel/linux/linux-5.10/fs/reiserfs/
H A Dsuper.c2499 size_t toread; in reiserfs_quota_read() local
2507 toread = len; in reiserfs_quota_read()
2508 while (toread > 0) { in reiserfs_quota_read()
2511 toread ? sb->s_blocksize - offset : toread; in reiserfs_quota_read()
2532 toread -= tocopy; in reiserfs_quota_read()
/kernel/linux/linux-6.6/fs/ext2/
H A Dsuper.c1493 size_t toread; in ext2_quota_read() local
1502 toread = len; in ext2_quota_read()
1503 while (toread > 0) { in ext2_quota_read()
1504 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in ext2_quota_read()
1521 toread -= tocopy; in ext2_quota_read()
/kernel/linux/linux-6.6/fs/reiserfs/
H A Dsuper.c2495 size_t toread; in reiserfs_quota_read() local
2503 toread = len; in reiserfs_quota_read()
2504 while (toread > 0) { in reiserfs_quota_read()
2505 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in reiserfs_quota_read()
2526 toread -= tocopy; in reiserfs_quota_read()
/third_party/libsnd/src/
H A Dwavlike.c1270 exif_fill_and_sink (SF_PRIVATE *psf, char* buf, size_t bufsz, size_t toread) in exif_fill_and_sink() argument
1276 if (toread < bufsz) in exif_fill_and_sink()
1277 bufsz = toread ; in exif_fill_and_sink()
1281 if (bytesread == bufsz && toread > bufsz) in exif_fill_and_sink()
1282 bytesread += psf_binheader_readf (psf, "j", toread - bufsz) ; in exif_fill_and_sink()
/kernel/linux/linux-5.10/drivers/md/
H A Draid5.h265 struct bio *toread, *read, *towrite, *written; member
318 R5_Wantfill, /* dev->toread contains a bio that needs
/kernel/linux/linux-6.6/drivers/md/
H A Draid5.h266 struct bio *toread, *read, *towrite, *written; member
319 R5_Wantfill, /* dev->toread contains a bio that needs

Completed in 38 milliseconds

12