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()
1202 struct hooks *hooks = port->ip_hooks; in enable_intrs() local
1211 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, in enable_intrs()
1408 struct hooks *hooks = port->ip_hooks; in do_write() local
1475 enable_intrs(port, hooks->intr_tx_mt); in do_write()
1488 struct hooks *hooks = port->ip_hooks; in disable_intrs() local
1497 write_ireg(port->ip_ioc4_soft, hooks->intr_dma_error, in disable_intrs()
1509 struct hooks *hooks = port->ip_hooks; in set_notification() local
1517 intrbits |= (hooks->intr_rx_timer | hooks->intr_rx_high); in set_notification()
1519 intrbits |= hooks->intr_tx_explicit; in set_notification()
1521 intrbits |= hooks->intr_delta_dcd; in set_notification()
1525 intrbits |= hooks->intr_delta_cts; in set_notification()
1543 else if (!(port->ip_ienb & hooks->intr_tx_mt)) in set_notification()
1602 struct hooks *hooks = port->ip_hooks; in ioc4_set_proto() local
1607 writel(0, (&port->ip_mem->gppr[hooks->rs422_select_pin].raw)); in ioc4_set_proto()
1612 writel(1, (&port->ip_mem->gppr[hooks->rs422_select_pin].raw)); in ioc4_set_proto()
1838 struct hooks *hooks = port->ip_hooks; in handle_intr() local
1858 sio_ir &= ~(hooks->intr_tx_mt); in handle_intr()
1875 if (sio_ir & hooks->intr_delta_dcd) { in handle_intr()
1877 writel(hooks->intr_delta_dcd, in handle_intr()
1897 if (sio_ir & hooks->intr_delta_cts) { in handle_intr()
1899 writel(hooks->intr_delta_cts, in handle_intr()
1918 if (sio_ir & hooks->intr_rx_timer) { in handle_intr()
1920 writel(hooks->intr_rx_timer, in handle_intr()
1931 else if (sio_ir & hooks->intr_rx_high) { in handle_intr()
1948 if ((sio_ir = PENDING(port)) & hooks->intr_rx_high) { in handle_intr()
1950 port->ip_ienb &= ~hooks->intr_rx_high; in handle_intr()
1962 if (sio_ir & hooks->intr_tx_explicit) { in handle_intr()
1966 writel(hooks->intr_tx_explicit, in handle_intr()
1974 else if (sio_ir & hooks->intr_tx_mt) { in handle_intr()
1995 if (sio_ir & hooks->intr_tx_mt) { in handle_intr()
2012 port->ip_ienb &= ~hooks->intr_tx_mt; in handle_intr()
2021 if (rx_high_rd_aborted && (sio_ir == hooks->intr_rx_high)) { in handle_intr()
2022 sio_ir &= ~hooks->intr_rx_high; in handle_intr()
2024 } while (sio_ir & hooks->intr_all); in handle_intr()
2073 struct hooks *hooks; in do_read() local
2080 hooks = port->ip_hooks; in do_read()
2333 enable_intrs(port, hooks->intr_rx_high); in do_read()