Home
last modified time | relevance | path

Searched refs:to_read (Results 1 - 25 of 64) sorted by relevance

123

/third_party/ntfs-3g/libntfs-3g/
H A Dcompress.c711 s64 br, to_read, ofs, total, total2; in ntfs_compressed_attr_pread() local
825 to_read = min(count, cb_size - ofs); in ntfs_compressed_attr_pread()
826 memset(b, 0, to_read); in ntfs_compressed_attr_pread()
828 total += to_read; in ntfs_compressed_attr_pread()
829 count -= to_read; in ntfs_compressed_attr_pread()
830 b = (u8*)b + to_read; in ntfs_compressed_attr_pread()
846 to_read = min(count, cb_size - ofs); in ntfs_compressed_attr_pread()
854 br = ntfs_attr_pread(na, ofs, to_read, b); in ntfs_compressed_attr_pread()
879 to_read -= br; in ntfs_compressed_attr_pread()
881 } while (to_read > in ntfs_compressed_attr_pread()
981 read_clusters(ntfs_volume *vol, const runlist_element *rl, s64 offs, u32 to_read, char *inbuf) read_clusters() argument
1679 s64 to_read; ntfs_compressed_pwrite() local
1880 s64 to_read; ntfs_compressed_close() local
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
H A DesextcGeometryShaderBlitting.hpp49 glw::GLint to_read) = 0;
108 glw::GLint to_read);
141 glw::GLint to_read);
171 glw::GLint to_read);
H A DesextcGeometryShaderBlitting.cpp280 glw::GLint to_draw, glw::GLint to_read) in setUpFramebuffersForRendering()
289 gl.framebufferTexture(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, to_read, 0 /* level */); in setUpFramebuffersForRendering()
314 glw::GLint to_draw, glw::GLint to_read) in setUpFramebuffersForRendering()
323 gl.framebufferTextureLayer(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, to_read, 0, 0); in setUpFramebuffersForRendering()
348 glw::GLint to_read) in setUpFramebuffersForRendering()
357 gl.framebufferTexture(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, to_read, 0 /* level */); in setUpFramebuffersForRendering()
278 setUpFramebuffersForRendering(glw::GLuint fbo_draw_id, glw::GLuint fbo_read_id, glw::GLint to_draw, glw::GLint to_read) setUpFramebuffersForRendering() argument
312 setUpFramebuffersForRendering(glw::GLuint fbo_draw_id, glw::GLuint fbo_read_id, glw::GLint to_draw, glw::GLint to_read) setUpFramebuffersForRendering() argument
346 setUpFramebuffersForRendering(glw::GLuint fbo_draw_id, glw::GLuint fbo_read_id, glw::GLint to_draw, glw::GLint to_read) setUpFramebuffersForRendering() argument
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dseed_material.cc147 size_t to_read = std::min<size_t>(buffer_size, 256);
148 int result = getentropy(buffer, to_read);
154 ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, to_read);
155 buffer += to_read;
156 buffer_size -= to_read;
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
H A Dcoresight-tmc-etf.c452 unsigned long offset, to_read = 0, flags; in tmc_update_etf_buffer() local
483 to_read = drvdata->size; in tmc_update_etf_buffer()
485 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); in tmc_update_etf_buffer()
495 if (!buf->snapshot && to_read > handle->size) { in tmc_update_etf_buffer()
502 to_read = handle->size & mask; in tmc_update_etf_buffer()
504 read_ptr = (write_ptr + drvdata->size) - to_read; in tmc_update_etf_buffer()
527 for (i = 0; i < to_read; i += 4) { in tmc_update_etf_buffer()
552 handle->head += to_read; in tmc_update_etf_buffer()
558 return to_read; in tmc_update_etf_buffer()
H A Dcoresight-etb10.c436 unsigned long offset, to_read = 0, flags; in etb_update_buffer() local
481 to_read = capacity; in etb_update_buffer()
484 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); in etb_update_buffer()
485 to_read *= ETB_FRAME_SIZE_WORDS; in etb_update_buffer()
498 if (!buf->snapshot && to_read > handle->size) { in etb_update_buffer()
502 to_read = handle->size & mask; in etb_update_buffer()
508 to_read / ETB_FRAME_SIZE_WORDS; in etb_update_buffer()
532 for (i = 0; i < to_read; i += 4) { in etb_update_buffer()
564 handle->head += to_read; in etb_update_buffer()
571 return to_read; in etb_update_buffer()
[all...]
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/
H A Dcoresight-tmc-etf.c478 unsigned long offset, to_read = 0, flags; in tmc_update_etf_buffer() local
509 to_read = drvdata->size; in tmc_update_etf_buffer()
511 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); in tmc_update_etf_buffer()
521 if (!buf->snapshot && to_read > handle->size) { in tmc_update_etf_buffer()
528 to_read = handle->size & mask; in tmc_update_etf_buffer()
530 read_ptr = (write_ptr + drvdata->size) - to_read; in tmc_update_etf_buffer()
553 for (i = 0; i < to_read; i += 4) { in tmc_update_etf_buffer()
577 handle->head += to_read; in tmc_update_etf_buffer()
588 return to_read; in tmc_update_etf_buffer()
H A Dcoresight-etb10.c438 unsigned long offset, to_read = 0, flags; in etb_update_buffer() local
483 to_read = capacity; in etb_update_buffer()
486 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); in etb_update_buffer()
487 to_read *= ETB_FRAME_SIZE_WORDS; in etb_update_buffer()
500 if (!buf->snapshot && to_read > handle->size) { in etb_update_buffer()
504 to_read = handle->size & mask; in etb_update_buffer()
510 to_read / ETB_FRAME_SIZE_WORDS; in etb_update_buffer()
534 for (i = 0; i < to_read; i += 4) { in etb_update_buffer()
565 handle->head += to_read; in etb_update_buffer()
572 return to_read; in etb_update_buffer()
[all...]
/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dgluebi.c163 size_t to_read = mtd->erasesize - offs; in gluebi_read() local
165 if (to_read > bytes_left) in gluebi_read()
166 to_read = bytes_left; in gluebi_read()
168 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
174 bytes_left -= to_read; in gluebi_read()
175 buf += to_read; in gluebi_read()
H A Dblock.c186 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local
191 to_read = blk_rq_bytes(req); in ubiblock_read()
197 bytes_left = to_read; in ubiblock_read()
204 if (offset + to_read > dev->leb_size) in ubiblock_read()
205 to_read = dev->leb_size - offset; in ubiblock_read()
207 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
211 bytes_left -= to_read; in ubiblock_read()
212 to_read = bytes_left; in ubiblock_read()
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dgluebi.c163 size_t to_read = mtd->erasesize - offs; in gluebi_read() local
165 if (to_read > bytes_left) in gluebi_read()
166 to_read = bytes_left; in gluebi_read()
168 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
174 bytes_left -= to_read; in gluebi_read()
175 buf += to_read; in gluebi_read()
H A Dblock.c185 int to_read = blk_rq_bytes(req); in ubiblock_read() local
186 int bytes_left = to_read; in ubiblock_read()
209 if (offset + to_read > dev->leb_size) in ubiblock_read()
210 to_read = dev->leb_size - offset; in ubiblock_read()
212 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
216 bytes_left -= to_read; in ubiblock_read()
217 to_read = bytes_left; in ubiblock_read()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dadl_pci9111.c421 unsigned int to_read; in pci9111_handle_fifo_half_full() local
425 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
428 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
429 to_read = samples - pos; in pci9111_handle_fifo_half_full()
431 comedi_buf_write_samples(s, buf + pos, to_read); in pci9111_handle_fifo_half_full()
433 to_read = devpriv->chunk_num_samples - in pci9111_handle_fifo_half_full()
436 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
437 to_read = samples - pos; in pci9111_handle_fifo_half_full()
440 pos += to_read; in pci9111_handle_fifo_half_full()
441 devpriv->chunk_counter += to_read; in pci9111_handle_fifo_half_full()
[all...]
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dadl_pci9111.c420 unsigned int to_read; in pci9111_handle_fifo_half_full() local
424 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
427 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
428 to_read = samples - pos; in pci9111_handle_fifo_half_full()
430 comedi_buf_write_samples(s, buf + pos, to_read); in pci9111_handle_fifo_half_full()
432 to_read = devpriv->chunk_num_samples - in pci9111_handle_fifo_half_full()
435 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
436 to_read = samples - pos; in pci9111_handle_fifo_half_full()
439 pos += to_read; in pci9111_handle_fifo_half_full()
440 devpriv->chunk_counter += to_read; in pci9111_handle_fifo_half_full()
[all...]
/kernel/linux/linux-6.6/fs/smb/server/
H A Dtransport_tcp.c298 * @to_read: number of bytes to read from socket
305 unsigned int nr_segs, unsigned int to_read, in ksmbd_tcp_readv()
322 for (total_read = 0; to_read; total_read += length, to_read -= length) { in ksmbd_tcp_readv()
332 iov, segs, to_read, 0); in ksmbd_tcp_readv()
367 * @to_read: number of bytes to read from socket
373 unsigned int to_read, int max_retries) in ksmbd_tcp_read()
378 iov.iov_len = to_read; in ksmbd_tcp_read()
380 return ksmbd_tcp_readv(TCP_TRANS(t), &iov, 1, to_read, max_retries); in ksmbd_tcp_read()
304 ksmbd_tcp_readv(struct tcp_transport *t, struct kvec *iov_orig, unsigned int nr_segs, unsigned int to_read, int max_retries) ksmbd_tcp_readv() argument
372 ksmbd_tcp_read(struct ksmbd_transport *t, char *buf, unsigned int to_read, int max_retries) ksmbd_tcp_read() argument
/kernel/linux/linux-6.6/sound/drivers/
H A Dpcmtest.c673 ssize_t to_read = len; in pattern_read() local
675 if (*off + to_read >= MAX_PATTERN_LEN) in pattern_read()
676 to_read = MAX_PATTERN_LEN - *off; in pattern_read()
677 if (to_read <= 0) in pattern_read()
680 if (copy_to_user(u_buff, patt_buf->buf + *off, to_read)) in pattern_read()
681 to_read = 0; in pattern_read()
683 *off += to_read; in pattern_read()
685 return to_read; in pattern_read()
/third_party/ffmpeg/libavutil/
H A Dfifo.c202 size_t to_read = *nb_elems; in fifo_peek_common() local
207 if (offset > can_read || to_read > can_read - offset) { in fifo_peek_common()
217 while (to_read > 0) { in fifo_peek_common()
218 size_t len = FFMIN(f->nb_elems - offset_r, to_read); in fifo_peek_common()
232 to_read -= len; in fifo_peek_common()
235 *nb_elems -= to_read; in fifo_peek_common()
/kernel/linux/linux-5.10/fs/ntfs/
H A Dlogfile.c377 int have_read, to_read; in ntfs_check_and_load_restart_page() local
383 to_read = le32_to_cpu(rp->system_page_size) - size; in ntfs_check_and_load_restart_page()
396 size = min_t(int, to_read, PAGE_SIZE); in ntfs_check_and_load_restart_page()
400 to_read -= size; in ntfs_check_and_load_restart_page()
402 } while (to_read > 0); in ntfs_check_and_load_restart_page()
/kernel/linux/linux-6.6/fs/ntfs/
H A Dlogfile.c377 int have_read, to_read; in ntfs_check_and_load_restart_page() local
383 to_read = le32_to_cpu(rp->system_page_size) - size; in ntfs_check_and_load_restart_page()
396 size = min_t(int, to_read, PAGE_SIZE); in ntfs_check_and_load_restart_page()
400 to_read -= size; in ntfs_check_and_load_restart_page()
402 } while (to_read > 0); in ntfs_check_and_load_restart_page()
/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Dtransport.c96 unsigned int to_read) in tcp_read_head_from_socket()
103 iov.iov_len = to_read; in tcp_read_head_from_socket()
108 rc = recvmsg_nofs(sock, &hmdfs_msg, &iov, 1, to_read, in tcp_read_head_from_socket()
116 if (rc != to_read) { in tcp_read_head_from_socket()
124 unsigned int to_read) in tcp_read_buffer_from_socket()
134 iov.iov_len = to_read - read_cnt; in tcp_read_buffer_from_socket()
140 to_read - read_cnt, hmdfs_msg.msg_flags); in tcp_read_buffer_from_socket()
157 if (read_cnt != to_read) in tcp_read_buffer_from_socket()
158 hmdfs_info("read again %d/%d", read_cnt, to_read); in tcp_read_buffer_from_socket()
159 } while (read_cnt < to_read in tcp_read_buffer_from_socket()
95 tcp_read_head_from_socket(struct socket *sock, void *buf, unsigned int to_read) tcp_read_head_from_socket() argument
123 tcp_read_buffer_from_socket(struct socket *sock, void *buf, unsigned int to_read) tcp_read_buffer_from_socket() argument
[all...]
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Dtransport.c96 unsigned int to_read) in tcp_read_head_from_socket()
103 iov.iov_len = to_read; in tcp_read_head_from_socket()
108 rc = recvmsg_nofs(sock, &hmdfs_msg, &iov, 1, to_read, in tcp_read_head_from_socket()
116 if (rc != to_read) { in tcp_read_head_from_socket()
124 unsigned int to_read) in tcp_read_buffer_from_socket()
134 iov.iov_len = to_read - read_cnt; in tcp_read_buffer_from_socket()
140 to_read - read_cnt, hmdfs_msg.msg_flags); in tcp_read_buffer_from_socket()
157 if (read_cnt != to_read) in tcp_read_buffer_from_socket()
158 hmdfs_info("read again %d/%d", read_cnt, to_read); in tcp_read_buffer_from_socket()
159 } while (read_cnt < to_read in tcp_read_buffer_from_socket()
95 tcp_read_head_from_socket(struct socket *sock, void *buf, unsigned int to_read) tcp_read_head_from_socket() argument
123 tcp_read_buffer_from_socket(struct socket *sock, void *buf, unsigned int to_read) tcp_read_buffer_from_socket() argument
[all...]
/kernel/linux/linux-5.10/net/vmw_vsock/
H A Dhyperv_transport.c592 u32 to_read; in hvs_stream_dequeue() local
606 to_read = min_t(u32, len, hvs->recv_data_len); in hvs_stream_dequeue()
607 ret = memcpy_to_msg(msg, recv_buf->data + hvs->recv_data_off, to_read); in hvs_stream_dequeue()
611 hvs->recv_data_len -= to_read; in hvs_stream_dequeue()
620 hvs->recv_data_off += to_read; in hvs_stream_dequeue()
623 return to_read; in hvs_stream_dequeue()
/kernel/linux/linux-6.6/net/vmw_vsock/
H A Dhyperv_transport.c609 u32 to_read; in hvs_stream_dequeue() local
625 to_read = min_t(u32, len, hvs->recv_data_len); in hvs_stream_dequeue()
626 ret = memcpy_to_msg(msg, recv_buf->data + hvs->recv_data_off, to_read); in hvs_stream_dequeue()
630 hvs->recv_data_len -= to_read; in hvs_stream_dequeue()
639 hvs->recv_data_off += to_read; in hvs_stream_dequeue()
642 return to_read; in hvs_stream_dequeue()
/third_party/ffmpeg/libavformat/
H A Dasync.c343 int to_read = size; in async_read_internal() local
348 while (to_read > 0) { in async_read_internal()
355 to_copy = FFMIN(to_read, fifo_size); in async_read_internal()
361 to_read -= to_copy; in async_read_internal()
362 ret = size - to_read; in async_read_internal()
364 if (to_read <= 0 || !read_complete) in async_read_internal()
/third_party/backends/backend/
H A Dhp4200.c472 size_t to_read; in read_available_data() local
488 to_read = scankb1 * 1024; in read_available_data()
490 while (to_read) in read_available_data()
494 chunk = (to_read > 0xffff) ? 0xffff : to_read; in read_available_data()
506 if (really_read > to_read) in read_available_data()
513 to_read -= really_read; in read_available_data()
705 size_t to_read; in write_gamma() local
728 to_read = sizeof (read_gamma); in write_gamma()
729 sanei_usb_read_bulk (s->fd, read_gamma, &to_read); in write_gamma()
750 size_t to_read; write_default_offset_gain() local
946 size_t to_read; read_required_bytes() local
[all...]

Completed in 23 milliseconds

123