Lines Matching refs:hooks
478 struct hooks *ip_hooks;
523 struct hooks { struct
536 static struct hooks hooks_array[IOC4_NUM_SERIAL_PORTS] = { argument
830 struct hooks *hooks = port->ip_hooks; in port_init() local
908 write_ireg(port->ip_ioc4_soft, hooks->intr_clear, in port_init()
910 port->ip_ienb &= ~hooks->intr_clear; in port_init()
911 writel(hooks->intr_clear, &port->ip_mem->sio_ir.raw); in port_init()
924 struct hooks *hooks = port->ip_hooks; in handle_dma_error_intr() local
930 writel(hooks->intr_dma_error, &port->ip_mem->other_ir.raw); in handle_dma_error_intr()
955 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, IOC4_W_IES, in handle_dma_error_intr()
1201 struct hooks *hooks = port->ip_hooks; in enable_intrs() local
1210 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, in enable_intrs()
1407 struct hooks *hooks = port->ip_hooks; in do_write() local
1474 enable_intrs(port, hooks->intr_tx_mt); in do_write()
1487 struct hooks *hooks = port->ip_hooks; in disable_intrs() local
1496 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, in disable_intrs()
1508 struct hooks *hooks = port->ip_hooks; in set_notification() local
1516 intrbits |= (hooks->intr_rx_timer | hooks->intr_rx_high); in set_notification()
1518 intrbits |= hooks->intr_tx_explicit; in set_notification()
1520 intrbits |= hooks->intr_delta_dcd; in set_notification()
1524 intrbits |= hooks->intr_delta_cts; in set_notification()
1542 else if (!(port->ip_ienb & hooks->intr_tx_mt)) in set_notification()
1601 struct hooks *hooks = port->ip_hooks; in ioc4_set_proto() local
1606 writel(0, (&port->ip_mem->gppr[hooks->rs422_select_pin].raw)); in ioc4_set_proto()
1611 writel(1, (&port->ip_mem->gppr[hooks->rs422_select_pin].raw)); in ioc4_set_proto()
1837 struct hooks *hooks = port->ip_hooks; in handle_intr() local
1857 sio_ir &= ~(hooks->intr_tx_mt); in handle_intr()
1874 if (sio_ir & hooks->intr_delta_dcd) { in handle_intr()
1876 writel(hooks->intr_delta_dcd, in handle_intr()
1896 if (sio_ir & hooks->intr_delta_cts) { in handle_intr()
1898 writel(hooks->intr_delta_cts, in handle_intr()
1917 if (sio_ir & hooks->intr_rx_timer) { in handle_intr()
1919 writel(hooks->intr_rx_timer, in handle_intr()
1930 else if (sio_ir & hooks->intr_rx_high) { in handle_intr()
1947 if ((sio_ir = PENDING(port)) & hooks->intr_rx_high) { in handle_intr()
1949 port->ip_ienb &= ~hooks->intr_rx_high; in handle_intr()
1961 if (sio_ir & hooks->intr_tx_explicit) { in handle_intr()
1965 writel(hooks->intr_tx_explicit, in handle_intr()
1973 else if (sio_ir & hooks->intr_tx_mt) { in handle_intr()
1994 if (sio_ir & hooks->intr_tx_mt) { in handle_intr()
2011 port->ip_ienb &= ~hooks->intr_tx_mt; in handle_intr()
2020 if (rx_high_rd_aborted && (sio_ir == hooks->intr_rx_high)) { in handle_intr()
2021 sio_ir &= ~hooks->intr_rx_high; in handle_intr()
2023 } while (sio_ir & hooks->intr_all); in handle_intr()
2072 struct hooks *hooks; in do_read() local
2079 hooks = port->ip_hooks; in do_read()
2332 enable_intrs(port, hooks->intr_rx_high); in do_read()