Lines Matching refs:icr

137 	u32 icr;  member
159 .icr = 0x10,
168 .icr = 0x08,
177 .icr = 0x00,
186 .icr = 0x10,
197 .icr = 0x08,
404 unsigned long icr = readl(_ICR(i2c)); in i2c_pxa_abort() local
406 icr &= ~ICR_START; in i2c_pxa_abort()
407 icr |= ICR_ACKNAK | ICR_STOP | ICR_TB; in i2c_pxa_abort()
409 writel(icr, _ICR(i2c)); in i2c_pxa_abort()
791 u32 icr; in i2c_pxa_start_message() local
802 icr = readl(_ICR(i2c)) & ~(ICR_STOP | ICR_ALDIE); in i2c_pxa_start_message()
803 writel(icr | ICR_START | ICR_TB, _ICR(i2c)); in i2c_pxa_start_message()
808 u32 icr; in i2c_pxa_stop_message() local
811 icr = readl(_ICR(i2c)); in i2c_pxa_stop_message()
812 icr &= ~(ICR_START | ICR_STOP | ICR_ACKNAK | ICR_TB | ICR_MA); in i2c_pxa_stop_message()
813 writel(icr, _ICR(i2c)); in i2c_pxa_stop_message()
824 u32 icr; in i2c_pxa_send_mastercode() local
831 icr = readl(_ICR(i2c)) & ~(ICR_STOP | ICR_ALDIE); in i2c_pxa_send_mastercode()
832 icr |= ICR_GPIOEN | ICR_START | ICR_TB | ICR_ITEIE; in i2c_pxa_send_mastercode()
833 writel(icr, _ICR(i2c)); in i2c_pxa_send_mastercode()
861 u32 icr = readl(_ICR(i2c)) & ~(ICR_START|ICR_STOP|ICR_ACKNAK|ICR_TB); in i2c_pxa_irq_txempty() local
907 icr |= ICR_STOP | ICR_ACKNAK; in i2c_pxa_irq_txempty()
909 icr |= ICR_ALDIE | ICR_TB; in i2c_pxa_irq_txempty()
916 icr |= ICR_ALDIE | ICR_TB; in i2c_pxa_irq_txempty()
925 icr |= ICR_STOP; in i2c_pxa_irq_txempty()
952 icr &= ~ICR_ALDIE; in i2c_pxa_irq_txempty()
953 icr |= ICR_START | ICR_TB; in i2c_pxa_irq_txempty()
956 icr |= ICR_MA; in i2c_pxa_irq_txempty()
960 i2c->icrlog[i2c->irqlogidx-1] = icr; in i2c_pxa_irq_txempty()
962 writel(icr, _ICR(i2c)); in i2c_pxa_irq_txempty()
968 u32 icr = readl(_ICR(i2c)) & ~(ICR_START|ICR_STOP|ICR_ACKNAK|ICR_TB); in i2c_pxa_irq_rxfull() local
981 icr |= ICR_STOP | ICR_ACKNAK; in i2c_pxa_irq_rxfull()
983 icr |= ICR_ALDIE | ICR_TB; in i2c_pxa_irq_rxfull()
988 i2c->icrlog[i2c->irqlogidx-1] = icr; in i2c_pxa_irq_rxfull()
990 writel(icr, _ICR(i2c)); in i2c_pxa_irq_rxfull()
1416 i2c->reg_icr = i2c->reg_base + pxa_reg_layout[i2c_type].icr; in i2c_pxa_probe()