Lines Matching refs:isr
138 u32 isr; member
160 .isr = 0x18,
169 .isr = 0x0c,
178 .isr = 0x04,
187 .isr = 0x18,
198 .isr = 0x0c,
424 u32 isr; in i2c_pxa_wait_bus_not_busy() local
427 isr = readl(_ISR(i2c)); in i2c_pxa_wait_bus_not_busy()
428 if (!(isr & (ISR_IBB | ISR_UB))) in i2c_pxa_wait_bus_not_busy()
431 if (isr & ISR_SAD) in i2c_pxa_wait_bus_not_busy()
611 static void i2c_pxa_slave_txempty(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_slave_txempty() argument
613 if (isr & ISR_BED) { in i2c_pxa_slave_txempty()
627 static void i2c_pxa_slave_rxfull(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_slave_rxfull() argument
637 static void i2c_pxa_slave_start(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_slave_start() argument
643 (isr & ISR_RWM) ? 'r' : 't'); in i2c_pxa_slave_start()
646 if (isr & ISR_RWM) { in i2c_pxa_slave_start()
734 static void i2c_pxa_slave_txempty(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_slave_txempty() argument
736 if (isr & ISR_BED) { in i2c_pxa_slave_txempty()
744 static void i2c_pxa_slave_rxfull(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_slave_rxfull() argument
749 static void i2c_pxa_slave_start(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_slave_start() argument
859 static void i2c_pxa_irq_txempty(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_irq_txempty() argument
867 if (isr & ISR_ALD) { in i2c_pxa_irq_txempty()
883 if ((isr & ISR_BED) && in i2c_pxa_irq_txempty()
885 (isr & ISR_ACKNAK)))) { in i2c_pxa_irq_txempty()
893 if (isr & ISR_ACKNAK) { in i2c_pxa_irq_txempty()
900 } else if (isr & ISR_RWM) { in i2c_pxa_irq_txempty()
966 static void i2c_pxa_irq_rxfull(struct pxa_i2c *i2c, u32 isr) in i2c_pxa_irq_rxfull() argument
998 u32 isr = readl(_ISR(i2c)); in i2c_pxa_handler() local
1000 if (!(isr & VALID_INT_SOURCE)) in i2c_pxa_handler()
1005 __func__, isr, readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_handler()
1006 decode_ISR(isr); in i2c_pxa_handler()
1010 i2c->isrlog[i2c->irqlogidx++] = isr; in i2c_pxa_handler()
1017 writel(isr & VALID_INT_SOURCE, _ISR(i2c)); in i2c_pxa_handler()
1019 if (isr & ISR_SAD) in i2c_pxa_handler()
1020 i2c_pxa_slave_start(i2c, isr); in i2c_pxa_handler()
1021 if (isr & ISR_SSD) in i2c_pxa_handler()
1025 if (isr & ISR_ITE) in i2c_pxa_handler()
1026 i2c_pxa_slave_txempty(i2c, isr); in i2c_pxa_handler()
1027 if (isr & ISR_IRF) in i2c_pxa_handler()
1028 i2c_pxa_slave_rxfull(i2c, isr); in i2c_pxa_handler()
1030 if (isr & ISR_ITE) in i2c_pxa_handler()
1031 i2c_pxa_irq_txempty(i2c, isr); in i2c_pxa_handler()
1032 if (isr & ISR_IRF) in i2c_pxa_handler()
1033 i2c_pxa_irq_rxfull(i2c, isr); in i2c_pxa_handler()
1034 } else if ((isr & ISR_ITE) && i2c->highmode_enter) { in i2c_pxa_handler()
1311 u32 isr; in i2c_pxa_unprepare_recovery() local
1317 isr = readl(_ISR(i2c)); in i2c_pxa_unprepare_recovery()
1318 if (isr & (ISR_UB | ISR_IBB)) { in i2c_pxa_unprepare_recovery()
1320 "recovery: resetting controller, ISR=0x%08x\n", isr); in i2c_pxa_unprepare_recovery()
1417 i2c->reg_isr = i2c->reg_base + pxa_reg_layout[i2c_type].isr; in i2c_pxa_probe()