Searched refs:sw_buf (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 439 struct ice_aqc_alloc_free_res_elem *sw_buf; in ice_aq_alloc_free_vsi_list() local 444 buf_len = struct_size(sw_buf, elem, 1); in ice_aq_alloc_free_vsi_list() 445 sw_buf = devm_kzalloc(ice_hw_to_dev(hw), buf_len, GFP_KERNEL); in ice_aq_alloc_free_vsi_list() 446 if (!sw_buf) in ice_aq_alloc_free_vsi_list() 448 sw_buf->num_elems = cpu_to_le16(1); in ice_aq_alloc_free_vsi_list() 456 sw_buf->res_type = cpu_to_le16(ICE_AQC_RES_TYPE_VSI_LIST_REP); in ice_aq_alloc_free_vsi_list() 458 sw_buf->res_type = in ice_aq_alloc_free_vsi_list() 466 sw_buf->elem[0].e.sw_resp = cpu_to_le16(*vsi_list_id); in ice_aq_alloc_free_vsi_list() 468 status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len, opc, NULL); in ice_aq_alloc_free_vsi_list() 473 vsi_ele = &sw_buf->elem[0]; in ice_aq_alloc_free_vsi_list() [all …]
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.h | 802 struct sw_rx_page *sw_buf = &fp->rx_page_ring[index]; in bnx2x_free_rx_sge() local 803 struct page *page = sw_buf->page; in bnx2x_free_rx_sge() 813 dma_unmap_page(&bp->pdev->dev, dma_unmap_addr(sw_buf, mapping), in bnx2x_free_rx_sge() 818 sw_buf->page = NULL; in bnx2x_free_rx_sge()
|
D | bnx2x_cmn.c | 550 struct sw_rx_page *sw_buf = &fp->rx_page_ring[index]; in bnx2x_alloc_rx_sge() local 570 sw_buf->page = pool->page; in bnx2x_alloc_rx_sge() 571 sw_buf->offset = pool->offset; in bnx2x_alloc_rx_sge() 573 dma_unmap_addr_set(sw_buf, mapping, mapping); in bnx2x_alloc_rx_sge()
|