Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A 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()
H A Di40e_virtchnl_pf.c30 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast()
116 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state()
203 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
296 return vector_id < pf->hw.func_caps.num_msix_vectors_vf; in i40e_vc_isvalid_vector_id()
388 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list()
486 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_release_rdma_qvlist()
541 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_rdma_qvlist()
562 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_rdma_qvlist()
690 qtx_ctl |= (((vf->vf_id + hw->func_caps.vf_base_id) in i40e_config_vsi_tx_queue()
1065 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_free_vf_res()
[all …]
H A Di40e_main.c3601 u32 chain_len = vsi->back->hw.func_caps.rx_buf_chain_len; in i40e_configure_rx_ring()
5532 if (pf->hw.func_caps.iscsi) in i40e_pf_get_num_tc()
5566 if (pf->hw.func_caps.iscsi) in i40e_pf_get_tc_map()
5772 ctxt.vf_num = vsi->vf_id + hw->func_caps.vf_base_id + vsi_offset; in i40e_update_adq_vsi_queues()
7231 if ((!hw->func_caps.dcb) || in i40e_init_pf_dcb()
7298 if (pf->hw.func_caps.npar_enable && in i40e_print_link_message()
9597 vf_id -= hw->func_caps.vf_base_id; in i40e_handle_lan_overflow_event()
10529 pf->hw.pf_id, pf->hw.func_caps.num_vfs, in i40e_get_capabilities()
10530 pf->hw.func_caps.num_msix_vectors, in i40e_get_capabilities()
10531 pf->hw.func_caps.num_msix_vectors_vf, in i40e_get_capabilities()
[all …]
H A 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()
H A Di40e_common.c803 u32 abs_queue_idx = hw->func_caps.base_queue + queue; in i40e_pre_tx_queue_cfg()
1190 !hw->func_caps.led[idx]) in i40e_led_is_mine()
3129 p = &hw->func_caps; in i40e_parse_discover_capabilities()
4641 u8 port_num = (u8)hw->func_caps.mdio_port_num; in i40e_read_phy_register_clause22()
4686 u8 port_num = (u8)hw->func_caps.mdio_port_num; in i40e_write_phy_register_clause22()
4727 u8 port_num = hw->func_caps.mdio_port_num; in i40e_read_phy_register_clause45()
4801 u8 port_num = hw->func_caps.mdio_port_num; in i40e_write_phy_register_clause45()
4942 u8 port_num = hw->func_caps.mdio_port_num; in i40e_get_phy_address()
H A Di40e_type.h510 struct i40e_hw_capabilities func_caps; member
H A Di40e_dcb.c878 if (!hw->func_caps.dcb) in i40e_init_dcb()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A 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()
H A 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()
H A 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()
2479 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_ptp_reset()
2721 if (hw->func_caps.ts_func_info.src_tmr_owned) { in ice_ptp_init()
H A 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()
H A 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()
H A 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()
H A 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 …]
H A 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()
H A Dice_main.c3160 u8 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_misc_intr()
3165 if (hw->func_caps.ts_func_info.src_tmr_owned) { in ice_misc_intr()
3840 struct ice_hw_func_caps *func_caps = &pf->hw.func_caps; in ice_set_pf_caps() local
3843 if (func_caps->common_cap.rdma) in ice_set_pf_caps()
3846 if (func_caps->common_cap.dcb) in ice_set_pf_caps()
3849 if (func_caps->common_cap.sr_iov_1_1) { in ice_set_pf_caps()
3851 pf->vfs.num_supported = min_t(int, func_caps->num_allocd_vfs, in ice_set_pf_caps()
3855 if (func_caps->common_cap.rss_table_size) in ice_set_pf_caps()
3859 if (func_caps->fd_fltr_guar > 0 || func_caps->fd_fltr_best_effort > 0) { in ice_set_pf_caps()
3869 func_caps->fd_fltr_guar); in ice_set_pf_caps()
[all …]
H A Dice_gnss.c389 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_gnss_is_gps_present()
H A Dice_fdir.c766 return hw->func_caps.fd_fltr_guar + hw->func_caps.fd_fltr_best_effort; in ice_get_fdir_cnt_all()
H A 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()
H A 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()
H A 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()
H A Dice_type.h864 struct ice_hw_func_caps func_caps; /* function capabilities */ member
H A Dice.h971 if (pf->hw.func_caps.common_cap.rdma && pf->num_rdma_msix) { in ice_set_rdma_cap()
H A Dice_lib.c696 g_val = pf->hw.func_caps.fd_fltr_guar; in ice_alloc_fd_res()
701 b_val = pf->hw.func_caps.fd_fltr_best_effort; in ice_alloc_fd_res()
912 cap = &pf->hw.func_caps.common_cap; in ice_vsi_set_rss_params()
1273 ctxt->vf_num = vsi->vf->vf_id + hw->func_caps.vf_base_id; in ice_vsi_init()
H A Dice_base.c355 tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf->vf_id; in ice_setup_tx_ctx()

12