Lines Matching refs:value
186 static void ppc4xx_i2c_writeb(void *opaque, hwaddr addr, uint64_t value, in ppc4xx_i2c_writeb() argument
196 i2c->mdata[++i2c->mdidx] = value; in ppc4xx_i2c_writeb()
204 i2c->lmadr = value; in ppc4xx_i2c_writeb()
207 i2c->hmadr = value; in ppc4xx_i2c_writeb()
210 i2c->cntl = value & ~IIC_CNTL_PT; in ppc4xx_i2c_writeb()
211 if (value & IIC_CNTL_AMD) { in ppc4xx_i2c_writeb()
215 if (value & IIC_CNTL_HMT && i2c_bus_busy(i2c->bus)) { in ppc4xx_i2c_writeb()
222 } else if (value & IIC_CNTL_PT) { in ppc4xx_i2c_writeb()
223 int recv = (value & IIC_CNTL_READ) >> 1; in ppc4xx_i2c_writeb()
224 int tct = value >> 4 & 3; in ppc4xx_i2c_writeb()
229 value |= IIC_CNTL_RPST; in ppc4xx_i2c_writeb()
252 if (value & IIC_CNTL_RPST || !(value & IIC_CNTL_CHT)) { in ppc4xx_i2c_writeb()
272 i2c->mdcntl = value & 0x3d; in ppc4xx_i2c_writeb()
273 if (value & IIC_MDCNTL_ESM) { in ppc4xx_i2c_writeb()
277 if (value & IIC_MDCNTL_FMDB) { in ppc4xx_i2c_writeb()
284 i2c->sts &= ~(value & 0x0a); in ppc4xx_i2c_writeb()
285 if (value & IIC_STS_IRQA && i2c->mdcntl & IIC_MDCNTL_EINT) { in ppc4xx_i2c_writeb()
290 i2c->extsts &= ~(value & 0x8f); in ppc4xx_i2c_writeb()
293 i2c->lsadr = value; in ppc4xx_i2c_writeb()
296 i2c->hsadr = value; in ppc4xx_i2c_writeb()
299 i2c->clkdiv = value; in ppc4xx_i2c_writeb()
302 i2c->intrmsk = value; in ppc4xx_i2c_writeb()
305 i2c->xfrcnt = value & 0x77; in ppc4xx_i2c_writeb()
308 i2c->xtcntlss &= ~(value & 0xf0); in ppc4xx_i2c_writeb()
309 if (value & IIC_XTCNTLSS_SRST) { in ppc4xx_i2c_writeb()
316 i2c->directcntl = value & (IIC_DIRECTCNTL_SDAC & IIC_DIRECTCNTL_SCLC); in ppc4xx_i2c_writeb()
317 i2c->directcntl |= (value & IIC_DIRECTCNTL_SCLC ? 1 : 0); in ppc4xx_i2c_writeb()
321 (value & IIC_DIRECTCNTL_SDAC) != 0) << 1; in ppc4xx_i2c_writeb()