Searched refs:nwrite (Results 1 – 3 of 3) sorted by relevance
/drivers/misc/c2port/ |
D | core.c | 741 u8 status, nwrite = 128; in __c2port_write_flash_data() local 744 if (nwrite > count) in __c2port_write_flash_data() 745 nwrite = count; in __c2port_write_flash_data() 746 if (ops->block_size * ops->blocks_num - offset < nwrite) in __c2port_write_flash_data() 747 nwrite = ops->block_size * ops->blocks_num - offset; in __c2port_write_flash_data() 792 c2port_write_dr(dev, nwrite); in __c2port_write_flash_data() 812 for (i = 0; i < nwrite; i++) { in __c2port_write_flash_data() 828 return nwrite; in __c2port_write_flash_data()
|
/drivers/infiniband/hw/hfi1/ |
D | qsfp.c | 402 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()
|
/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 800 if (nwrite > 0) { in npcm_i2c_set_fifo() 801 if (nwrite > I2C_HW_FIFO_SIZE) in npcm_i2c_set_fifo() 805 iowrite8(nwrite, bus->reg + NPCM_I2CTXF_CTL); in npcm_i2c_set_fifo() 962 static void npcm_i2c_slave_xmit(struct npcm_i2c *bus, u16 nwrite, in npcm_i2c_slave_xmit() argument 965 if (nwrite == 0) in npcm_i2c_slave_xmit() 972 npcm_i2c_write_fifo_slave(bus, nwrite); in npcm_i2c_slave_xmit() 2018 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument 2028 bus->wr_size = nwrite; in npcm_i2c_master_start_xmit() 2040 if (nread && !nwrite) in npcm_i2c_master_start_xmit() [all …]
|