/kernel/linux/linux-5.10/tools/power/acpi/tools/ec/ |
D | ec_access.c | 129 int byte_off, bytes_read; in dump_ec() local 131 bytes_read = read(fd, buf, EC_SPACE_SIZE); in dump_ec() 133 if (bytes_read == -1) in dump_ec() 136 if (bytes_read != EC_SPACE_SIZE) in dump_ec() 137 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec() 140 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec() 154 bytes_read = read(fd, buf2, EC_SPACE_SIZE); in dump_ec() 156 if (bytes_read == -1) in dump_ec() 159 if (bytes_read != EC_SPACE_SIZE) in dump_ec() 160 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
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()
|
D | adutux.c | 347 size_t bytes_read = 0; in adu_read() local 390 bytes_read += amount; in adu_read() 438 retval = bytes_read ? bytes_read : -ENOMEM; in adu_read() 463 retval = bytes_read ? bytes_read : -ETIMEDOUT; in adu_read() 471 retval = bytes_read ? bytes_read : -EINTR; in adu_read() 478 retval = bytes_read; in adu_read()
|
/kernel/linux/linux-5.10/tools/perf/scripts/perl/ |
D | rwtop.pl | 44 $reads{$common_pid}{bytes_read} += $ret; 46 if (!defined ($reads{$common_pid}{bytes_read})) { 47 $reads{$common_pid}{bytes_read} = 0; 136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=> 137 ($reads{$a}{bytes_read} || 0) } keys %reads) { 141 my $bytes_read = $reads{$pid}{bytes_read} || 0; 144 $total_reads, $bytes_requested, $bytes_read);
|
D | rw-by-pid.pl | 31 $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);
|
/kernel/linux/linux-5.10/drivers/char/ |
D | adi.c | 57 size_t ver_buf_sz, bytes_read = 0; in adi_read() local 70 while (bytes_read < count) { in adi_read() 80 if (copy_to_user(buf + bytes_read, ver_buf, in adi_read() 86 bytes_read += ver_buf_sz; in adi_read() 89 ver_buf_sz = min(count - bytes_read, in adi_read() 94 (*offp) += bytes_read; in adi_read() 95 ret = bytes_read; in adi_read()
|
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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_console.c | 436 s32 bytes_read) in output_console_line() argument 443 for (i = 0; i < bytes_read; i++) { in output_console_line() 471 if (line != &console_buffer[bytes_read]) { in output_console_line() 472 console_buffer[bytes_read] = '\0'; in output_console_line() 481 s32 bytes_read, tries, total_read; in check_console() local 497 bytes_read = in check_console() 500 if (bytes_read > 0) { in check_console() 501 total_read += bytes_read; in check_console() 506 console_buffer, bytes_read); in check_console() 508 } else if (bytes_read < 0) { in check_console() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | rng.c | 76 int bytes_read; in ath9k_rng_kthread() local 86 bytes_read = ath9k_rng_data_read(sc, rng_buf, in ath9k_rng_kthread() 88 if (unlikely(!bytes_read)) { in ath9k_rng_kthread() 99 add_hwgenerator_randomness((void *)rng_buf, bytes_read, in ath9k_rng_kthread() 100 ATH9K_RNG_ENTROPY(bytes_read)); in ath9k_rng_kthread()
|
/kernel/linux/linux-5.10/fs/befs/ |
D | datastream.c | 133 befs_off_t bytes_read = 0; /* bytes readed */ in befs_read_lsymlink() local 139 while (bytes_read < len) { in befs_read_lsymlink() 140 bh = befs_read_datastream(sb, ds, bytes_read, NULL); in befs_read_lsymlink() 143 "starting from %llu", bytes_read); in befs_read_lsymlink() 145 return bytes_read; in befs_read_lsymlink() 148 plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ? in befs_read_lsymlink() 149 BEFS_SB(sb)->block_size : len - bytes_read; in befs_read_lsymlink() 150 memcpy(buff + bytes_read, bh->b_data, plen); in befs_read_lsymlink() 152 bytes_read += plen; in befs_read_lsymlink() 156 bytes_read); in befs_read_lsymlink() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 186 int ret, bytes_read = 0; in read_adi() local 191 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); in read_adi() 198 bytes_read += ret; in read_adi() 200 } while (bytes_read < buf_sz); in read_adi() 203 DEBUG_PRINT_L3("\tRead %d bytes\n", bytes_read); in read_adi() 205 return bytes_read; in read_adi() 211 int ret, i, bytes_read = 0; in pread_adi() local 218 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, in pread_adi() 226 bytes_read += ret; in pread_adi() 229 } while (bytes_read < buf_sz); in pread_adi() [all …]
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/mtd/parsers/ |
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() 57 size_t bytes_read; in parser_trx_parse() local 66 err = mtd_read(mtd, 0, sizeof(trx), &bytes_read, (uint8_t *)&trx); in parser_trx_parse()
|
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()
|
/kernel/linux/linux-5.10/drivers/w1/slaves/ |
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()
|
/kernel/linux/linux-5.10/Documentation/usb/ |
D | gadget_printer.rst | 222 int bytes_read; 231 bytes_read = read(fd[0].fd, buf, BUF_SIZE); 233 if (bytes_read < 0) { 238 } else if (bytes_read > 0) { 240 fwrite(buf, 1, bytes_read, stdout); 274 int bytes_read = fread(buf, 1, BUF_SIZE, stdin); 276 if (!bytes_read) { 280 while (bytes_read) { 287 retval = write(fd[0].fd, buf, bytes_read); 295 bytes_read -= retval; [all …]
|
/kernel/linux/linux-5.10/drivers/char/hw_random/ |
D | core.c | 67 int bytes_read; in add_early_randomness() local 71 bytes_read = rng_get_data(rng, rng_buffer, size, 0); in add_early_randomness() 73 if (bytes_read > 0) in add_early_randomness() 74 add_device_randomness(rng_buffer, bytes_read); in add_early_randomness() 211 int bytes_read, len; in rng_dev_read() local 230 bytes_read = rng_get_data(rng, rng_buffer, in rng_dev_read() 233 if (bytes_read < 0) { in rng_dev_read() 234 err = bytes_read; in rng_dev_read() 237 data_avail = bytes_read; in rng_dev_read()
|
/kernel/linux/linux-5.10/drivers/ps3/ |
D | ps3-vuart.c | 382 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument 390 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read() 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 628 bytes_read = min((unsigned int)(lb->tail - lb->head), bytes); in ps3_vuart_read() 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() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_debugdump.c | 160 int bytes_read; in nfp_net_dump_load_dumpspec() local 174 bytes_read = nfp_rtsym_read(cpp, specsym, 0, dumpspec->data, sym_size); in nfp_net_dump_load_dumpspec() 175 if (bytes_read != sym_size) { in nfp_net_dump_load_dumpspec() 455 int bytes_read; in nfp_dump_csr_range() local 484 bytes_read = nfp_cpp_read(pf->cpp, cpp_id, cpp_rd_addr, in nfp_dump_csr_range() 486 err = bytes_read == reg_sz ? 0 : -EIO; in nfp_dump_csr_range() 606 int bytes_read; in nfp_dump_single_rtsym() local 643 bytes_read = nfp_rtsym_read(pf->cpp, sym, 0, dest, sym_size); in nfp_dump_single_rtsym() 644 if (bytes_read != sym_size) { in nfp_dump_single_rtsym() 645 if (bytes_read >= 0) in nfp_dump_single_rtsym() [all …]
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | sunhv.c | 121 unsigned long bytes_read, i; in receive_chars_read() local 122 long stat = sun4v_con_read(ra, PAGE_SIZE, &bytes_read); in receive_chars_read() 125 bytes_read = 0; in receive_chars_read() 135 bytes_read = 1; in receive_chars_read() 152 for (i = 0; i < bytes_read; i++) in receive_chars_read() 160 port->icount.rx += bytes_read; in receive_chars_read() 163 bytes_read); in receive_chars_read()
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
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()
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
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() 648 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read, in redrat3_read_packet_continue() 659 if (rr3->bytes_read == 0 && len >= sizeof(struct redrat3_header)) { in redrat3_get_ir_data() 661 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data() [all …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | code-reading.c | 56 size_t bytes_read = 0; in read_objdump_chunk() local 75 bytes_read++; in read_objdump_chunk() 90 if (bytes_read > 1 && !bigendian()) { in read_objdump_chunk() 91 unsigned char *chunk_end = chunk_start + bytes_read - 1; in read_objdump_chunk() 103 return bytes_read; in read_objdump_chunk() 110 size_t ret, bytes_read = 0; in read_objdump_line() local 127 bytes_read += ret; in read_objdump_line() 132 return bytes_read; in read_objdump_line()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpiolib-cdev.c | 1219 ssize_t bytes_read = 0; in linereq_read() local 1231 if (bytes_read) { in linereq_read() 1233 return bytes_read; in linereq_read() 1261 if (copy_to_user(buf + bytes_read, &le, sizeof(le))) in linereq_read() 1263 bytes_read += sizeof(le); in linereq_read() 1264 } while (count >= bytes_read + sizeof(le)); in linereq_read() 1266 return bytes_read; in linereq_read() 1524 ssize_t bytes_read = 0; in lineevent_read() local 1547 if (bytes_read) { in lineevent_read() 1549 return bytes_read; in lineevent_read() [all …]
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | link.c | 225 unsigned int bytes_read = 0; in query_mf_symlink() local 233 cifs_sb, path, buf, &bytes_read); in query_mf_symlink() 240 if (bytes_read == 0) { /* not a symlink */ in query_mf_symlink() 245 rc = parse_mf_symlink(buf, bytes_read, &link_len, symlinkinfo); in query_mf_symlink() 259 unsigned int bytes_read = 0; in check_mf_symlink() local 271 cifs_sb, path, buf, &bytes_read); in check_mf_symlink() 278 if (bytes_read == 0) /* not a symlink */ in check_mf_symlink() 281 rc = parse_mf_symlink(buf, bytes_read, &link_len, NULL); in check_mf_symlink()
|