Home
last modified time | relevance | path

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

/linux-6.1.9/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_osdep.h36 struct device *ice_hw_to_dev(struct ice_hw *hw);
40 dev_dbg(ice_hw_to_dev(hw), fmt, ##args)
50 dev_info(ice_hw_to_dev(hw), fmt, ##args); \
Dice_vlan_mode.c363 set_params = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*set_params), in ice_set_svm()
377 devm_kfree(ice_hw_to_dev(hw), set_params); in ice_set_svm()
410 …dev_info(ice_hw_to_dev(hw), "QinQ functionality cannot be enabled on this device. Update your DDP … in ice_print_dvm_not_supported()
412 …dev_info(ice_hw_to_dev(hw), "QinQ functionality cannot be enabled on this device. Update your DDP … in ice_print_dvm_not_supported()
414 …dev_info(ice_hw_to_dev(hw), "QinQ functionality cannot be enabled on this device. Update your NVM … in ice_print_dvm_not_supported()
Dice_flex_pipe.c1418 devm_kfree(ice_hw_to_dev(hw), hw->pkg_copy); in ice_free_seg()
1755 buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL); in ice_copy_and_init_pkg()
1760 devm_kfree(ice_hw_to_dev(hw), buf_copy); in ice_copy_and_init_pkg()
1798 bld = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*bld), GFP_KERNEL); in ice_pkg_buf_alloc()
1956 fvl = devm_kzalloc(ice_hw_to_dev(hw), in ice_get_sw_fv_list()
1968 dev_warn(ice_hw_to_dev(hw), "Required profiles not found in currently loaded DDP package"); in ice_get_sw_fv_list()
1977 devm_kfree(ice_hw_to_dev(hw), fvl); in ice_get_sw_fv_list()
2032 devm_kfree(ice_hw_to_dev(hw), bld); in ice_pkg_buf_free()
2927 devm_kfree(ice_hw_to_dev(hw), del); in ice_vsig_free()
3940 devm_kfree(ice_hw_to_dev(hw), del); in ice_free_prof_map()
[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_switch.c1400 recps = devm_kcalloc(ice_hw_to_dev(hw), ICE_MAX_NUM_RECIPES, in ice_init_def_sw_recp()
1647 devm_kfree(ice_hw_to_dev(hw), vsi->lan_q_ctx[i]); in ice_clear_vsi_q_ctx()
1651 devm_kfree(ice_hw_to_dev(hw), vsi->rdma_q_ctx[i]); in ice_clear_vsi_q_ctx()
1671 devm_kfree(ice_hw_to_dev(hw), vsi); in ice_clear_vsi_ctx()
1714 tmp_vsi_ctx = devm_kzalloc(ice_hw_to_dev(hw), in ice_add_vsi()
1817 sw_buf = devm_kzalloc(ice_hw_to_dev(hw), buf_len, GFP_KERNEL); in ice_aq_alloc_free_vsi_list()
1851 devm_kfree(ice_hw_to_dev(hw), sw_buf); in ice_aq_alloc_free_vsi_list()
2207 rg_entry = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*rg_entry), in ice_get_recp_frm_fw()
2286 recps[rid].root_buf = devm_kmemdup(ice_hw_to_dev(hw), tmp, in ice_get_recp_frm_fw()
2625 lg_act = devm_kzalloc(ice_hw_to_dev(hw), rules_size, GFP_KERNEL); in ice_add_marker_act()
[all …]
Dice_common.c723 hw->switch_info = devm_kzalloc(ice_hw_to_dev(hw), in ice_init_fltr_mgmt_struct()
735 devm_kfree(ice_hw_to_dev(hw), hw->switch_info); in ice_init_fltr_mgmt_struct()
756 devm_kfree(ice_hw_to_dev(hw), v_pos_map); in ice_cleanup_fltr_mgmt_struct()
766 devm_kfree(ice_hw_to_dev(hw), rg_entry); in ice_cleanup_fltr_mgmt_struct()
778 devm_kfree(ice_hw_to_dev(hw), lst_itr->lkups); in ice_cleanup_fltr_mgmt_struct()
779 devm_kfree(ice_hw_to_dev(hw), lst_itr); in ice_cleanup_fltr_mgmt_struct()
789 devm_kfree(ice_hw_to_dev(hw), lst_itr); in ice_cleanup_fltr_mgmt_struct()
793 devm_kfree(ice_hw_to_dev(hw), recps[i].root_buf); in ice_cleanup_fltr_mgmt_struct()
796 devm_kfree(ice_hw_to_dev(hw), sw->recp_list); in ice_cleanup_fltr_mgmt_struct()
797 devm_kfree(ice_hw_to_dev(hw), sw); in ice_cleanup_fltr_mgmt_struct()
[all …]
Dice_flow.c1318 devm_kfree(ice_hw_to_dev(hw), entry->entry); in ice_dealloc_flow_entry()
1320 devm_kfree(ice_hw_to_dev(hw), entry); in ice_dealloc_flow_entry()
1372 params->prof = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*params->prof), in ice_flow_add_prof_sync()
1417 devm_kfree(ice_hw_to_dev(hw), params->prof); in ice_flow_add_prof_sync()
1458 devm_kfree(ice_hw_to_dev(hw), prof); in ice_flow_rem_prof_sync()
1632 e = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*e), GFP_KERNEL); in ice_flow_add_entry()
1666 devm_kfree(ice_hw_to_dev(hw), e->entry); in ice_flow_add_entry()
1667 devm_kfree(ice_hw_to_dev(hw), e); in ice_flow_add_entry()
1934 devm_kfree(ice_hw_to_dev(hw), r); in ice_rem_vsi_rss_list()
2001 devm_kfree(ice_hw_to_dev(hw), r); in ice_rem_rss_list()
[all …]
Dice_vf_mbx.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_ptp.c132 dev_info(ice_hw_to_dev(hw), "SMA1 + U.FL1 disabled"); in ice_ptp_set_sma_config_e810t()
136 dev_info(ice_hw_to_dev(hw), "SMA1 RX"); in ice_ptp_set_sma_config_e810t()
141 dev_info(ice_hw_to_dev(hw), "SMA1 RX + U.FL1 TX"); in ice_ptp_set_sma_config_e810t()
144 dev_info(ice_hw_to_dev(hw), "SMA1 RX + U.FL1 TX"); in ice_ptp_set_sma_config_e810t()
147 dev_info(ice_hw_to_dev(hw), "SMA1 TX"); in ice_ptp_set_sma_config_e810t()
154 dev_info(ice_hw_to_dev(hw), "SMA2 + U.FL2 disabled"); in ice_ptp_set_sma_config_e810t()
158 dev_info(ice_hw_to_dev(hw), "SMA2 RX"); in ice_ptp_set_sma_config_e810t()
163 dev_info(ice_hw_to_dev(hw), "UFL2 RX"); in ice_ptp_set_sma_config_e810t()
167 dev_info(ice_hw_to_dev(hw), "SMA2 TX"); in ice_ptp_set_sma_config_e810t()
172 dev_info(ice_hw_to_dev(hw), "SMA2 TX + U.FL2 RX"); in ice_ptp_set_sma_config_e810t()
Dice_ethtool_fdir.c213 dev_err(ice_hw_to_dev(hw), "Missing input index for flow_type %d\n", in ice_get_ethtool_fdir_entry()
326 dev_err(ice_hw_to_dev(hw), "ice_flow_rem_vsi_prof() failed status=%d\n", in ice_fdir_rem_adq_chnl()
407 devm_kfree(ice_hw_to_dev(hw), prof->fdir_seg[tun]); in ice_fdir_rem_flow()
463 dev_err(ice_hw_to_dev(hw), "Could not replay Flow Director, flow type %d\n", in ice_fdir_replay_flows()
572 hw->fdir_prof = devm_kcalloc(ice_hw_to_dev(hw), in ice_fdir_alloc_flow_prof()
581 hw->fdir_prof[flow] = devm_kzalloc(ice_hw_to_dev(hw), in ice_fdir_alloc_flow_prof()
1609 devm_kfree(ice_hw_to_dev(hw), old_fltr); in ice_fdir_update_list_entry()
Dice_ptp_hw.c786 dev_warn(ice_hw_to_dev(hw), "Invalid TIME_REF frequency %u\n", in ice_cfg_cgu_pll_e822()
792 dev_warn(ice_hw_to_dev(hw), "Invalid clock source %u\n", in ice_cfg_cgu_pll_e822()
799 dev_warn(ice_hw_to_dev(hw), in ice_cfg_cgu_pll_e822()
890 dev_warn(ice_hw_to_dev(hw), "CGU PLL failed to lock\n"); in ice_cfg_cgu_pll_e822()
2195 dev_warn(ice_hw_to_dev(hw), in ice_read_phy_and_phc_time_e822()
2258 dev_info(ice_hw_to_dev(hw), in ice_sync_phy_timer_e822()
2519 dev_info(ice_hw_to_dev(hw), "Exiting bypass mode on PHY port %u\n", in ice_phy_exit_bypass_e822()
Dice_dcb.c657 lldpmib = devm_kzalloc(ice_hw_to_dev(hw), ICE_LLDPDU_SIZE, GFP_KERNEL); in ice_aq_get_dcb_cfg()
668 devm_kfree(ice_hw_to_dev(hw), lldpmib); in ice_aq_get_dcb_cfg()
1484 lldpmib = devm_kzalloc(ice_hw_to_dev(hw), ICE_LLDPDU_SIZE, GFP_KERNEL); in ice_set_dcb_cfg()
1496 devm_kfree(ice_hw_to_dev(hw), lldpmib); in ice_set_dcb_cfg()
Dice_vsi_vlan_lib.c234 dev_info(ice_hw_to_dev(hw), "update VSI for port VLAN failed, err %d aq_err %s\n", in __ice_vsi_set_inner_port_vlan()
Dice_main.c59 struct device *ice_hw_to_dev(struct ice_hw *hw) in ice_hw_to_dev() function
1185 dev_dbg(ice_hw_to_dev(pi->hw), "Failed to set link event mask for port %d\n", in ice_init_link_events()
1191 dev_dbg(ice_hw_to_dev(pi->hw), "Failed to enable link events for port %d\n", in ice_init_link_events()