Home
last modified time | relevance | path

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

12

/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.c414 int bytes_read = 0; in yurex_read() local
427 bytes_read = snprintf(in_buffer, 20, "%lld\n", dev->bbu); in yurex_read()
430 if (*ppos < bytes_read) { in yurex_read()
431 if (copy_to_user(buffer, in_buffer + *ppos, bytes_read - *ppos)) in yurex_read()
434 retval = bytes_read - *ppos; in yurex_read()
435 *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.c141 int bytes_read; in lcd_read() local
151 &bytes_read, 10000); in lcd_read()
155 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read)) in lcd_read()
158 retval = bytes_read; in lcd_read()
/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()
/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 …]
/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 …]
Dvuart.h28 unsigned long bytes_read; member
/drivers/media/rc/
Dredrat3.c214 u16 bytes_read; member
741 rr3->bytes_read = len; in redrat3_read_packet_start()
742 rr3->bytes_read -= hdrlen; in redrat3_read_packet_start()
746 rr3->bytes_read); in redrat3_read_packet_start()
747 rr3->datap += rr3->bytes_read; in redrat3_read_packet_start()
749 rr3->bytes_read, rr3->pktlen); in redrat3_read_packet_start()
767 rr3->bytes_read += len; in redrat3_read_packet_continue()
769 rr3->bytes_read, rr3->pktlen); in redrat3_read_packet_continue()
786 if ((rr3->bytes_read == 0) && in redrat3_get_ir_data()
789 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data()
[all …]
/drivers/char/hw_random/
Dcore.c109 int bytes_read, len; in rng_dev_read() local
123 bytes_read = rng_get_data(current_rng, rng_buffer, in rng_dev_read()
126 if (bytes_read < 0) { in rng_dev_read()
127 err = bytes_read; in rng_dev_read()
130 data_avail = bytes_read; in rng_dev_read()
/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()
/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()
/drivers/video/omap2/displays/
Dpanel-dvi.c256 int r, l, bytes_read; in panel_dvi_read_edid() local
278 bytes_read = l; in panel_dvi_read_edid()
289 bytes_read += l; in panel_dvi_read_edid()
294 return bytes_read; in panel_dvi_read_edid()
/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 …]
/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 …]
/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()
/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()
/drivers/media/video/usbvision/
Dusbvision-video.c1032 frame->bytes_read = 0; in usbvision_v4l2_read()
1038 frame->index, frame->bytes_read, frame->scanlength); in usbvision_v4l2_read()
1041 if ((count + frame->bytes_read) > (unsigned long)frame->scanlength) in usbvision_v4l2_read()
1042 count = frame->scanlength - frame->bytes_read; in usbvision_v4l2_read()
1044 if (copy_to_user(buf, frame->data + frame->bytes_read, count)) in usbvision_v4l2_read()
1047 frame->bytes_read += count; in usbvision_v4l2_read()
1050 (unsigned long)count, frame->bytes_read); in usbvision_v4l2_read()
1054 frame->bytes_read = 0; in usbvision_v4l2_read()
/drivers/usb/gadget/
Ds3c2410_udc.c546 int bytes_read = 0; in s3c2410_udc_read_fifo_crq() local
550 bytes_read = s3c2410_udc_fifo_count_out(); in s3c2410_udc_read_fifo_crq()
552 dprintk(DEBUG_NORMAL, "%s: fifo_count=%d\n", __func__, bytes_read); in s3c2410_udc_read_fifo_crq()
554 if (bytes_read > sizeof(struct usb_ctrlrequest)) in s3c2410_udc_read_fifo_crq()
555 bytes_read = sizeof(struct usb_ctrlrequest); in s3c2410_udc_read_fifo_crq()
557 readsb(S3C2410_UDC_EP0_FIFO_REG + base_addr, outbuf, bytes_read); in s3c2410_udc_read_fifo_crq()
560 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
563 return bytes_read; in s3c2410_udc_read_fifo_crq()
/drivers/mtd/devices/
Dgoldfish_nand.c210 size_t bytes_read = goldfish_nand_cmd( in goldfish_nand_read() local
214 if (bytes_read > 0) { in goldfish_nand_read()
216 bytes_read); in goldfish_nand_read()
/drivers/staging/tidspbridge/pmgr/
Ddbll.c859 int bytes_read = 0; in dbll_read_buffer() local
863 bytes_read = in dbll_read_buffer()
867 return bytes_read; in dbll_read_buffer()
1235 int bytes_read = 0; in read_mem() local
1239 return bytes_read; in read_mem()
/drivers/scsi/
DNCR5380.h283 unsigned long bytes_read[8]; /* bytes read */ member
/drivers/staging/comedi/
Dcomedi_fops.c601 bi.bytes_read = 0; in do_bufinfo_ioctl()
606 bi.bytes_read = 0; in do_bufinfo_ioctl()
613 if (bi.bytes_read && (s->subdev_flags & SDF_CMD_READ)) { in do_bufinfo_ioctl()
614 bi.bytes_read = comedi_buf_read_alloc(async, bi.bytes_read); in do_bufinfo_ioctl()
615 comedi_buf_read_free(async, bi.bytes_read); in do_bufinfo_ioctl()

12