Lines Matching refs:buf_num

37 			    int buf_num, enum hns_desc_type type, int mtu)  in fill_v2_desc_hw()  argument
63 hnae_set_field(bn_pid, HNSV2_TXD_BUFNUM_M, 0, buf_num - 1); in fill_v2_desc_hw()
130 int buf_num, enum hns_desc_type type, int mtu) in fill_v2_desc() argument
133 buf_num, type, mtu); in fill_v2_desc()
145 int buf_num, enum hns_desc_type type, int mtu) in fill_desc() argument
166 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc()
214 int buf_num; in hns_nic_maybe_stop_tx() local
217 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx()
219 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx()
229 buf_num = 1; in hns_nic_maybe_stop_tx()
230 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx()
234 *bnum = buf_num; in hns_nic_maybe_stop_tx()
243 int buf_num; in hns_nic_maybe_stop_tso() local
250 buf_num = (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in hns_nic_maybe_stop_tso()
256 buf_num += (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in hns_nic_maybe_stop_tso()
259 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tso()
260 buf_num = (skb->len + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in hns_nic_maybe_stop_tso()
261 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso()
270 } else if (ring_space(ring) < buf_num) { in hns_nic_maybe_stop_tso()
274 *bnum = buf_num; in hns_nic_maybe_stop_tso()
280 int buf_num, enum hns_desc_type type, int mtu) in fill_tso_desc() argument
297 buf_num, in fill_tso_desc()
312 int buf_num; in hns_nic_net_xmit_hw() local
318 switch (priv->ops.maybe_stop_tx(&skb, &buf_num, ring)) { in hns_nic_net_xmit_hw()
343 buf_num, DESC_TYPE_SKB, ndev->mtu); in hns_nic_net_xmit_hw()
356 seg_num - 1 == i ? 1 : 0, buf_num, in hns_nic_net_xmit_hw()
370 hnae_queue_xmit(priv->ae_handle->qs[skb->queue_mapping], buf_num); in hns_nic_net_xmit_hw()