Lines Matching refs:get_desc
34 #define netif_txq_try_stop(txq, get_desc, start_thrs) \
49 if (unlikely(get_desc >= start_thrs)) { \
59 * @get_desc: get current number of free descriptors (see requirements below!)
66 * @get_desc must be a formula or a function call, it must always
75 #define netif_txq_maybe_stop(txq, get_desc, stop_thrs, start_thrs) \
80 if (unlikely(get_desc < stop_thrs)) \
81 _res = netif_txq_try_stop(txq, get_desc, start_thrs); \
103 * @get_desc: get current number of free descriptors (see requirements below!)
109 * @get_desc must be a formula or a function call, it must always
119 get_desc, start_thrs, down_cond) \
131 if (pkts && likely(get_desc >= start_thrs)) { \
142 #define netif_txq_completed_wake(txq, pkts, bytes, get_desc, start_thrs) \
143 __netif_txq_completed_wake(txq, pkts, bytes, get_desc, start_thrs, false)
147 #define netif_subqueue_try_stop(dev, idx, get_desc, start_thrs) \
152 netif_txq_try_stop(txq, get_desc, start_thrs); \
155 #define netif_subqueue_maybe_stop(dev, idx, get_desc, stop_thrs, start_thrs) \
160 netif_txq_maybe_stop(txq, get_desc, stop_thrs, start_thrs); \
164 get_desc, start_thrs) \
170 get_desc, start_thrs); \