Lines Matching defs:pos
80 * @pos: Current position in the send/receive buffer
98 int pos;
206 i2c->count = min(i2c->msg->len - i2c->pos, 8);
212 if (write || i2c->pos + i2c->count < i2c->msg->len)
219 meson_i2c_put_data(i2c, i2c->msg->buf + i2c->pos, i2c->count);
221 if (i2c->last && i2c->pos + i2c->count >= i2c->msg->len)
242 meson_i2c_get_data(i2c, i2c->msg->buf + i2c->pos,
245 i2c->pos += i2c->count;
247 if (i2c->pos >= i2c->msg->len)
263 dev_dbg(i2c->dev, "irq: state %d, pos %d, count %d, ctrl %08x\n",
264 i2c->state, i2c->pos, i2c->count, ctrl);
311 i2c->pos = 0;