Lines Matching defs:get_desc
176 #define netif_txq_try_stop(txq, get_desc, start_thrs) \
191 if (unlikely(get_desc >= start_thrs)) { \
201 * @get_desc: get current number of free descriptors (see requirements below!)
208 * @get_desc must be a formula or a function call, it must always
217 #define netif_txq_maybe_stop(txq, get_desc, stop_thrs, start_thrs) \
222 if (unlikely(get_desc < stop_thrs)) \
223 _res = netif_txq_try_stop(txq, get_desc, start_thrs); \
245 * @get_desc: get current number of free descriptors (see requirements below!)
251 * @get_desc must be a formula or a function call, it must always
261 get_desc, start_thrs, down_cond) \
273 if (pkts && likely(get_desc >= start_thrs)) { \
284 #define netif_txq_completed_wake(txq, pkts, bytes, get_desc, start_thrs) \
285 __netif_txq_completed_wake(txq, pkts, bytes, get_desc, start_thrs, false)
289 #define netif_subqueue_try_stop(dev, idx, get_desc, start_thrs) \
294 netif_txq_try_stop(_txq, get_desc, start_thrs); \
306 #define netif_subqueue_maybe_stop(dev, idx, get_desc, stop_thrs, start_thrs) \
311 netif_txq_maybe_stop(_txq, get_desc, stop_thrs, start_thrs); \
315 get_desc, start_thrs) \
321 get_desc, start_thrs); \