Lines Matching refs:hooks

475 	struct hooks *ip_hooks;
520 struct hooks { struct
533 static struct hooks hooks_array[IOC4_NUM_SERIAL_PORTS] = { argument
827 struct hooks *hooks = port->ip_hooks; in port_init() local
905 write_ireg(port->ip_ioc4_soft, hooks->intr_clear, in port_init()
907 port->ip_ienb &= ~hooks->intr_clear; in port_init()
908 writel(hooks->intr_clear, &port->ip_mem->sio_ir.raw); in port_init()
921 struct hooks *hooks = port->ip_hooks; in handle_dma_error_intr() local
927 writel(hooks->intr_dma_error, &port->ip_mem->other_ir.raw); in handle_dma_error_intr()
952 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, IOC4_W_IES, in handle_dma_error_intr()
1204 struct hooks *hooks = port->ip_hooks; in enable_intrs() local
1213 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, in enable_intrs()
1410 struct hooks *hooks = port->ip_hooks; in do_write() local
1477 enable_intrs(port, hooks->intr_tx_mt); in do_write()
1490 struct hooks *hooks = port->ip_hooks; in disable_intrs() local
1499 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, in disable_intrs()
1511 struct hooks *hooks = port->ip_hooks; in set_notification() local
1519 intrbits |= (hooks->intr_rx_timer | hooks->intr_rx_high); in set_notification()
1521 intrbits |= hooks->intr_tx_explicit; in set_notification()
1523 intrbits |= hooks->intr_delta_dcd; in set_notification()
1527 intrbits |= hooks->intr_delta_cts; in set_notification()
1545 else if (!(port->ip_ienb & hooks->intr_tx_mt)) in set_notification()
1604 struct hooks *hooks = port->ip_hooks; in ioc4_set_proto() local
1609 writel(0, (&port->ip_mem->gppr[hooks->rs422_select_pin].raw)); in ioc4_set_proto()
1614 writel(1, (&port->ip_mem->gppr[hooks->rs422_select_pin].raw)); in ioc4_set_proto()
1840 struct hooks *hooks = port->ip_hooks; in handle_intr() local
1860 sio_ir &= ~(hooks->intr_tx_mt); in handle_intr()
1877 if (sio_ir & hooks->intr_delta_dcd) { in handle_intr()
1879 writel(hooks->intr_delta_dcd, in handle_intr()
1899 if (sio_ir & hooks->intr_delta_cts) { in handle_intr()
1901 writel(hooks->intr_delta_cts, in handle_intr()
1920 if (sio_ir & hooks->intr_rx_timer) { in handle_intr()
1922 writel(hooks->intr_rx_timer, in handle_intr()
1933 else if (sio_ir & hooks->intr_rx_high) { in handle_intr()
1950 if ((sio_ir = PENDING(port)) & hooks->intr_rx_high) { in handle_intr()
1952 port->ip_ienb &= ~hooks->intr_rx_high; in handle_intr()
1964 if (sio_ir & hooks->intr_tx_explicit) { in handle_intr()
1968 writel(hooks->intr_tx_explicit, in handle_intr()
1976 else if (sio_ir & hooks->intr_tx_mt) { in handle_intr()
1997 if (sio_ir & hooks->intr_tx_mt) { in handle_intr()
2014 port->ip_ienb &= ~hooks->intr_tx_mt; in handle_intr()
2023 if (rx_high_rd_aborted && (sio_ir == hooks->intr_rx_high)) { in handle_intr()
2024 sio_ir &= ~hooks->intr_rx_high; in handle_intr()
2026 } while (sio_ir & hooks->intr_all); in handle_intr()
2075 struct hooks *hooks; in do_read() local
2082 hooks = port->ip_hooks; in do_read()
2335 enable_intrs(port, hooks->intr_rx_high); in do_read()