Lines Matching refs:commac
34 int mal_register_commac(struct mal_instance *mal, struct mal_commac *commac) in mal_register_commac() argument
41 commac->tx_chan_mask, commac->rx_chan_mask); in mal_register_commac()
44 if ((mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
45 (mal->rx_chan_mask & commac->rx_chan_mask)) { in mal_register_commac()
54 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
55 mal->rx_chan_mask |= commac->rx_chan_mask; in mal_register_commac()
56 list_add(&commac->list, &mal->list); in mal_register_commac()
64 struct mal_commac *commac) in mal_unregister_commac() argument
71 commac->tx_chan_mask, commac->rx_chan_mask); in mal_unregister_commac()
73 mal->tx_chan_mask &= ~commac->tx_chan_mask; in mal_unregister_commac()
74 mal->rx_chan_mask &= ~commac->rx_chan_mask; in mal_unregister_commac()
75 list_del_init(&commac->list); in mal_unregister_commac()
171 void mal_poll_add(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_add() argument
177 MAL_DBG(mal, "poll_add(%p)" NL, commac); in mal_poll_add()
180 set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags); in mal_poll_add()
182 list_add_tail(&commac->poll_list, &mal->poll_list); in mal_poll_add()
187 void mal_poll_del(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_del() argument
193 MAL_DBG(mal, "poll_del(%p)" NL, commac); in mal_poll_del()
195 list_del(&commac->poll_list); in mal_poll_del()
371 void mal_poll_disable(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_disable() argument
374 while (test_and_set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags)) in mal_poll_disable()
381 void mal_poll_enable(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_enable() argument
384 clear_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags); in mal_poll_enable()