/openbmc/u-boot/fs/reiserfs/ |
H A D | reiserfs.c | 590 unsigned int to_read; in reiserfs_read() local 626 to_read = blocksize - offset; in reiserfs_read() 627 if (to_read > len) in reiserfs_read() 628 to_read = len; in reiserfs_read() 630 memcpy (buf, INFO->current_item + offset, to_read); in reiserfs_read() 646 to_read = INFO->blocksize - blk_offset; in reiserfs_read() 647 if (to_read > len) in reiserfs_read() 648 to_read = len; in reiserfs_read() 654 blk_offset, to_read, buf); in reiserfs_read() 656 len -= to_read; in reiserfs_read() [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | adl_pci9111.c | 420 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()
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-tmc-etf.c | 478 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 D | coresight-etb10.c | 438 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()
|
/openbmc/qemu/qga/ |
H A D | channel-win32.c | 205 size_t to_read = 0; in ga_channel_read() local 211 *count = to_read = MIN(size, rs->pending); in ga_channel_read() 212 if (to_read) { in ga_channel_read() 213 memcpy(buf, rs->buf + rs->cur, to_read); in ga_channel_read() 214 rs->cur += to_read; in ga_channel_read() 215 rs->pending -= to_read; in ga_channel_read()
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | gluebi.c | 163 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 D | block.c | 185 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()
|
H A D | eba.c | 751 int to_read; in ubi_eba_read_leb_sg() local 759 to_read = len; in ubi_eba_read_leb_sg() 761 to_read = sg->length - sgl->page_pos; in ubi_eba_read_leb_sg() 765 to_read, check); in ubi_eba_read_leb_sg() 769 offset += to_read; in ubi_eba_read_leb_sg() 770 len -= to_read; in ubi_eba_read_leb_sg() 772 sgl->page_pos += to_read; in ubi_eba_read_leb_sg()
|
/openbmc/linux/fs/smb/server/ |
H A D | transport_tcp.c | 305 unsigned int nr_segs, unsigned int to_read, in ksmbd_tcp_readv() argument 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() 374 unsigned int to_read, int max_retries) in ksmbd_tcp_read() argument 379 iov.iov_len = to_read; in ksmbd_tcp_read() 381 return ksmbd_tcp_readv(TCP_TRANS(t), &iov, 1, to_read, max_retries); in ksmbd_tcp_read()
|
/openbmc/linux/sound/drivers/ |
H A D | pcmtest.c | 673 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()
|
/openbmc/qemu/audio/ |
H A D | spiceaudio.c | 245 uint64_t to_read = audio_rate_get_bytes(&in->rate, &hw->info, len) >> 2; in line_in_read() local 246 size_t ready = spice_server_record_get_samples(&in->sin, buf, to_read); in line_in_read() 253 memset(buf, 0, to_read << 2); in line_in_read() 254 ready = to_read; in line_in_read()
|
H A D | audio.c | 1069 size_t to_read = MIN(till_end_of_hw, n); in audio_capture_mix_and_clear() local 1073 sw->resample_buf.size = to_read; in audio_capture_mix_and_clear() 1077 to_read, sw->hw->mix_buf.size - live, in audio_capture_mix_and_clear() 1083 if (to_read - frames_in) { in audio_capture_mix_and_clear() 1086 to_read, frames_in); in audio_capture_mix_and_clear() 1089 n -= to_read; in audio_capture_mix_and_clear() 1090 rpos2 = (rpos2 + to_read) % hw->mix_buf.size; in audio_capture_mix_and_clear()
|
/openbmc/linux/fs/ntfs/ |
H A D | logfile.c | 377 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()
|
/openbmc/linux/net/vmw_vsock/ |
H A D | hyperv_transport.c | 610 u32 to_read; in hvs_stream_dequeue() local 626 to_read = min_t(u32, len, hvs->recv_data_len); in hvs_stream_dequeue() 627 ret = memcpy_to_msg(msg, recv_buf->data + hvs->recv_data_off, to_read); in hvs_stream_dequeue() 631 hvs->recv_data_len -= to_read; in hvs_stream_dequeue() 640 hvs->recv_data_off += to_read; in hvs_stream_dequeue() 643 return to_read; in hvs_stream_dequeue()
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | filemap.py | 567 to_read = end - start 570 while read < to_read: 571 if read + chunk_size > to_read: 572 chunk_size = to_read - read
|
/openbmc/linux/fs/jffs2/ |
H A D | readinode.c | 943 int err, to_read = needed_len - *rdlen; in read_more() local 948 int rem = to_read % c->wbuf_pagesize; in read_more() 951 to_read += c->wbuf_pagesize - rem; in read_more() 957 dbg_readinode("read more %d bytes\n", to_read); in read_more() 959 err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen); in read_more() 962 "error code: %d.\n", to_read, offs, err); in read_more() 966 if (retlen < to_read) { in read_more() 968 offs, retlen, to_read); in read_more() 972 *rdlen += to_read; in read_more()
|
/openbmc/linux/fs/smb/client/ |
H A D | smbdirect.c | 1740 int to_copy, to_read, data_read, offset; in smbd_recv_buf() local 1766 to_read = size; in smbd_recv_buf() 1796 to_copy = min_t(int, data_length - offset, to_read); in smbd_recv_buf() 1827 to_read -= to_copy; in smbd_recv_buf() 1832 to_read, data_read, offset); in smbd_recv_buf() 1873 unsigned int to_read) in smbd_recv_page() argument 1882 info->reassembly_data_length >= to_read || in smbd_recv_page() 1892 page, to_address, to_read); in smbd_recv_page() 1894 ret = smbd_recv_buf(info, to_address, to_read); in smbd_recv_page() 1909 unsigned int to_read, page_offset; in smbd_recv() local [all …]
|
H A D | cifsproto.h | 252 unsigned int to_read); 254 size_t to_read); 258 unsigned int to_read); 261 unsigned int to_read);
|
H A D | connect.c | 772 unsigned int to_read) in cifs_read_from_socket() argument 775 struct kvec iov = {.iov_base = buf, .iov_len = to_read}; in cifs_read_from_socket() 777 iov_iter_kvec(&smb_msg.msg_iter, ITER_DEST, &iov, 1, to_read); in cifs_read_from_socket() 783 cifs_discard_from_socket(struct TCP_Server_Info *server, size_t to_read) in cifs_discard_from_socket() argument 792 iov_iter_discard(&smb_msg.msg_iter, ITER_DEST, to_read); in cifs_discard_from_socket() 799 unsigned int page_offset, unsigned int to_read) in cifs_read_page_from_socket() argument 804 bvec_set_page(&bv, page, to_read, page_offset); in cifs_read_page_from_socket() 805 iov_iter_bvec(&smb_msg.msg_iter, ITER_DEST, &bv, 1, to_read); in cifs_read_page_from_socket() 811 unsigned int to_read) in cifs_read_iter_from_socket() argument 816 iov_iter_truncate(&smb_msg.msg_iter, to_read); in cifs_read_iter_from_socket()
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | eba.c | 495 int to_read; in ubi_eba_read_leb_sg() local 503 to_read = len; in ubi_eba_read_leb_sg() 505 to_read = sg->length - sgl->page_pos; in ubi_eba_read_leb_sg() 509 to_read, check); in ubi_eba_read_leb_sg() 513 offset += to_read; in ubi_eba_read_leb_sg() 514 len -= to_read; in ubi_eba_read_leb_sg() 516 sgl->page_pos += to_read; in ubi_eba_read_leb_sg()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/ |
H A D | 0015-libsparse-Split-off-most-of-sparse_file_read_normal-.patch | 35 unsigned int to_read;
|
/openbmc/linux/drivers/media/usb/gspca/ |
H A D | sn9c2028.c | 37 unsigned char to_read; /* length to read. 0 means no reply requested */ member 233 switch (cam_commands[i].to_read) { in run_start_commands()
|
/openbmc/linux/security/selinux/ss/ |
H A D | policydb.c | 1390 unsigned int to_read = 2; in role_read() local 1399 to_read = 3; in role_read() 1401 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in role_read() 1447 unsigned int to_read = 3; in type_read() local 1456 to_read = 4; in type_read() 1458 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in type_read() 1522 unsigned int to_read = 2; in user_read() local 1531 to_read = 3; in user_read() 1533 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in user_read()
|
/openbmc/linux/drivers/md/ |
H A D | raid5.h | 285 int locked, uptodate, to_read, to_write, failed, written; member
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | gadget.c | 2267 int to_read; in dwc2_hsotg_rx_data() local 2286 to_read = size; in dwc2_hsotg_rx_data() 2291 __func__, to_read, max_req, read_ptr, hs_req->req.length); in dwc2_hsotg_rx_data() 2293 if (to_read > max_req) { in dwc2_hsotg_rx_data() 2303 hs_ep->total_data += to_read; in dwc2_hsotg_rx_data() 2304 hs_req->req.actual += to_read; in dwc2_hsotg_rx_data() 2305 to_read = DIV_ROUND_UP(to_read, 4); in dwc2_hsotg_rx_data() 2312 hs_req->req.buf + read_ptr, to_read); in dwc2_hsotg_rx_data()
|