Home
last modified time | relevance | path

Searched refs:ice_hw_to_dev (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_controlq.c95 cq->sq.desc_buf.va = dmam_alloc_coherent(ice_hw_to_dev(hw), size, in ice_alloc_ctrlq_sq_ring()
102 cq->sq.cmd_buf = devm_kcalloc(ice_hw_to_dev(hw), cq->num_sq_entries, in ice_alloc_ctrlq_sq_ring()
105 dmam_free_coherent(ice_hw_to_dev(hw), cq->sq.desc_buf.size, in ice_alloc_ctrlq_sq_ring()
126 cq->rq.desc_buf.va = dmam_alloc_coherent(ice_hw_to_dev(hw), size, in ice_alloc_ctrlq_rq_ring()
145 dmam_free_coherent(ice_hw_to_dev(hw), ring->desc_buf.size, in ice_free_cq_ring()
165 cq->rq.dma_head = devm_kcalloc(ice_hw_to_dev(hw), cq->num_rq_entries, in ice_alloc_rq_bufs()
177 bi->va = dmam_alloc_coherent(ice_hw_to_dev(hw), in ice_alloc_rq_bufs()
211 dmam_free_coherent(ice_hw_to_dev(hw), cq->rq.r.rq_bi[i].size, in ice_alloc_rq_bufs()
218 devm_kfree(ice_hw_to_dev(hw), cq->rq.dma_head); in ice_alloc_rq_bufs()
235 cq->sq.dma_head = devm_kcalloc(ice_hw_to_dev(hw), cq->num_sq_entries, in ice_alloc_sq_bufs()
[all …]
Dice_switch.c57 recps = devm_kcalloc(ice_hw_to_dev(hw), ICE_MAX_NUM_RECIPES, in ice_init_def_sw_recp()
303 devm_kfree(ice_hw_to_dev(hw), vsi->lan_q_ctx[i]); in ice_clear_vsi_q_ctx()
307 devm_kfree(ice_hw_to_dev(hw), vsi->rdma_q_ctx[i]); in ice_clear_vsi_q_ctx()
327 devm_kfree(ice_hw_to_dev(hw), vsi); in ice_clear_vsi_ctx()
370 tmp_vsi_ctx = devm_kzalloc(ice_hw_to_dev(hw), in ice_add_vsi()
473 sw_buf = devm_kzalloc(ice_hw_to_dev(hw), buf_len, GFP_KERNEL); in ice_aq_alloc_free_vsi_list()
506 devm_kfree(ice_hw_to_dev(hw), sw_buf); in ice_aq_alloc_free_vsi_list()
584 rbuf = devm_kzalloc(ice_hw_to_dev(hw), ICE_SW_CFG_MAX_BUF_LEN, in ice_get_initial_sw_cfg()
634 devm_kfree(ice_hw_to_dev(hw), rbuf); in ice_get_initial_sw_cfg()
866 lg_act = devm_kzalloc(ice_hw_to_dev(hw), rules_size, GFP_KERNEL); in ice_add_marker_act()
[all …]
Dice_osdep.h27 #define ice_hw_to_dev(ptr) \ macro
32 dev_dbg(ice_hw_to_dev(hw), fmt, ##args)
42 dev_info(ice_hw_to_dev(hw), fmt, ##args); \
Dice_flex_pipe.c1231 devm_kfree(ice_hw_to_dev(hw), hw->pkg_copy); in ice_free_seg()
1450 buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL); in ice_copy_and_init_pkg()
1455 devm_kfree(ice_hw_to_dev(hw), buf_copy); in ice_copy_and_init_pkg()
1477 bld = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*bld), GFP_KERNEL); in ice_pkg_buf_alloc()
1496 devm_kfree(ice_hw_to_dev(hw), bld); in ice_pkg_buf_free()
2240 devm_kfree(ice_hw_to_dev(hw), del); in ice_vsig_free()
3256 devm_kfree(ice_hw_to_dev(hw), del); in ice_free_prof_map()
3282 devm_kfree(ice_hw_to_dev(hw), p); in ice_free_flow_profs()
3331 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.ptypes); in ice_free_hw_tbls()
3332 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.ptg_tbl); in ice_free_hw_tbls()
[all …]
Dice_sched.c26 root = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*root), GFP_KERNEL); in ice_sched_add_root_node()
31 root->children = devm_kcalloc(ice_hw_to_dev(hw), hw->max_children[0], in ice_sched_add_root_node()
34 devm_kfree(ice_hw_to_dev(hw), root); in ice_sched_add_root_node()
179 node = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*node), GFP_KERNEL); in ice_sched_add_node()
184 node->children = devm_kcalloc(ice_hw_to_dev(hw), in ice_sched_add_node()
188 devm_kfree(ice_hw_to_dev(hw), node); in ice_sched_add_node()
241 buf = devm_kzalloc(ice_hw_to_dev(hw), buf_size, GFP_KERNEL); in ice_sched_remove_elems()
256 devm_kfree(ice_hw_to_dev(hw), buf); in ice_sched_remove_elems()
357 devm_kfree(ice_hw_to_dev(hw), node->children); in ice_free_sched_node()
358 devm_kfree(ice_hw_to_dev(hw), node); in ice_free_sched_node()
[all …]
Dice_common.c565 hw->switch_info = devm_kzalloc(ice_hw_to_dev(hw), in ice_init_fltr_mgmt_struct()
576 devm_kfree(ice_hw_to_dev(hw), hw->switch_info); in ice_init_fltr_mgmt_struct()
597 devm_kfree(ice_hw_to_dev(hw), v_pos_map); in ice_cleanup_fltr_mgmt_struct()
608 devm_kfree(ice_hw_to_dev(hw), lst_itr); in ice_cleanup_fltr_mgmt_struct()
612 devm_kfree(ice_hw_to_dev(hw), sw->recp_list); in ice_cleanup_fltr_mgmt_struct()
613 devm_kfree(ice_hw_to_dev(hw), sw); in ice_cleanup_fltr_mgmt_struct()
628 config = devm_kzalloc(ice_hw_to_dev(hw), size, GFP_KERNEL); in ice_get_fw_log_cfg()
651 devm_kfree(ice_hw_to_dev(hw), config); in ice_get_fw_log_cfg()
739 data = devm_kcalloc(ice_hw_to_dev(hw), in ice_cfg_fw_log()
806 devm_kfree(ice_hw_to_dev(hw), data); in ice_cfg_fw_log()
[all …]
Dice_flow.c1321 devm_kfree(ice_hw_to_dev(hw), entry->entry); in ice_dealloc_flow_entry()
1323 devm_kfree(ice_hw_to_dev(hw), entry); in ice_dealloc_flow_entry()
1375 params->prof = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*params->prof), in ice_flow_add_prof_sync()
1420 devm_kfree(ice_hw_to_dev(hw), params->prof); in ice_flow_add_prof_sync()
1461 devm_kfree(ice_hw_to_dev(hw), prof); in ice_flow_rem_prof_sync()
1636 e = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*e), GFP_KERNEL); in ice_flow_add_entry()
1670 devm_kfree(ice_hw_to_dev(hw), e->entry); in ice_flow_add_entry()
1671 devm_kfree(ice_hw_to_dev(hw), e); in ice_flow_add_entry()
1888 devm_kfree(ice_hw_to_dev(hw), r); in ice_rem_vsi_rss_list()
1955 devm_kfree(ice_hw_to_dev(hw), r); in ice_rem_rss_list()
[all …]
Dice_sriov.c496 snap->mbx_vf.vf_cntr = devm_kcalloc(ice_hw_to_dev(hw), vf_count, in ice_mbx_init_snapshot()
527 devm_kfree(ice_hw_to_dev(hw), snap->mbx_vf.vf_cntr); in ice_mbx_deinit_snapshot()
Dice_ethtool_fdir.c212 dev_err(ice_hw_to_dev(hw), "Missing input index for flow_type %d\n", in ice_get_ethtool_fdir_entry()
332 devm_kfree(ice_hw_to_dev(hw), prof->fdir_seg[tun]); in ice_fdir_rem_flow()
388 dev_err(ice_hw_to_dev(hw), "Could not replay Flow Director, flow type %d\n", in ice_fdir_replay_flows()
497 hw->fdir_prof = devm_kcalloc(ice_hw_to_dev(hw), in ice_fdir_alloc_flow_prof()
506 hw->fdir_prof[flow] = devm_kzalloc(ice_hw_to_dev(hw), in ice_fdir_alloc_flow_prof()
1352 devm_kfree(ice_hw_to_dev(hw), f_rule); in ice_vsi_manage_fdir()
1422 devm_kfree(ice_hw_to_dev(hw), old_fltr); in ice_fdir_update_list_entry()
Dice_dcb.c659 lldpmib = devm_kzalloc(ice_hw_to_dev(hw), ICE_LLDPDU_SIZE, GFP_KERNEL); in ice_aq_get_dcb_cfg()
670 devm_kfree(ice_hw_to_dev(hw), lldpmib); in ice_aq_get_dcb_cfg()
1295 lldpmib = devm_kzalloc(ice_hw_to_dev(hw), ICE_LLDPDU_SIZE, GFP_KERNEL); in ice_set_dcb_cfg()
1307 devm_kfree(ice_hw_to_dev(hw), lldpmib); in ice_set_dcb_cfg()
Dice_main.c1032 dev_dbg(ice_hw_to_dev(pi->hw), "Failed to set link event mask for port %d\n", in ice_init_link_events()
1038 dev_dbg(ice_hw_to_dev(pi->hw), "Failed to enable link events for port %d\n", in ice_init_link_events()
Dice_virtchnl_pf.c794 dev_info(ice_hw_to_dev(hw), "update VSI for port VLAN failed, err %s aq_err %s\n", in ice_vsi_manage_pvid()