Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c1021 devm_kfree(ice_hw_to_dev(hw), del); in ice_vsig_free()
2043 devm_kfree(ice_hw_to_dev(hw), del); in ice_free_prof_map()
2069 devm_kfree(ice_hw_to_dev(hw), p); in ice_free_flow_profs()
2118 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.ptypes); in ice_free_hw_tbls()
2119 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.ptg_tbl); in ice_free_hw_tbls()
2120 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt1.t); in ice_free_hw_tbls()
2121 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt2.t); in ice_free_hw_tbls()
2122 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt2.vsig_tbl); in ice_free_hw_tbls()
2123 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].xlt2.vsis); in ice_free_hw_tbls()
2124 devm_kfree(ice_hw_to_dev(hw), hw->blk[i].prof.t); in ice_free_hw_tbls()
[all …]
Dice_controlq.c95 cq->sq.desc_buf.va = dmam_alloc_coherent(ice_hw_to_dev(hw), size, in ice_alloc_ctrlq_sq_ring()
115 cq->rq.desc_buf.va = dmam_alloc_coherent(ice_hw_to_dev(hw), size, in ice_alloc_ctrlq_rq_ring()
134 dmam_free_coherent(ice_hw_to_dev(hw), ring->desc_buf.size, in ice_free_cq_ring()
154 cq->rq.dma_head = devm_kcalloc(ice_hw_to_dev(hw), cq->num_rq_entries, in ice_alloc_rq_bufs()
166 bi->va = dmam_alloc_coherent(ice_hw_to_dev(hw), in ice_alloc_rq_bufs()
200 dmam_free_coherent(ice_hw_to_dev(hw), cq->rq.r.rq_bi[i].size, in ice_alloc_rq_bufs()
207 devm_kfree(ice_hw_to_dev(hw), cq->rq.dma_head); in ice_alloc_rq_bufs()
224 cq->sq.dma_head = devm_kcalloc(ice_hw_to_dev(hw), cq->num_sq_entries, in ice_alloc_sq_bufs()
235 bi->va = dmam_alloc_coherent(ice_hw_to_dev(hw), in ice_alloc_sq_bufs()
248 dmam_free_coherent(ice_hw_to_dev(hw), cq->sq.r.sq_bi[i].size, in ice_alloc_sq_bufs()
[all …]
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_fwlog.c110 dev_warn(ice_hw_to_dev(hw), "Unable to allocate memory for FW log ring data buffers\n"); in ice_fwlog_realloc_rings()
153 dev_warn(ice_hw_to_dev(hw), "Unable to allocate memory for FW log rings\n"); in ice_fwlog_init()
162 dev_warn(ice_hw_to_dev(hw), "Unable to allocate memory for FW log ring data buffers\n"); in ice_fwlog_init()
170 …dev_warn(ice_hw_to_dev(hw), "FW logging is not supported in this NVM image. Please update the NVM … in ice_fwlog_init()
199 dev_warn(ice_hw_to_dev(hw), "Unable to turn off FW logging, status: %d\n", in ice_fwlog_deinit()
208 dev_warn(ice_hw_to_dev(hw), "Unable to unregister FW logging, status: %d\n", in ice_fwlog_deinit()
Dice_osdep.h40 struct device *ice_hw_to_dev(struct ice_hw *hw);
44 dev_dbg(ice_hw_to_dev(hw), fmt, ##args)
53 dev_info(ice_hw_to_dev(hw), fmt, ##args); \
Dice_sched.c27 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()
184 node = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*node), GFP_KERNEL); in ice_sched_add_node()
188 node->children = devm_kcalloc(ice_hw_to_dev(hw), in ice_sched_add_node()
192 devm_kfree(ice_hw_to_dev(hw), node); in ice_sched_add_node()
351 devm_kfree(ice_hw_to_dev(hw), node->children); in ice_free_sched_node()
354 devm_kfree(ice_hw_to_dev(hw), node); in ice_free_sched_node()
524 buf = devm_kzalloc(ice_hw_to_dev(hw), buf_size, GFP_KERNEL); in ice_sched_suspend_resume_elems()
542 devm_kfree(ice_hw_to_dev(hw), buf); in ice_sched_suspend_resume_elems()
[all …]
Dice_parser.c134 struct device *dev = ice_hw_to_dev(hw); in ice_imem_bst_bm_dump()
146 struct device *dev = ice_hw_to_dev(hw); in ice_imem_bst_kb_dump()
156 struct device *dev = ice_hw_to_dev(hw); in ice_imem_np_kb_dump()
167 struct device *dev = ice_hw_to_dev(hw); in ice_imem_pg_kb_dump()
184 struct device *dev = ice_hw_to_dev(hw); in ice_imem_alu_dump()
213 struct device *dev = ice_hw_to_dev(hw); in ice_imem_dump()
452 struct device *dev = ice_hw_to_dev(hw); in ice_metainit_dump()
631 struct device *dev = ice_hw_to_dev(hw); in ice_pg_cam_key_dump()
648 struct device *dev = ice_hw_to_dev(hw); in ice_pg_nm_cam_key_dump()
664 struct device *dev = ice_hw_to_dev(hw); in ice_pg_cam_action_dump()
[all …]
Dice_switch.c1466 recps = devm_kcalloc(ice_hw_to_dev(hw), ICE_MAX_NUM_RECIPES, in ice_init_def_sw_recp()
1710 devm_kfree(ice_hw_to_dev(hw), vsi->lan_q_ctx[i]); in ice_clear_vsi_q_ctx()
1712 devm_kfree(ice_hw_to_dev(hw), vsi->rdma_q_ctx[i]); in ice_clear_vsi_q_ctx()
1731 devm_kfree(ice_hw_to_dev(hw), vsi); in ice_clear_vsi_ctx()
1774 tmp_vsi_ctx = devm_kzalloc(ice_hw_to_dev(hw), in ice_add_vsi()
2773 lg_act = devm_kzalloc(ice_hw_to_dev(hw), rules_size, GFP_KERNEL); in ice_add_marker_act()
2833 devm_kfree(ice_hw_to_dev(hw), lg_act); in ice_add_marker_act()
2855 v_map = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*v_map), GFP_KERNEL); in ice_create_vsi_list_map()
2912 s_rule = devm_kzalloc(ice_hw_to_dev(hw), s_rule_size, GFP_KERNEL); in ice_update_vsi_list_rule()
2932 devm_kfree(ice_hw_to_dev(hw), s_rule); in ice_update_vsi_list_rule()
[all …]
Dice_ddp.c86 devm_kfree(ice_hw_to_dev(hw), hw->pkg_copy); in ice_free_seg()
695 bld = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*bld), GFP_KERNEL); in ice_pkg_buf_alloc()
860 fvl = devm_kzalloc(ice_hw_to_dev(hw), in ice_get_sw_fv_list()
872 dev_warn(ice_hw_to_dev(hw), in ice_get_sw_fv_list()
882 devm_kfree(ice_hw_to_dev(hw), fvl); in ice_get_sw_fv_list()
937 devm_kfree(ice_hw_to_dev(hw), bld); in ice_pkg_buf_free()
1367 dev_dbg(ice_hw_to_dev(hw), in ice_dwnld_cfg_bufs_no_lock()
2279 buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL); in ice_copy_and_init_pkg()
2284 devm_kfree(ice_hw_to_dev(hw), buf_copy); in ice_copy_and_init_pkg()
Dice_ptp_hw.c362 dev_warn(ice_hw_to_dev(hw), "Invalid TIME_REF frequency %u\n", in ice_cfg_cgu_pll_e82x()
368 dev_warn(ice_hw_to_dev(hw), "Invalid clock source %u\n", in ice_cfg_cgu_pll_e82x()
375 dev_warn(ice_hw_to_dev(hw), in ice_cfg_cgu_pll_e82x()
466 dev_warn(ice_hw_to_dev(hw), "CGU PLL failed to lock\n"); in ice_cfg_cgu_pll_e82x()
509 dev_warn(ice_hw_to_dev(hw), "Invalid TIME_REF frequency %u\n", in ice_cfg_cgu_pll_e825c()
515 dev_warn(ice_hw_to_dev(hw), "Invalid clock source %u\n", in ice_cfg_cgu_pll_e825c()
522 dev_warn(ice_hw_to_dev(hw), in ice_cfg_cgu_pll_e825c()
648 dev_warn(ice_hw_to_dev(hw), "CGU PLL failed to lock\n"); in ice_cfg_cgu_pll_e825c()
777 dev_warn(ice_hw_to_dev(hw), in ice_ptp_tmr_cmd_to_src_reg()
834 dev_warn(ice_hw_to_dev(hw), in ice_ptp_tmr_cmd_to_port_reg()
[all …]
Dice_flow.c1351 devm_kfree(ice_hw_to_dev(hw), entry); in ice_flow_rem_entry_sync()
1392 params->prof = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*params->prof), in ice_flow_add_prof_sync()
1439 devm_kfree(ice_hw_to_dev(hw), params->prof); in ice_flow_add_prof_sync()
1481 devm_kfree(ice_hw_to_dev(hw), prof); in ice_flow_rem_prof_sync()
1739 e = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*e), GFP_KERNEL); in ice_flow_add_entry()
1772 devm_kfree(ice_hw_to_dev(hw), e); in ice_flow_add_entry()
2050 devm_kfree(ice_hw_to_dev(hw), r); in ice_rem_vsi_rss_list()
2151 devm_kfree(ice_hw_to_dev(hw), r); in ice_rem_rss_list()
2178 rss_cfg = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*rss_cfg), in ice_add_rss_list()
Dice_ptp.c130 dev_info(ice_hw_to_dev(hw), "SMA1 + U.FL1 disabled"); in ice_ptp_set_sma_config_e810t()
134 dev_info(ice_hw_to_dev(hw), "SMA1 RX"); in ice_ptp_set_sma_config_e810t()
139 dev_info(ice_hw_to_dev(hw), "SMA1 RX + U.FL1 TX"); in ice_ptp_set_sma_config_e810t()
142 dev_info(ice_hw_to_dev(hw), "SMA1 RX + U.FL1 TX"); in ice_ptp_set_sma_config_e810t()
145 dev_info(ice_hw_to_dev(hw), "SMA1 TX"); in ice_ptp_set_sma_config_e810t()
152 dev_info(ice_hw_to_dev(hw), "SMA2 + U.FL2 disabled"); in ice_ptp_set_sma_config_e810t()
156 dev_info(ice_hw_to_dev(hw), "SMA2 RX"); in ice_ptp_set_sma_config_e810t()
161 dev_info(ice_hw_to_dev(hw), "UFL2 RX"); in ice_ptp_set_sma_config_e810t()
165 dev_info(ice_hw_to_dev(hw), "SMA2 TX"); in ice_ptp_set_sma_config_e810t()
170 dev_info(ice_hw_to_dev(hw), "SMA2 TX + U.FL2 RX"); in ice_ptp_set_sma_config_e810t()
Dice_ethtool_fdir.c221 dev_err(ice_hw_to_dev(hw), "Missing input index for flow_type %d\n", in ice_get_ethtool_fdir_entry()
332 dev_err(ice_hw_to_dev(hw), "ice_flow_rem_vsi_prof() failed status=%d\n", in ice_fdir_rem_adq_chnl()
412 devm_kfree(ice_hw_to_dev(hw), prof->fdir_seg[tun]); in ice_fdir_rem_flow()
466 dev_err(ice_hw_to_dev(hw), "Could not replay Flow Director, flow type %d\n", in ice_fdir_replay_flows()
583 hw->fdir_prof = devm_kcalloc(ice_hw_to_dev(hw), in ice_fdir_alloc_flow_prof()
592 hw->fdir_prof[flow] = devm_kzalloc(ice_hw_to_dev(hw), in ice_fdir_alloc_flow_prof()
1745 devm_kfree(ice_hw_to_dev(hw), old_fltr); in ice_fdir_update_list_entry()
Dice_dcb.c645 lldpmib = devm_kzalloc(ice_hw_to_dev(hw), ICE_LLDPDU_SIZE, GFP_KERNEL); in ice_aq_get_dcb_cfg()
656 devm_kfree(ice_hw_to_dev(hw), lldpmib); in ice_aq_get_dcb_cfg()
1508 lldpmib = devm_kzalloc(ice_hw_to_dev(hw), ICE_LLDPDU_SIZE, GFP_KERNEL); in ice_set_dcb_cfg()
1520 devm_kfree(ice_hw_to_dev(hw), lldpmib); in ice_set_dcb_cfg()
Dice_common.c927 hw->switch_info = devm_kzalloc(ice_hw_to_dev(hw), in ice_init_fltr_mgmt_struct()
942 devm_kfree(ice_hw_to_dev(hw), hw->switch_info); in ice_init_fltr_mgmt_struct()
963 devm_kfree(ice_hw_to_dev(hw), v_pos_map); in ice_cleanup_fltr_mgmt_struct()
978 devm_kfree(ice_hw_to_dev(hw), lst_itr->lkups); in ice_cleanup_fltr_mgmt_struct()
979 devm_kfree(ice_hw_to_dev(hw), lst_itr); in ice_cleanup_fltr_mgmt_struct()
989 devm_kfree(ice_hw_to_dev(hw), lst_itr); in ice_cleanup_fltr_mgmt_struct()
994 devm_kfree(ice_hw_to_dev(hw), sw->recp_list); in ice_cleanup_fltr_mgmt_struct()
995 devm_kfree(ice_hw_to_dev(hw), sw); in ice_cleanup_fltr_mgmt_struct()
1076 hw->port_info = devm_kzalloc(ice_hw_to_dev(hw), in ice_init_hw()
1122 dev_warn(ice_hw_to_dev(hw), "Get PHY capabilities failed status = %d, continuing anyway\n", in ice_init_hw()
[all …]
Dice_vsi_vlan_lib.c260 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()
308 dev_err(ice_hw_to_dev(hw), "update VSI for port VLAN failed, err %d aq_err %s\n", in ice_vsi_clear_inner_port_vlan()
Dice_lag.c414 dev_dbg(ice_hw_to_dev(hw), "%s queue %d NO Q CONTEXT\n", in ice_lag_qbuf_recfg()
419 dev_dbg(ice_hw_to_dev(hw), "%s queue %d INVAL TEID\n", in ice_lag_qbuf_recfg()
424 dev_dbg(ice_hw_to_dev(hw), "%s queue %d INVAL Q HANDLE\n", in ice_lag_qbuf_recfg()
454 dev = ice_hw_to_dev(hw); in ice_lag_get_sched_parent()
Dice_nvm.c477 …dev_warn(ice_hw_to_dev(hw), "PFA starts at offset %u. PFA length of %u caused 16-bit arithmetic ov… in ice_get_pfa_module_tlv()
513 …dev_warn(ice_hw_to_dev(hw), "TLV of type %u and length 0x%04x caused 16-bit arithmetic overflow. T… in ice_get_pfa_module_tlv()
Dice_main.c63 struct device *ice_hw_to_dev(struct ice_hw *hw) in ice_hw_to_dev() function
1208 dev_dbg(ice_hw_to_dev(pi->hw), "Failed to set link event mask for port %d\n", in ice_init_link_events()
1214 dev_dbg(ice_hw_to_dev(pi->hw), "Failed to enable link events for port %d\n", in ice_init_link_events()
/linux-6.12.1/drivers/net/ethernet/intel/ice/devlink/
Ddevlink.c979 node = devm_kzalloc(ice_hw_to_dev(pi->hw), sizeof(*node), GFP_KERNEL); in ice_devlink_rate_node_new()