Lines Matching refs:dcbx_set

1353 	struct qed_dcbx_set dcbx_set;  in qed_dcbnl_setstate()  local
1359 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setstate()
1360 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setstate()
1364 dcbx_set.enabled = !!state; in qed_dcbnl_setstate()
1370 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setstate()
1457 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpfccfg() local
1468 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpfccfg()
1469 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfccfg()
1473 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setpfccfg()
1474 dcbx_set.config.params.pfc.prio[priority] = !!setting; in qed_dcbnl_setpfccfg()
1480 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfccfg()
1595 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpgtccfgtx() local
1608 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpgtccfgtx()
1609 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgtccfgtx()
1613 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setpgtccfgtx()
1614 dcbx_set.config.params.ets_pri_tc_tbl[tc] = pgid; in qed_dcbnl_setpgtccfgtx()
1620 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgtccfgtx()
1634 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpgbwgcfgtx() local
1644 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpgbwgcfgtx()
1645 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgbwgcfgtx()
1649 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setpgbwgcfgtx()
1650 dcbx_set.config.params.ets_tc_bw_tbl[pgid] = bw_pct; in qed_dcbnl_setpgbwgcfgtx()
1656 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgbwgcfgtx()
1669 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setall() local
1673 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setall()
1674 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setall()
1682 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 1); in qed_dcbnl_setall()
1692 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setnumtcs() local
1697 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setnumtcs()
1698 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setnumtcs()
1704 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setnumtcs()
1705 dcbx_set.config.params.max_ets_tc = num; in qed_dcbnl_setnumtcs()
1708 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setnumtcs()
1709 dcbx_set.config.params.pfc.max_tc = num; in qed_dcbnl_setnumtcs()
1720 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setnumtcs()
1730 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpfcstate() local
1736 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpfcstate()
1737 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfcstate()
1741 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setpfcstate()
1742 dcbx_set.config.params.pfc.enabled = !!state; in qed_dcbnl_setpfcstate()
1748 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfcstate()
1790 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setapp() local
1796 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setapp()
1797 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setapp()
1803 entry = &dcbx_set.config.params.app_entry[i]; in qed_dcbnl_setapp()
1808 dcbx_set.config.params.num_app_entries++; in qed_dcbnl_setapp()
1818 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_setapp()
1819 dcbx_set.config.params.app_entry[i].ethtype = ethtype; in qed_dcbnl_setapp()
1820 dcbx_set.config.params.app_entry[i].proto_id = idval; in qed_dcbnl_setapp()
1821 dcbx_set.config.params.app_entry[i].prio = pri_map; in qed_dcbnl_setapp()
1827 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setapp()
1837 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setdcbx() local
1849 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setdcbx()
1850 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setdcbx()
1854 dcbx_set.ver_num = 0; in qed_dcbnl_setdcbx()
1856 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_CEE; in qed_dcbnl_setdcbx()
1857 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1861 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_IEEE; in qed_dcbnl_setdcbx()
1862 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1866 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_STATIC; in qed_dcbnl_setdcbx()
1867 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1874 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setdcbx()
1926 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setfeatcfg() local
1933 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setfeatcfg()
1934 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setfeatcfg()
1942 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setfeatcfg()
1943 dcbx_set.config.params.ets_enabled = enabled; in qed_dcbnl_setfeatcfg()
1944 dcbx_set.config.params.ets_willing = willing; in qed_dcbnl_setfeatcfg()
1947 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setfeatcfg()
1948 dcbx_set.config.params.pfc.enabled = enabled; in qed_dcbnl_setfeatcfg()
1949 dcbx_set.config.params.pfc.willing = willing; in qed_dcbnl_setfeatcfg()
1952 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_setfeatcfg()
1953 dcbx_set.config.params.app_willing = willing; in qed_dcbnl_setfeatcfg()
1964 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setfeatcfg()
2112 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setpfc() local
2128 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setpfc()
2129 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setpfc()
2133 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_ieee_setpfc()
2135 dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i)); in qed_dcbnl_ieee_setpfc()
2137 dcbx_set.config.params.pfc.max_tc = pfc->pfc_cap; in qed_dcbnl_ieee_setpfc()
2143 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setpfc()
2202 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setets() local
2218 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setets()
2219 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setets()
2223 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_ieee_setets()
2224 dcbx_set.config.params.max_ets_tc = ets->ets_cap; in qed_dcbnl_ieee_setets()
2225 dcbx_set.config.params.ets_willing = ets->willing; in qed_dcbnl_ieee_setets()
2226 dcbx_set.config.params.ets_cbs = ets->cbs; in qed_dcbnl_ieee_setets()
2227 memcpy(dcbx_set.config.params.ets_tc_bw_tbl, ets->tc_tx_bw, in qed_dcbnl_ieee_setets()
2229 memcpy(dcbx_set.config.params.ets_tc_tsa_tbl, ets->tc_tsa, in qed_dcbnl_ieee_setets()
2231 memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc, in qed_dcbnl_ieee_setets()
2238 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setets()
2334 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setapp() local
2365 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setapp()
2366 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setapp()
2371 entry = &dcbx_set.config.params.app_entry[i]; in qed_dcbnl_ieee_setapp()
2377 dcbx_set.config.params.num_app_entries++; in qed_dcbnl_ieee_setapp()
2387 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_ieee_setapp()
2388 dcbx_set.config.params.app_entry[i].sf_ieee = sf_ieee; in qed_dcbnl_ieee_setapp()
2389 dcbx_set.config.params.app_entry[i].proto_id = app->protocol; in qed_dcbnl_ieee_setapp()
2390 dcbx_set.config.params.app_entry[i].prio = BIT(app->priority); in qed_dcbnl_ieee_setapp()
2396 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setapp()