Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c444 char *buffer, s32 bytes_read) in octeon_console_handle_result() argument
459 s32 bytes_read) in output_console_line() argument
465 for (i = 0; i < bytes_read; i++) { in output_console_line()
483 if (line != &console_buffer[bytes_read]) { in output_console_line()
484 console_buffer[bytes_read] = '\0'; in output_console_line()
491 s32 bytes_read, tries, total_read; in check_console() local
506 bytes_read = in check_console()
509 if (bytes_read > 0) { in check_console()
510 total_read += bytes_read; in check_console()
514 bytes_read); in check_console()
[all …]
/linux-4.4.14/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.4.14/arch/tile/lib/
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()
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()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/char/
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.4.14/drivers/media/rc/
Dredrat3.c200 u16 bytes_read; member
589 rr3->bytes_read = len; in redrat3_read_packet_start()
591 rr3->bytes_read, pktlen); in redrat3_read_packet_start()
605 if (len + rr3->bytes_read > sizeof(rr3->irdata)) { in redrat3_read_packet_continue()
607 rr3->bytes_read = 0; in redrat3_read_packet_continue()
611 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len); in redrat3_read_packet_continue()
613 rr3->bytes_read += len; in redrat3_read_packet_continue()
614 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read, in redrat3_read_packet_continue()
625 if (rr3->bytes_read == 0 && len >= sizeof(struct redrat3_header)) { in redrat3_get_ir_data()
627 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data()
[all …]
/linux-4.4.14/drivers/tty/serial/
Dsunhv.c124 unsigned long bytes_read, i; in receive_chars_read() local
125 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read); in receive_chars_read()
128 bytes_read = 0; in receive_chars_read()
135 bytes_read = 1; in receive_chars_read()
152 for (i = 0; i < bytes_read; i++) in receive_chars_read()
159 port->icount.rx += bytes_read; in receive_chars_read()
162 bytes_read); in receive_chars_read()
Dsc16is7xx.c538 unsigned int lsr = 0, ch, flag, bytes_read, i; in sc16is7xx_handle_rx() local
561 bytes_read = 1; in sc16is7xx_handle_rx()
564 bytes_read = rxlen; in sc16is7xx_handle_rx()
595 for (i = 0; i < bytes_read; ++i) { in sc16is7xx_handle_rx()
606 rxlen -= bytes_read; in sc16is7xx_handle_rx()
/linux-4.4.14/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.4.14/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.h884 __u64 bytes_read; member
1232 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.4.14/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.4.14/drivers/media/dvb-core/
Ddvb_ca_en50221.c592 int bytes_read; in dvb_ca_en50221_read_data() local
627 bytes_read = status << 8; in dvb_ca_en50221_read_data()
630 bytes_read |= status; in dvb_ca_en50221_read_data()
634 if (bytes_read > ca->slot_info[slot].link_buf_size) { in dvb_ca_en50221_read_data()
636 ca->dvbdev->adapter->num, bytes_read, ca->slot_info[slot].link_buf_size); in dvb_ca_en50221_read_data()
641 if (bytes_read < 2) { in dvb_ca_en50221_read_data()
649 if (bytes_read > ecount) { in dvb_ca_en50221_read_data()
658 for (i = 0; i < bytes_read; i++) { in dvb_ca_en50221_read_data()
682 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data()
684 memcpy(ebuf, buf, bytes_read); in dvb_ca_en50221_read_data()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/net/wireless/ath/ath9k/
Dcommon-spectral.c40 typedef int (ath_cmn_fft_idx_validator) (u8 *sample_end, int bytes_read);
43 ath_cmn_max_idx_verify_ht20_fft(u8 *sample_end, int bytes_read) in ath_cmn_max_idx_verify_ht20_fft() argument
54 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN - 1) in ath_cmn_max_idx_verify_ht20_fft()
72 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN && max_index < 1) in ath_cmn_max_idx_verify_ht20_fft()
82 ath_cmn_max_idx_verify_ht20_40_fft(u8 *sample_end, int bytes_read) in ath_cmn_max_idx_verify_ht20_40_fft() argument
94 if (bytes_read < SPECTRAL_HT20_40_SAMPLE_LEN - 1) in ath_cmn_max_idx_verify_ht20_40_fft()
116 if (bytes_read < SPECTRAL_HT20_40_SAMPLE_LEN && in ath_cmn_max_idx_verify_ht20_40_fft()
/linux-4.4.14/drivers/firmware/broadcom/
Dbcm47xx_nvram.c149 size_t bytes_read; in nvram_init() local
156 err = mtd_read(mtd, 0, sizeof(header), &bytes_read, (uint8_t *)&header); in nvram_init()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_lbr.c647 int bytes_read, bytes_left; in branch_type() local
677 bytes_read = MAX_INSN_SIZE - bytes_left; in branch_type()
678 if (!bytes_read) in branch_type()
698 bytes_read = MAX_INSN_SIZE; in branch_type()
711 insn_init(&insn, addr, bytes_read, is64); in branch_type()
/linux-4.4.14/drivers/media/usb/usbvision/
Dusbvision-video.c989 frame->bytes_read = 0; in usbvision_read()
995 frame->index, frame->bytes_read, frame->scanlength); in usbvision_read()
998 if ((count + frame->bytes_read) > (unsigned long)frame->scanlength) in usbvision_read()
999 count = frame->scanlength - frame->bytes_read; in usbvision_read()
1001 if (copy_to_user(buf, frame->data + frame->bytes_read, count)) in usbvision_read()
1004 frame->bytes_read += count; in usbvision_read()
1007 (unsigned long)count, frame->bytes_read); in usbvision_read()
1014 frame->bytes_read = 0; in usbvision_read()
1019 if (frame->bytes_read >= frame->scanlength) { in usbvision_read()
1021 frame->bytes_read = 0; in usbvision_read()
Dusbvision.h320 long bytes_read; /* amount of scanlength that has been read from data */ member
Dusbvision-core.c1807 usbvision->frame[i].bytes_read = 0; in usbvision_frames_alloc()
1843 usbvision->frame[i].bytes_read = 0; in usbvision_empty_framequeues()
/linux-4.4.14/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.4.14/fs/ecryptfs/
Dcrypto.c902 char *page_virt, int *bytes_read) in ecryptfs_process_flags() argument
917 (*bytes_read) = 4; in ecryptfs_process_flags()
1244 char *virt, int *bytes_read, in parse_header_metadata() argument
1256 (*bytes_read) = (sizeof(__be32) + sizeof(__be16)); in parse_header_metadata()
1318 int bytes_read; in ecryptfs_read_headers_virt() local
1331 &bytes_read); in ecryptfs_read_headers_virt()
1345 offset += bytes_read; in ecryptfs_read_headers_virt()
1348 &bytes_read, validate_header_size); in ecryptfs_read_headers_virt()
1353 offset += bytes_read; in ecryptfs_read_headers_virt()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dnvm.c132 int ret, bytes_read, offset_read; in iwl_nvm_read_chunk() local
146 bytes_read = le16_to_cpu(nvm_resp->length); in iwl_nvm_read_chunk()
181 memcpy(data + offset, resp_data, bytes_read); in iwl_nvm_read_chunk()
182 ret = bytes_read; in iwl_nvm_read_chunk()
Dmac80211.c946 ssize_t bytes_read; in iwl_mvm_read_coredump() local
950 bytes_read = min_t(ssize_t, count, in iwl_mvm_read_coredump()
953 bytes_read); in iwl_mvm_read_coredump()
954 offset += bytes_read; in iwl_mvm_read_coredump()
955 count -= bytes_read; in iwl_mvm_read_coredump()
958 return bytes_read; in iwl_mvm_read_coredump()
960 bytes_read = 0; in iwl_mvm_read_coredump()
964 return bytes_read; in iwl_mvm_read_coredump()
969 memcpy(buffer + bytes_read, in iwl_mvm_read_coredump()
973 return bytes_read + bytes_read_trans; in iwl_mvm_read_coredump()
/linux-4.4.14/drivers/usb/gadget/udc/
Ds3c2410_udc.c527 int bytes_read = 0; in s3c2410_udc_read_fifo_crq() local
531 bytes_read = s3c2410_udc_fifo_count_out(); in s3c2410_udc_read_fifo_crq()
533 dprintk(DEBUG_NORMAL, "%s: fifo_count=%d\n", __func__, bytes_read); in s3c2410_udc_read_fifo_crq()
535 if (bytes_read > sizeof(struct usb_ctrlrequest)) in s3c2410_udc_read_fifo_crq()
536 bytes_read = sizeof(struct usb_ctrlrequest); in s3c2410_udc_read_fifo_crq()
538 readsb(S3C2410_UDC_EP0_FIFO_REG + base_addr, outbuf, bytes_read); in s3c2410_udc_read_fifo_crq()
541 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
544 return bytes_read; in s3c2410_udc_read_fifo_crq()
/linux-4.4.14/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.4.14/drivers/hid/
Dhid-rmi.c222 int bytes_read; in rmi_read_block() local
255 bytes_read = 0; in rmi_read_block()
257 while (bytes_read < len) { in rmi_read_block()
268 memcpy(buf + bytes_read, &data->readReport[2], in rmi_read_block()
272 bytes_read += read_input_count; in rmi_read_block()
/linux-4.4.14/drivers/staging/unisys/visorhba/
Dvisorhba_main.c623 ssize_t bytes_read = 0; in info_debugfs_read() local
665 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); in info_debugfs_read()
667 return bytes_read; in info_debugfs_read()
/linux-4.4.14/include/acpi/
Dacpiosxf.h355 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read);
/linux-4.4.14/drivers/staging/comedi/
Dcomedi_fops.c1132 bi.bytes_read = 0; in do_bufinfo_ioctl()
1137 bi.bytes_read = 0; in do_bufinfo_ioctl()
1144 if (bi.bytes_read && !(async->cmd.flags & CMDF_WRITE)) { in do_bufinfo_ioctl()
1145 bi.bytes_read = comedi_buf_read_alloc(s, bi.bytes_read); in do_bufinfo_ioctl()
1146 comedi_buf_read_free(s, bi.bytes_read); in do_bufinfo_ioctl()
Dcomedi.h491 unsigned int bytes_read; member
/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.c1785 int bytes_read; in read_pdu_skb() local
1787 bytes_read = iscsi_tcp_recv_skb(conn, skb, offset, offloaded, &status); in read_pdu_skb()
1796 skb, offset, offloaded, bytes_read); in read_pdu_skb()
1798 return bytes_read; in read_pdu_skb()
1811 skb, offset, offloaded, bytes_read); in read_pdu_skb()
1812 return bytes_read; in read_pdu_skb()
/linux-4.4.14/arch/sparc/include/asm/
Dhypervisor.h1047 unsigned long *bytes_read);
/linux-4.4.14/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.4.14/drivers/staging/unisys/visornic/
Dvisornic_main.c1400 ssize_t bytes_read = 0; in info_debugfs_read() local
1543 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); in info_debugfs_read()
1545 return bytes_read; in info_debugfs_read()
/linux-4.4.14/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.4.14/drivers/acpi/
Dosl.c1349 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read) in acpi_os_get_line() argument
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_debugfs.c3368 ssize_t bytes_read; in i915_pipe_crc_read() local
3401 bytes_read = 0; in i915_pipe_crc_read()
3414 bytes_read += snprintf(buf, PIPE_CRC_BUFFER_LEN, in i915_pipe_crc_read()
3434 return bytes_read; in i915_pipe_crc_read()