Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_diag.c88 hw->func_caps.num_tx_qp != 0) in i40e_diag_reg_test()
89 i40e_reg_list[i].elements = hw->func_caps.num_tx_qp; in i40e_diag_reg_test()
95 hw->func_caps.num_msix_vectors != 0) in i40e_diag_reg_test()
97 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_iwarp_qvlist()
511 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_iwarp_qvlist()
532 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_iwarp_qvlist()
660 qtx_ctl |= (((vf->vf_id + hw->func_caps.vf_base_id) in i40e_config_vsi_tx_queue()
1035 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_free_vf_res()
[all …]
Di40e_main.c3553 u32 chain_len = vsi->back->hw.func_caps.rx_buf_chain_len; in i40e_configure_rx_ring()
5329 for (v = 0; v < pf->hw.func_caps.num_vsis; v++) { in i40e_pf_wait_queues_disabled()
5475 if (pf->hw.func_caps.iscsi) in i40e_pf_get_num_tc()
5509 if (pf->hw.func_caps.iscsi) in i40e_pf_get_tc_map()
5715 ctxt.vf_num = vsi->vf_id + hw->func_caps.vf_base_id + vsi_offset; in i40e_update_adq_vsi_queues()
7174 if ((!hw->func_caps.dcb) || in i40e_init_pf_dcb()
7241 if (pf->hw.func_caps.npar_enable && in i40e_print_link_message()
9540 vf_id -= hw->func_caps.vf_base_id; in i40e_handle_lan_overflow_event()
10472 pf->hw.pf_id, pf->hw.func_caps.num_vfs, in i40e_get_capabilities()
10473 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.c946 u32 abs_queue_idx = hw->func_caps.base_queue + queue; in i40e_pre_tx_queue_cfg()
1333 !hw->func_caps.led[idx]) in i40e_led_is_mine()
3241 p = &hw->func_caps; in i40e_parse_discover_capabilities()
4745 u8 port_num = (u8)hw->func_caps.mdio_port_num; in i40e_read_phy_register_clause22()
4790 u8 port_num = (u8)hw->func_caps.mdio_port_num; in i40e_write_phy_register_clause22()
4833 u8 port_num = hw->func_caps.mdio_port_num; in i40e_read_phy_register_clause45()
4907 u8 port_num = hw->func_caps.mdio_port_num; in i40e_write_phy_register_clause45()
5045 u8 port_num = hw->func_caps.mdio_port_num; in i40e_get_phy_address()
Di40e_type.h549 struct i40e_hw_capabilities func_caps; member
Di40e_dcb.c876 if (!hw->func_caps.dcb) in i40e_init_dcb()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_sriov.c216 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_free_vfs()
217 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_free_vfs()
308 pf->hw.func_caps.common_cap.msix_vector_first_id; in ice_ena_vf_msix_mappings()
311 device_based_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_ena_vf_msix_mappings()
465 u16 total_vectors = pf->hw.func_caps.common_cap.num_msix_vectors; in ice_sriov_set_msix_res()
521 msix_avail_for_sriov = pf->hw.func_caps.common_cap.num_msix_vectors - in ice_set_per_vf_res()
728 vf_abs_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_sriov_trigger_reset_register()
1110 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_process_vflr_event()
1111 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_process_vflr_event()
1171 return globalq - pf->hw.func_caps.common_cap.rxq_first_id; in ice_globalq_to_pfq()
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()
1495 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_extts_work()
1536 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_extts()
1596 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_clkout()
1986 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_ptp_get_syncdevicetime()
2425 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_ptp_reset()
2669 if (hw->func_caps.ts_func_info.src_tmr_owned) { in ice_ptp_init()
Dice_ptp_hw.c81 return hw->func_caps.ts_func_info.tmr_index_assoc; in ice_get_ptp_src_clock_index()
912 struct ice_ts_func_info *ts_info = &hw->func_caps.ts_func_info; in ice_init_cgu_e822()
2752 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_phy_e810()
2794 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_time_e810()
2830 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_adj_e810()
2867 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_incval_e810()
3047 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_time()
3085 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_write_incval()
3140 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_adj_clock()
3387 u8 src_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_phc()
Dice_ptp_hw.h153 return hw->func_caps.ts_func_info.time_ref; in ice_e822_time_ref()
167 hw->func_caps.ts_func_info.time_ref = time_ref; in ice_set_e822_time_ref()
Dice_dcb_nl.c98 new_cfg->etscfg.maxtcs = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setets()
134 *num = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_getnumtcs()
271 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setpfc()
328 new_cfg->pfc.pfccap = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_set_pfc_cfg()
728 max_tc = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setapp()
Dice_common.c1265 uld_mask = ICE_RESET_DONE_MASK | (hw->func_caps.common_cap.rdma ? in ice_check_reset()
2727 ice_discover_func_caps(struct ice_hw *hw, struct ice_hw_func_caps *func_caps) in ice_discover_func_caps() argument
2746 ice_parse_func_caps(hw, func_caps, cbuf, cap_count); in ice_discover_func_caps()
2758 struct ice_hw_func_caps *func_caps = &hw->func_caps; in ice_set_safe_mode_caps() local
2764 cached_caps = func_caps->common_cap; in ice_set_safe_mode_caps()
2767 memset(func_caps, 0, sizeof(*func_caps)); in ice_set_safe_mode_caps()
2770 func_caps->common_cap.name = cached_caps.name in ice_set_safe_mode_caps()
2784 func_caps->common_cap.num_rxq = 1; in ice_set_safe_mode_caps()
2785 func_caps->common_cap.num_txq = 1; in ice_set_safe_mode_caps()
2788 func_caps->common_cap.num_msix_vectors = 2; in ice_set_safe_mode_caps()
[all …]
Dice_dcb_lib.c644 dcbcfg->etscfg.maxtcs = hw->func_caps.common_cap.maxtc; in ice_dcb_sw_dflt_cfg()
653 dcbcfg->pfc.pfccap = hw->func_caps.common_cap.maxtc; in ice_dcb_sw_dflt_cfg()
810 pf->hw.func_caps.common_cap.maxtc); in ice_init_pf_dcb()
Dice_main.c3101 u8 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_misc_intr()
3867 struct ice_hw_func_caps *func_caps = &pf->hw.func_caps; in ice_set_pf_caps() local
3870 if (func_caps->common_cap.rdma) in ice_set_pf_caps()
3873 if (func_caps->common_cap.dcb) in ice_set_pf_caps()
3876 if (func_caps->common_cap.sr_iov_1_1) { in ice_set_pf_caps()
3878 pf->vfs.num_supported = min_t(int, func_caps->num_allocd_vfs, in ice_set_pf_caps()
3882 if (func_caps->common_cap.rss_table_size) in ice_set_pf_caps()
3886 if (func_caps->fd_fltr_guar > 0 || func_caps->fd_fltr_best_effort > 0) { in ice_set_pf_caps()
3896 func_caps->fd_fltr_guar); in ice_set_pf_caps()
3899 func_caps->fd_fltr_best_effort); in ice_set_pf_caps()
[all …]
Dice_vf_mbx.c493 if (!vf_count || vf_count > hw->func_caps.num_allocd_vfs) in ice_mbx_init_snapshot()
Dice.h804 if (pf->hw.func_caps.common_cap.sr_iov_1_1) in ice_set_sriov_cap()
917 if (pf->hw.func_caps.common_cap.rdma && pf->num_rdma_msix) { in ice_set_rdma_cap()
Dice_fdir.c766 return hw->func_caps.fd_fltr_guar + hw->func_caps.fd_fltr_best_effort; in ice_get_fdir_cnt_all()
Dice_gnss.c552 if (!hw->func_caps.ts_func_info.src_tmr_owned) in ice_gnss_is_gps_present()
Dice_dcb.c978 if (!hw->func_caps.common_cap.dcb) in ice_init_dcb()
1020 if (!hw->func_caps.common_cap.dcb) in ice_cfg_lldp_mib_change()
Dice_eswitch.c43 rule_info.sw_act.fwd_id.q_id = hw->func_caps.common_cap.rxq_first_id + in ice_eswitch_add_vf_mac_rule()
Dice_ethtool.c433 u32 int_elements = hw->func_caps.common_cap.num_msix_vectors ? in ice_reg_test()
434 hw->func_caps.common_cap.num_msix_vectors - 1 : 1; in ice_reg_test()
3348 (u16)pf->hw.func_caps.common_cap.num_txq); in ice_get_max_txq()
3358 (u16)pf->hw.func_caps.common_cap.num_rxq); in ice_get_max_rxq()
3417 struct ice_hw_common_caps *caps = &hw->func_caps.common_cap; in ice_get_valid_rss_size()
Dice_type.h852 struct ice_hw_func_caps func_caps; /* function capabilities */ member
Dice_lib.c598 g_val = pf->hw.func_caps.fd_fltr_guar; in ice_alloc_fd_res()
603 b_val = pf->hw.func_caps.fd_fltr_best_effort; in ice_alloc_fd_res()
815 cap = &pf->hw.func_caps.common_cap; in ice_vsi_set_rss_params()
1163 ctxt->vf_num = vsi->vf->vf_id + hw->func_caps.vf_base_id; in ice_vsi_init()
Dice_base.c313 tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf->vf_id; in ice_setup_tx_ctx()

12