Searched refs:nread (Results 1 – 5 of 5) sorted by relevance
/drivers/misc/c2port/ |
D | core.c | 634 u8 status, nread = 128; in __c2port_read_flash_data() local 641 if (ops->block_size * ops->blocks_num - offset < nread) in __c2port_read_flash_data() 642 nread = ops->block_size * ops->blocks_num - offset; in __c2port_read_flash_data() 643 if (count < nread) in __c2port_read_flash_data() 644 nread = count; in __c2port_read_flash_data() 645 if (nread == 0) in __c2port_read_flash_data() 646 return nread; in __c2port_read_flash_data() 687 c2port_write_dr(dev, nread); in __c2port_read_flash_data() 707 for (i = 0; i < nread; i++) { in __c2port_read_flash_data() 717 return nread; in __c2port_read_flash_data()
|
/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 658 ssize_t nread; in do_read() local 726 nread = vfs_read(curlun->filp, in do_read() 730 (unsigned long long)file_offset, (int)nread); in do_read() 734 if (nread < 0) { in do_read() 735 LDBG(curlun, "error in file read: %d\n", (int)nread); in do_read() 736 nread = 0; in do_read() 737 } else if (nread < amount) { in do_read() 739 (int)nread, amount); in do_read() 740 nread = round_down(nread, curlun->blksize); in do_read() 742 file_offset += nread; in do_read() [all …]
|
/drivers/staging/rdma/hfi1/ |
D | qsfp.c | 247 int nread; in qsfp_read() local 274 nread = len - count; in qsfp_read() 275 if ((offset + nread) > QSFP_PAGESIZE) in qsfp_read() 276 nread = QSFP_PAGESIZE - offset; in qsfp_read() 279 nread); in qsfp_read()
|
/drivers/staging/comedi/drivers/ |
D | dt282x.c | 310 int nread; member 474 devpriv->nread -= nsamples; in dt282x_ai_dma_interrupt() 475 if (devpriv->nread < 0) { in dt282x_ai_dma_interrupt() 477 devpriv->nread = 0; in dt282x_ai_dma_interrupt() 479 if (!devpriv->nread) { in dt282x_ai_dma_interrupt() 522 if (devpriv->nread != 0) { in dt282x_interrupt() 544 devpriv->nread--; in dt282x_interrupt() 545 if (!devpriv->nread) { in dt282x_interrupt() 742 devpriv->nread = devpriv->ntrig; in dt282x_ai_cmd() 923 devpriv->nread = devpriv->ntrig; in dt282x_ao_cmd()
|
/drivers/net/wireless/ath/ath9k/ |
D | debug.c | 958 u8 nread; in read_file_dump_nfcal() local 967 nread = AR_PHY_CCA_FILTERWINDOW_LENGTH - h[i].invalidNFcount; in read_file_dump_nfcal() 968 seq_printf(file, " %d\t %d\t %d\t\t", i, h[i].privNF, nread); in read_file_dump_nfcal() 969 for (j = 0; j < nread; j++) in read_file_dump_nfcal()
|