Home
last modified time | relevance | path

Searched refs:func_caps (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_diag.c90 hw->func_caps.num_tx_qp != 0) in i40e_diag_reg_test()
91 elements = hw->func_caps.num_tx_qp; in i40e_diag_reg_test()
97 hw->func_caps.num_msix_vectors != 0) in i40e_diag_reg_test()
98 elements = hw->func_caps.num_msix_vectors - 1; in i40e_diag_reg_test()
Di40e_virtchnl_pf.c28 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast()
114 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state()
175 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
268 return vector_id < pf->hw.func_caps.num_msix_vectors_vf; in i40e_vc_isvalid_vector_id()
360 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list()
458 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_release_rdma_qvlist()
513 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_rdma_qvlist()
534 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_rdma_qvlist()
662 qtx_ctl |= (((vf->vf_id + hw->func_caps.vf_base_id) in i40e_config_vsi_tx_queue()
1037 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_free_vf_res()
[all …]
Di40e_main.c3569 u32 chain_len = vsi->back->hw.func_caps.rx_buf_chain_len; in i40e_configure_rx_ring()
5333 for (v = 0; v < pf->hw.func_caps.num_vsis; v++) { in i40e_pf_wait_queues_disabled()
5479 if (pf->hw.func_caps.iscsi) in i40e_pf_get_num_tc()
5513 if (pf->hw.func_caps.iscsi) in i40e_pf_get_tc_map()
5719 ctxt.vf_num = vsi->vf_id + hw->func_caps.vf_base_id + vsi_offset; in i40e_update_adq_vsi_queues()
7178 if ((!hw->func_caps.dcb) || in i40e_init_pf_dcb()
7245 if (pf->hw.func_caps.npar_enable && in i40e_print_link_message()
9544 vf_id -= hw->func_caps.vf_base_id; in i40e_handle_lan_overflow_event()
10476 pf->hw.pf_id, pf->hw.func_caps.num_vfs, in i40e_get_capabilities()
10477 pf->hw.func_caps.num_msix_vectors, in i40e_get_capabilities()
[all …]
Di40e_dcb_nl.c898 if ((pf->flags & I40E_FLAG_MFP_ENABLED) && !(hw->func_caps.iscsi)) in i40e_dcbnl_set_all()
1005 if ((pf->flags & I40E_FLAG_MFP_ENABLED) && !(pf->hw.func_caps.iscsi)) in i40e_dcbnl_flush_apps()
Di40e_common.c799 u32 abs_queue_idx = hw->func_caps.base_queue + queue; in i40e_pre_tx_queue_cfg()
1186 !hw->func_caps.led[idx]) in i40e_led_is_mine()
3125 p = &hw->func_caps; in i40e_parse_discover_capabilities()
4637 u8 port_num = (u8)hw->func_caps.mdio_port_num; in i40e_read_phy_register_clause22()
4682 u8 port_num = (u8)hw->func_caps.mdio_port_num; in i40e_write_phy_register_clause22()
4723 u8 port_num = hw->func_caps.mdio_port_num; in i40e_read_phy_register_clause45()
4797 u8 port_num = hw->func_caps.mdio_port_num; in i40e_write_phy_register_clause45()
4938 u8 port_num = hw->func_caps.mdio_port_num; in i40e_get_phy_address()
Di40e_type.h548 struct i40e_hw_capabilities func_caps; member
Di40e_dcb.c876 if (!hw->func_caps.dcb) in i40e_init_dcb()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_sriov.c192 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_free_vfs()
193 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_free_vfs()
286 pf->hw.func_caps.common_cap.msix_vector_first_id; in ice_ena_vf_msix_mappings()
289 device_based_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_ena_vf_msix_mappings()
420 u16 total_vectors = pf->hw.func_caps.common_cap.num_msix_vectors; in ice_sriov_set_msix_res()
473 msix_avail_for_sriov = pf->hw.func_caps.common_cap.num_msix_vectors - in ice_set_per_vf_res()
663 vf_abs_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_sriov_trigger_reset_register()
1017 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_process_vflr_event()
1018 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_process_vflr_event()
1078 return globalq - pf->hw.func_caps.common_cap.rxq_first_id; in ice_globalq_to_pfq()
Dice_irq.c143 hw_num_msix = pf->hw.func_caps.common_cap.num_msix_vectors; in ice_ena_msix_range()
254 int total_vectors = pf->hw.func_caps.common_cap.num_msix_vectors; in ice_init_interrupt_scheme()
Dice_ptp_hw.c81 return hw->func_caps.ts_func_info.tmr_index_assoc; in ice_get_ptp_src_clock_index()
940 struct ice_ts_func_info *ts_info = &hw->func_caps.ts_func_info; in ice_init_cgu_e822()
2728 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_phy_e810()
2770 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_time_e810()
2806 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_adj_e810()
2843 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_incval_e810()
3206 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_time()
3244 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_write_incval()
3299 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_adj_clock()
3376 u8 src_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_phc()
Dice_ptp.c357 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_get_ptp_clock_index()
402 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_set_ptp_clock_index()
439 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_clear_ptp_clock_index()
442 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_clear_ptp_clock_index()
1480 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_extts_event()
1521 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_extts()
1581 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_clkout()
2003 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_ptp_get_syncdevicetime()
2477 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_ptp_reset()
2719 if (hw->func_caps.ts_func_info.src_tmr_owned) { in ice_ptp_init()
Dice_ptp_hw.h157 return hw->func_caps.ts_func_info.time_ref; in ice_e822_time_ref()
171 hw->func_caps.ts_func_info.time_ref = time_ref; in ice_set_e822_time_ref()
Dice_dcb_nl.c103 new_cfg->etscfg.maxtcs = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setets()
139 *num = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_getnumtcs()
286 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setpfc()
348 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_set_pfc_cfg()
768 max_tc = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setapp()
Dice_common.c1289 uld_mask = ICE_RESET_DONE_MASK | (hw->func_caps.common_cap.rdma ? in ice_check_reset()
2803 ice_discover_func_caps(struct ice_hw *hw, struct ice_hw_func_caps *func_caps) in ice_discover_func_caps() argument
2822 ice_parse_func_caps(hw, func_caps, cbuf, cap_count); in ice_discover_func_caps()
2834 struct ice_hw_func_caps *func_caps = &hw->func_caps; in ice_set_safe_mode_caps() local
2840 cached_caps = func_caps->common_cap; in ice_set_safe_mode_caps()
2843 memset(func_caps, 0, sizeof(*func_caps)); in ice_set_safe_mode_caps()
2846 func_caps->common_cap.name = cached_caps.name in ice_set_safe_mode_caps()
2860 func_caps->common_cap.num_rxq = 1; in ice_set_safe_mode_caps()
2861 func_caps->common_cap.num_txq = 1; in ice_set_safe_mode_caps()
2864 func_caps->common_cap.num_msix_vectors = 2; in ice_set_safe_mode_caps()
[all …]
Dice_dcb_lib.c651 dcbcfg->etscfg.maxtcs = hw->func_caps.common_cap.maxtc; in ice_dcb_sw_dflt_cfg()
660 dcbcfg->pfc.pfccap = hw->func_caps.common_cap.maxtc; in ice_dcb_sw_dflt_cfg()
820 pf->hw.func_caps.common_cap.maxtc); in ice_init_pf_dcb()
Dice_main.c3158 u8 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_misc_intr()
3163 if (hw->func_caps.ts_func_info.src_tmr_owned) { in ice_misc_intr()
3838 struct ice_hw_func_caps *func_caps = &pf->hw.func_caps; in ice_set_pf_caps() local
3841 if (func_caps->common_cap.rdma) in ice_set_pf_caps()
3844 if (func_caps->common_cap.dcb) in ice_set_pf_caps()
3847 if (func_caps->common_cap.sr_iov_1_1) { in ice_set_pf_caps()
3849 pf->vfs.num_supported = min_t(int, func_caps->num_allocd_vfs, in ice_set_pf_caps()
3853 if (func_caps->common_cap.rss_table_size) in ice_set_pf_caps()
3857 if (func_caps->fd_fltr_guar > 0 || func_caps->fd_fltr_best_effort > 0) { in ice_set_pf_caps()
3867 func_caps->fd_fltr_guar); in ice_set_pf_caps()
[all …]
Dice_gnss.c389 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_gnss_is_gps_present()
Dice_fdir.c766 return hw->func_caps.fd_fltr_guar + hw->func_caps.fd_fltr_best_effort; in ice_get_fdir_cnt_all()
Dice_dcb.c1017 if (!hw->func_caps.common_cap.dcb) in ice_init_dcb()
1059 if (!hw->func_caps.common_cap.dcb) in ice_cfg_lldp_mib_change()
Dice_eswitch.c40 rule_info.sw_act.fwd_id.q_id = hw->func_caps.common_cap.rxq_first_id + in ice_eswitch_add_vf_sp_rule()
Dice_ethtool.c603 u32 int_elements = hw->func_caps.common_cap.num_msix_vectors ? in ice_reg_test()
604 hw->func_caps.common_cap.num_msix_vectors - 1 : 1; in ice_reg_test()
3304 (u16)pf->hw.func_caps.common_cap.num_txq); in ice_get_max_txq()
3314 (u16)pf->hw.func_caps.common_cap.num_rxq); in ice_get_max_rxq()
3373 struct ice_hw_common_caps *caps = &hw->func_caps.common_cap; in ice_get_valid_rss_size()
Dice.h952 if (pf->hw.func_caps.common_cap.rdma && pf->num_rdma_msix) { in ice_set_rdma_cap()
Dice_type.h864 struct ice_hw_func_caps func_caps; /* function capabilities */ member
Dice_lib.c701 g_val = pf->hw.func_caps.fd_fltr_guar; in ice_alloc_fd_res()
706 b_val = pf->hw.func_caps.fd_fltr_best_effort; in ice_alloc_fd_res()
917 cap = &pf->hw.func_caps.common_cap; in ice_vsi_set_rss_params()
1277 ctxt->vf_num = vsi->vf->vf_id + hw->func_caps.vf_base_id; in ice_vsi_init()
Dice_base.c355 tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf->vf_id; in ice_setup_tx_ctx()

12