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