Lines Matching refs:mdidx
93 i2c->mdidx = -1; in ppc4xx_i2c_reset()
115 if (i2c->mdidx < 0) { in ppc4xx_i2c_readb()
120 if (i2c->mdidx == 3) { in ppc4xx_i2c_readb()
122 } else if (i2c->mdidx == 0) { in ppc4xx_i2c_readb()
125 for (i = 0; i < i2c->mdidx; i++) { in ppc4xx_i2c_readb()
128 if (i2c->mdidx >= 0) { in ppc4xx_i2c_readb()
129 i2c->mdidx--; in ppc4xx_i2c_readb()
193 if (i2c->mdidx >= 3) { in ppc4xx_i2c_writeb()
196 i2c->mdata[++i2c->mdidx] = value; in ppc4xx_i2c_writeb()
197 if (i2c->mdidx == 3) { in ppc4xx_i2c_writeb()
199 } else if (i2c->mdidx == 0) { in ppc4xx_i2c_writeb()
257 i2c->mdidx = i - 1; in ppc4xx_i2c_writeb()
258 if (recv && i2c->mdidx >= 0) { in ppc4xx_i2c_writeb()
261 if (recv && i2c->mdidx == 3) { in ppc4xx_i2c_writeb()
278 i2c->mdidx = -1; in ppc4xx_i2c_writeb()