Lines Matching defs:weight
123 int weight;
704 if (chan->weight)
705 chan->desc_num = (chan->weight * desc_num) / 100;
743 if (!chan->weight)
745 rx_weight += chan->weight;
747 if (!chan->weight)
749 tx_weight += chan->weight;
775 /* cpdma_chan_set_weight - set weight of a channel in percentage.
777 * and 100% for Tx. The weight is used to split cpdma resources
780 * weight of a channel as the maximum rate of an interface is needed.
781 * If weight = 0, then channel uses rest of descriptors leaved by
784 int cpdma_chan_set_weight(struct cpdma_chan *ch, int weight)
792 if (ch->weight == weight) {
797 ch->weight = weight;
800 /* re-split pool using new channel weight */
904 chan->weight = 0;