Lines Matching refs:commac

37 int mal_register_commac(struct mal_instance *mal, struct mal_commac *commac)  in mal_register_commac()  argument
44 commac->tx_chan_mask, commac->rx_chan_mask); in mal_register_commac()
47 if ((mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
48 (mal->rx_chan_mask & commac->rx_chan_mask)) { in mal_register_commac()
57 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
58 mal->rx_chan_mask |= commac->rx_chan_mask; in mal_register_commac()
59 list_add(&commac->list, &mal->list); in mal_register_commac()
67 struct mal_commac *commac) in mal_unregister_commac() argument
74 commac->tx_chan_mask, commac->rx_chan_mask); in mal_unregister_commac()
76 mal->tx_chan_mask &= ~commac->tx_chan_mask; in mal_unregister_commac()
77 mal->rx_chan_mask &= ~commac->rx_chan_mask; in mal_unregister_commac()
78 list_del_init(&commac->list); in mal_unregister_commac()
174 void mal_poll_add(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_add() argument
180 MAL_DBG(mal, "poll_add(%p)" NL, commac); in mal_poll_add()
183 set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags); in mal_poll_add()
185 list_add_tail(&commac->poll_list, &mal->poll_list); in mal_poll_add()
190 void mal_poll_del(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_del() argument
196 MAL_DBG(mal, "poll_del(%p)" NL, commac); in mal_poll_del()
198 list_del(&commac->poll_list); in mal_poll_del()
374 void mal_poll_disable(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_disable() argument
377 while (test_and_set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags)) in mal_poll_disable()
384 void mal_poll_enable(struct mal_instance *mal, struct mal_commac *commac) in mal_poll_enable() argument
387 clear_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags); in mal_poll_enable()