Home
last modified time | relevance | path

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

12

/linux-2.6.39/tools/perf/scripts/perl/
Drwtop.pl43 $reads{$common_pid}{bytes_read} += $ret;
45 if (!defined ($reads{$common_pid}{bytes_read})) {
46 $reads{$common_pid}{bytes_read} = 0;
132 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
133 ($reads{$a}{bytes_read} || 0) } keys %reads) {
137 my $bytes_read = $reads{$pid}{bytes_read} || 0;
140 $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-2.6.39/drivers/usb/misc/
Didmouse.c132 int bytes_read; in idmouse_create_image() local
137 bytes_read = sizeof(HEADER)-1; in idmouse_create_image()
166 while (bytes_read < IMGSIZE) { in idmouse_create_image()
169 dev->bulk_in_buffer + bytes_read, in idmouse_create_image()
184 bytes_read += bulk_read; in idmouse_create_image()
193 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH) in idmouse_create_image()
194 if (dev->bulk_in_buffer[bytes_read] != 0x00) in idmouse_create_image()
198 for (bytes_read = IMGSIZE-WIDTH; bytes_read < IMGSIZE-1; bytes_read++) in idmouse_create_image()
199 if (dev->bulk_in_buffer[bytes_read] != 0xFF) in idmouse_create_image()
203 dbg("read %d bytes fingerprint data", bytes_read); in idmouse_create_image()
Dadutux.c399 size_t bytes_read = 0; in adu_read() local
447 bytes_read += (amount - i); in adu_read()
450 retval = bytes_read ? bytes_read : -EFAULT; in adu_read()
494 retval = bytes_read ? bytes_read : -ENOMEM; in adu_read()
516 retval = bytes_read ? bytes_read : -ETIMEDOUT; in adu_read()
522 retval = bytes_read ? bytes_read : -EINTR; in adu_read()
529 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.c671 int bytes_read = 0; in ftdi_elan_read() local
683 if (bytes_read < m) { in ftdi_elan_read()
685 } else if (bytes_read > m) { in ftdi_elan_read()
691 bytes_read += 1; in ftdi_elan_read()
695 return bytes_read; in ftdi_elan_read()
710 } else if (bytes_read > 0) { in ftdi_elan_read()
711 return bytes_read; in ftdi_elan_read()
718 return bytes_read; in ftdi_elan_read()
722 return bytes_read; in ftdi_elan_read()
955 int bytes_read = 0; in ftdi_elan_respond_engine() local
[all …]
Dusblcd.c133 int bytes_read; in lcd_read() local
142 &bytes_read, 10000); in lcd_read()
146 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read)) in lcd_read()
149 retval = bytes_read; in lcd_read()
/linux-2.6.39/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-2.6.39/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 %Lu", 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()
149 befs_debug(sb, "<--- befs_read_lsymlink() read %u bytes", bytes_read); in befs_read_lsymlink()
[all …]
/linux-2.6.39/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-2.6.39/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-2.6.39/drivers/ps3/
Dps3-vuart.c399 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument
407 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read()
415 priv->stats.bytes_read += *bytes_read; in ps3_vuart_raw_read()
418 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read()
465 priv->stats.bytes_read -= bytes_waiting; in ps3_vuart_clear_rx_bytes()
622 unsigned long bytes_read; in ps3_vuart_read() local
645 bytes_read = min((unsigned int)(lb->tail - lb->head), bytes); in ps3_vuart_read()
647 memcpy(buf, lb->head, bytes_read); in ps3_vuart_read()
648 buf += bytes_read; in ps3_vuart_read()
649 bytes -= bytes_read; in ps3_vuart_read()
[all …]
/linux-2.6.39/fs/cifs/
Dfile.c1779 unsigned int bytes_read = 0; in cifs_iovec_read() local
1804 for (total_read = 0; total_read < len; total_read += bytes_read) { in cifs_iovec_read()
1817 cur_len, *poffset, &bytes_read, in cifs_iovec_read()
1824 iov_offset, bytes_read)) in cifs_iovec_read()
1831 iov_offset += bytes_read; in cifs_iovec_read()
1835 if (rc || (bytes_read == 0)) { in cifs_iovec_read()
1843 cifs_stats_bytes_read(pTcon, bytes_read); in cifs_iovec_read()
1844 *poffset += bytes_read; in cifs_iovec_read()
1900 unsigned int bytes_read = 0; in cifs_read() local
1926 total_read += bytes_read, current_offset += bytes_read) { in cifs_read()
[all …]
Dlink.c231 unsigned int bytes_read = 0; in CIFSQueryMFSymLink() local
256 &bytes_read, &pbuf, &buf_type); in CIFSQueryMFSymLink()
263 rc = CIFSParseMFSymlink(buf, bytes_read, &link_len, symlinkinfo); in CIFSQueryMFSymLink()
297 unsigned int bytes_read = 0; in CIFSCheckMFSymlink() local
335 &bytes_read, &pbuf, &buf_type); in CIFSCheckMFSymlink()
342 rc = CIFSParseMFSymlink(buf, bytes_read, &link_len, NULL); in CIFSCheckMFSymlink()
/linux-2.6.39/arch/cris/arch-v32/drivers/
Di2c.c451 unsigned char bytes_read = 0; in i2c_read() local
476 for (bytes_read = 0; bytes_read < nbytes; bytes_read++) { in i2c_read()
478 memcpy(data + bytes_read, &b, sizeof b); in i2c_read()
480 if (bytes_read < (nbytes - 1)) in i2c_read()
/linux-2.6.39/drivers/char/hw_random/
Dcore.c104 int bytes_read, len; in rng_dev_read() local
118 bytes_read = rng_get_data(current_rng, rng_buffer, in rng_dev_read()
121 if (bytes_read < 0) { in rng_dev_read()
122 err = bytes_read; in rng_dev_read()
125 data_avail = bytes_read; in rng_dev_read()
/linux-2.6.39/drivers/pci/hotplug/
Dacpiphp_ibm.c372 int bytes_read = -EINVAL; in ibm_read_apci_table() local
378 bytes_read = ibm_get_table_from_acpi(&table); in ibm_read_apci_table()
379 if (bytes_read > 0 && bytes_read <= size) in ibm_read_apci_table()
380 memcpy(buffer, table, bytes_read); in ibm_read_apci_table()
383 return bytes_read; in ibm_read_apci_table()
/linux-2.6.39/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()
160 tty_insert_flip_string(tty, con_read_page, bytes_read); in receive_chars_read()
/linux-2.6.39/block/
Dblk-map.c114 unsigned long bytes_read = 0; in blk_rq_map_user() local
126 while (bytes_read != len) { in blk_rq_map_user()
129 map_len = min_t(unsigned long, len - bytes_read, BIO_MAX_SIZE); in blk_rq_map_user()
148 bytes_read += ret; in blk_rq_map_user()
Dbsg.c534 const struct iovec *iov, ssize_t *bytes_read) in __bsg_read() argument
568 *bytes_read += sizeof(struct sg_io_v4); in __bsg_read()
599 ssize_t bytes_read; in bsg_read() local
605 bytes_read = 0; in bsg_read()
606 ret = __bsg_read(buf, count, bd, NULL, &bytes_read); in bsg_read()
607 *ppos = bytes_read; in bsg_read()
609 if (!bytes_read || (bytes_read && err_block_err(ret))) in bsg_read()
610 bytes_read = ret; in bsg_read()
612 return bytes_read; in bsg_read()
/linux-2.6.39/drivers/media/dvb/dvb-core/
Ddvb_ca_en50221.c588 int bytes_read; in dvb_ca_en50221_read_data() local
623 bytes_read = status << 8; in dvb_ca_en50221_read_data()
626 bytes_read |= status; in dvb_ca_en50221_read_data()
630 if (bytes_read > ca->slot_info[slot].link_buf_size) { in dvb_ca_en50221_read_data()
632 ca->dvbdev->adapter->num, bytes_read, ca->slot_info[slot].link_buf_size); in dvb_ca_en50221_read_data()
637 if (bytes_read < 2) { in dvb_ca_en50221_read_data()
645 if (bytes_read > ecount) { in dvb_ca_en50221_read_data()
654 for (i = 0; i < bytes_read; i++) { in dvb_ca_en50221_read_data()
678 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data()
680 memcpy(ebuf, buf, bytes_read); in dvb_ca_en50221_read_data()
[all …]
/linux-2.6.39/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-2.6.39/drivers/staging/wlags49_h2/
Dwl_profile.c304 int bytes_read = 0; in readline() local
310 while ((result = read(filedesc, &buffer[bytes_read], 1)) == 1) { in readline()
311 if (buffer[bytes_read] == '\n') { in readline()
312 buffer[bytes_read] = '\0'; in readline()
313 bytes_read++; in readline()
316 bytes_read++; in readline()
324 return bytes_read; in readline()
/linux-2.6.39/drivers/media/video/
Domap24xxcam-dma.c465 len = sg_state->len - sg_state->bytes_read; in omap24xxcam_sgdma_process()
482 sg_state->bytes_read += len; in omap24xxcam_sgdma_process()
524 sg_state->bytes_read = 0; in omap24xxcam_sgdma_queue()
592 sgdma->sg_state[sg].bytes_read = 0; in omap24xxcam_sgdma_init()

12