Lines Matching refs:xfer_len
129 int xfer_len = 0; in wmt_i2c_write() local
142 xfer_len = -1; in wmt_i2c_write()
175 while (xfer_len < pmsg->len) { in wmt_i2c_write()
186 xfer_len++; in wmt_i2c_write()
200 if (xfer_len == pmsg->len) { in wmt_i2c_write()
204 writew(pmsg->buf[xfer_len] & 0xFF, i2c_dev->base + in wmt_i2c_write()
220 u32 xfer_len = 0; in wmt_i2c_read() local
265 while (xfer_len < pmsg->len) { in wmt_i2c_read()
276 pmsg->buf[xfer_len] = readw(i2c_dev->base + REG_CDR) >> 8; in wmt_i2c_read()
277 xfer_len++; in wmt_i2c_read()
279 if (xfer_len == pmsg->len - 1) { in wmt_i2c_read()