/linux-4.19.296/drivers/char/ |
D | adi.c | 57 size_t ver_buf_sz, bytes_read = 0; in adi_read() local 70 while (bytes_read < count) { in adi_read() 80 if (copy_to_user(buf + bytes_read, ver_buf, in adi_read() 86 bytes_read += ver_buf_sz; in adi_read() 89 ver_buf_sz = min(count - bytes_read, in adi_read() 94 (*offp) += bytes_read; in adi_read() 95 ret = bytes_read; in adi_read()
|
D | ppdev.c | 125 ssize_t bytes_read = 0; in pp_read() local 150 while (bytes_read == 0) { in pp_read() 166 bytes_read = (*fn)(pport, kbuffer, need, flags); in pp_read() 168 bytes_read = parport_read(pport, kbuffer, need); in pp_read() 171 if (bytes_read != 0) in pp_read() 175 bytes_read = -EAGAIN; in pp_read() 180 bytes_read = -ERESTARTSYS; in pp_read() 189 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read() 190 bytes_read = -EFAULT; in pp_read() 194 return bytes_read; in pp_read()
|
/linux-4.19.296/fs/befs/ |
D | datastream.c | 133 befs_off_t bytes_read = 0; /* bytes readed */ in befs_read_lsymlink() local 139 while (bytes_read < len) { in befs_read_lsymlink() 140 bh = befs_read_datastream(sb, ds, bytes_read, NULL); in befs_read_lsymlink() 143 "starting from %llu", bytes_read); in befs_read_lsymlink() 145 return bytes_read; in befs_read_lsymlink() 148 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? in befs_read_lsymlink() 149 BEFS_SB(sb)->block_size : len - bytes_read; in befs_read_lsymlink() 150 memcpy(buff + bytes_read, bh->b_data, plen); in befs_read_lsymlink() 152 bytes_read += plen; in befs_read_lsymlink() 156 bytes_read); in befs_read_lsymlink() [all …]
|
/linux-4.19.296/drivers/char/hw_random/ |
D | core.c | 67 int bytes_read; in add_early_randomness() local 71 bytes_read = rng_get_data(rng, rng_buffer, size, 0); in add_early_randomness() 73 if (bytes_read > 0) in add_early_randomness() 74 add_device_randomness(rng_buffer, bytes_read); in add_early_randomness() 207 int bytes_read, len; in rng_dev_read() local 226 bytes_read = rng_get_data(rng, rng_buffer, in rng_dev_read() 229 if (bytes_read < 0) { in rng_dev_read() 230 err = bytes_read; in rng_dev_read() 233 data_avail = bytes_read; in rng_dev_read()
|
/linux-4.19.296/drivers/pci/hotplug/ |
D | acpiphp_ibm.c | 359 int bytes_read = -EINVAL; in ibm_read_apci_table() local 365 bytes_read = ibm_get_table_from_acpi(&table); in ibm_read_apci_table() 366 if (bytes_read > 0 && bytes_read <= size) in ibm_read_apci_table() 367 memcpy(buffer, table, bytes_read); in ibm_read_apci_table() 370 return bytes_read; in ibm_read_apci_table()
|
/linux-4.19.296/drivers/media/rc/ |
D | redrat3.c | 238 u16 bytes_read; member 634 rr3->bytes_read = len; in redrat3_read_packet_start() 636 rr3->bytes_read, pktlen); in redrat3_read_packet_start() 650 if (len + rr3->bytes_read > sizeof(rr3->irdata)) { in redrat3_read_packet_continue() 652 rr3->bytes_read = 0; in redrat3_read_packet_continue() 656 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len); in redrat3_read_packet_continue() 658 rr3->bytes_read += len; in redrat3_read_packet_continue() 659 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read, in redrat3_read_packet_continue() 670 if (rr3->bytes_read == 0 && len >= sizeof(struct redrat3_header)) { in redrat3_get_ir_data() 672 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data() [all …]
|
/linux-4.19.296/fs/cifs/ |
D | link.c | 225 unsigned int bytes_read = 0; in query_mf_symlink() local 233 cifs_sb, path, buf, &bytes_read); in query_mf_symlink() 240 if (bytes_read == 0) { /* not a symlink */ in query_mf_symlink() 245 rc = parse_mf_symlink(buf, bytes_read, &link_len, symlinkinfo); in query_mf_symlink() 259 unsigned int bytes_read = 0; in check_mf_symlink() local 271 cifs_sb, path, buf, &bytes_read); in check_mf_symlink() 278 if (bytes_read == 0) /* not a symlink */ in check_mf_symlink() 281 rc = parse_mf_symlink(buf, bytes_read, &link_len, NULL); in check_mf_symlink()
|
D | smb1ops.c | 658 (long long)(tcon->bytes_read)); in cifs_print_stats() 747 struct cifs_io_parms *parms, unsigned int *bytes_read, in cifs_sync_read() argument 751 return CIFSSMBRead(xid, parms, bytes_read, buf, buf_type); in cifs_sync_read()
|
D | inode.c | 445 unsigned int bytes_read; local 498 &bytes_read, &pbuf, &buf_type); 499 if ((rc == 0) && (bytes_read >= 8)) { 504 if (bytes_read == 24) { 516 if (bytes_read == 24) {
|
D | cifsglob.h | 986 __u64 bytes_read; member 1381 tcon->bytes_read += bytes; in cifs_stats_bytes_read()
|
D | file.c | 3484 unsigned int bytes_read = 0; in cifs_read() local 3527 total_read += bytes_read, cur_offset += bytes_read) { in cifs_read() 3551 &bytes_read, &cur_offset, in cifs_read() 3555 if (rc || (bytes_read == 0)) { in cifs_read() 3564 *offset += bytes_read; in cifs_read()
|
D | cifs_debug.c | 415 tcon->bytes_read = 0; in cifs_stats_proc_write()
|
D | smb2ops.c | 1038 (long long)(tcon->bytes_read), in smb2_print_stats() 1302 struct cifs_io_parms *parms, unsigned int *bytes_read, in smb2_sync_read() argument 1307 return SMB2_read(xid, parms, bytes_read, buf, buf_type); in smb2_sync_read()
|
/linux-4.19.296/drivers/nvmem/ |
D | bcm-ocotp.c | 166 u32 bytes_read; in bcm_otpc_read() local 170 for (bytes_read = 0; bytes_read < bytes;) { in bcm_otpc_read() 183 bytes_read += sizeof(*buf); in bcm_otpc_read()
|
/linux-4.19.296/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 652 int bytes_read; in dvb_ca_en50221_read_data() local 685 bytes_read = status; in dvb_ca_en50221_read_data() 705 bytes_read = status << 8; in dvb_ca_en50221_read_data() 710 bytes_read |= status; in dvb_ca_en50221_read_data() 714 if (bytes_read > sl->link_buf_size) { in dvb_ca_en50221_read_data() 716 ca->dvbdev->adapter->num, bytes_read, in dvb_ca_en50221_read_data() 722 if (bytes_read < 2) { in dvb_ca_en50221_read_data() 730 if (bytes_read > ecount) { in dvb_ca_en50221_read_data() 739 for (i = 0; i < bytes_read; i++) { in dvb_ca_en50221_read_data() 771 dvb_ringbuffer_pkt_write(&sl->rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data() [all …]
|
/linux-4.19.296/fs/hfs/ |
D | bnode.c | 22 int bytes_read; in hfs_bnode_read() local 30 for (bytes_read = 0; bytes_read < len; bytes_read += bytes_to_read) { in hfs_bnode_read() 34 bytes_to_read = min_t(int, len - bytes_read, PAGE_SIZE - off); in hfs_bnode_read() 37 memcpy(buf + bytes_read, vaddr + off, bytes_to_read); in hfs_bnode_read()
|
/linux-4.19.296/fs/orangefs/ |
D | inode.c | 21 ssize_t bytes_read = 0; in read_one_page() local 39 bytes_read = orangefs_inode_read(inode, in read_one_page() 48 if (bytes_read < 0) { in read_one_page() 49 ret = bytes_read; in read_one_page()
|
/linux-4.19.296/drivers/hid/ |
D | hid-rmi.c | 187 int bytes_read; in rmi_hid_read_block() local 220 bytes_read = 0; in rmi_hid_read_block() 222 while (bytes_read < len) { in rmi_hid_read_block() 233 memcpy(buf + bytes_read, &data->readReport[2], in rmi_hid_read_block() 237 bytes_read += read_input_count; in rmi_hid_read_block()
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-bcm-kona.c | 331 unsigned int bytes_read = 0; in bcm_kona_i2c_read_fifo() local 336 while (bytes_read < msg->len) { in bcm_kona_i2c_read_fifo() 337 if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) { in bcm_kona_i2c_read_fifo() 339 bytes_to_read = msg->len - bytes_read; in bcm_kona_i2c_read_fifo() 347 bytes_read += bytes_to_read; in bcm_kona_i2c_read_fifo()
|
/linux-4.19.296/drivers/media/usb/usbvision/ |
D | usbvision-video.c | 973 frame->bytes_read = 0; in usbvision_read() 979 frame->index, frame->bytes_read, frame->scanlength); in usbvision_read() 982 if ((count + frame->bytes_read) > (unsigned long)frame->scanlength) in usbvision_read() 983 count = frame->scanlength - frame->bytes_read; in usbvision_read() 985 if (copy_to_user(buf, frame->data + frame->bytes_read, count)) in usbvision_read() 988 frame->bytes_read += count; in usbvision_read() 991 (unsigned long)count, frame->bytes_read); in usbvision_read() 998 frame->bytes_read = 0; in usbvision_read() 1003 if (frame->bytes_read >= frame->scanlength) { in usbvision_read() 1005 frame->bytes_read = 0; in usbvision_read()
|
D | usbvision.h | 316 long bytes_read; /* amount of scanlength that has been read from data */ member
|
D | usbvision-core.c | 1796 usbvision->frame[i].bytes_read = 0; in usbvision_frames_alloc() 1832 usbvision->frame[i].bytes_read = 0; in usbvision_empty_framequeues()
|
/linux-4.19.296/fs/hostfs/ |
D | hostfs_kern.c | 446 int bytes_read, ret = 0; in hostfs_readpage() local 449 bytes_read = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, in hostfs_readpage() 451 if (bytes_read < 0) { in hostfs_readpage() 454 ret = bytes_read; in hostfs_readpage() 458 memset(buffer + bytes_read, 0, PAGE_SIZE - bytes_read); in hostfs_readpage()
|
/linux-4.19.296/fs/ecryptfs/ |
D | crypto.c | 881 char *page_virt, int *bytes_read) in ecryptfs_process_flags() argument 895 (*bytes_read) = 4; in ecryptfs_process_flags() 1224 char *virt, int *bytes_read, in parse_header_metadata() argument 1236 (*bytes_read) = (sizeof(__be32) + sizeof(__be16)); in parse_header_metadata() 1298 int bytes_read; in ecryptfs_read_headers_virt() local 1311 &bytes_read); in ecryptfs_read_headers_virt() 1325 offset += bytes_read; in ecryptfs_read_headers_virt() 1328 &bytes_read, validate_header_size); in ecryptfs_read_headers_virt() 1333 offset += bytes_read; in ecryptfs_read_headers_virt()
|
/linux-4.19.296/include/acpi/ |
D | acpiosxf.h | 348 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read);
|