Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 59 of 59) sorted by relevance

/linux-4.1.27/tools/power/acpi/tools/ec/
Dec_access.c130 int byte_off, bytes_read; in dump_ec() local
132 bytes_read = read(fd, buf, EC_SPACE_SIZE); in dump_ec()
134 if (bytes_read == -1) in dump_ec()
137 if (bytes_read != EC_SPACE_SIZE) in dump_ec()
138 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec()
141 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec()
155 bytes_read = read(fd, buf2, EC_SPACE_SIZE); in dump_ec()
157 if (bytes_read == -1) in dump_ec()
160 if (bytes_read != EC_SPACE_SIZE) in dump_ec()
161 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec()
[all …]
/linux-4.1.27/tools/perf/scripts/perl/
Drwtop.pl44 $reads{$common_pid}{bytes_read} += $ret;
46 if (!defined ($reads{$common_pid}{bytes_read})) {
47 $reads{$common_pid}{bytes_read} = 0;
136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
137 ($reads{$a}{bytes_read} || 0) } keys %reads) {
141 my $bytes_read = $reads{$pid}{bytes_read} || 0;
144 $total_reads, $bytes_requested, $bytes_read);
Drw-by-pid.pl31 $reads{$common_pid}{bytes_read} += $ret;
33 if (!defined ($reads{$common_pid}{bytes_read})) {
34 $reads{$common_pid}{bytes_read} = 0;
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
83 ($reads{$a}{bytes_read} || 0) } keys %reads) {
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
90 $total_reads, $bytes_requested, $bytes_read);
/linux-4.1.27/drivers/usb/misc/
Didmouse.c131 int bytes_read; in idmouse_create_image() local
136 bytes_read = sizeof(HEADER)-1; in idmouse_create_image()
165 while (bytes_read < IMGSIZE) { in idmouse_create_image()
168 dev->bulk_in_buffer + bytes_read, in idmouse_create_image()
183 bytes_read += bulk_read; in idmouse_create_image()
192 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH) in idmouse_create_image()
193 if (dev->bulk_in_buffer[bytes_read] != 0x00) in idmouse_create_image()
197 for (bytes_read = IMGSIZE-WIDTH; bytes_read < IMGSIZE-1; bytes_read++) in idmouse_create_image()
198 if (dev->bulk_in_buffer[bytes_read] != 0xFF) in idmouse_create_image()
203 bytes_read); in idmouse_create_image()
Dadutux.c345 size_t bytes_read = 0; in adu_read() local
390 bytes_read += (amount - i); in adu_read()
393 retval = bytes_read ? bytes_read : -EFAULT; in adu_read()
442 retval = bytes_read ? bytes_read : -ENOMEM; in adu_read()
467 retval = bytes_read ? bytes_read : -ETIMEDOUT; in adu_read()
475 retval = bytes_read ? bytes_read : -EINTR; in adu_read()
482 retval = bytes_read; in adu_read()
Dyurex.c418 int bytes_read = 0; in yurex_read() local
431 bytes_read = snprintf(in_buffer, 20, "%lld\n", dev->bbu); in yurex_read()
434 if (*ppos < bytes_read) { in yurex_read()
435 if (copy_to_user(buffer, in_buffer + *ppos, bytes_read - *ppos)) in yurex_read()
438 retval = bytes_read - *ppos; in yurex_read()
439 *ppos += bytes_read; in yurex_read()
Dftdi-elan.c669 int bytes_read = 0; in ftdi_elan_read() local
681 if (bytes_read < m) { in ftdi_elan_read()
683 } else if (bytes_read > m) { in ftdi_elan_read()
689 bytes_read += 1; in ftdi_elan_read()
693 return bytes_read; in ftdi_elan_read()
708 } else if (bytes_read > 0) { in ftdi_elan_read()
709 return bytes_read; in ftdi_elan_read()
716 return bytes_read; in ftdi_elan_read()
720 return bytes_read; in ftdi_elan_read()
950 int bytes_read = 0; in ftdi_elan_respond_engine() local
[all …]
Dusblcd.c140 int bytes_read; in lcd_read() local
150 &bytes_read, 10000); in lcd_read()
154 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read)) in lcd_read()
157 retval = bytes_read; in lcd_read()
/linux-4.1.27/drivers/char/
Dmsm_smd_pkt.c114 int r, bytes_read; in smd_pkt_read() local
141 bytes_read = smd_cur_packet_size(smd_pkt_devp->ch); in smd_pkt_read()
142 if (bytes_read == 0 || in smd_pkt_read()
143 bytes_read < smd_read_avail(smd_pkt_devp->ch)) { in smd_pkt_read()
149 if (bytes_read > count) { in smd_pkt_read()
151 pr_info("packet size %d > buffer size %d", bytes_read, count); in smd_pkt_read()
155 r = smd_read(smd_pkt_devp->ch, smd_pkt_devp->rx_buf, bytes_read); in smd_pkt_read()
156 if (r != bytes_read) { in smd_pkt_read()
158 pr_err("smd_read failed to read %d bytes: %d\n", bytes_read, r); in smd_pkt_read()
162 D_DUMP_BUFFER("read: ", bytes_read, smd_pkt_devp->rx_buf); in smd_pkt_read()
[all …]
Dppdev.c113 ssize_t bytes_read = 0; in pp_read() local
139 while (bytes_read == 0) { in pp_read()
158 bytes_read = (*fn)(pport, kbuffer, need, flags); in pp_read()
160 bytes_read = parport_read (pport, kbuffer, need); in pp_read()
163 if (bytes_read != 0) in pp_read()
167 bytes_read = -EAGAIN; in pp_read()
172 bytes_read = -ERESTARTSYS; in pp_read()
181 if (bytes_read > 0 && copy_to_user (buf, kbuffer, bytes_read)) in pp_read()
182 bytes_read = -EFAULT; in pp_read()
186 return bytes_read; in pp_read()
/linux-4.1.27/fs/befs/
Ddatastream.c128 befs_off_t bytes_read = 0; /* bytes readed */ in befs_read_lsymlink() local
133 while (bytes_read < len) { in befs_read_lsymlink()
134 bh = befs_read_datastream(sb, ds, bytes_read, NULL); in befs_read_lsymlink()
137 "starting from %llu", bytes_read); in befs_read_lsymlink()
139 return bytes_read; in befs_read_lsymlink()
142 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? in befs_read_lsymlink()
143 BEFS_SB(sb)->block_size : len - bytes_read; in befs_read_lsymlink()
144 memcpy(buff + bytes_read, bh->b_data, plen); in befs_read_lsymlink()
146 bytes_read += plen; in befs_read_lsymlink()
150 bytes_read); in befs_read_lsymlink()
[all …]
/linux-4.1.27/arch/tile/lib/
Dstrnlen_32.c24 size_t bytes_read = sizeof(*p) - (s_int & (sizeof(*p) - 1)); in strnlen() local
36 if (bytes_read >= count) { in strnlen()
41 bytes_read += sizeof(v); in strnlen()
Dstrnlen_64.c25 size_t bytes_read = sizeof(*p) - (s_int & (sizeof(*p) - 1)); in strnlen() local
37 if (bytes_read >= count) { in strnlen()
42 bytes_read += sizeof(v); in strnlen()
/linux-4.1.27/drivers/mtd/
Dbcm47xxpart.c68 size_t bytes_read; in bcm47xxpart_trx_data_part_name() local
70 if (mtd_read(master, offset, sizeof(buf), &bytes_read, in bcm47xxpart_trx_data_part_name()
91 size_t bytes_read; in bcm47xxpart_parse() local
132 &bytes_read, (uint8_t *)buf) < 0) { in bcm47xxpart_parse()
258 &bytes_read, (uint8_t *)buf) < 0) { in bcm47xxpart_parse()
280 if (mtd_read(master, offset, 0x4, &bytes_read, in bcm47xxpart_parse()
/linux-4.1.27/drivers/char/hw_random/
Dcore.c88 int bytes_read; in add_early_randomness() local
91 bytes_read = rng_get_data(rng, bytes, sizeof(bytes), 1); in add_early_randomness()
93 if (bytes_read > 0) in add_early_randomness()
94 add_device_randomness(bytes, bytes_read); in add_early_randomness()
227 int bytes_read, len; in rng_dev_read() local
243 bytes_read = rng_get_data(rng, rng_buffer, in rng_dev_read()
246 if (bytes_read < 0) { in rng_dev_read()
247 err = bytes_read; in rng_dev_read()
250 data_avail = bytes_read; in rng_dev_read()
/linux-4.1.27/drivers/firmware/
Ddell_rbu.c263 int length, int bytes_read, int *list_read_count) in do_packet_read() argument
273 if (*list_read_count > bytes_read) { in do_packet_read()
275 j = newpacket->length - (*list_read_count - bytes_read); in do_packet_read()
282 if (length > (*list_read_count - bytes_read)) in do_packet_read()
287 bytes_copied = (*list_read_count - bytes_read); in do_packet_read()
301 int bytes_read = 0; in packet_read_list() local
310 bytes_read = rbu_data.packet_read_count; in packet_read_list()
315 remaining_bytes, bytes_read, &temp_count); in packet_read_list()
317 bytes_read += bytes_copied; in packet_read_list()
329 *pread_length = bytes_read - rbu_data.packet_read_count; in packet_read_list()
[all …]
/linux-4.1.27/Documentation/usb/
Dgadget_printer.txt209 int bytes_read;
218 bytes_read = read(fd[0].fd, buf, BUF_SIZE);
220 if (bytes_read < 0) {
225 } else if (bytes_read > 0) {
227 fwrite(buf, 1, bytes_read, stdout);
261 int bytes_read = fread(buf, 1, BUF_SIZE, stdin);
263 if (!bytes_read) {
267 while (bytes_read) {
274 retval = write(fd[0].fd, buf, bytes_read);
282 bytes_read -= retval;
[all …]
/linux-4.1.27/drivers/ps3/
Dps3-vuart.c394 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument
402 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read()
410 priv->stats.bytes_read += *bytes_read; in ps3_vuart_raw_read()
413 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read()
460 priv->stats.bytes_read -= bytes_waiting; in ps3_vuart_clear_rx_bytes()
617 unsigned long bytes_read; in ps3_vuart_read() local
640 bytes_read = min((unsigned int)(lb->tail - lb->head), bytes); in ps3_vuart_read()
642 memcpy(buf, lb->head, bytes_read); in ps3_vuart_read()
643 buf += bytes_read; in ps3_vuart_read()
644 bytes -= bytes_read; in ps3_vuart_read()
[all …]
Dvuart.h28 unsigned long bytes_read; member
/linux-4.1.27/drivers/media/rc/
Dredrat3.c200 u16 bytes_read; member
588 rr3->bytes_read = len; in redrat3_read_packet_start()
590 rr3->bytes_read, pktlen); in redrat3_read_packet_start()
604 if (len + rr3->bytes_read > sizeof(rr3->irdata)) { in redrat3_read_packet_continue()
606 rr3->bytes_read = 0; in redrat3_read_packet_continue()
610 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len); in redrat3_read_packet_continue()
612 rr3->bytes_read += len; in redrat3_read_packet_continue()
613 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read, in redrat3_read_packet_continue()
624 if (rr3->bytes_read == 0 && len >= sizeof(struct redrat3_header)) { in redrat3_get_ir_data()
626 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data()
[all …]
/linux-4.1.27/arch/cris/arch-v32/drivers/
Di2c.c450 unsigned char bytes_read = 0; in i2c_read() local
475 for (bytes_read = 0; bytes_read < nbytes; bytes_read++) { in i2c_read()
477 memcpy(data + bytes_read, &b, sizeof b); in i2c_read()
479 if (bytes_read < (nbytes - 1)) in i2c_read()
/linux-4.1.27/drivers/tty/serial/
Dsunhv.c125 unsigned long bytes_read, i; in receive_chars_read() local
126 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read); in receive_chars_read()
129 bytes_read = 0; in receive_chars_read()
136 bytes_read = 1; in receive_chars_read()
152 for (i = 0; i < bytes_read; i++) in receive_chars_read()
158 port->icount.rx += bytes_read; in receive_chars_read()
161 bytes_read); in receive_chars_read()
Dsc16is7xx.c472 unsigned int lsr = 0, ch, flag, bytes_read, i; in sc16is7xx_handle_rx() local
495 bytes_read = 1; in sc16is7xx_handle_rx()
501 bytes_read = rxlen; in sc16is7xx_handle_rx()
532 for (i = 0; i < bytes_read; ++i) { in sc16is7xx_handle_rx()
543 rxlen -= bytes_read; in sc16is7xx_handle_rx()
/linux-4.1.27/drivers/pci/hotplug/
Dacpiphp_ibm.c360 int bytes_read = -EINVAL; in ibm_read_apci_table() local
366 bytes_read = ibm_get_table_from_acpi(&table); in ibm_read_apci_table()
367 if (bytes_read > 0 && bytes_read <= size) in ibm_read_apci_table()
368 memcpy(buffer, table, bytes_read); in ibm_read_apci_table()
371 return bytes_read; in ibm_read_apci_table()
/linux-4.1.27/fs/cifs/
Dlink.c244 unsigned int bytes_read = 0; in query_mf_symlink() local
252 cifs_sb, path, buf, &bytes_read); in query_mf_symlink()
259 if (bytes_read == 0) { /* not a symlink */ in query_mf_symlink()
264 rc = parse_mf_symlink(buf, bytes_read, &link_len, symlinkinfo); in query_mf_symlink()
278 unsigned int bytes_read = 0; in check_mf_symlink() local
290 cifs_sb, path, buf, &bytes_read); in check_mf_symlink()
297 if (bytes_read == 0) /* not a symlink */ in check_mf_symlink()
300 rc = parse_mf_symlink(buf, bytes_read, &link_len, NULL); in check_mf_symlink()
Dsmb1ops.c657 (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()
Dinode.c438 unsigned int bytes_read; local
489 &bytes_read, &pbuf, &buf_type);
490 if ((rc == 0) && (bytes_read >= 8)) {
495 if (bytes_read == 24) {
507 if (bytes_read == 24) {
Dcifsglob.h872 __u64 bytes_read; member
1217 tcon->bytes_read += bytes; in cifs_stats_bytes_read()
Dfile.c3119 unsigned int bytes_read = 0; in cifs_read() local
3162 total_read += bytes_read, cur_offset += bytes_read) { in cifs_read()
3186 &bytes_read, &cur_offset, in cifs_read()
3190 if (rc || (bytes_read == 0)) { in cifs_read()
3199 *offset += bytes_read; in cifs_read()
Dsmb2ops.c724 struct cifs_io_parms *parms, unsigned int *bytes_read, in smb2_sync_read() argument
729 return SMB2_read(xid, parms, bytes_read, buf, buf_type); in smb2_sync_read()
/linux-4.1.27/arch/mips/bcm47xx/
Dnvram.c141 size_t bytes_read; in nvram_init() local
148 err = mtd_read(mtd, 0, sizeof(header), &bytes_read, (uint8_t *)&header); in nvram_init()
159 err = mtd_read(mtd, 0, len, &bytes_read, dst); in nvram_init()
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/
Dconnector-dvi.c181 int r, l, bytes_read; in dvic_read_edid() local
191 bytes_read = l; in dvic_read_edid()
202 bytes_read += l; in dvic_read_edid()
205 return bytes_read; in dvic_read_edid()
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_ca_en50221.c591 int bytes_read; in dvb_ca_en50221_read_data() local
626 bytes_read = status << 8; in dvb_ca_en50221_read_data()
629 bytes_read |= status; in dvb_ca_en50221_read_data()
633 if (bytes_read > ca->slot_info[slot].link_buf_size) { in dvb_ca_en50221_read_data()
635 ca->dvbdev->adapter->num, bytes_read, ca->slot_info[slot].link_buf_size); in dvb_ca_en50221_read_data()
640 if (bytes_read < 2) { in dvb_ca_en50221_read_data()
648 if (bytes_read > ecount) { in dvb_ca_en50221_read_data()
657 for (i = 0; i < bytes_read; i++) { in dvb_ca_en50221_read_data()
681 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data()
683 memcpy(ebuf, buf, bytes_read); in dvb_ca_en50221_read_data()
[all …]
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c89 acpi_status acpi_ut_read_line(char *buffer, u32 buffer_length, u32 *bytes_read);
455 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read) in acpi_os_get_line() argument
484 if (bytes_read) { in acpi_os_get_line()
485 *bytes_read = end_of_line; in acpi_os_get_line()
/linux-4.1.27/block/
Dbsg.c514 const struct iovec *iov, ssize_t *bytes_read) in __bsg_read() argument
548 *bytes_read += sizeof(struct sg_io_v4); in __bsg_read()
579 ssize_t bytes_read; in bsg_read() local
585 bytes_read = 0; in bsg_read()
586 ret = __bsg_read(buf, count, bd, NULL, &bytes_read); in bsg_read()
587 *ppos = bytes_read; in bsg_read()
589 if (!bytes_read || err_block_err(ret)) in bsg_read()
590 bytes_read = ret; in bsg_read()
592 return bytes_read; in bsg_read()
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb.c471 void *kernbuffer, char __user *userbuffer, ssize_t *bytes_read, in sisusb_recv_bulk_msg() argument
479 (*bytes_read) = 0; in sisusb_recv_bulk_msg()
527 (*bytes_read) += thispass; in sisusb_recv_bulk_msg()
548 return ((*bytes_read) == len) ? 0 : -EIO; in sisusb_recv_bulk_msg()
1143 char __user *userbuffer, ssize_t *bytes_read) in sisusb_read_mem_bulk() argument
1150 (*bytes_read = 0); in sisusb_read_mem_bulk()
1163 (*bytes_read)++; in sisusb_read_mem_bulk()
1179 (*bytes_read) += 2; in sisusb_read_mem_bulk()
1194 (*bytes_read) += 3; in sisusb_read_mem_bulk()
1219 (*bytes_read) += 4; in sisusb_read_mem_bulk()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_lbr.c611 int bytes_read, bytes_left; in branch_type() local
641 bytes_read = MAX_INSN_SIZE - bytes_left; in branch_type()
642 if (!bytes_read) in branch_type()
662 bytes_read = MAX_INSN_SIZE; in branch_type()
675 insn_init(&insn, addr, bytes_read, is64); in branch_type()
/linux-4.1.27/drivers/i2c/busses/
Di2c-bcm-kona.c331 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.1.27/drivers/net/ethernet/qualcomm/
Dqca_spi.c294 u32 bytes_read; in qcaspi_receive() local
330 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer, in qcaspi_receive()
333 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer, in qcaspi_receive()
338 available, bytes_read); in qcaspi_receive()
340 if (bytes_read) { in qcaspi_receive()
341 available -= bytes_read; in qcaspi_receive()
349 while ((bytes_read--) && (qca->rx_skb)) { in qcaspi_receive()
/linux-4.1.27/fs/hostfs/
Dhostfs_kern.c446 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_CACHE_SIZE - bytes_read); in hostfs_readpage()
/linux-4.1.27/fs/ecryptfs/
Dcrypto.c903 char *page_virt, int *bytes_read) in ecryptfs_process_flags() argument
918 (*bytes_read) = 4; in ecryptfs_process_flags()
1245 char *virt, int *bytes_read, in parse_header_metadata() argument
1257 (*bytes_read) = (sizeof(__be32) + sizeof(__be16)); in parse_header_metadata()
1319 int bytes_read; in ecryptfs_read_headers_virt() local
1332 &bytes_read); in ecryptfs_read_headers_virt()
1346 offset += bytes_read; in ecryptfs_read_headers_virt()
1349 &bytes_read, validate_header_size); in ecryptfs_read_headers_virt()
1354 offset += bytes_read; in ecryptfs_read_headers_virt()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dnvm.c132 int ret, bytes_read, offset_read; in iwl_nvm_read_chunk() local
152 bytes_read = le16_to_cpu(nvm_resp->length); in iwl_nvm_read_chunk()
187 memcpy(data + offset, resp_data, bytes_read); in iwl_nvm_read_chunk()
188 ret = bytes_read; in iwl_nvm_read_chunk()
Dmac80211.c842 ssize_t bytes_read; in iwl_mvm_read_coredump() local
846 bytes_read = min_t(ssize_t, count, in iwl_mvm_read_coredump()
849 bytes_read); in iwl_mvm_read_coredump()
850 offset += bytes_read; in iwl_mvm_read_coredump()
851 count -= bytes_read; in iwl_mvm_read_coredump()
854 return bytes_read; in iwl_mvm_read_coredump()
856 bytes_read = 0; in iwl_mvm_read_coredump()
860 return bytes_read; in iwl_mvm_read_coredump()
865 memcpy(buffer + bytes_read, in iwl_mvm_read_coredump()
869 return bytes_read + bytes_read_trans; in iwl_mvm_read_coredump()
/linux-4.1.27/drivers/media/usb/usbvision/
Dusbvision-video.c1044 frame->bytes_read = 0; in usbvision_read()
1050 frame->index, frame->bytes_read, frame->scanlength); in usbvision_read()
1053 if ((count + frame->bytes_read) > (unsigned long)frame->scanlength) in usbvision_read()
1054 count = frame->scanlength - frame->bytes_read; in usbvision_read()
1056 if (copy_to_user(buf, frame->data + frame->bytes_read, count)) in usbvision_read()
1059 frame->bytes_read += count; in usbvision_read()
1062 (unsigned long)count, frame->bytes_read); in usbvision_read()
1066 frame->bytes_read = 0; in usbvision_read()
Dusbvision.h319 long bytes_read; /* amount of scanlength that has been read from data */ member
Dusbvision-core.c1809 usbvision->frame[i].bytes_read = 0; in usbvision_frames_alloc()
1845 usbvision->frame[i].bytes_read = 0; in usbvision_empty_framequeues()
/linux-4.1.27/drivers/usb/gadget/udc/
Ds3c2410_udc.c529 int bytes_read = 0; in s3c2410_udc_read_fifo_crq() local
533 bytes_read = s3c2410_udc_fifo_count_out(); in s3c2410_udc_read_fifo_crq()
535 dprintk(DEBUG_NORMAL, "%s: fifo_count=%d\n", __func__, bytes_read); in s3c2410_udc_read_fifo_crq()
537 if (bytes_read > sizeof(struct usb_ctrlrequest)) in s3c2410_udc_read_fifo_crq()
538 bytes_read = sizeof(struct usb_ctrlrequest); in s3c2410_udc_read_fifo_crq()
540 readsb(S3C2410_UDC_EP0_FIFO_REG + base_addr, outbuf, bytes_read); in s3c2410_udc_read_fifo_crq()
543 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
546 return bytes_read; in s3c2410_udc_read_fifo_crq()
/linux-4.1.27/drivers/hid/
Dhid-rmi.c205 int bytes_read; in rmi_read_block() local
238 bytes_read = 0; in rmi_read_block()
240 while (bytes_read < len) { in rmi_read_block()
251 memcpy(buf + bytes_read, &data->readReport[2], in rmi_read_block()
255 bytes_read += read_input_count; in rmi_read_block()
/linux-4.1.27/fs/ncpfs/
Dncplib_kernel.c968 __u32 offset, __u16 to_read, char *target, int *bytes_read) in ncp_read_kernel() argument
982 *bytes_read = ncp_reply_be16(server, 0); in ncp_read_kernel()
985 memcpy(target, source, *bytes_read); in ncp_read_kernel()
1005 int *bytes_read, void *bounce, __u32 bufsize) in ncp_read_bounce() argument
1026 *bytes_read = len; in ncp_read_bounce()
/linux-4.1.27/include/acpi/
Dacpiosxf.h354 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read);
/linux-4.1.27/drivers/staging/unisys/virtpci/
Dvirtpci.c1272 ssize_t bytes_read = 0; in info_debugfs_read() local
1326 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); in info_debugfs_read()
1328 return bytes_read; in info_debugfs_read()
/linux-4.1.27/drivers/staging/comedi/
Dcomedi_fops.c1098 bi.bytes_read = 0; in do_bufinfo_ioctl()
1103 bi.bytes_read = 0; in do_bufinfo_ioctl()
1110 if (bi.bytes_read && !(async->cmd.flags & CMDF_WRITE)) { in do_bufinfo_ioctl()
1111 bi.bytes_read = comedi_buf_read_alloc(s, bi.bytes_read); in do_bufinfo_ioctl()
1112 comedi_buf_read_free(s, bi.bytes_read); in do_bufinfo_ioctl()
Dcomedi.h491 unsigned int bytes_read; member
/linux-4.1.27/drivers/staging/unisys/virthba/
Dvirthba.c1215 ssize_t bytes_read = 0; in info_debugfs_read() local
1260 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); in info_debugfs_read()
1262 return bytes_read; in info_debugfs_read()
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c1781 int bytes_read; in read_pdu_skb() local
1783 bytes_read = iscsi_tcp_recv_skb(conn, skb, offset, offloaded, &status); in read_pdu_skb()
1792 skb, offset, offloaded, bytes_read); in read_pdu_skb()
1794 return bytes_read; in read_pdu_skb()
1807 skb, offset, offloaded, bytes_read); in read_pdu_skb()
1808 return bytes_read; in read_pdu_skb()
/linux-4.1.27/arch/sparc/include/asm/
Dhypervisor.h1047 unsigned long *bytes_read);
/linux-4.1.27/drivers/crypto/ux500/cryp/
Dcryp_core.c831 int bytes_read = 0; in ablk_dma_crypt() local
855 bytes_read = cryp_dma_read(ctx, areq->dst, bytes_written); in ablk_dma_crypt()
875 if (unlikely(bytes_written != bytes_read)) in ablk_dma_crypt()
/linux-4.1.27/drivers/usb/atm/
Dueagle-atm.c868 int bytes_read; in uea_idma_write() local
878 xfer_buff, size, &bytes_read, BULK_TIMEOUT); in uea_idma_write()
883 if (size != bytes_read) { in uea_idma_write()
885 bytes_read); in uea_idma_write()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_debugfs.c3078 ssize_t bytes_read; in i915_pipe_crc_read() local
3111 bytes_read = 0; in i915_pipe_crc_read()
3124 bytes_read += snprintf(buf, PIPE_CRC_BUFFER_LEN, in i915_pipe_crc_read()
3144 return bytes_read; in i915_pipe_crc_read()