/linux-6.1.9/arch/alpha/boot/tools/ |
D | mkbb.c | 92 int nread; in main() local 116 nread = read(fd, &bootloader_image, sizeof(bootblock)); in main() 117 if(nread != sizeof(bootblock)) { in main() 119 fprintf(stderr, "expected %zd, got %d\n", sizeof(bootblock), nread); in main() 124 nread = read(dev, &bootblock_from_disk, sizeof(bootblock)); in main() 125 if(nread != sizeof(bootblock)) { in main() 127 fprintf(stderr, "expected %zd, got %d\n", sizeof(bootblock), nread); in main()
|
/linux-6.1.9/tools/testing/vsock/ |
D | util.c | 273 ssize_t nread; in recv_byte() local 277 nread = recv(fd, &byte, sizeof(byte), flags); in recv_byte() 279 } while (nread < 0 && errno == EINTR); in recv_byte() 283 if (nread != -1) { in recv_byte() 285 nread); in recv_byte() 295 if (nread < 0) { in recv_byte() 299 if (nread == 0) { in recv_byte() 306 if (nread != sizeof(byte)) { in recv_byte() 307 fprintf(stderr, "bogus recv(2) return value %zd\n", nread); in recv_byte()
|
/linux-6.1.9/scripts/kconfig/ |
D | preprocess.c | 146 size_t nread; in do_shell() local 157 nread = fread(buf, 1, sizeof(buf), p); in do_shell() 158 if (nread == sizeof(buf)) in do_shell() 159 nread--; in do_shell() 162 while (nread > 0 && buf[nread - 1] == '\n') in do_shell() 163 nread--; in do_shell() 165 buf[nread] = 0; in do_shell() 168 for (i = 0; i < nread; i++) { in do_shell()
|
/linux-6.1.9/arch/mips/tools/ |
D | elf-entry.c | 35 size_t nread; in main() local 51 nread = fread(&hdr, 1, sizeof(hdr), file); in main() 52 if (nread != sizeof(hdr)) { in main()
|
/linux-6.1.9/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-pagefault.c | 89 ssize_t nread, offset; in fault_handler_thread() local 101 nread = read(uffd, &msg, sizeof(msg)); in fault_handler_thread() 102 if (nread == 0) { in fault_handler_thread() 107 if (nread == -1) { in fault_handler_thread()
|
/linux-6.1.9/drivers/char/ipmi/ |
D | bt-bmc.c | 183 ssize_t nread; in bt_bmc_read() local 214 nread = min_t(ssize_t, len, sizeof(kbuffer) - len_byte); in bt_bmc_read() 216 bt_readn(bt_bmc, kbuffer + len_byte, nread); in bt_bmc_read() 218 if (copy_to_user(buf, kbuffer, nread + len_byte)) { in bt_bmc_read() 222 len -= nread; in bt_bmc_read() 223 buf += nread + len_byte; in bt_bmc_read() 224 ret += nread + len_byte; in bt_bmc_read()
|
/linux-6.1.9/drivers/misc/c2port/ |
D | core.c | 630 u8 status, nread = 128; in __c2port_read_flash_data() local 637 if (ops->block_size * ops->blocks_num - offset < nread) in __c2port_read_flash_data() 638 nread = ops->block_size * ops->blocks_num - offset; in __c2port_read_flash_data() 639 if (count < nread) in __c2port_read_flash_data() 640 nread = count; in __c2port_read_flash_data() 641 if (nread == 0) in __c2port_read_flash_data() 642 return nread; in __c2port_read_flash_data() 683 c2port_write_dr(dev, nread); in __c2port_read_flash_data() 703 for (i = 0; i < nread; i++) { in __c2port_read_flash_data() 713 return nread; in __c2port_read_flash_data()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | pio_copy.c | 434 unsigned long nread; in mid_copy_mix() local 437 nread = 8 - pbuf->carry_bytes; in mid_copy_mix() 438 read_extra_bytes(pbuf, from, nread); in mid_copy_mix() 463 bytes_left -= nread; in mid_copy_mix() 464 from += nread; /* from is now not aligned */ in mid_copy_mix()
|
D | qsfp.c | 440 int nread; in qsfp_read() local 465 nread = len - count; in qsfp_read() 467 if (((addr % QSFP_RW_BOUNDARY) + nread) > QSFP_RW_BOUNDARY) in qsfp_read() 468 nread = QSFP_RW_BOUNDARY - (addr % QSFP_RW_BOUNDARY); in qsfp_read() 471 offset, bp + count, nread); in qsfp_read() 475 count += nread; in qsfp_read() 476 addr += nread; in qsfp_read()
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-npcm7xx.c | 793 static void npcm_i2c_set_fifo(struct npcm_i2c *bus, int nread, int nwrite) in npcm_i2c_set_fifo() argument 804 if (nread > 0) { in npcm_i2c_set_fifo() 805 rxf_ctl = min_t(int, nread, bus->data->fifo_size); in npcm_i2c_set_fifo() 808 if (nread <= bus->data->fifo_size) in npcm_i2c_set_fifo() 974 static void npcm_i2c_slave_receive(struct npcm_i2c *bus, u16 nread, in npcm_i2c_slave_receive() argument 979 bus->slv_rd_size = nread; in npcm_i2c_slave_receive() 2044 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument 2057 bus->rd_size = nread; in npcm_i2c_master_start_xmit() 2062 if (nread) in npcm_i2c_master_start_xmit() 2066 if (nread && !nwrite) in npcm_i2c_master_start_xmit() [all …]
|
/linux-6.1.9/fs/vboxsf/ |
D | file.c | 233 u32 nread = PAGE_SIZE; in vboxsf_read_folio() local 239 err = vboxsf_read(sf_handle->root, sf_handle->handle, off, &nread, buf); in vboxsf_read_folio() 241 memset(&buf[nread], 0, PAGE_SIZE - nread); in vboxsf_read_folio()
|
/linux-6.1.9/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 598 ssize_t nread; in do_read() local 667 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read() 670 (unsigned long long)file_offset, (int)nread); in do_read() 674 if (nread < 0) { in do_read() 675 LDBG(curlun, "error in file read: %d\n", (int)nread); in do_read() 676 nread = 0; in do_read() 677 } else if (nread < amount) { in do_read() 679 (int)nread, amount); in do_read() 680 nread = round_down(nread, curlun->blksize); in do_read() 682 file_offset += nread; in do_read() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | select_reuseport.c | 402 ssize_t nread; in do_test() local 436 nread = recv(new_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test() 437 RET_IF(nread != sizeof(rcv_cmd), in do_test() 440 ev.data.u32, nread, sizeof(rcv_cmd), errno); in do_test() 444 nread = recv(srv_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test() 445 RET_IF(nread != sizeof(rcv_cmd), in do_test() 448 ev.data.u32, nread, sizeof(rcv_cmd), errno); in do_test()
|
D | tc_redirect.c | 966 int direction, nread, nwrite; in tun_relay_loop() local 978 nread = read(direction == SRC_TO_TARGET ? src_fd : target_fd, buf, sizeof(buf)); in tun_relay_loop() 979 if (nread < 0) { in tun_relay_loop() 984 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop() 985 if (nwrite != nread) { in tun_relay_loop()
|
D | btf.c | 5320 ssize_t nread; in do_test_pprint() local 5385 while ((nread = getline(&line, &line_len, pin_file)) > 0 && in do_test_pprint() 5389 if (CHECK(nread <= 0, "Unexpected EOF")) { in do_test_pprint() 5432 nread = getline(&line, &line_len, pin_file); in do_test_pprint() 5433 if (nread < 0) in do_test_pprint() 5451 nread = getline(&line, &line_len, pin_file); in do_test_pprint() 5452 if (nread < 0) in do_test_pprint() 5456 nread = getline(&line, &line_len, pin_file); in do_test_pprint() 5457 } while (++nr_read_elems < test->max_entries && nread > 0); in do_test_pprint() 5467 if (CHECK(nread > 0, "Unexpected extra pprint output: %s", line)) { in do_test_pprint()
|
/linux-6.1.9/drivers/comedi/drivers/ |
D | dt282x.c | 310 int nread; member 476 devpriv->nread -= nsamples; in dt282x_ai_dma_interrupt() 477 if (devpriv->nread < 0) { in dt282x_ai_dma_interrupt() 479 devpriv->nread = 0; in dt282x_ai_dma_interrupt() 481 if (!devpriv->nread) { in dt282x_ai_dma_interrupt() 517 if (devpriv->nread != 0) { in dt282x_interrupt() 711 devpriv->nread = devpriv->ntrig; in dt282x_ai_cmd() 892 devpriv->nread = devpriv->ntrig; in dt282x_ao_cmd()
|
/linux-6.1.9/drivers/crypto/ccp/ |
D | sev-dev.c | 203 ssize_t nread; in sev_read_init_ex_file() local 227 nread = kernel_read(fp, sev_init_ex_buffer, NV_LENGTH, NULL); in sev_read_init_ex_file() 228 if (nread != NV_LENGTH) { in sev_read_init_ex_file() 231 NV_LENGTH, nread); in sev_read_init_ex_file() 234 dev_dbg(sev->dev, "SEV: read %ld bytes from NV file\n", nread); in sev_read_init_ex_file()
|
/linux-6.1.9/tools/perf/ |
D | builtin-daemon.c | 1364 ssize_t nread; in send_cmd() local 1385 while ((nread = getline(&line, &len, in)) != -1) { in send_cmd() 1386 if (fwrite(line, nread, 1, stdout) != 1) in send_cmd()
|
/linux-6.1.9/drivers/firmware/cirrus/ |
D | cs_dsp.c | 3257 int nread, i; in cs_dsp_chunk_read() local 3273 nread = min(ch->cachebits, nbits); in cs_dsp_chunk_read() 3274 nbits -= nread; in cs_dsp_chunk_read() 3276 result = ch->cache >> ((sizeof(ch->cache) * BITS_PER_BYTE) - nread); in cs_dsp_chunk_read() 3277 ch->cache <<= nread; in cs_dsp_chunk_read() 3278 ch->cachebits -= nread; in cs_dsp_chunk_read()
|
/linux-6.1.9/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 4317 ssize_t nread; in get_nth() local 4327 nread = getdelim(&line, &len, ' ', f); in get_nth() 4328 ASSERT_GE(nread, 0) { in get_nth() 4334 ASSERT_GT(nread, 0) { in get_nth() 4339 return nread - 1; in get_nth() 4446 ssize_t nread; in get_proc_syscall() local 4450 nread = get_nth(_metadata, proc_path, 1, &line); in get_proc_syscall() 4451 ASSERT_GT(nread, 0); in get_proc_syscall() 4453 if (!strncmp("running", line, MIN(7, nread))) in get_proc_syscall()
|
/linux-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | debug.c | 1023 u8 nread; in read_file_dump_nfcal() local 1032 nread = AR_PHY_CCA_FILTERWINDOW_LENGTH - h[i].invalidNFcount; in read_file_dump_nfcal() 1033 seq_printf(file, " %d\t %d\t %d\t\t", i, h[i].privNF, nread); in read_file_dump_nfcal() 1034 for (j = 0; j < nread; j++) in read_file_dump_nfcal()
|
/linux-6.1.9/fs/btrfs/ |
D | ctree.c | 1258 u64 nread = 0; in reada_for_search() local 1324 nread += blocksize; in reada_for_search() 1327 if (nread > nread_max || nscan > 32) in reada_for_search()
|
D | extent-tree.c | 5071 int nread = 0; in reada_walk_down() local 5086 if (nread >= wc->reada_count) in reada_walk_down() 5131 nread++; in reada_walk_down()
|