/drivers/usb/misc/ |
H A D | idmouse.c | 132 int bytes_read; local 137 bytes_read = sizeof(HEADER)-1; 166 while (bytes_read < IMGSIZE) { 169 dev->bulk_in_buffer + bytes_read, 184 bytes_read += bulk_read; 193 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH) 194 if (dev->bulk_in_buffer[bytes_read] != 0x00) 198 for (bytes_read [all...] |
H A D | yurex.c | 414 int bytes_read = 0; local 427 bytes_read = snprintf(in_buffer, 20, "%lld\n", dev->bbu); 430 if (*ppos < bytes_read) { 431 if (copy_to_user(buffer, in_buffer + *ppos, bytes_read - *ppos)) 434 retval = bytes_read - *ppos; 435 *ppos += bytes_read;
|
H A D | usblcd.c | 141 int bytes_read; local 151 &bytes_read, 10000); 155 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read)) 158 retval = bytes_read;
|
H A D | adutux.c | 399 size_t bytes_read = 0; local 447 bytes_read += (amount - i); 450 retval = bytes_read ? bytes_read : -EFAULT; 494 retval = bytes_read ? bytes_read : -ENOMEM; 516 retval = bytes_read ? bytes_read : -ETIMEDOUT; 522 retval = bytes_read ? bytes_read [all...] |
H A D | ftdi-elan.c | 671 int bytes_read = 0; local 683 if (bytes_read < m) { 685 } else if (bytes_read > m) { 691 bytes_read += 1; 695 return bytes_read; 710 } else if (bytes_read > 0) { 711 return bytes_read; 718 return bytes_read; 722 return bytes_read; 955 int bytes_read local 1890 int bytes_read = 0; local 2077 int bytes_read = 0; local 2186 int bytes_read = 0; local [all...] |
/drivers/char/ |
H A D | msm_smd_pkt.c | 114 int r, bytes_read; local 141 bytes_read = smd_cur_packet_size(smd_pkt_devp->ch); 142 if (bytes_read == 0 || 143 bytes_read < smd_read_avail(smd_pkt_devp->ch)) { 149 if (bytes_read > count) { 151 pr_info("packet size %d > buffer size %d", bytes_read, count); 155 r = smd_read(smd_pkt_devp->ch, smd_pkt_devp->rx_buf, bytes_read); 156 if (r != bytes_read) { 158 pr_err("smd_read failed to read %d bytes: %d\n", bytes_read, r); 162 D_DUMP_BUFFER("read: ", bytes_read, smd_pkt_dev [all...] |
H A D | ppdev.c | 113 ssize_t bytes_read = 0; local 139 while (bytes_read == 0) { 158 bytes_read = (*fn)(pport, kbuffer, need, flags); 160 bytes_read = parport_read (pport, kbuffer, need); 163 if (bytes_read != 0) 167 bytes_read = -EAGAIN; 172 bytes_read = -ERESTARTSYS; 181 if (bytes_read > 0 && copy_to_user (buf, kbuffer, bytes_read)) 182 bytes_read [all...] |
/drivers/ps3/ |
H A D | vuart.h | 28 unsigned long bytes_read; member in struct:ps3_vuart_stats
|
H A D | ps3-vuart.c | 399 unsigned int bytes, u64 *bytes_read) 407 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); 415 priv->stats.bytes_read += *bytes_read; 418 *bytes_read, bytes, priv->stats.bytes_read); 465 priv->stats.bytes_read -= bytes_waiting; 622 unsigned long bytes_read; local 645 bytes_read = min((unsigned int)(lb->tail - lb->head), bytes); 647 memcpy(buf, lb->head, bytes_read); 398 ps3_vuart_raw_read(struct ps3_system_bus_device *dev, void *buf, unsigned int bytes, u64 *bytes_read) argument [all...] |
/drivers/char/hw_random/ |
H A D | core.c | 104 int bytes_read, len; local 118 bytes_read = rng_get_data(current_rng, rng_buffer, 121 if (bytes_read < 0) { 122 err = bytes_read; 125 data_avail = bytes_read;
|
/drivers/firmware/ |
H A D | dell_rbu.c | 263 int length, int bytes_read, int *list_read_count) 273 if (*list_read_count > bytes_read) { 275 j = newpacket->length - (*list_read_count - bytes_read); 282 if (length > (*list_read_count - bytes_read)) 287 bytes_copied = (*list_read_count - bytes_read); 301 int bytes_read = 0; local 310 bytes_read = rbu_data.packet_read_count; 315 remaining_bytes, bytes_read, &temp_count); 317 bytes_read += bytes_copied; 329 *pread_length = bytes_read 262 do_packet_read(char *data, struct list_head *ptemp_list, int length, int bytes_read, int *list_read_count) argument [all...] |
/drivers/media/rc/ |
H A D | redrat3.c | 214 u16 bytes_read; member in struct:redrat3_dev 741 rr3->bytes_read = len; 742 rr3->bytes_read -= hdrlen; 746 rr3->bytes_read); 747 rr3->datap += rr3->bytes_read; 748 rr3_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", 749 rr3->bytes_read, rr3->pktlen); 767 rr3->bytes_read += len; 768 rr3_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", 769 rr3->bytes_read, rr [all...] |
/drivers/video/omap2/displays/ |
H A D | panel-dvi.c | 256 int r, l, bytes_read; local 278 bytes_read = l; 289 bytes_read += l; 294 return bytes_read;
|
/drivers/tty/serial/ |
H A D | sunhv.c | 125 unsigned long bytes_read, i; local 126 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read); 129 bytes_read = 0; 136 bytes_read = 1; 152 for (i = 0; i < bytes_read; i++) 158 port->icount.rx += bytes_read; 160 tty_insert_flip_string(tty, con_read_page, bytes_read);
|
/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 372 int bytes_read = -EINVAL; local 378 bytes_read = ibm_get_table_from_acpi(&table); 379 if (bytes_read > 0 && bytes_read <= size) 380 memcpy(buffer, table, bytes_read); 383 return bytes_read;
|
/drivers/media/dvb/dvb-core/ |
H A D | dvb_ca_en50221.c | 588 int bytes_read; local 623 bytes_read = status << 8; 626 bytes_read |= status; 630 if (bytes_read > ca->slot_info[slot].link_buf_size) { 632 ca->dvbdev->adapter->num, bytes_read, ca->slot_info[slot].link_buf_size); 637 if (bytes_read < 2) { 645 if (bytes_read > ecount) { 654 for (i = 0; i < bytes_read; i++) { 678 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); 680 memcpy(ebuf, buf, bytes_read); [all...] |
/drivers/media/video/ |
H A D | omap24xxcam-dma.c | 465 len = sg_state->len - sg_state->bytes_read; 482 sg_state->bytes_read += len; 524 sg_state->bytes_read = 0; 592 sgdma->sg_state[sg].bytes_read = 0;
|
H A D | omap24xxcam.h | 419 unsigned int bytes_read; /* number of bytes read */ member in struct:sgdma_state
|
/drivers/staging/wlags49_h2/ |
H A D | wl_profile.c | 304 int bytes_read = 0; local 310 while ((result = read(filedesc, &buffer[bytes_read], 1)) == 1) { 311 if (buffer[bytes_read] == '\n') { 312 buffer[bytes_read] = '\0'; 313 bytes_read++; 316 bytes_read++; 324 return bytes_read;
|
/drivers/media/video/usbvision/ |
H A D | usbvision-video.c | 1032 frame->bytes_read = 0; 1036 PDEBUG(DBG_IO, "%s: frmx=%d, bytes_read=%ld, scanlength=%ld", 1038 frame->index, frame->bytes_read, frame->scanlength); 1041 if ((count + frame->bytes_read) > (unsigned long)frame->scanlength) 1042 count = frame->scanlength - frame->bytes_read; 1044 if (copy_to_user(buf, frame->data + frame->bytes_read, count)) 1047 frame->bytes_read += count; 1048 PDEBUG(DBG_IO, "%s: {copy} count used=%ld, new bytes_read=%ld", 1050 (unsigned long)count, frame->bytes_read); 1053 /* if (frame->bytes_read > [all...] |
/drivers/usb/misc/sisusbvga/ |
H A D | sisusb.c | 471 void *kernbuffer, char __user *userbuffer, ssize_t *bytes_read, 479 (*bytes_read) = 0; 527 (*bytes_read) += thispass; 548 return ((*bytes_read) == len) ? 0 : -EIO; 1143 char __user *userbuffer, ssize_t *bytes_read) 1150 (*bytes_read = 0); 1163 (*bytes_read)++; 1179 (*bytes_read) += 2; 1194 (*bytes_read) += 3; 1219 (*bytes_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) argument 1141 sisusb_read_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr, char *kernbuffer, int length, char __user *userbuffer, ssize_t *bytes_read) argument 2516 ssize_t bytes_read = 0; local [all...] |
/drivers/staging/tidspbridge/pmgr/ |
H A D | dbll.c | 859 int bytes_read = 0; local 863 bytes_read = 867 return bytes_read; 1235 int bytes_read = 0; local 1239 return bytes_read;
|
/drivers/usb/gadget/ |
H A D | s3c2410_udc.c | 546 int bytes_read = 0; local 550 bytes_read = s3c2410_udc_fifo_count_out(); 552 dprintk(DEBUG_NORMAL, "%s: fifo_count=%d\n", __func__, bytes_read); 554 if (bytes_read > sizeof(struct usb_ctrlrequest)) 555 bytes_read = sizeof(struct usb_ctrlrequest); 557 readsb(S3C2410_UDC_EP0_FIFO_REG + base_addr, outbuf, bytes_read); 560 bytes_read, crq->bRequest, crq->bRequestType, 563 return bytes_read;
|
/drivers/scsi/ |
H A D | NCR5380.h | 283 unsigned long bytes_read[8]; /* bytes read */ member in struct:NCR5380_hostdata
|
/drivers/media/dvb/bt8xx/ |
H A D | dst_ca.c | 678 ssize_t bytes_read = 0; local 682 return bytes_read;
|