/linux-6.1.9/drivers/hwtracing/coresight/ |
D | coresight-tmc-etf.c | 454 unsigned long offset, to_read = 0, flags; in tmc_update_etf_buffer() local 485 to_read = drvdata->size; in tmc_update_etf_buffer() 487 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); in tmc_update_etf_buffer() 497 if (!buf->snapshot && to_read > handle->size) { in tmc_update_etf_buffer() 504 to_read = handle->size & mask; in tmc_update_etf_buffer() 506 read_ptr = (write_ptr + drvdata->size) - to_read; in tmc_update_etf_buffer() 529 for (i = 0; i < to_read; i += 4) { in tmc_update_etf_buffer() 553 handle->head += to_read; in tmc_update_etf_buffer() 564 return to_read; in tmc_update_etf_buffer()
|
D | coresight-etb10.c | 437 unsigned long offset, to_read = 0, flags; in etb_update_buffer() local 482 to_read = capacity; in etb_update_buffer() 485 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); in etb_update_buffer() 486 to_read *= ETB_FRAME_SIZE_WORDS; in etb_update_buffer() 499 if (!buf->snapshot && to_read > handle->size) { in etb_update_buffer() 503 to_read = handle->size & mask; in etb_update_buffer() 509 to_read / ETB_FRAME_SIZE_WORDS; in etb_update_buffer() 533 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()
|
/linux-6.1.9/drivers/comedi/drivers/ |
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()
|
/linux-6.1.9/drivers/mtd/ubi/ |
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()
|
D | block.c | 186 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()
|
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()
|
/linux-6.1.9/fs/ksmbd/ |
D | transport_tcp.c | 303 unsigned int nr_segs, unsigned int to_read) in ksmbd_tcp_readv() argument 320 for (total_read = 0; to_read; total_read += length, to_read -= length) { in ksmbd_tcp_readv() 330 iov, segs, to_read, 0); in ksmbd_tcp_readv() 361 static int ksmbd_tcp_read(struct ksmbd_transport *t, char *buf, unsigned int to_read) in ksmbd_tcp_read() argument 366 iov.iov_len = to_read; in ksmbd_tcp_read() 368 return ksmbd_tcp_readv(TCP_TRANS(t), &iov, 1, to_read); in ksmbd_tcp_read()
|
D | transport_rdma.c | 677 int to_copy, to_read, data_read, offset; in smb_direct_read() local 707 to_read = size; in smb_direct_read() 737 to_copy = min_t(int, data_length - offset, to_read); in smb_direct_read() 762 to_read -= to_copy; in smb_direct_read()
|
/linux-6.1.9/net/vmw_vsock/ |
D | hyperv_transport.c | 609 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()
|
/linux-6.1.9/fs/ntfs/ |
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()
|
/linux-6.1.9/fs/jffs2/ |
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()
|
/linux-6.1.9/fs/cifs/ |
D | smbdirect.c | 1770 int to_copy, to_read, data_read, offset; in smbd_recv_buf() local 1796 to_read = size; in smbd_recv_buf() 1826 to_copy = min_t(int, data_length - offset, to_read); in smbd_recv_buf() 1857 to_read -= to_copy; in smbd_recv_buf() 1862 to_read, data_read, offset); in smbd_recv_buf() 1903 unsigned int to_read) in smbd_recv_page() argument 1912 info->reassembly_data_length >= to_read || in smbd_recv_page() 1922 page, to_address, to_read); in smbd_recv_page() 1924 ret = smbd_recv_buf(info, to_address, to_read); in smbd_recv_page() 1939 unsigned int to_read, page_offset; in smbd_recv() local [all …]
|
D | cifsproto.h | 235 unsigned int to_read); 237 size_t to_read); 241 unsigned int to_read);
|
D | connect.c | 760 unsigned int to_read) in cifs_read_from_socket() argument 763 struct kvec iov = {.iov_base = buf, .iov_len = to_read}; in cifs_read_from_socket() 764 iov_iter_kvec(&smb_msg.msg_iter, READ, &iov, 1, to_read); in cifs_read_from_socket() 770 cifs_discard_from_socket(struct TCP_Server_Info *server, size_t to_read) in cifs_discard_from_socket() argument 779 iov_iter_discard(&smb_msg.msg_iter, READ, to_read); in cifs_discard_from_socket() 786 unsigned int page_offset, unsigned int to_read) in cifs_read_page_from_socket() argument 790 .bv_page = page, .bv_len = to_read, .bv_offset = page_offset}; in cifs_read_page_from_socket() 791 iov_iter_bvec(&smb_msg.msg_iter, READ, &bv, 1, to_read); in cifs_read_page_from_socket()
|
D | file.c | 4600 unsigned int to_read = rdata->pagesz; in readpages_fill_pages() local 4604 to_read -= page_offset; in readpages_fill_pages() 4608 n = to_read; in readpages_fill_pages() 4610 if (len >= to_read) { in readpages_fill_pages() 4611 len -= to_read; in readpages_fill_pages() 4614 zero_user(page, len + page_offset, to_read - len); in readpages_fill_pages()
|
/linux-6.1.9/drivers/media/usb/gspca/ |
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()
|
/linux-6.1.9/security/selinux/ss/ |
D | policydb.c | 1388 int rc, to_read = 2; in role_read() local 1397 to_read = 3; in role_read() 1399 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in role_read() 1444 int rc, to_read = 3; in type_read() local 1453 to_read = 4; in type_read() 1455 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in type_read() 1518 int rc, to_read = 2; in user_read() local 1527 to_read = 3; in user_read() 1529 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in user_read()
|
/linux-6.1.9/drivers/md/ |
D | raid5.h | 285 int locked, uptodate, to_read, to_write, failed, written; member
|
D | raid5.c | 3739 s->to_read--; in handle_failed_stripe() 4044 if (s->to_read && s->injournal && s->failed) { in handle_stripe_fill() 4738 s->to_read++; in analyse_stripe() 5064 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe() 5078 if (s.to_read+s.to_write+s.written) in handle_stripe() 5155 if (s.to_read || s.non_overwrite in handle_stripe()
|
/linux-6.1.9/drivers/usb/dwc2/ |
D | gadget.c | 2264 int to_read; in dwc2_hsotg_rx_data() local 2283 to_read = size; in dwc2_hsotg_rx_data() 2288 __func__, to_read, max_req, read_ptr, hs_req->req.length); in dwc2_hsotg_rx_data() 2290 if (to_read > max_req) { in dwc2_hsotg_rx_data() 2300 hs_ep->total_data += to_read; in dwc2_hsotg_rx_data() 2301 hs_req->req.actual += to_read; in dwc2_hsotg_rx_data() 2302 to_read = DIV_ROUND_UP(to_read, 4); in dwc2_hsotg_rx_data() 2309 hs_req->req.buf + read_ptr, to_read); in dwc2_hsotg_rx_data()
|