Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 10 of 10) sorted by relevance

/drivers/char/ipmi/
Dbt-bmc.c183 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()
/drivers/misc/c2port/
Dcore.c630 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/i2c/busses/
Di2c-npcm7xx.c790 static void npcm_i2c_set_fifo(struct npcm_i2c *bus, int nread, int nwrite) in npcm_i2c_set_fifo() argument
801 if (nread > 0) { in npcm_i2c_set_fifo()
802 rxf_ctl = min_t(int, nread, bus->data->fifo_size); in npcm_i2c_set_fifo()
805 if (nread <= bus->data->fifo_size) in npcm_i2c_set_fifo()
971 static void npcm_i2c_slave_receive(struct npcm_i2c *bus, u16 nread, in npcm_i2c_slave_receive() argument
976 bus->slv_rd_size = nread; in npcm_i2c_slave_receive()
2041 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument
2054 bus->rd_size = nread; in npcm_i2c_master_start_xmit()
2059 if (nread) in npcm_i2c_master_start_xmit()
2063 if (nread && !nwrite) in npcm_i2c_master_start_xmit()
[all …]
/drivers/infiniband/hw/hfi1/
Dpio_copy.c434 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()
Dqsfp.c440 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/usb/gadget/function/
Df_mass_storage.c614 ssize_t nread; in do_read() local
683 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read()
686 (unsigned long long)file_offset, (int)nread); in do_read()
690 if (nread < 0) { in do_read()
691 LDBG(curlun, "error in file read: %d\n", (int)nread); in do_read()
692 nread = 0; in do_read()
693 } else if (nread < amount) { in do_read()
695 (int)nread, amount); in do_read()
696 nread = round_down(nread, curlun->blksize); in do_read()
698 file_offset += nread; in do_read()
[all …]
/drivers/comedi/drivers/
Ddt282x.c310 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()
/drivers/crypto/ccp/
Dsev-dev.c204 ssize_t nread; in sev_read_init_ex_file() local
228 nread = kernel_read(fp, sev_init_ex_buffer, NV_LENGTH, NULL); in sev_read_init_ex_file()
229 if (nread != NV_LENGTH) { in sev_read_init_ex_file()
232 NV_LENGTH, nread); in sev_read_init_ex_file()
235 dev_dbg(sev->dev, "SEV: read %ld bytes from NV file\n", nread); in sev_read_init_ex_file()
/drivers/firmware/cirrus/
Dcs_dsp.c3258 int nread, i; in cs_dsp_chunk_read() local
3274 nread = min(ch->cachebits, nbits); in cs_dsp_chunk_read()
3275 nbits -= nread; in cs_dsp_chunk_read()
3277 result = ch->cache >> ((sizeof(ch->cache) * BITS_PER_BYTE) - nread); in cs_dsp_chunk_read()
3278 ch->cache <<= nread; in cs_dsp_chunk_read()
3279 ch->cachebits -= nread; in cs_dsp_chunk_read()
/drivers/net/wireless/ath/ath9k/
Ddebug.c1023 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()