Lines Matching refs:commac
37 struct mal_commac *commac)
44 commac->tx_chan_mask, commac->rx_chan_mask);
47 if ((mal->tx_chan_mask & commac->tx_chan_mask) ||
48 (mal->rx_chan_mask & commac->rx_chan_mask)) {
57 mal->tx_chan_mask |= commac->tx_chan_mask;
58 mal->rx_chan_mask |= commac->rx_chan_mask;
59 list_add(&commac->list, &mal->list);
67 struct mal_commac *commac)
74 commac->tx_chan_mask, commac->rx_chan_mask);
76 mal->tx_chan_mask &= ~commac->tx_chan_mask;
77 mal->rx_chan_mask &= ~commac->rx_chan_mask;
78 list_del_init(&commac->list);
174 void mal_poll_add(struct mal_instance *mal, struct mal_commac *commac)
180 MAL_DBG(mal, "poll_add(%p)" NL, commac);
183 set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags);
185 list_add_tail(&commac->poll_list, &mal->poll_list);
190 void mal_poll_del(struct mal_instance *mal, struct mal_commac *commac)
196 MAL_DBG(mal, "poll_del(%p)" NL, commac);
198 list_del(&commac->poll_list);
370 void mal_poll_disable(struct mal_instance *mal, struct mal_commac *commac)
373 while (test_and_set_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags))
380 void mal_poll_enable(struct mal_instance *mal, struct mal_commac *commac)
383 clear_bit(MAL_COMMAC_POLL_DISABLED, &commac->flags);
743 "mal%d: commac list is not empty on remove!\n",