Lines Matching refs:sr
140 int sr; member
479 unsigned char sr; in sh_mobile_i2c_isr() local
482 sr = iic_rd(pd, ICSR); in sh_mobile_i2c_isr()
483 pd->sr |= sr; /* remember state */ in sh_mobile_i2c_isr()
485 dev_dbg(pd->dev, "i2c_isr 0x%02x 0x%02x %s %d %d!\n", sr, pd->sr, in sh_mobile_i2c_isr()
492 else if (sr & (ICSR_AL | ICSR_TACK)) in sh_mobile_i2c_isr()
494 iic_wr(pd, ICSR, sr & ~(ICSR_AL | ICSR_TACK)); in sh_mobile_i2c_isr()
504 if (sr & ICSR_WAIT) /* TODO: add delay here to support slow acks */ in sh_mobile_i2c_isr()
505 iic_wr(pd, ICSR, sr & ~ICSR_WAIT); in sh_mobile_i2c_isr()
508 pd->sr |= SW_DONE; in sh_mobile_i2c_isr()
664 pd->sr = 0; in start_ch()
700 dev_dbg(pd->dev, "val 0x%02x pd->sr 0x%02x\n", val, pd->sr); in poll_busy()
708 val |= pd->sr; in poll_busy()
749 pd->sr & (ICSR_TACK | SW_DONE), in sh_mobile_i2c_xfer()