/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
H A D | hnae.h | 269 struct hnae_desc_cb *desc_cb; member 389 * the HNAE framework will allocate desc and desc_cb for all rings in the 616 int ret = hnae_reserve_buffer_map(ring, &ring->desc_cb[i]); in hnae_alloc_buffer_attach() 621 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma); in hnae_alloc_buffer_attach() 628 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_buffer_detach() 635 struct hnae_desc_cb *cb = &ring->desc_cb[i]; in hnae_free_buffer_detach() 637 if (!ring->desc_cb[i].dma) in hnae_free_buffer_detach() 650 bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_replace_buffer() 651 ring->desc_cb[i] = *res_cb; in hnae_replace_buffer() 652 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[ in hnae_replace_buffer() [all...] |
H A D | hns_enet.c | 42 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_v2_desc_hw() local 55 desc_cb->priv = priv; in fill_v2_desc_hw() 56 desc_cb->length = size; in fill_v2_desc_hw() 57 desc_cb->dma = dma; in fill_v2_desc_hw() 58 desc_cb->type = type; in fill_v2_desc_hw() 150 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() local 157 desc_cb->priv = priv; in fill_desc() 158 desc_cb in fill_desc() 409 hns_nic_reuse_page(struct sk_buff *skb, int i, struct hnae_ring *ring, int pull_len, struct hnae_desc_cb *desc_cb) hns_nic_reuse_page() argument 547 struct hnae_desc_cb *desc_cb; hns_nic_poll_rx_skb() local 666 struct hnae_desc_cb *desc_cb; hns_nic_alloc_rx_buffers() local 920 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; hns_nic_reclaim_one_desc() local [all...] |
H A D | hnae.c | 185 kfree(ring->desc_cb); in hnae_fini_ring() 186 ring->desc_cb = NULL; in hnae_fini_ring() 203 assert(!ring->desc && !ring->desc_cb && !ring->desc_dma_addr); in hnae_init_ring() 209 ring->desc_cb = kcalloc(ring->desc_num, sizeof(ring->desc_cb[0]), in hnae_init_ring() 211 if (!ring->desc_cb) { in hnae_init_ring() 231 kfree(ring->desc_cb); in hnae_init_ring() 232 ring->desc_cb = NULL; in hnae_init_ring()
|
H A D | hns_dsaf_rcb.c | 469 ring->desc_cb = NULL; in hns_rcb_ring_get_cfg()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/ |
H A D | hnae.h | 269 struct hnae_desc_cb *desc_cb; member 389 * the HNAE framework will allocate desc and desc_cb for all rings in the 610 int ret = hnae_reserve_buffer_map(ring, &ring->desc_cb[i]); in hnae_alloc_buffer_attach() 615 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[i].dma); in hnae_alloc_buffer_attach() 622 ring->q->handle->bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_buffer_detach() 629 struct hnae_desc_cb *cb = &ring->desc_cb[i]; in hnae_free_buffer_detach() 631 if (!ring->desc_cb[i].dma) in hnae_free_buffer_detach() 644 bops->unmap_buffer(ring, &ring->desc_cb[i]); in hnae_replace_buffer() 645 ring->desc_cb[i] = *res_cb; in hnae_replace_buffer() 646 ring->desc[i].addr = cpu_to_le64(ring->desc_cb[ in hnae_replace_buffer() [all...] |
H A D | hns_enet.c | 40 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_v2_desc_hw() local 53 desc_cb->priv = priv; in fill_v2_desc_hw() 54 desc_cb->length = size; in fill_v2_desc_hw() 55 desc_cb->dma = dma; in fill_v2_desc_hw() 56 desc_cb->type = type; in fill_v2_desc_hw() 149 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() local 156 desc_cb->priv = priv; in fill_desc() 157 desc_cb in fill_desc() 432 hns_nic_reuse_page(struct sk_buff *skb, int i, struct hnae_ring *ring, int pull_len, struct hnae_desc_cb *desc_cb) hns_nic_reuse_page() argument 570 struct hnae_desc_cb *desc_cb; hns_nic_poll_rx_skb() local 689 struct hnae_desc_cb *desc_cb; hns_nic_alloc_rx_buffers() local 943 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; hns_nic_reclaim_one_desc() local [all...] |
H A D | hnae.c | 185 kfree(ring->desc_cb); in hnae_fini_ring() 186 ring->desc_cb = NULL; in hnae_fini_ring() 203 assert(!ring->desc && !ring->desc_cb && !ring->desc_dma_addr); in hnae_init_ring() 209 ring->desc_cb = kcalloc(ring->desc_num, sizeof(ring->desc_cb[0]), in hnae_init_ring() 211 if (!ring->desc_cb) { in hnae_init_ring() 231 kfree(ring->desc_cb); in hnae_init_ring() 232 ring->desc_cb = NULL; in hnae_init_ring()
|
H A D | hns_dsaf_rcb.c | 465 ring->desc_cb = NULL; in hns_rcb_ring_get_cfg()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_enet.c | 1093 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in hns3_fill_desc() local 1118 desc_cb->priv = priv; in hns3_fill_desc() 1119 desc_cb->length = size; in hns3_fill_desc() 1120 desc_cb->dma = dma; in hns3_fill_desc() 1121 desc_cb->type = type; in hns3_fill_desc() 1388 if (!ring->desc_cb[ring->next_to_use].dma) in hns3_clear_desc() 1392 if (ring->desc_cb[ring->next_to_use].type == DESC_TYPE_SKB || in hns3_clear_desc() 1393 ring->desc_cb[ring->next_to_use].type == in hns3_clear_desc() 1396 ring->desc_cb[rin in hns3_clear_desc() 2560 struct hns3_desc_cb *desc_cb; hns3_nic_reclaim_desc() local 2648 struct hns3_desc_cb *desc_cb; hns3_nic_alloc_rx_buffers() local 2700 hns3_nic_reuse_page(struct sk_buff *skb, int i, struct hns3_enet_ring *ring, int pull_len, struct hns3_desc_cb *desc_cb) hns3_nic_reuse_page() argument 2927 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; hns3_alloc_skb() local 2980 struct hns3_desc_cb *desc_cb; hns3_add_frag() local 3156 struct hns3_desc_cb *desc_cb; hns3_handle_rx_bd() local [all...] |
H A D | hns3_trace.h | 118 __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
|
H A D | hns3_enet.h | 381 struct hns3_desc_cb *desc_cb; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_enet.c | 1606 struct hns3_desc_cb *desc_cb, in hns3_handle_csum_partial() 1640 ¶m->type_cs_vlan_tso, &desc_cb->send_bytes); in hns3_handle_csum_partial() 1650 struct hns3_desc_cb *desc_cb) in hns3_fill_skb_desc() 1660 desc_cb->send_bytes = skb->len; in hns3_fill_skb_desc() 1663 ret = hns3_handle_csum_partial(ring, skb, desc_cb, ¶m); in hns3_fill_skb_desc() 1726 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in hns3_map_and_fill_desc() local 1759 desc_cb->priv = priv; in hns3_map_and_fill_desc() 1760 desc_cb->length = size; in hns3_map_and_fill_desc() 1761 desc_cb in hns3_map_and_fill_desc() 1604 hns3_handle_csum_partial(struct hns3_enet_ring *ring, struct sk_buff *skb, struct hns3_desc_cb *desc_cb, struct hns3_desc_param *param) hns3_handle_csum_partial() argument 1648 hns3_fill_skb_desc(struct hns3_enet_ring *ring, struct sk_buff *skb, struct hns3_desc *desc, struct hns3_desc_cb *desc_cb) hns3_fill_skb_desc() argument 1977 struct hns3_desc_cb *desc_cb; hns3_clear_desc() local 2151 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; hns3_handle_tx_bounce() local 2204 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; hns3_handle_tx_sgl() local 2273 hns3_handle_skb_desc(struct hns3_enet_ring *ring, struct sk_buff *skb, struct hns3_desc_cb *desc_cb, int next_to_use_head) hns3_handle_skb_desc() argument 2302 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; hns3_nic_net_xmit() local 3586 struct hns3_desc_cb *desc_cb; hns3_nic_reclaim_desc() local 3683 struct hns3_desc_cb *desc_cb; hns3_nic_alloc_rx_buffers() local 3723 hns3_handle_rx_copybreak(struct sk_buff *skb, int i, struct hns3_enet_ring *ring, int pull_len, struct hns3_desc_cb *desc_cb) hns3_handle_rx_copybreak() argument 3751 hns3_nic_reuse_page(struct sk_buff *skb, int i, struct hns3_enet_ring *ring, int pull_len, struct hns3_desc_cb *desc_cb) hns3_nic_reuse_page() argument 4035 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; hns3_alloc_skb() local 4090 struct hns3_desc_cb *desc_cb; hns3_add_frag() local 4328 struct hns3_desc_cb *desc_cb; hns3_handle_rx_bd() local [all...] |
H A D | hns3_trace.h | 117 __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
|
H A D | hns3_enet.h | 466 struct hns3_desc_cb *desc_cb; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adminq.c | 587 struct iavf_aq_desc desc_cb; in iavf_clean_asq() local 599 desc_cb = *desc; in iavf_clean_asq() 600 cb_func(hw, &desc_cb); in iavf_clean_asq()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adminq.c | 585 struct iavf_aq_desc desc_cb; in iavf_clean_asq() local 597 desc_cb = *desc; in iavf_clean_asq() 598 cb_func(hw, &desc_cb); in iavf_clean_asq()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_cmd.h | 35 struct hclgevf_desc_cb *desc_cb; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_adminq.c | 726 struct i40e_aq_desc desc_cb; in i40e_clean_asq() local 738 desc_cb = *desc; in i40e_clean_asq() 739 cb_func(hw, &desc_cb); in i40e_clean_asq()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_adminq.c | 725 struct i40e_aq_desc desc_cb; in i40e_clean_asq() local 737 desc_cb = *desc; in i40e_clean_asq() 738 cb_func(hw, &desc_cb); in i40e_clean_asq()
|