Lines Matching refs:sr
140 int sr; member
483 unsigned char sr; in sh_mobile_i2c_isr() local
486 sr = iic_rd(pd, ICSR); in sh_mobile_i2c_isr()
487 pd->sr |= sr; /* remember state */ in sh_mobile_i2c_isr()
489 dev_dbg(pd->dev, "i2c_isr 0x%02x 0x%02x %s %d %d!\n", sr, pd->sr, in sh_mobile_i2c_isr()
496 else if (sr & (ICSR_AL | ICSR_TACK)) in sh_mobile_i2c_isr()
498 iic_wr(pd, ICSR, sr & ~(ICSR_AL | ICSR_TACK)); in sh_mobile_i2c_isr()
508 if (sr & ICSR_WAIT) /* TODO: add delay here to support slow acks */ in sh_mobile_i2c_isr()
509 iic_wr(pd, ICSR, sr & ~ICSR_WAIT); in sh_mobile_i2c_isr()
512 pd->sr |= SW_DONE; in sh_mobile_i2c_isr()
668 pd->sr = 0; in start_ch()
704 dev_dbg(pd->dev, "val 0x%02x pd->sr 0x%02x\n", val, pd->sr); in poll_busy()
712 val |= pd->sr; in poll_busy()
754 pd->sr & (ICSR_TACK | SW_DONE), in sh_mobile_i2c_xfer()