Lines Matching refs:nread
767 static void npcm_i2c_set_fifo(struct npcm_i2c *bus, int nread, int nwrite) in npcm_i2c_set_fifo() argument
778 if (nread > 0) { in npcm_i2c_set_fifo()
779 rxf_ctl = min_t(int, nread, I2C_HW_FIFO_SIZE); in npcm_i2c_set_fifo()
782 if (nread <= I2C_HW_FIFO_SIZE) in npcm_i2c_set_fifo()
948 static void npcm_i2c_slave_receive(struct npcm_i2c *bus, u16 nread, in npcm_i2c_slave_receive() argument
953 bus->slv_rd_size = nread; in npcm_i2c_slave_receive()
2018 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument
2031 bus->rd_size = nread; in npcm_i2c_master_start_xmit()
2036 if (nread) in npcm_i2c_master_start_xmit()
2040 if (nread && !nwrite) in npcm_i2c_master_start_xmit()
2067 u16 nwrite, nread; in npcm_i2c_master_xfer() local
2088 nread = 1; in npcm_i2c_master_xfer()
2093 nread = msg0->len; in npcm_i2c_master_xfer()
2098 nread = 0; in npcm_i2c_master_xfer()
2104 nread = 1; in npcm_i2c_master_xfer()
2109 nread = msg1->len; in npcm_i2c_master_xfer()
2120 timeout_usec = (2 * 9 * USEC_PER_SEC / bus->bus_freq) * (2 + nread + nwrite); in npcm_i2c_master_xfer()
2122 if (nwrite >= 32 * 1024 || nread >= 32 * 1024) { in npcm_i2c_master_xfer()
2163 if (npcm_i2c_master_start_xmit(bus, slave_addr, nwrite, nread, in npcm_i2c_master_xfer()