Searched refs:nread (Results 1 – 8 of 8) sorted by relevance
/drivers/char/ipmi/ |
D | bt-bmc.c | 201 ssize_t nread; in bt_bmc_read() local 232 nread = min_t(ssize_t, len, sizeof(kbuffer) - len_byte); in bt_bmc_read() 234 bt_readn(bt_bmc, kbuffer + len_byte, nread); in bt_bmc_read() 236 if (copy_to_user(buf, kbuffer, nread + len_byte)) { in bt_bmc_read() 240 len -= nread; in bt_bmc_read() 241 buf += nread + len_byte; in bt_bmc_read() 242 ret += nread + len_byte; in bt_bmc_read()
|
/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()
|
/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 613 ssize_t nread; in do_read() local 679 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read() 682 (unsigned long long)file_offset, (int)nread); in do_read() 686 if (nread < 0) { in do_read() 687 LDBG(curlun, "error in file read: %d\n", (int)nread); in do_read() 688 nread = 0; in do_read() 689 } else if (nread < amount) { in do_read() 691 (int)nread, amount); in do_read() 692 nread = round_down(nread, curlun->blksize); in do_read() 694 file_offset += nread; in do_read() [all …]
|
/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()
|
/drivers/i2c/busses/ |
D | i2c-npcm7xx.c | 767 static void npcm_i2c_set_fifo(struct npcm_i2c *bus, int nread, int nwrite) in npcm_i2c_set_fifo() argument 778 if (nread > 0) { in npcm_i2c_set_fifo() 779 rxf_ctl = min_t(int, nread, I2C_HW_FIFO_SIZE); in npcm_i2c_set_fifo() 782 if (nread <= I2C_HW_FIFO_SIZE) in npcm_i2c_set_fifo() 948 static void npcm_i2c_slave_receive(struct npcm_i2c *bus, u16 nread, in npcm_i2c_slave_receive() argument 953 bus->slv_rd_size = nread; in npcm_i2c_slave_receive() 2018 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument 2031 bus->rd_size = nread; in npcm_i2c_master_start_xmit() 2036 if (nread) in npcm_i2c_master_start_xmit() 2040 if (nread && !nwrite) in npcm_i2c_master_start_xmit() [all …]
|
/drivers/comedi/drivers/ |
D | dt282x.c | 312 int nread; member 478 devpriv->nread -= nsamples; in dt282x_ai_dma_interrupt() 479 if (devpriv->nread < 0) { in dt282x_ai_dma_interrupt() 481 devpriv->nread = 0; in dt282x_ai_dma_interrupt() 483 if (!devpriv->nread) { in dt282x_ai_dma_interrupt() 519 if (devpriv->nread != 0) { in dt282x_interrupt() 713 devpriv->nread = devpriv->ntrig; in dt282x_ai_cmd() 894 devpriv->nread = devpriv->ntrig; in dt282x_ao_cmd()
|
/drivers/net/wireless/ath/ath9k/ |
D | debug.c | 974 u8 nread; in read_file_dump_nfcal() local 983 nread = AR_PHY_CCA_FILTERWINDOW_LENGTH - h[i].invalidNFcount; in read_file_dump_nfcal() 984 seq_printf(file, " %d\t %d\t %d\t\t", i, h[i].privNF, nread); in read_file_dump_nfcal() 985 for (j = 0; j < nread; j++) in read_file_dump_nfcal()
|