Lines Matching refs:commac
32 int mal_register_commac(struct mal_instance *mal, struct mal_commac *commac) in mal_register_commac() argument
39 commac->tx_chan_mask, commac->rx_chan_mask); in mal_register_commac()
42 if ((mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
43 (mal->rx_chan_mask & commac->rx_chan_mask)) { in mal_register_commac()
52 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
53 mal->rx_chan_mask |= commac->rx_chan_mask; in mal_register_commac()
54 list_add(&commac->list, &mal->list); in mal_register_commac()
62 struct mal_commac *commac) in mal_unregister_commac() argument
69 commac->tx_chan_mask, commac->rx_chan_mask); in mal_unregister_commac()
71 mal->tx_chan_mask &= ~commac->tx_chan_mask; in mal_unregister_commac()
72 mal->rx_chan_mask &= ~commac->rx_chan_mask; in mal_unregister_commac()
73 list_del_init(&commac->list); in mal_unregister_commac()
169 void mal_poll_add(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_add() argument
175 MAL_DBG(mal, "poll_add(%p)" NL, commac); in mal_poll_add()
178 set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags); in mal_poll_add()
180 list_add_tail(&commac->poll_list, &mal->poll_list); in mal_poll_add()
185 void mal_poll_del(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_del() argument
191 MAL_DBG(mal, "poll_del(%p)" NL, commac); in mal_poll_del()
193 list_del(&commac->poll_list); in mal_poll_del()
369 void mal_poll_disable(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_disable() argument
372 while (test_and_set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags)) in mal_poll_disable()
379 void mal_poll_enable(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_enable() argument
382 clear_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags); in mal_poll_enable()