Lines Matching refs:events
144 uint32_t events = 0; in port_start_close() local
154 events |= port_get_signal_changes(p_port, old_signals, in port_start_close()
157 if (p_port->ev_mask & PORT_EV_CONNECT_ERR) events |= PORT_EV_CONNECT_ERR; in port_start_close()
159 if (p_port->ev_mask & PORT_EV_ERR) events |= PORT_EV_ERR; in port_start_close()
161 if ((p_port->p_callback != NULL) && events) in port_start_close()
162 p_port->p_callback(events, p_port->handle); in port_start_close()
759 uint32_t events = 0; in PORT_DataInd() local
807 events |= PORT_EV_RXFLAG; in PORT_DataInd()
825 if (events & PORT_EV_RXFLAG) { in PORT_DataInd()
831 events |= PORT_EV_RXCHAR; in PORT_DataInd()
834 events &= p_port->ev_mask; in PORT_DataInd()
836 if (p_port->p_callback && events) p_port->p_callback(events, p_port->handle); in PORT_DataInd()
849 uint32_t events = 0; in PORT_FlowInd() local
871 events = 0; in PORT_FlowInd()
874 events |= port_flow_control_user(p_port); in PORT_FlowInd()
877 events |= port_rfc_send_tx_data(p_port); in PORT_FlowInd()
880 events &= p_port->ev_mask; in PORT_FlowInd()
883 if (p_port->p_callback && events) in PORT_FlowInd()
884 (p_port->p_callback)(events, p_port->handle); in PORT_FlowInd()
899 uint32_t events = 0; in port_rfc_send_tx_data() local
921 events |= PORT_EV_TXCHAR; in port_rfc_send_tx_data()
924 events |= PORT_EV_TXEMPTY; in port_rfc_send_tx_data()
932 events |= PORT_EV_TXEMPTY; in port_rfc_send_tx_data()
937 events |= port_flow_control_user(p_port); in port_rfc_send_tx_data()
939 return (events & p_port->ev_mask); in port_rfc_send_tx_data()
951 uint32_t events = 0; in port_rfc_closed() local
986 events |= port_get_signal_changes(p_port, old_signals, in port_rfc_closed()
989 if (p_port->ev_mask & PORT_EV_CONNECT_ERR) events |= PORT_EV_CONNECT_ERR; in port_rfc_closed()
992 if ((p_port->p_callback != NULL) && events) in port_rfc_closed()
993 p_port->p_callback(events, p_port->handle); in port_rfc_closed()