Lines Matching refs:_ICR

218 #define _ICR(i2c)	((i2c)->reg_icr)  macro
301 readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_show_state()
316 readl(_IBMR(i2c)), readl(_IDBR(i2c)), readl(_ICR(i2c)), in i2c_pxa_scream_blue_murder()
340 return !(readl(_ICR(i2c)) & ICR_SCLE); in i2c_pxa_is_slavemode()
353 unsigned long icr = readl(_ICR(i2c)); in i2c_pxa_abort()
358 writel(icr, _ICR(i2c)); in i2c_pxa_abort()
366 writel(readl(_ICR(i2c)) & ~(ICR_MA | ICR_START | ICR_STOP), in i2c_pxa_abort()
367 _ICR(i2c)); in i2c_pxa_abort()
395 __func__, (long)jiffies, readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_wait_master()
435 writel(readl(_ICR(i2c)) | ICR_SCLE, _ICR(i2c)); in i2c_pxa_set_master()
451 __func__, (long)jiffies, readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_wait_slave()
455 (readl(_ICR(i2c)) & ICR_SCLE) == 0) { in i2c_pxa_wait_slave()
483 if (readl(_ICR(i2c)) & ICR_STOP) { in i2c_pxa_set_slave()
485 writel(readl(_ICR(i2c)) & ~ICR_STOP, _ICR(i2c)); in i2c_pxa_set_slave()
495 writel(readl(_ICR(i2c)) & ~(ICR_STOP|ICR_ACKNAK|ICR_MA), _ICR(i2c)); in i2c_pxa_set_slave()
496 writel(readl(_ICR(i2c)) & ~ICR_SCLE, _ICR(i2c)); in i2c_pxa_set_slave()
499 dev_dbg(&i2c->adap.dev, "ICR now %08x, ISR %08x\n", readl(_ICR(i2c)), readl(_ISR(i2c))); in i2c_pxa_set_slave()
500 decode_ICR(readl(_ICR(i2c))); in i2c_pxa_set_slave()
515 writel(ICR_UR, _ICR(i2c)); in i2c_pxa_reset()
517 writel(readl(_ICR(i2c)) & ~ICR_UR, _ICR(i2c)); in i2c_pxa_reset()
523 writel(I2C_ICR_INIT | (i2c->fast_mode ? i2c->fm_mask : 0), _ICR(i2c)); in i2c_pxa_reset()
524 writel(readl(_ICR(i2c)) | (i2c->high_mode ? i2c->hs_mask : 0), _ICR(i2c)); in i2c_pxa_reset()
528 writel(readl(_ICR(i2c)) | ICR_SADIE | ICR_ALDIE | ICR_SSDIE, _ICR(i2c)); in i2c_pxa_reset()
534 writel(readl(_ICR(i2c)) | ICR_IUE, _ICR(i2c)); in i2c_pxa_reset()
555 writel(readl(_ICR(i2c)) | ICR_TB, _ICR(i2c)); /* allow next byte */ in i2c_pxa_slave_txempty()
566 writel(readl(_ICR(i2c)) | ICR_TB, _ICR(i2c)); in i2c_pxa_slave_rxfull()
586 writel(readl(_ICR(i2c)) & ~(ICR_START|ICR_STOP), _ICR(i2c)); in i2c_pxa_slave_start()
587 writel(readl(_ICR(i2c)) | ICR_TB, _ICR(i2c)); in i2c_pxa_slave_start()
603 writel(readl(_ICR(i2c)) & ~ICR_SCLE, _ICR(i2c)); in i2c_pxa_slave_start()
631 writel(readl(_ICR(i2c)) | ICR_TB, _ICR(i2c)); in i2c_pxa_slave_txempty()
637 writel(readl(_ICR(i2c)) | ICR_TB | ICR_ACKNAK, _ICR(i2c)); in i2c_pxa_slave_rxfull()
649 writel(readl(_ICR(i2c)) & ~(ICR_START|ICR_STOP), _ICR(i2c)); in i2c_pxa_slave_start()
650 writel(readl(_ICR(i2c)) | ICR_TB | ICR_ACKNAK, _ICR(i2c)); in i2c_pxa_slave_start()
666 writel(readl(_ICR(i2c)) & ~ICR_SCLE, _ICR(i2c)); in i2c_pxa_slave_start()
703 icr = readl(_ICR(i2c)) & ~(ICR_STOP | ICR_ALDIE); in i2c_pxa_start_message()
704 writel(icr | ICR_START | ICR_TB, _ICR(i2c)); in i2c_pxa_start_message()
712 icr = readl(_ICR(i2c)); in i2c_pxa_stop_message()
714 writel(icr, _ICR(i2c)); in i2c_pxa_stop_message()
740 writel(readl(_ICR(i2c)) | ICR_SCLE, _ICR(i2c)); in i2c_pxa_pio_set_master()
760 icr = readl(_ICR(i2c)) & ~(ICR_STOP | ICR_ALDIE); in i2c_pxa_send_mastercode()
762 writel(icr, _ICR(i2c)); in i2c_pxa_send_mastercode()
888 if (!(readl(_ICR(i2c)) & ICR_IUE)) in i2c_pxa_pio_xfer()
924 u32 icr = readl(_ICR(i2c)) & ~(ICR_START|ICR_STOP|ICR_ACKNAK|ICR_TB); in i2c_pxa_irq_txempty()
1031 writel(icr, _ICR(i2c)); in i2c_pxa_irq_txempty()
1037 u32 icr = readl(_ICR(i2c)) & ~(ICR_START|ICR_STOP|ICR_ACKNAK|ICR_TB); in i2c_pxa_irq_rxfull()
1059 writel(icr, _ICR(i2c)); in i2c_pxa_irq_rxfull()
1074 __func__, isr, readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_handler()