Lines Matching refs:nmsgs
108 struct i2c_msg *msg, int nmsgs) in xiic_read_rx() argument
142 struct i2c_msg *msg, int nmsgs) in xiic_fill_tx_fifo() argument
153 if ((msg->len - pos == 0) && nmsgs == 1) { in xiic_fill_tx_fifo()
162 u16 flags, u32 len, u32 nmsgs) in xilinx_xiic_set_addr() argument
172 if (nmsgs == 1 && len == 0) in xilinx_xiic_set_addr()
181 u32 nmsgs) in xilinx_xiic_read_common() argument
201 xilinx_xiic_set_addr(dev, msg->addr, msg->flags, msg->len, nmsgs); in xilinx_xiic_read_common()
205 writew((msg->len & 0xff) | ((nmsgs == 1) ? XIIC_TX_DYN_STOP_MASK : 0), in xilinx_xiic_read_common()
208 if (nmsgs == 1) in xilinx_xiic_read_common()
212 return xiic_read_rx(priv, msg, nmsgs); in xilinx_xiic_read_common()
216 int nmsgs) in xilinx_xiic_write_common() argument
221 xilinx_xiic_set_addr(dev, msg->addr, msg->flags, msg->len, nmsgs); in xilinx_xiic_write_common()
222 xiic_fill_tx_fifo(priv, msg, nmsgs); in xilinx_xiic_write_common()
268 static int xilinx_xiic_xfer(struct udevice *dev, struct i2c_msg *msg, int nmsgs) in xilinx_xiic_xfer() argument
284 for (; nmsgs > 0; nmsgs--, msg++) { in xilinx_xiic_xfer()
286 ret = xilinx_xiic_read_common(dev, msg, nmsgs); in xilinx_xiic_xfer()
288 ret = xilinx_xiic_write_common(dev, msg, nmsgs); in xilinx_xiic_xfer()