Lines Matching refs:ndescs
1242 int ndescs; in ionic_tx_descs_needed() local
1247 ndescs = skb_shinfo(skb)->gso_segs; in ionic_tx_descs_needed()
1249 ndescs = 1; in ionic_tx_descs_needed()
1253 return ndescs; in ionic_tx_descs_needed()
1262 return ndescs; in ionic_tx_descs_needed()
1265 static int ionic_maybe_stop_tx(struct ionic_queue *q, int ndescs) in ionic_maybe_stop_tx() argument
1269 if (unlikely(!ionic_q_has_space(q, ndescs))) { in ionic_maybe_stop_tx()
1275 if (ionic_q_has_space(q, ndescs)) { in ionic_maybe_stop_tx()
1289 int err, ndescs; in ionic_start_hwstamp_xmit() local
1296 ndescs = ionic_tx_descs_needed(q, skb); in ionic_start_hwstamp_xmit()
1297 if (unlikely(ndescs < 0)) in ionic_start_hwstamp_xmit()
1300 if (unlikely(!ionic_q_has_space(q, ndescs))) in ionic_start_hwstamp_xmit()
1325 int ndescs; in ionic_start_xmit() local
1341 ndescs = ionic_tx_descs_needed(q, skb); in ionic_start_xmit()
1342 if (ndescs < 0) in ionic_start_xmit()
1345 if (unlikely(ionic_maybe_stop_tx(q, ndescs))) in ionic_start_xmit()