Home
last modified time | relevance | path

Searched refs:new_cfg (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb_nl.c65 struct ice_dcbx_cfg *new_cfg; in ice_dcbnl_setets() local
78 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_setets()
82 new_cfg->etscfg.willing = ets->willing; in ice_dcbnl_setets()
83 new_cfg->etscfg.cbs = ets->cbs; in ice_dcbnl_setets()
85 new_cfg->etscfg.tcbwtable[i] = ets->tc_tx_bw[i]; in ice_dcbnl_setets()
87 new_cfg->etscfg.tsatable[i] = ets->tc_tsa[i]; in ice_dcbnl_setets()
88 if (new_cfg->pfc_mode == ICE_QOS_MODE_VLAN) { in ice_dcbnl_setets()
90 new_cfg->etscfg.prio_table[i] = ets->prio_tc[i]; in ice_dcbnl_setets()
91 new_cfg->etsrec.prio_table[i] = ets->reco_prio_tc[i]; in ice_dcbnl_setets()
93 new_cfg->etsrec.tcbwtable[i] = ets->tc_reco_bw[i]; in ice_dcbnl_setets()
[all …]
H A Dice_dcb_lib.c350 int ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked) in ice_pf_dcb_cfg() argument
366 if (ice_dcb_get_num_tc(new_cfg) > 1) { in ice_pf_dcb_cfg()
380 if (!memcmp(new_cfg, curr_cfg, sizeof(*new_cfg))) { in ice_pf_dcb_cfg()
385 if (ice_dcb_bwchk(pf, new_cfg)) in ice_pf_dcb_cfg()
421 memcpy(curr_cfg, new_cfg, sizeof(*curr_cfg)); in ice_pf_dcb_cfg()
423 memcpy(&new_cfg->etsrec, &curr_cfg->etscfg, sizeof(curr_cfg->etsrec)); in ice_pf_dcb_cfg()
486 struct ice_dcbx_cfg *new_cfg) in ice_dcb_need_recfg() argument
492 if (memcmp(&new_cfg->etscfg, &old_cfg->etscfg, in ice_dcb_need_recfg()
493 sizeof(new_cfg->etscfg))) { in ice_dcb_need_recfg()
495 if (memcmp(&new_cfg->etscfg.prio_table, in ice_dcb_need_recfg()
[all …]
H A Dice_dcb_nl.h12 struct ice_dcbx_cfg *new_cfg);
18 struct ice_dcbx_cfg *new_cfg) { } in ice_dcbnl_flush_apps() argument
H A Dice_dcb_lib.h24 ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked);
101 struct ice_dcbx_cfg __always_unused *new_cfg, in ice_pf_dcb_cfg() argument
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.c1013 struct otx2_qos_cfg *new_cfg; in otx2_qos_root_add() local
1028 new_cfg = kzalloc(sizeof(*new_cfg), GFP_KERNEL); in otx2_qos_root_add()
1029 if (!new_cfg) { in otx2_qos_root_add()
1035 new_cfg->schq[root->level] = 1; in otx2_qos_root_add()
1036 err = otx2_qos_txschq_alloc(pfvf, new_cfg); in otx2_qos_root_add()
1051 root->schq = new_cfg->schq_list[root->level][0]; in otx2_qos_root_add()
1056 err = otx2_qos_txschq_update_root_cfg(pfvf, root, new_cfg); in otx2_qos_root_add()
1067 kfree(new_cfg); in otx2_qos_root_add()
1071 otx2_qos_free_cfg(pfvf, new_cfg); in otx2_qos_root_add()
1073 kfree(new_cfg); in otx2_qos_root_add()
[all …]
/openbmc/linux/drivers/net/ethernet/natsemi/
H A Dns83820.c602 u32 cfg, new_cfg; in phy_intr() local
653 new_cfg = dev->CFG_cache & ~(CFG_SB | CFG_MODE_1000 | CFG_SPDSTS); in phy_intr()
656 new_cfg |= CFG_MODE_1000; in phy_intr()
658 new_cfg &= ~CFG_MODE_1000; in phy_intr()
664 new_cfg |= CFG_SB; in phy_intr()
679 ((new_cfg ^ dev->CFG_cache) != 0)) { in phy_intr()
680 writel(new_cfg, dev->base + CFG); in phy_intr()
681 dev->CFG_cache = new_cfg; in phy_intr()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dnwl-dsi.c849 union phy_configure_opts new_cfg; in nwl_dsi_bridge_mode_set() local
853 ret = nwl_dsi_get_dphy_params(dsi, adjusted_mode, &new_cfg); in nwl_dsi_bridge_mode_set()
860 memcpy(&dsi->phy_cfg, &new_cfg, sizeof(new_cfg)); in nwl_dsi_bridge_mode_set()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e.h1242 struct i40e_dcbx_config *new_cfg);
1247 struct i40e_dcbx_config *new_cfg);
1248 int i40e_hw_dcb_config(struct i40e_pf *pf, struct i40e_dcbx_config *new_cfg);
H A Di40e_dcb_nl.c999 struct i40e_dcbx_config *new_cfg) in i40e_dcbnl_flush_apps() argument
1011 if (!i40e_dcbnl_find_app(new_cfg, &app)) in i40e_dcbnl_flush_apps()
H A Di40e_main.c6917 struct i40e_dcbx_config *new_cfg) in i40e_hw_set_dcb_config() argument
6923 if (!memcmp(&new_cfg, &old_cfg, sizeof(new_cfg))) { in i40e_hw_set_dcb_config()
6932 *old_cfg = *new_cfg; in i40e_hw_set_dcb_config()
6967 int i40e_hw_dcb_config(struct i40e_pf *pf, struct i40e_dcbx_config *new_cfg) in i40e_hw_dcb_config() argument
7000 new_numtc = i40e_dcb_get_num_tc(new_cfg); in i40e_hw_dcb_config()
7005 switch (new_cfg->etscfg.tsatable[i]) { in i40e_hw_dcb_config()
7009 new_cfg->etscfg.tcbwtable[i]; in i40e_hw_dcb_config()
7026 need_reconfig = i40e_dcb_need_reconfig(pf, old_cfg, new_cfg); in i40e_hw_dcb_config()
7068 i40e_dcb_hw_rx_ets_bw_config(hw, new_cfg->etscfg.tcbwtable, mode, in i40e_hw_dcb_config()
7070 i40e_dcb_hw_pfc_config(hw, new_cfg->pfc.pfcenable, in i40e_hw_dcb_config()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c2035 u32 new_cfg, fec = fecparam->fec; in bnxt_set_fecparam() local
2045 new_cfg = PORT_PHY_CFG_REQ_FLAGS_FEC_AUTONEG_DISABLE | in bnxt_set_fecparam()
2058 new_cfg = PORT_PHY_CFG_REQ_FLAGS_FEC_AUTONEG_ENABLE; in bnxt_set_fecparam()
2060 new_cfg = bnxt_ethtool_forced_fec_to_fw(link_info, fec); in bnxt_set_fecparam()
2067 req->flags = cpu_to_le32(new_cfg | PORT_PHY_CFG_REQ_FLAGS_RESET_PHY); in bnxt_set_fecparam()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c10285 static bool hclge_need_update_vlan_filter(const struct hclge_vlan_info *new_cfg, in hclge_need_update_vlan_filter() argument
10288 if (new_cfg->vlan_tag != old_cfg->vlan_tag) in hclge_need_update_vlan_filter()
10291 if (new_cfg->vlan_tag == 0 && (new_cfg->qos == 0 || old_cfg->qos == 0)) in hclge_need_update_vlan_filter()