Lines Matching defs:pos
78 * @pos: Current position in the send/receive buffer
96 int pos;
256 i2c->count = min(i2c->msg->len - i2c->pos, 8);
262 if (write || i2c->pos + i2c->count < i2c->msg->len)
269 meson_i2c_put_data(i2c, i2c->msg->buf + i2c->pos, i2c->count);
271 if (i2c->last && i2c->pos + i2c->count >= i2c->msg->len)
292 meson_i2c_get_data(i2c, i2c->msg->buf + i2c->pos,
295 i2c->pos += i2c->count;
297 if (i2c->pos >= i2c->msg->len)
313 dev_dbg(i2c->dev, "irq: state %d, pos %d, count %d, ctrl %08x\n",
314 i2c->state, i2c->pos, i2c->count, ctrl);
361 i2c->pos = 0;