Home
last modified time | relevance | path

Searched refs:nwrite (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/misc/c2port/
Dcore.c744 u8 status, nwrite = 128; in __c2port_write_flash_data() local
747 if (nwrite > count) in __c2port_write_flash_data()
748 nwrite = count; in __c2port_write_flash_data()
749 if (ops->block_size * ops->blocks_num - offset < nwrite) in __c2port_write_flash_data()
750 nwrite = ops->block_size * ops->blocks_num - offset; in __c2port_write_flash_data()
795 c2port_write_dr(dev, nwrite); in __c2port_write_flash_data()
815 for (i = 0; i < nwrite; i++) { in __c2port_write_flash_data()
831 return nwrite; in __c2port_write_flash_data()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dqsfp.c402 int nwrite; in qsfp_write() local
428 nwrite = len - count; in qsfp_write()
430 if (((addr % QSFP_RW_BOUNDARY) + nwrite) > QSFP_RW_BOUNDARY) in qsfp_write()
431 nwrite = QSFP_RW_BOUNDARY - (addr % QSFP_RW_BOUNDARY); in qsfp_write()
434 offset, bp + count, nwrite); in qsfp_write()
440 count += nwrite; in qsfp_write()
441 addr += nwrite; in qsfp_write()