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