Searched refs:bytes_read (Results 1 - 25 of 43) sorted by relevance

12

/drivers/usb/misc/
H A Didmouse.c131 int bytes_read; local
136 bytes_read = sizeof(HEADER)-1;
165 while (bytes_read < IMGSIZE) {
168 dev->bulk_in_buffer + bytes_read,
183 bytes_read += bulk_read;
192 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH)
193 if (dev->bulk_in_buffer[bytes_read] != 0x00)
197 for (bytes_read
[all...]
H A Dyurex.c417 int bytes_read = 0; local
430 bytes_read = snprintf(in_buffer, 20, "%lld\n", dev->bbu);
433 if (*ppos < bytes_read) {
434 if (copy_to_user(buffer, in_buffer + *ppos, bytes_read - *ppos))
437 retval = bytes_read - *ppos;
438 *ppos += bytes_read;
H A Dusblcd.c140 int bytes_read; local
150 &bytes_read, 10000);
154 if (copy_to_user(buffer, dev->bulk_in_buffer, bytes_read))
157 retval = bytes_read;
H A Dadutux.c345 size_t bytes_read = 0; local
390 bytes_read += (amount - i);
393 retval = bytes_read ? bytes_read : -EFAULT;
442 retval = bytes_read ? bytes_read : -ENOMEM;
467 retval = bytes_read ? bytes_read : -ETIMEDOUT;
475 retval = bytes_read ? bytes_read
[all...]
H A Dftdi-elan.c669 int bytes_read = 0; local
681 if (bytes_read < m) {
683 } else if (bytes_read > m) {
689 bytes_read += 1;
693 return bytes_read;
708 } else if (bytes_read > 0) {
709 return bytes_read;
716 return bytes_read;
720 return bytes_read;
950 int bytes_read local
1881 int bytes_read = 0; local
2058 int bytes_read = 0; local
2160 int bytes_read = 0; local
[all...]
/drivers/char/
H A Dmsm_smd_pkt.c114 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 Dppdev.c113 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/char/hw_random/
H A Dcore.c82 int bytes_read; local
84 bytes_read = rng_get_data(rng, bytes, sizeof(bytes), 1);
85 if (bytes_read > 0)
86 add_device_randomness(bytes, bytes_read);
150 int bytes_read, len; local
164 bytes_read = rng_get_data(current_rng, rng_buffer,
167 if (bytes_read < 0) {
168 err = bytes_read;
171 data_avail = bytes_read;
/drivers/ps3/
H A Dvuart.h28 unsigned long bytes_read; member in struct:ps3_vuart_stats
H A Dps3-vuart.c399 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/pci/hotplug/
H A Dacpiphp_ibm.c360 int bytes_read = -EINVAL; local
366 bytes_read = ibm_get_table_from_acpi(&table);
367 if (bytes_read > 0 && bytes_read <= size)
368 memcpy(buffer, table, bytes_read);
371 return bytes_read;
/drivers/firmware/
H A Ddell_rbu.c263 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/mtd/
H A Dbcm47xxpart.c64 size_t bytes_read; local
101 &bytes_read, (uint8_t *)buf) < 0) {
215 &bytes_read, (uint8_t *)buf) < 0) {
237 if (mtd_read(master, offset, 0x4, &bytes_read,
/drivers/tty/serial/
H A Dsunhv.c125 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;
161 bytes_read);
H A Dsc16is7xx.c474 unsigned int lsr = 0, ch, flag, bytes_read, i; local
497 bytes_read = 1;
503 bytes_read = rxlen;
534 for (i = 0; i < bytes_read; ++i) {
545 rxlen -= bytes_read;
/drivers/media/rc/
H A Dredrat3.c200 u16 bytes_read; member in struct:redrat3_dev
588 rr3->bytes_read = len;
589 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n",
590 rr3->bytes_read, pktlen);
604 if (len + rr3->bytes_read > sizeof(rr3->irdata)) {
606 rr3->bytes_read = 0;
610 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len);
612 rr3->bytes_read += len;
613 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read,
[all...]
/drivers/video/fbdev/omap2/displays-new/
H A Dconnector-dvi.c181 int r, l, bytes_read; local
191 bytes_read = l;
202 bytes_read += l;
205 return bytes_read;
/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c591 int bytes_read; local
626 bytes_read = status << 8;
629 bytes_read |= status;
633 if (bytes_read > ca->slot_info[slot].link_buf_size) {
635 ca->dvbdev->adapter->num, bytes_read, ca->slot_info[slot].link_buf_size);
640 if (bytes_read < 2) {
648 if (bytes_read > ecount) {
657 for (i = 0; i < bytes_read; i++) {
681 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read);
683 memcpy(ebuf, buf, bytes_read);
[all...]
/drivers/net/wireless/iwlwifi/mvm/
H A Dnvm.c129 int ret, bytes_read, offset_read; local
149 bytes_read = le16_to_cpu(nvm_resp->length);
184 memcpy(data + offset, resp_data, bytes_read);
185 ret = bytes_read;
H A Ddebugfs.c152 ssize_t bytes_read = 0; local
156 bytes_read +=
161 if (bytes_read < 0 || *ppos < dump_ptrs->op_mode_len)
162 return bytes_read;
167 simple_read_from_buffer(user_buf + bytes_read,
168 count - bytes_read, ppos,
174 bytes_read += bytes_read_trans;
175 else if (!bytes_read)
180 return bytes_read;
/drivers/staging/media/omap24xx/
H A Domap24xxcam-dma.c464 len = sg_state->len - sg_state->bytes_read;
480 sg_state->bytes_read += len;
520 sg_state->bytes_read = 0;
589 sgdma->sg_state[sg].bytes_read = 0;
/drivers/i2c/busses/
H A Di2c-bcm-kona.c331 unsigned int bytes_read = 0; local
336 while (bytes_read < msg->len) {
337 if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) {
339 bytes_to_read = msg->len - bytes_read;
347 bytes_read += bytes_to_read;
/drivers/net/ethernet/qualcomm/
H A Dqca_spi.c295 u32 bytes_read; local
331 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer,
334 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer,
339 available, bytes_read);
341 if (bytes_read) {
342 available -= bytes_read;
350 while ((bytes_read--) && (qca->rx_skb)) {
/drivers/usb/misc/sisusbvga/
H A Dsisusb.c471 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
2518 ssize_t bytes_read = 0; local
[all...]
/drivers/hid/
H A Dhid-rmi.c197 int bytes_read; local
230 bytes_read = 0;
232 while (bytes_read < len) {
243 memcpy(buf + bytes_read, &data->readReport[2],
247 bytes_read += read_input_count;

Completed in 1644 milliseconds

12