• Home
  • Raw
  • Download

Lines Matching refs:buf_num

44 			 int buf_num, enum hns_desc_type type, int mtu)  in fill_v2_desc()  argument
70 hnae_set_field(bn_pid, HNSV2_TXD_BUFNUM_M, 0, buf_num - 1); in fill_v2_desc()
144 int buf_num, enum hns_desc_type type, int mtu) in fill_desc() argument
165 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc()
213 int buf_num; in hns_nic_maybe_stop_tx() local
216 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx()
218 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx()
228 buf_num = 1; in hns_nic_maybe_stop_tx()
229 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx()
233 *bnum = buf_num; in hns_nic_maybe_stop_tx()
242 int buf_num; in hns_nic_maybe_stop_tso() local
249 buf_num = (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in hns_nic_maybe_stop_tso()
255 buf_num += (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in hns_nic_maybe_stop_tso()
258 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tso()
259 buf_num = (skb->len + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in hns_nic_maybe_stop_tso()
260 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso()
269 } else if (ring_space(ring) < buf_num) { in hns_nic_maybe_stop_tso()
273 *bnum = buf_num; in hns_nic_maybe_stop_tso()
279 int buf_num, enum hns_desc_type type, int mtu) in fill_tso_desc() argument
296 buf_num, in fill_tso_desc()
311 int buf_num; in hns_nic_net_xmit_hw() local
317 switch (priv->ops.maybe_stop_tx(&skb, &buf_num, ring)) { in hns_nic_net_xmit_hw()
342 buf_num, DESC_TYPE_SKB, ndev->mtu); in hns_nic_net_xmit_hw()
355 seg_num - 1 == i ? 1 : 0, buf_num, in hns_nic_net_xmit_hw()
369 hnae_queue_xmit(priv->ae_handle->qs[skb->queue_mapping], buf_num); in hns_nic_net_xmit_hw()