Lines Matching refs:chan_num
103 int chan_num; member
113 int chan_num; member
163 #define is_rx_chan(chan) ((chan)->chan_num >= CPDMA_MAX_CHANNELS)
165 #define __chan_linear(chan_num) ((chan_num) & (CPDMA_MAX_CHANNELS - 1)) argument
166 #define chan_linear(chan) __chan_linear((chan)->chan_num)
365 rate_reg = CPDMA_TX_PRI0_RATE + 4 * chan->chan_num; in cpdma_chan_set_chan_shaper()
441 chan->chan_num); in cpdma_chan_fit_rate()
505 rate_reg = CPDMA_TX_PRI0_RATE + 4 * ch->chan_num; in cpdma_chan_set_factors()
521 ctlr->chan_num = 0; in cpdma_ctlr_create()
734 if (!ctlr->chan_num) in cpdma_chan_split_pool()
876 struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, in cpdma_chan_create() argument
879 int offset = chan_num * 4; in cpdma_chan_create()
883 chan_num = rx_type ? rx_chan_num(chan_num) : tx_chan_num(chan_num); in cpdma_chan_create()
885 if (__chan_linear(chan_num) >= ctlr->num_chan) in cpdma_chan_create()
893 if (ctlr->channels[chan_num]) { in cpdma_chan_create()
901 chan->chan_num = chan_num; in cpdma_chan_create()
926 ctlr->channels[chan_num] = chan; in cpdma_chan_create()
927 ctlr->chan_num++; in cpdma_chan_create()
959 ctlr->channels[chan->chan_num] = NULL; in cpdma_chan_destroy()
960 ctlr->chan_num--; in cpdma_chan_destroy()