| /drivers/usb/misc/ |
| A D | idmouse.c | 125 int bytes_read; in idmouse_create_image() local 130 bytes_read = sizeof(HEADER)-1; in idmouse_create_image() 159 while (bytes_read < IMGSIZE) { in idmouse_create_image() 162 dev->bulk_in_buffer + bytes_read, in idmouse_create_image() 177 bytes_read += bulk_read; in idmouse_create_image() 182 for (bytes_read = sizeof(HEADER)-1 + WIDTH-1; bytes_read < IMGSIZE; bytes_read += WIDTH) in idmouse_create_image() 183 if (dev->bulk_in_buffer[bytes_read] != 0x00) in idmouse_create_image() 187 for (bytes_read = IMGSIZE-WIDTH; bytes_read < IMGSIZE-1; bytes_read++) in idmouse_create_image() 188 if (dev->bulk_in_buffer[bytes_read] != 0xFF) in idmouse_create_image() 197 bytes_read); in idmouse_create_image()
|
| A D | adutux.c | 347 size_t bytes_read = 0; in adu_read() local 390 bytes_read += amount; in adu_read() 435 retval = bytes_read ? bytes_read : -ENOMEM; in adu_read() 460 retval = bytes_read ? bytes_read : -ETIMEDOUT; in adu_read() 468 retval = bytes_read ? bytes_read : -EINTR; in adu_read() 475 retval = bytes_read; in adu_read()
|
| /drivers/net/wwan/iosm/ |
| A D | iosm_ipc_flash.c | 101 u32 bytes_read; in ipc_flash_link_establish() local 114 if (bytes_read != IOSM_LER_RSP_SIZE) in ipc_flash_link_establish() 130 u32 bytes_read; in ipc_flash_receive_data() local 134 IOSM_EBL_HEAD_SIZE, &bytes_read); in ipc_flash_receive_data() 147 &bytes_read); in ipc_flash_receive_data() 154 if (bytes_read != size) { in ipc_flash_receive_data() 511 u32 bytes_read; in ipc_flash_boot_ebl() local 531 &bytes_read); in ipc_flash_boot_ebl() 537 if (bytes_read != IOSM_READ_SIZE) { in ipc_flash_boot_ebl() 550 &bytes_read); in ipc_flash_boot_ebl() [all …]
|
| A D | iosm_ipc_coredump.c | 21 int ret, bytes_to_read, bytes_read = 0, i = 0; in ipc_coredump_collect() local 37 bytes_read = 0; in ipc_coredump_collect() 39 bytes_to_read, &bytes_read); in ipc_coredump_collect() 44 remaining -= bytes_read; in ipc_coredump_collect() 45 i += bytes_read; in ipc_coredump_collect()
|
| /drivers/net/wireless/ath/ath9k/ |
| A D | rng.c | 73 int bytes_read = 0; in ath9k_rng_read() local 77 bytes_read = ath9k_rng_data_read(sc, buf, max >> 2); in ath9k_rng_read() 79 memcpy(buf + bytes_read, &word, max & 3UL); in ath9k_rng_read() 80 bytes_read += max & 3UL; in ath9k_rng_read() 83 if (!wait || !max || likely(bytes_read) || fail_stats > 110) in ath9k_rng_read() 90 if (wait && !bytes_read && max) in ath9k_rng_read() 91 bytes_read = -EIO; in ath9k_rng_read() 92 return bytes_read; in ath9k_rng_read()
|
| /drivers/net/ethernet/cavium/liquidio/ |
| A D | octeon_console.c | 435 s32 bytes_read) in output_console_line() argument 496 bytes_read = in check_console() 499 if (bytes_read > 0) { in check_console() 500 total_read += bytes_read; in check_console() 507 } else if (bytes_read < 0) { in check_console() 509 console_num, bytes_read); in check_console() 608 bytes_read = in octeon_get_uboot_version() 613 if (bytes_read > 0) { in octeon_get_uboot_version() 614 buf[bytes_read] = '\0'; in octeon_get_uboot_version() 616 total_read += bytes_read; in octeon_get_uboot_version() [all …]
|
| /drivers/char/ |
| A D | adi.c | 51 size_t ver_buf_sz, bytes_read = 0; in adi_read() local 64 while (bytes_read < count) { in adi_read() 74 if (copy_to_user(buf + bytes_read, ver_buf, in adi_read() 80 bytes_read += ver_buf_sz; in adi_read() 83 ver_buf_sz = min(count - bytes_read, in adi_read() 88 (*offp) += bytes_read; in adi_read() 89 ret = bytes_read; in adi_read()
|
| A D | ppdev.c | 121 ssize_t bytes_read = 0; in pp_read() local 146 while (bytes_read == 0) { in pp_read() 162 bytes_read = (*fn)(pport, kbuffer, need, flags); in pp_read() 164 bytes_read = parport_read(pport, kbuffer, need); in pp_read() 167 if (bytes_read != 0) in pp_read() 171 bytes_read = -EAGAIN; in pp_read() 176 bytes_read = -ERESTARTSYS; in pp_read() 185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read() 186 bytes_read = -EFAULT; in pp_read() 190 return bytes_read; in pp_read()
|
| /drivers/platform/x86/dell/ |
| A D | dell_rbu.c | 248 int length, int bytes_read, int *list_read_count) in do_packet_read() argument 256 if (*list_read_count > bytes_read) { in do_packet_read() 258 j = newpacket->length - (*list_read_count - bytes_read); in do_packet_read() 265 if (length > (*list_read_count - bytes_read)) in do_packet_read() 270 bytes_copied = (*list_read_count - bytes_read); in do_packet_read() 284 int bytes_read = 0; in packet_read_list() local 293 bytes_read = rbu_data.packet_read_count; in packet_read_list() 297 remaining_bytes, bytes_read, &temp_count); in packet_read_list() 299 bytes_read += bytes_copied; in packet_read_list() 309 *pread_length = bytes_read - rbu_data.packet_read_count; in packet_read_list() [all …]
|
| /drivers/ps3/ |
| A D | ps3-vuart.c | 382 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument 398 priv->stats.bytes_read += *bytes_read; in ps3_vuart_raw_read() 401 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read() 448 priv->stats.bytes_read -= bytes_waiting; in ps3_vuart_clear_rx_bytes() 605 unsigned long bytes_read; in ps3_vuart_read() local 630 memcpy(buf, lb->head, bytes_read); in ps3_vuart_read() 631 buf += bytes_read; in ps3_vuart_read() 632 bytes -= bytes_read; in ps3_vuart_read() 636 lb->head += bytes_read; in ps3_vuart_read() 639 bytes_read); in ps3_vuart_read() [all …]
|
| /drivers/mtd/parsers/ |
| A D | parser_trx.c | 32 size_t bytes_read; in parser_trx_data_part_name() local 35 err = mtd_read(master, offset, sizeof(buf), &bytes_read, in parser_trx_data_part_name() 58 size_t bytes_read; in parser_trx_parse() local 73 err = mtd_read(mtd, 0, sizeof(trx), &bytes_read, (uint8_t *)&trx); in parser_trx_parse()
|
| A D | bcm47xxpart.c | 93 size_t bytes_read; in bcm47xxpart_parse() local 134 &bytes_read, (uint8_t *)buf); in bcm47xxpart_parse() 236 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse() 260 err = mtd_read(master, offset, 0x4, &bytes_read, in bcm47xxpart_parse()
|
| A D | tplink_safeloader.c | 25 size_t bytes_read; in mtd_parser_tplink_safeloader_read_table() local 42 err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr); in mtd_parser_tplink_safeloader_read_table() 54 err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf); in mtd_parser_tplink_safeloader_read_table()
|
| /drivers/w1/slaves/ |
| A D | w1_ds2413.c | 33 ssize_t bytes_read = -EIO; in state_read() local 59 bytes_read = 1; in state_read() 77 (bytes_read > 0) ? "succeeded" : "error", retries); in state_read() 78 return bytes_read; in state_read()
|
| /drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_debugdump.c | 165 int bytes_read; in nfp_net_dump_load_dumpspec() local 180 if (bytes_read != sym_size) { in nfp_net_dump_load_dumpspec() 462 int bytes_read; in nfp_dump_csr_range() local 491 bytes_read = nfp_cpp_read(pf->cpp, cpp_id, cpp_rd_addr, in nfp_dump_csr_range() 493 err = bytes_read == reg_sz ? 0 : -EIO; in nfp_dump_csr_range() 617 int bytes_read; in nfp_dump_single_rtsym() local 654 bytes_read = nfp_rtsym_read(pf->cpp, sym, 0, dest, sym_size); in nfp_dump_single_rtsym() 655 if (bytes_read != sym_size) { in nfp_dump_single_rtsym() 656 if (bytes_read >= 0) in nfp_dump_single_rtsym() 657 bytes_read = -EIO; in nfp_dump_single_rtsym() [all …]
|
| /drivers/staging/gpib/fmh_gpib/ |
| A D | fmh_gpib.c | 52 int *end, size_t *bytes_read) in fmh_gpib_read() argument 724 *bytes_read = 0; in fmh_gpib_dma_read() 790 *bytes_read += length - residue; in fmh_gpib_dma_read() 801 if ((*bytes_read) >= length) { in fmh_gpib_dma_read() 882 *bytes_read = 0; in fmh_gpib_accel_read() 895 *bytes_read += dma_nbytes; in fmh_gpib_accel_read() 925 *bytes_read = 0; in fmh_gpib_fifo_read_countable() 962 if ((*bytes_read) >= length) { in fmh_gpib_fifo_read_countable() 964 (int)(*bytes_read), (int)length); in fmh_gpib_fifo_read_countable() 989 *bytes_read = 0; in fmh_gpib_fifo_read() [all …]
|
| /drivers/media/rc/ |
| A D | redrat3.c | 228 u16 bytes_read; member 623 rr3->bytes_read = len; in redrat3_read_packet_start() 625 rr3->bytes_read, pktlen); in redrat3_read_packet_start() 639 if (len + rr3->bytes_read > sizeof(rr3->irdata)) { in redrat3_read_packet_continue() 641 rr3->bytes_read = 0; in redrat3_read_packet_continue() 645 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len); in redrat3_read_packet_continue() 647 rr3->bytes_read += len; in redrat3_read_packet_continue() 661 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data() 663 } else if (rr3->bytes_read == 0) { in redrat3_get_ir_data() 683 rr3->bytes_read = 0; in redrat3_get_ir_data() [all …]
|
| /drivers/staging/gpib/agilent_82357a/ |
| A D | agilent_82357a.c | 221 int bytes_written, bytes_read; in agilent_82357a_write_registers() local 264 &bytes_read, 1000); in agilent_82357a_write_registers() 269 retval, bytes_read); in agilent_82357a_write_registers() 295 int bytes_written, bytes_read; in agilent_82357a_read_registers() local 343 &bytes_read, 10000); in agilent_82357a_read_registers() 348 retval, bytes_read); in agilent_82357a_read_registers() 492 bytes_read = 0; in agilent_82357a_read() 510 retval, bytes_read); in agilent_82357a_read() 515 bytes_read = length + 1; in agilent_82357a_read() 519 if (bytes_read >= 1) { in agilent_82357a_read() [all …]
|
| /drivers/staging/gpib/ni_usb/ |
| A D | ni_usb_gpib.c | 563 retval, bytes_read); in ni_usb_write_registers() 610 *bytes_read = 0; in ni_usb_read() 720 *bytes_read = actual_length; in ni_usb_read() 891 retval, bytes_read); in ni_usb_command_chunk() 990 retval, bytes_read); in ni_usb_take_control() 1047 retval, bytes_read); in ni_usb_go_to_standby() 1150 retval, bytes_read); in ni_usb_interface_clear() 1385 &bytes_read, 1000, 1); in ni_usb_parallel_poll() 1389 retval, bytes_read); in ni_usb_parallel_poll() 1564 retval, bytes_read); in ni_usb_line_status() [all …]
|
| /drivers/tty/serial/ |
| A D | sunhv.c | 124 unsigned long bytes_read, i; in receive_chars_read() local 125 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read); in receive_chars_read() 128 bytes_read = 0; in receive_chars_read() 138 bytes_read = 1; in receive_chars_read() 155 for (i = 0; i < bytes_read; i++) in receive_chars_read() 163 port->icount.rx += bytes_read; in receive_chars_read() 166 bytes_read); in receive_chars_read()
|
| /drivers/pci/hotplug/ |
| A D | acpiphp_ibm.c | 359 int bytes_read = -EINVAL; in ibm_read_apci_table() local 365 bytes_read = ibm_get_table_from_acpi(&table); in ibm_read_apci_table() 366 if (bytes_read > 0 && bytes_read <= size) in ibm_read_apci_table() 367 memcpy(buffer, table, bytes_read); in ibm_read_apci_table() 370 return bytes_read; in ibm_read_apci_table()
|
| /drivers/staging/gpib/cb7210/ |
| A D | cb7210.c | 31 int *end, size_t *bytes_read); 88 *bytes_read = 0; in fifo_read() 101 while (*bytes_read + cb7210_fifo_size < length) { in fifo_read() 121 buffer[(*bytes_read)++] = word & 0xff; in fifo_read() 122 buffer[(*bytes_read)++] = (word >> 8) & 0xff; in fifo_read() 149 buffer[(*bytes_read)++] = word & 0xff; in fifo_read() 181 *bytes_read = 0; in cb7210_accel_read() 207 retval = fifo_read(board, cb_priv, &buffer[*bytes_read], length - *bytes_read - 1, in cb7210_accel_read() 209 *bytes_read += num_bytes; in cb7210_accel_read() 216 *bytes_read += num_bytes; in cb7210_accel_read() [all …]
|
| /drivers/nvmem/ |
| A D | u-boot-env.c | 29 size_t bytes_read; in u_boot_env_read() local 32 err = mtd_read(priv->mtd, offset, bytes, &bytes_read, val); in u_boot_env_read() 38 if (bytes_read != bytes) { in u_boot_env_read()
|
| A D | bcm-ocotp.c | 156 u32 bytes_read; in bcm_otpc_read() local 160 for (bytes_read = 0; bytes_read < bytes;) { in bcm_otpc_read() 173 bytes_read += sizeof(*buf); in bcm_otpc_read()
|
| /drivers/gpio/ |
| A D | gpiolib-cdev.c | 1510 ssize_t bytes_read = 0; in linereq_read() local 1524 if (bytes_read) in linereq_read() 1525 return bytes_read; in linereq_read() 1552 return bytes_read; in linereq_read() 1843 ssize_t bytes_read = 0; in lineevent_read() local 1871 if (bytes_read) in lineevent_read() 1872 return bytes_read; in lineevent_read() 1899 return bytes_read; in lineevent_read() 2642 if (bytes_read) in lineinfo_watch_read() 2643 return bytes_read; in lineinfo_watch_read() [all …]
|