/linux-4.1.27/tools/perf/scripts/perl/ |
H A D | rw-by-pid.pl | 31 $reads{$common_pid}{bytes_read} += $ret; 33 if (!defined ($reads{$common_pid}{bytes_read})) { 34 $reads{$common_pid}{bytes_read} = 0; 78 "# reads", "bytes_requested", "bytes_read"); 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);
|
H A D | rwtop.pl | 44 $reads{$common_pid}{bytes_read} += $ret; 46 if (!defined ($reads{$common_pid}{bytes_read})) { 47 $reads{$common_pid}{bytes_read} = 0; 132 "# reads", "bytes_req", "bytes_read"); 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);
|
/linux-4.1.27/tools/power/acpi/tools/ec/ |
H A D | ec_access.c | 130 int byte_off, bytes_read; dump_ec() local 132 bytes_read = read(fd, buf, EC_SPACE_SIZE); dump_ec() 134 if (bytes_read == -1) dump_ec() 137 if (bytes_read != EC_SPACE_SIZE) dump_ec() 138 fprintf(stderr, "Could only read %d bytes\n", bytes_read); dump_ec() 141 for (byte_off = 0; byte_off < bytes_read; byte_off++) { dump_ec() 155 bytes_read = read(fd, buf2, EC_SPACE_SIZE); dump_ec() 157 if (bytes_read == -1) dump_ec() 160 if (bytes_read != EC_SPACE_SIZE) dump_ec() 161 fprintf(stderr, "Could only read %d bytes\n", bytes_read); dump_ec() 164 for (byte_off = 0; byte_off < bytes_read; byte_off++) { dump_ec()
|
/linux-4.1.27/drivers/char/ |
H A D | msm_smd_pkt.c | 114 int r, bytes_read; smd_pkt_read() local 141 bytes_read = smd_cur_packet_size(smd_pkt_devp->ch); smd_pkt_read() 142 if (bytes_read == 0 || smd_pkt_read() 143 bytes_read < smd_read_avail(smd_pkt_devp->ch)) { smd_pkt_read() 149 if (bytes_read > count) { smd_pkt_read() 151 pr_info("packet size %d > buffer size %d", bytes_read, count); smd_pkt_read() 155 r = smd_read(smd_pkt_devp->ch, smd_pkt_devp->rx_buf, bytes_read); smd_pkt_read() 156 if (r != bytes_read) { smd_pkt_read() 158 pr_err("smd_read failed to read %d bytes: %d\n", bytes_read, r); smd_pkt_read() 162 D_DUMP_BUFFER("read: ", bytes_read, smd_pkt_devp->rx_buf); smd_pkt_read() 163 r = copy_to_user(buf, smd_pkt_devp->rx_buf, bytes_read); smd_pkt_read() 170 DBG("read complete %d bytes\n", bytes_read); smd_pkt_read() 173 return bytes_read; smd_pkt_read()
|
H A D | ppdev.c | 113 ssize_t bytes_read = 0; pp_read() local 139 while (bytes_read == 0) { pp_read() 158 bytes_read = (*fn)(pport, kbuffer, need, flags); pp_read() 160 bytes_read = parport_read (pport, kbuffer, need); pp_read() 163 if (bytes_read != 0) pp_read() 167 bytes_read = -EAGAIN; pp_read() 172 bytes_read = -ERESTARTSYS; pp_read() 181 if (bytes_read > 0 && copy_to_user (buf, kbuffer, bytes_read)) pp_read() 182 bytes_read = -EFAULT; pp_read() 186 return bytes_read; pp_read()
|
/linux-4.1.27/arch/tile/lib/ |
H A D | strnlen_32.c | 24 size_t bytes_read = sizeof(*p) - (s_int & (sizeof(*p) - 1)); strnlen() local 36 if (bytes_read >= count) { strnlen() 41 bytes_read += sizeof(v); strnlen()
|
H A D | strnlen_64.c | 25 size_t bytes_read = sizeof(*p) - (s_int & (sizeof(*p) - 1)); strnlen() local 37 if (bytes_read >= count) { strnlen() 42 bytes_read += sizeof(v); strnlen()
|
/linux-4.1.27/drivers/usb/misc/ |
H A D | idmouse.c | 131 int bytes_read; idmouse_create_image() local 136 bytes_read = sizeof(HEADER)-1; idmouse_create_image() 165 while (bytes_read < IMGSIZE) { idmouse_create_image() 168 dev->bulk_in_buffer + bytes_read, idmouse_create_image() 183 bytes_read += bulk_read; idmouse_create_image() 192 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH) idmouse_create_image() 193 if (dev->bulk_in_buffer[bytes_read] != 0x00) idmouse_create_image() 197 for (bytes_read = IMGSIZE-WIDTH; bytes_read < IMGSIZE-1; bytes_read++) idmouse_create_image() 198 if (dev->bulk_in_buffer[bytes_read] != 0xFF) idmouse_create_image() 203 bytes_read); idmouse_create_image()
|
H A D | adutux.c | 345 size_t bytes_read = 0; adu_read() local 390 bytes_read += (amount - i); adu_read() 393 retval = bytes_read ? bytes_read : -EFAULT; adu_read() 442 retval = bytes_read ? bytes_read : -ENOMEM; adu_read() 467 retval = bytes_read ? bytes_read : -ETIMEDOUT; adu_read() 475 retval = bytes_read ? bytes_read : -EINTR; adu_read() 482 retval = bytes_read; adu_read()
|
H A D | yurex.c | 418 int bytes_read = 0; yurex_read() local 431 bytes_read = snprintf(in_buffer, 20, "%lld\n", dev->bbu); yurex_read() 434 if (*ppos < bytes_read) { yurex_read() 435 if (copy_to_user(buffer, in_buffer + *ppos, bytes_read - *ppos)) yurex_read() 438 retval = bytes_read - *ppos; yurex_read() 439 *ppos += bytes_read; yurex_read()
|
H A D | usblcd.c | 140 int bytes_read; lcd_read() local 150 &bytes_read, 10000); lcd_read() 154 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read)) lcd_read() 157 retval = bytes_read; lcd_read()
|
H A D | ftdi-elan.c | 669 int bytes_read = 0; ftdi_elan_read() local 681 if (bytes_read < m) { ftdi_elan_read() 683 } else if (bytes_read > m) { ftdi_elan_read() 689 bytes_read += 1; ftdi_elan_read() 693 return bytes_read; ftdi_elan_read() 708 } else if (bytes_read > 0) { ftdi_elan_read() 709 return bytes_read; ftdi_elan_read() 716 return bytes_read; ftdi_elan_read() 720 return bytes_read; ftdi_elan_read() 950 int bytes_read = 0; ftdi_elan_respond_engine() local 979 packet_bytes, bytes_read, diag); ftdi_elan_respond_engine() 981 } else if (bytes_read > 0) { ftdi_elan_respond_engine() 983 bytes_read, diag); ftdi_elan_respond_engine() 987 packet_bytes, bytes_read, diag); ftdi_elan_respond_engine() 992 retval, packet_bytes, bytes_read, diag); ftdi_elan_respond_engine() 996 retval, packet_bytes, bytes_read, diag); ftdi_elan_respond_engine() 1035 bytes_read += 1; ftdi_elan_respond_engine() 1881 int bytes_read = 0; ftdi_elan_flush_input_fifo() local 1885 if (bytes_read < m) { ftdi_elan_flush_input_fifo() 1888 } else if (bytes_read > m) { ftdi_elan_flush_input_fifo() 1891 bytes_read += 1; ftdi_elan_flush_input_fifo() 2058 int bytes_read = 0; ftdi_elan_synchronize() local 2063 if (bytes_read < m) { ftdi_elan_synchronize() 2065 } else if (bytes_read > m) { ftdi_elan_synchronize() 2068 bytes_read += 1; ftdi_elan_synchronize() 2160 int bytes_read = 0; ftdi_elan_stuck_waiting() local 2164 if (bytes_read < m) { ftdi_elan_stuck_waiting() 2167 } else if (bytes_read > m) { ftdi_elan_stuck_waiting() 2170 bytes_read += 1; ftdi_elan_stuck_waiting()
|
/linux-4.1.27/drivers/char/hw_random/ |
H A D | core.c | 88 int bytes_read; add_early_randomness() local 91 bytes_read = rng_get_data(rng, bytes, sizeof(bytes), 1); add_early_randomness() 93 if (bytes_read > 0) add_early_randomness() 94 add_device_randomness(bytes, bytes_read); add_early_randomness() 227 int bytes_read, len; rng_dev_read() local 243 bytes_read = rng_get_data(rng, rng_buffer, rng_dev_read() 246 if (bytes_read < 0) { rng_dev_read() 247 err = bytes_read; rng_dev_read() 250 data_avail = bytes_read; rng_dev_read()
|
/linux-4.1.27/drivers/mtd/ |
H A D | bcm47xxpart.c | 68 size_t bytes_read; bcm47xxpart_trx_data_part_name() local 70 if (mtd_read(master, offset, sizeof(buf), &bytes_read, bcm47xxpart_trx_data_part_name() 91 size_t bytes_read; bcm47xxpart_parse() local 132 &bytes_read, (uint8_t *)buf) < 0) { bcm47xxpart_parse() 258 &bytes_read, (uint8_t *)buf) < 0) { bcm47xxpart_parse() 280 if (mtd_read(master, offset, 0x4, &bytes_read, bcm47xxpart_parse()
|
/linux-4.1.27/drivers/tty/serial/ |
H A D | sunhv.c | 125 unsigned long bytes_read, i; receive_chars_read() local 126 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read); receive_chars_read() 129 bytes_read = 0; receive_chars_read() 136 bytes_read = 1; receive_chars_read() 152 for (i = 0; i < bytes_read; i++) receive_chars_read() 158 port->icount.rx += bytes_read; receive_chars_read() 161 bytes_read); receive_chars_read()
|
H A D | sc16is7xx.c | 472 unsigned int lsr = 0, ch, flag, bytes_read, i; sc16is7xx_handle_rx() local 495 bytes_read = 1; sc16is7xx_handle_rx() 501 bytes_read = rxlen; sc16is7xx_handle_rx() 532 for (i = 0; i < bytes_read; ++i) { sc16is7xx_handle_rx() 543 rxlen -= bytes_read; sc16is7xx_handle_rx()
|
/linux-4.1.27/arch/mips/bcm47xx/ |
H A D | nvram.c | 141 size_t bytes_read; nvram_init() local 148 err = mtd_read(mtd, 0, sizeof(header), &bytes_read, (uint8_t *)&header); nvram_init() 159 err = mtd_read(mtd, 0, len, &bytes_read, dst); nvram_init()
|
/linux-4.1.27/arch/cris/arch-v32/drivers/ |
H A D | i2c.c | 450 unsigned char bytes_read = 0; i2c_read() local 475 for (bytes_read = 0; bytes_read < nbytes; bytes_read++) { i2c_read() 477 memcpy(data + bytes_read, &b, sizeof b); i2c_read() 479 if (bytes_read < (nbytes - 1)) i2c_read()
|
/linux-4.1.27/drivers/firmware/ |
H A D | dell_rbu.c | 263 int length, int bytes_read, int *list_read_count) do_packet_read() 273 if (*list_read_count > bytes_read) { do_packet_read() 275 j = newpacket->length - (*list_read_count - bytes_read); do_packet_read() 282 if (length > (*list_read_count - bytes_read)) do_packet_read() 287 bytes_copied = (*list_read_count - bytes_read); do_packet_read() 301 int bytes_read = 0; packet_read_list() local 310 bytes_read = rbu_data.packet_read_count; packet_read_list() 315 remaining_bytes, bytes_read, &temp_count); packet_read_list() 317 bytes_read += bytes_copied; packet_read_list() 329 *pread_length = bytes_read - rbu_data.packet_read_count; packet_read_list() 330 rbu_data.packet_read_count = bytes_read; packet_read_list() 262 do_packet_read(char *data, struct list_head *ptemp_list, int length, int bytes_read, int *list_read_count) do_packet_read() argument
|
/linux-4.1.27/fs/befs/ |
H A D | datastream.c | 128 befs_off_t bytes_read = 0; /* bytes readed */ befs_read_lsymlink() local 133 while (bytes_read < len) { befs_read_lsymlink() 134 bh = befs_read_datastream(sb, ds, bytes_read, NULL); befs_read_lsymlink() 137 "starting from %llu", bytes_read); befs_read_lsymlink() 139 return bytes_read; befs_read_lsymlink() 142 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? befs_read_lsymlink() 143 BEFS_SB(sb)->block_size : len - bytes_read; befs_read_lsymlink() 144 memcpy(buff + bytes_read, bh->b_data, plen); befs_read_lsymlink() 146 bytes_read += plen; befs_read_lsymlink() 150 bytes_read); befs_read_lsymlink() 151 return bytes_read; befs_read_lsymlink()
|
/linux-4.1.27/drivers/ps3/ |
H A D | ps3-vuart.c | 394 unsigned int bytes, u64 *bytes_read) ps3_vuart_raw_read() 402 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); ps3_vuart_raw_read() 410 priv->stats.bytes_read += *bytes_read; ps3_vuart_raw_read() 413 *bytes_read, bytes, priv->stats.bytes_read); ps3_vuart_raw_read() 460 priv->stats.bytes_read -= bytes_waiting; ps3_vuart_clear_rx_bytes() 617 unsigned long bytes_read; ps3_vuart_read() local 640 bytes_read = min((unsigned int)(lb->tail - lb->head), bytes); ps3_vuart_read() 642 memcpy(buf, lb->head, bytes_read); ps3_vuart_read() 643 buf += bytes_read; ps3_vuart_read() 644 bytes -= bytes_read; ps3_vuart_read() 645 priv->rx_list.bytes_held -= bytes_read; ps3_vuart_read() 647 if (bytes_read < lb->tail - lb->head) { ps3_vuart_read() 648 lb->head += bytes_read; ps3_vuart_read() 651 bytes_read); ps3_vuart_read() 658 bytes_read); ps3_vuart_read() 393 ps3_vuart_raw_read(struct ps3_system_bus_device *dev, void *buf, unsigned int bytes, u64 *bytes_read) ps3_vuart_raw_read() argument
|
H A D | vuart.h | 28 unsigned long bytes_read; member in struct:ps3_vuart_stats
|
/linux-4.1.27/drivers/media/rc/ |
H A D | redrat3.c | 200 u16 bytes_read; member in struct:redrat3_dev 588 rr3->bytes_read = len; redrat3_read_packet_start() 589 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", redrat3_read_packet_start() 590 rr3->bytes_read, pktlen); redrat3_read_packet_start() 604 if (len + rr3->bytes_read > sizeof(rr3->irdata)) { redrat3_read_packet_continue() 606 rr3->bytes_read = 0; redrat3_read_packet_continue() 610 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len); redrat3_read_packet_continue() 612 rr3->bytes_read += len; redrat3_read_packet_continue() 613 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read, redrat3_read_packet_continue() 624 if (rr3->bytes_read == 0 && len >= sizeof(struct redrat3_header)) { redrat3_get_ir_data() 626 } else if (rr3->bytes_read != 0) { redrat3_get_ir_data() 628 } else if (rr3->bytes_read == 0) { redrat3_get_ir_data() 634 if (rr3->bytes_read < be16_to_cpu(rr3->irdata.header.length) + redrat3_get_ir_data() 648 rr3->bytes_read = 0; redrat3_get_ir_data() 686 rr3->bytes_read = 0; redrat3_handle_async()
|
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/ |
H A D | connector-dvi.c | 181 int r, l, bytes_read; dvic_read_edid() local 191 bytes_read = l; dvic_read_edid() 202 bytes_read += l; dvic_read_edid() 205 return bytes_read; dvic_read_edid()
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 360 int bytes_read = -EINVAL; ibm_read_apci_table() local 366 bytes_read = ibm_get_table_from_acpi(&table); ibm_read_apci_table() 367 if (bytes_read > 0 && bytes_read <= size) ibm_read_apci_table() 368 memcpy(buffer, table, bytes_read); ibm_read_apci_table() 371 return bytes_read; ibm_read_apci_table()
|
/linux-4.1.27/fs/cifs/ |
H A D | link.c | 244 unsigned int bytes_read = 0; query_mf_symlink() local 252 cifs_sb, path, buf, &bytes_read); query_mf_symlink() 259 if (bytes_read == 0) { /* not a symlink */ query_mf_symlink() 264 rc = parse_mf_symlink(buf, bytes_read, &link_len, symlinkinfo); query_mf_symlink() 278 unsigned int bytes_read = 0; check_mf_symlink() local 290 cifs_sb, path, buf, &bytes_read); check_mf_symlink() 297 if (bytes_read == 0) /* not a symlink */ check_mf_symlink() 300 rc = parse_mf_symlink(buf, bytes_read, &link_len, NULL); check_mf_symlink()
|
H A D | smb1ops.c | 657 (long long)(tcon->bytes_read)); cifs_print_stats() 747 struct cifs_io_parms *parms, unsigned int *bytes_read, cifs_sync_read() 751 return CIFSSMBRead(xid, parms, bytes_read, buf, buf_type); cifs_sync_read() 746 cifs_sync_read(const unsigned int xid, struct cifs_fid *pfid, struct cifs_io_parms *parms, unsigned int *bytes_read, char **buf, int *buf_type) cifs_sync_read() argument
|
H A D | inode.c | 438 unsigned int bytes_read; cifs_sfu_type() local 489 &bytes_read, &pbuf, &buf_type); cifs_sfu_type() 490 if ((rc == 0) && (bytes_read >= 8)) { cifs_sfu_type() 495 if (bytes_read == 24) { cifs_sfu_type() 507 if (bytes_read == 24) { cifs_sfu_type()
|
H A D | smb2ops.c | 724 struct cifs_io_parms *parms, unsigned int *bytes_read, smb2_sync_read() 729 return SMB2_read(xid, parms, bytes_read, buf, buf_type); smb2_sync_read() 723 smb2_sync_read(const unsigned int xid, struct cifs_fid *pfid, struct cifs_io_parms *parms, unsigned int *bytes_read, char **buf, int *buf_type) smb2_sync_read() argument
|
H A D | file.c | 3119 unsigned int bytes_read = 0; cifs_read() local 3162 total_read += bytes_read, cur_offset += bytes_read) { cifs_read() 3186 &bytes_read, &cur_offset, cifs_read() 3190 if (rc || (bytes_read == 0)) { cifs_read() 3199 *offset += bytes_read; cifs_read()
|
H A D | cifsglob.h | 872 __u64 bytes_read; member in struct:cifs_tcon 1217 tcon->bytes_read += bytes; cifs_stats_bytes_read()
|
/linux-4.1.27/drivers/net/ethernet/qualcomm/ |
H A D | qca_spi.c | 294 u32 bytes_read; qcaspi_receive() local 330 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer, qcaspi_receive() 333 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer, qcaspi_receive() 338 available, bytes_read); qcaspi_receive() 340 if (bytes_read) { qcaspi_receive() 341 available -= bytes_read; qcaspi_receive() 349 while ((bytes_read--) && (qca->rx_skb)) { qcaspi_receive()
|
/linux-4.1.27/fs/hostfs/ |
H A D | hostfs_kern.c | 446 int bytes_read, ret = 0; hostfs_readpage() local 449 bytes_read = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, hostfs_readpage() 451 if (bytes_read < 0) { hostfs_readpage() 454 ret = bytes_read; hostfs_readpage() 458 memset(buffer + bytes_read, 0, PAGE_CACHE_SIZE - bytes_read); hostfs_readpage()
|
/linux-4.1.27/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 591 int bytes_read; dvb_ca_en50221_read_data() local 626 bytes_read = status << 8; dvb_ca_en50221_read_data() 629 bytes_read |= status; dvb_ca_en50221_read_data() 633 if (bytes_read > ca->slot_info[slot].link_buf_size) { dvb_ca_en50221_read_data() 635 ca->dvbdev->adapter->num, bytes_read, ca->slot_info[slot].link_buf_size); dvb_ca_en50221_read_data() 640 if (bytes_read < 2) { dvb_ca_en50221_read_data() 648 if (bytes_read > ecount) { dvb_ca_en50221_read_data() 657 for (i = 0; i < bytes_read; i++) { dvb_ca_en50221_read_data() 681 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); dvb_ca_en50221_read_data() 683 memcpy(ebuf, buf, bytes_read); dvb_ca_en50221_read_data() 687 buf[0], (buf[1] & 0x80) == 0, bytes_read); dvb_ca_en50221_read_data() 693 status = bytes_read; dvb_ca_en50221_read_data()
|
/linux-4.1.27/block/ |
H A D | bsg.c | 514 const struct iovec *iov, ssize_t *bytes_read) __bsg_read() 548 *bytes_read += sizeof(struct sg_io_v4); __bsg_read() 579 ssize_t bytes_read; bsg_read() local 585 bytes_read = 0; bsg_read() 586 ret = __bsg_read(buf, count, bd, NULL, &bytes_read); bsg_read() 587 *ppos = bytes_read; bsg_read() 589 if (!bytes_read || err_block_err(ret)) bsg_read() 590 bytes_read = ret; bsg_read() 592 return bytes_read; bsg_read() 513 __bsg_read(char __user *buf, size_t count, struct bsg_device *bd, const struct iovec *iov, ssize_t *bytes_read) __bsg_read() argument
|
/linux-4.1.27/drivers/usb/misc/sisusbvga/ |
H A D | sisusb.c | 471 void *kernbuffer, char __user *userbuffer, ssize_t *bytes_read, sisusb_recv_bulk_msg() 479 (*bytes_read) = 0; sisusb_recv_bulk_msg() 527 (*bytes_read) += thispass; sisusb_recv_bulk_msg() 548 return ((*bytes_read) == len) ? 0 : -EIO; sisusb_recv_bulk_msg() 1143 char __user *userbuffer, ssize_t *bytes_read) sisusb_read_mem_bulk() 1150 (*bytes_read = 0); sisusb_read_mem_bulk() 1163 (*bytes_read)++; sisusb_read_mem_bulk() 1179 (*bytes_read) += 2; sisusb_read_mem_bulk() 1194 (*bytes_read) += 3; sisusb_read_mem_bulk() 1219 (*bytes_read) += 4; sisusb_read_mem_bulk() 2517 ssize_t bytes_read = 0; sisusb_read() local 2556 bytes_read = 1; sisusb_read() 2568 bytes_read = 2; sisusb_read() 2580 bytes_read = 4; sisusb_read() 2600 NULL, count, buffer, &bytes_read); sisusb_read() 2602 if (bytes_read) sisusb_read() 2603 errno = bytes_read; sisusb_read() 2616 NULL, count, buffer, &bytes_read); sisusb_read() 2618 if (bytes_read) sisusb_read() 2619 errno = bytes_read; sisusb_read() 2639 bytes_read = 4; sisusb_read() 2647 (*ppos) += bytes_read; sisusb_read() 2651 return errno ? errno : bytes_read; sisusb_read() 470 sisusb_recv_bulk_msg(struct sisusb_usb_data *sisusb, int ep, int len, void *kernbuffer, char __user *userbuffer, ssize_t *bytes_read, unsigned int tflags) sisusb_recv_bulk_msg() argument 1141 sisusb_read_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr, char *kernbuffer, int length, char __user *userbuffer, ssize_t *bytes_read) sisusb_read_mem_bulk() argument
|
/linux-4.1.27/drivers/media/usb/usbvision/ |
H A D | usbvision-video.c | 1044 frame->bytes_read = 0; usbvision_read() 1048 PDEBUG(DBG_IO, "%s: frmx=%d, bytes_read=%ld, scanlength=%ld", usbvision_read() 1050 frame->index, frame->bytes_read, frame->scanlength); usbvision_read() 1053 if ((count + frame->bytes_read) > (unsigned long)frame->scanlength) usbvision_read() 1054 count = frame->scanlength - frame->bytes_read; usbvision_read() 1056 if (copy_to_user(buf, frame->data + frame->bytes_read, count)) usbvision_read() 1059 frame->bytes_read += count; usbvision_read() 1060 PDEBUG(DBG_IO, "%s: {copy} count used=%ld, new bytes_read=%ld", usbvision_read() 1062 (unsigned long)count, frame->bytes_read); usbvision_read() 1065 /* if (frame->bytes_read >= frame->scanlength) {*/ /* All data has been read */ usbvision_read() 1066 frame->bytes_read = 0; usbvision_read()
|
H A D | usbvision.h | 319 long bytes_read; /* amount of scanlength that has been read from data */ member in struct:usbvision_frame
|
H A D | usbvision-core.c | 1809 usbvision->frame[i].bytes_read = 0; usbvision_frames_alloc() 1845 usbvision->frame[i].bytes_read = 0; usbvision_empty_framequeues()
|
/linux-4.1.27/drivers/i2c/busses/ |
H A D | i2c-bcm-kona.c | 331 unsigned int bytes_read = 0; bcm_kona_i2c_read_fifo() local 336 while (bytes_read < msg->len) { bcm_kona_i2c_read_fifo() 337 if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) { bcm_kona_i2c_read_fifo() 339 bytes_to_read = msg->len - bytes_read; bcm_kona_i2c_read_fifo() 347 bytes_read += bytes_to_read; bcm_kona_i2c_read_fifo()
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
H A D | perf_event_intel_lbr.c | 611 int bytes_read, bytes_left; branch_type() local 641 bytes_read = MAX_INSN_SIZE - bytes_left; branch_type() 642 if (!bytes_read) branch_type() 662 bytes_read = MAX_INSN_SIZE; branch_type() 675 insn_init(&insn, addr, bytes_read, is64); branch_type()
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | s3c2410_udc.c | 529 int bytes_read = 0; s3c2410_udc_read_fifo_crq() local 533 bytes_read = s3c2410_udc_fifo_count_out(); s3c2410_udc_read_fifo_crq() 535 dprintk(DEBUG_NORMAL, "%s: fifo_count=%d\n", __func__, bytes_read); s3c2410_udc_read_fifo_crq() 537 if (bytes_read > sizeof(struct usb_ctrlrequest)) s3c2410_udc_read_fifo_crq() 538 bytes_read = sizeof(struct usb_ctrlrequest); s3c2410_udc_read_fifo_crq() 540 readsb(S3C2410_UDC_EP0_FIFO_REG + base_addr, outbuf, bytes_read); s3c2410_udc_read_fifo_crq() 543 bytes_read, crq->bRequest, crq->bRequestType, s3c2410_udc_read_fifo_crq() 546 return bytes_read; s3c2410_udc_read_fifo_crq()
|
/linux-4.1.27/fs/ecryptfs/ |
H A D | crypto.c | 898 * @bytes_read: Updated with the number of bytes read 903 char *page_virt, int *bytes_read) ecryptfs_process_flags() 918 (*bytes_read) = 4; ecryptfs_process_flags() 1245 char *virt, int *bytes_read, parse_header_metadata() 1257 (*bytes_read) = (sizeof(__be32) + sizeof(__be16)); parse_header_metadata() 1319 int bytes_read; ecryptfs_read_headers_virt() local 1332 &bytes_read); ecryptfs_read_headers_virt() 1346 offset += bytes_read; ecryptfs_read_headers_virt() 1349 &bytes_read, validate_header_size); ecryptfs_read_headers_virt() 1354 offset += bytes_read; ecryptfs_read_headers_virt() 902 ecryptfs_process_flags(struct ecryptfs_crypt_stat *crypt_stat, char *page_virt, int *bytes_read) ecryptfs_process_flags() argument 1244 parse_header_metadata(struct ecryptfs_crypt_stat *crypt_stat, char *virt, int *bytes_read, int validate_header_size) parse_header_metadata() argument
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-rmi.c | 205 int bytes_read; rmi_read_block() local 238 bytes_read = 0; rmi_read_block() 240 while (bytes_read < len) { rmi_read_block() 251 memcpy(buf + bytes_read, &data->readReport[2], rmi_read_block() 255 bytes_read += read_input_count; rmi_read_block()
|
/linux-4.1.27/fs/ncpfs/ |
H A D | ncplib_kernel.c | 968 __u32 offset, __u16 to_read, char *target, int *bytes_read) ncp_read_kernel() 982 *bytes_read = ncp_reply_be16(server, 0); ncp_read_kernel() 985 memcpy(target, source, *bytes_read); ncp_read_kernel() 1005 int *bytes_read, void *bounce, __u32 bufsize) ncp_read_bounce() 1026 *bytes_read = len; ncp_read_bounce() 967 ncp_read_kernel(struct ncp_server *server, const char *file_id, __u32 offset, __u16 to_read, char *target, int *bytes_read) ncp_read_kernel() argument 1003 ncp_read_bounce(struct ncp_server *server, const char *file_id, __u32 offset, __u16 to_read, struct iov_iter *to, int *bytes_read, void *bounce, __u32 bufsize) ncp_read_bounce() argument
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
H A D | osunixxf.c | 89 acpi_status acpi_ut_read_line(char *buffer, u32 buffer_length, u32 *bytes_read); 445 * bytes_read - Where the actual byte count is returned 455 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read) acpi_os_get_line() argument 484 if (bytes_read) { acpi_os_get_line() 485 *bytes_read = end_of_line; acpi_os_get_line()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | nvm.c | 132 int ret, bytes_read, offset_read; iwl_nvm_read_chunk() local 152 bytes_read = le16_to_cpu(nvm_resp->length); iwl_nvm_read_chunk() 187 memcpy(data + offset, resp_data, bytes_read); iwl_nvm_read_chunk() 188 ret = bytes_read; iwl_nvm_read_chunk()
|
H A D | mac80211.c | 842 ssize_t bytes_read; iwl_mvm_read_coredump() local 846 bytes_read = min_t(ssize_t, count, iwl_mvm_read_coredump() 849 bytes_read); iwl_mvm_read_coredump() local 850 offset += bytes_read; iwl_mvm_read_coredump() 851 count -= bytes_read; iwl_mvm_read_coredump() 854 return bytes_read; iwl_mvm_read_coredump() 856 bytes_read = 0; iwl_mvm_read_coredump() 860 return bytes_read; iwl_mvm_read_coredump() 865 memcpy(buffer + bytes_read, iwl_mvm_read_coredump() 869 return bytes_read + bytes_read_trans; iwl_mvm_read_coredump()
|
/linux-4.1.27/include/acpi/ |
H A D | acpiosxf.h | 354 acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read);
|
/linux-4.1.27/drivers/staging/comedi/ |
H A D | comedi_fops.c | 1098 bi.bytes_read = 0; do_bufinfo_ioctl() 1103 bi.bytes_read = 0; do_bufinfo_ioctl() 1110 if (bi.bytes_read && !(async->cmd.flags & CMDF_WRITE)) { do_bufinfo_ioctl() 1111 bi.bytes_read = comedi_buf_read_alloc(s, bi.bytes_read); do_bufinfo_ioctl() 1112 comedi_buf_read_free(s, bi.bytes_read); do_bufinfo_ioctl()
|
H A D | comedi.h | 491 unsigned int bytes_read; member in struct:comedi_bufinfo
|
/linux-4.1.27/drivers/staging/unisys/virtpci/ |
H A D | virtpci.c | 1272 ssize_t bytes_read = 0; info_debugfs_read() local 1326 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); info_debugfs_read() 1328 return bytes_read; info_debugfs_read()
|
/linux-4.1.27/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 1781 int bytes_read; read_pdu_skb() local 1783 bytes_read = iscsi_tcp_recv_skb(conn, skb, offset, offloaded, &status); read_pdu_skb() 1792 skb, offset, offloaded, bytes_read); read_pdu_skb() 1794 return bytes_read; read_pdu_skb() 1807 skb, offset, offloaded, bytes_read); read_pdu_skb() 1808 return bytes_read; read_pdu_skb()
|
/linux-4.1.27/drivers/staging/unisys/virthba/ |
H A D | virthba.c | 1215 ssize_t bytes_read = 0; info_debugfs_read() local 1260 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); info_debugfs_read() 1262 return bytes_read; info_debugfs_read()
|
/linux-4.1.27/drivers/crypto/ux500/cryp/ |
H A D | cryp_core.c | 831 int bytes_read = 0; ablk_dma_crypt() local 855 bytes_read = cryp_dma_read(ctx, areq->dst, bytes_written); ablk_dma_crypt() 875 if (unlikely(bytes_written != bytes_read)) ablk_dma_crypt()
|
/linux-4.1.27/drivers/usb/atm/ |
H A D | ueagle-atm.c | 868 int bytes_read; uea_idma_write() local 878 xfer_buff, size, &bytes_read, BULK_TIMEOUT); uea_idma_write() 883 if (size != bytes_read) { uea_idma_write() 884 uea_err(INS_TO_USBDEV(sc), "size != bytes_read %d %d\n", size, uea_idma_write() 885 bytes_read); uea_idma_write() local
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_debugfs.c | 3078 ssize_t bytes_read; i915_pipe_crc_read() local 3111 bytes_read = 0; i915_pipe_crc_read() 3124 bytes_read += snprintf(buf, PIPE_CRC_BUFFER_LEN, i915_pipe_crc_read() 3144 return bytes_read; i915_pipe_crc_read()
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | hypervisor.h | 1047 unsigned long *bytes_read);
|