Lines Matching refs:nread
793 static void npcm_i2c_set_fifo(struct npcm_i2c *bus, int nread, int nwrite) in npcm_i2c_set_fifo() argument
804 if (nread > 0) { in npcm_i2c_set_fifo()
805 rxf_ctl = min_t(int, nread, bus->data->fifo_size); in npcm_i2c_set_fifo()
808 if (nread <= bus->data->fifo_size) in npcm_i2c_set_fifo()
974 static void npcm_i2c_slave_receive(struct npcm_i2c *bus, u16 nread, in npcm_i2c_slave_receive() argument
979 bus->slv_rd_size = nread; in npcm_i2c_slave_receive()
2044 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument
2057 bus->rd_size = nread; in npcm_i2c_master_start_xmit()
2062 if (nread) in npcm_i2c_master_start_xmit()
2066 if (nread && !nwrite) in npcm_i2c_master_start_xmit()
2093 u16 nwrite, nread; in npcm_i2c_master_xfer() local
2114 nread = 1; in npcm_i2c_master_xfer()
2119 nread = msg0->len; in npcm_i2c_master_xfer()
2124 nread = 0; in npcm_i2c_master_xfer()
2130 nread = 1; in npcm_i2c_master_xfer()
2135 nread = msg1->len; in npcm_i2c_master_xfer()
2146 timeout_usec = (2 * 9 * USEC_PER_SEC / bus->bus_freq) * (2 + nread + nwrite); in npcm_i2c_master_xfer()
2148 if (nwrite >= 32 * 1024 || nread >= 32 * 1024) { in npcm_i2c_master_xfer()
2189 if (npcm_i2c_master_start_xmit(bus, slave_addr, nwrite, nread, in npcm_i2c_master_xfer()