Lines Matching refs:dcbx_set
1352 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setstate() local
1358 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setstate()
1359 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setstate()
1363 dcbx_set.enabled = !!state; in qed_dcbnl_setstate()
1369 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setstate()
1456 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpfccfg() local
1467 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpfccfg()
1468 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfccfg()
1472 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setpfccfg()
1473 dcbx_set.config.params.pfc.prio[priority] = !!setting; in qed_dcbnl_setpfccfg()
1479 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfccfg()
1594 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpgtccfgtx() local
1607 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpgtccfgtx()
1608 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgtccfgtx()
1612 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setpgtccfgtx()
1613 dcbx_set.config.params.ets_pri_tc_tbl[tc] = pgid; in qed_dcbnl_setpgtccfgtx()
1619 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgtccfgtx()
1633 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpgbwgcfgtx() local
1643 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpgbwgcfgtx()
1644 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgbwgcfgtx()
1648 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setpgbwgcfgtx()
1649 dcbx_set.config.params.ets_tc_bw_tbl[pgid] = bw_pct; in qed_dcbnl_setpgbwgcfgtx()
1655 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgbwgcfgtx()
1668 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setall() local
1672 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setall()
1673 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setall()
1681 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 1); in qed_dcbnl_setall()
1691 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setnumtcs() local
1696 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setnumtcs()
1697 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setnumtcs()
1703 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setnumtcs()
1704 dcbx_set.config.params.max_ets_tc = num; in qed_dcbnl_setnumtcs()
1707 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setnumtcs()
1708 dcbx_set.config.params.pfc.max_tc = num; in qed_dcbnl_setnumtcs()
1719 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setnumtcs()
1729 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpfcstate() local
1735 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpfcstate()
1736 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfcstate()
1740 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setpfcstate()
1741 dcbx_set.config.params.pfc.enabled = !!state; in qed_dcbnl_setpfcstate()
1747 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfcstate()
1789 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setapp() local
1795 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setapp()
1796 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setapp()
1802 entry = &dcbx_set.config.params.app_entry[i]; in qed_dcbnl_setapp()
1807 dcbx_set.config.params.num_app_entries++; in qed_dcbnl_setapp()
1817 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_setapp()
1818 dcbx_set.config.params.app_entry[i].ethtype = ethtype; in qed_dcbnl_setapp()
1819 dcbx_set.config.params.app_entry[i].proto_id = idval; in qed_dcbnl_setapp()
1820 dcbx_set.config.params.app_entry[i].prio = pri_map; in qed_dcbnl_setapp()
1826 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setapp()
1836 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setdcbx() local
1848 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setdcbx()
1849 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setdcbx()
1853 dcbx_set.ver_num = 0; in qed_dcbnl_setdcbx()
1855 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_CEE; in qed_dcbnl_setdcbx()
1856 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1860 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_IEEE; in qed_dcbnl_setdcbx()
1861 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1865 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_STATIC; in qed_dcbnl_setdcbx()
1866 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1873 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setdcbx()
1925 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setfeatcfg() local
1932 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setfeatcfg()
1933 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setfeatcfg()
1941 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setfeatcfg()
1942 dcbx_set.config.params.ets_enabled = enabled; in qed_dcbnl_setfeatcfg()
1943 dcbx_set.config.params.ets_willing = willing; in qed_dcbnl_setfeatcfg()
1946 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setfeatcfg()
1947 dcbx_set.config.params.pfc.enabled = enabled; in qed_dcbnl_setfeatcfg()
1948 dcbx_set.config.params.pfc.willing = willing; in qed_dcbnl_setfeatcfg()
1951 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_setfeatcfg()
1952 dcbx_set.config.params.app_willing = willing; in qed_dcbnl_setfeatcfg()
1963 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setfeatcfg()
2111 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setpfc() local
2127 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setpfc()
2128 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setpfc()
2132 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_ieee_setpfc()
2134 dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i)); in qed_dcbnl_ieee_setpfc()
2136 dcbx_set.config.params.pfc.max_tc = pfc->pfc_cap; in qed_dcbnl_ieee_setpfc()
2142 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setpfc()
2201 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setets() local
2217 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setets()
2218 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setets()
2222 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_ieee_setets()
2223 dcbx_set.config.params.max_ets_tc = ets->ets_cap; in qed_dcbnl_ieee_setets()
2224 dcbx_set.config.params.ets_willing = ets->willing; in qed_dcbnl_ieee_setets()
2225 dcbx_set.config.params.ets_cbs = ets->cbs; in qed_dcbnl_ieee_setets()
2226 memcpy(dcbx_set.config.params.ets_tc_bw_tbl, ets->tc_tx_bw, in qed_dcbnl_ieee_setets()
2228 memcpy(dcbx_set.config.params.ets_tc_tsa_tbl, ets->tc_tsa, in qed_dcbnl_ieee_setets()
2230 memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc, in qed_dcbnl_ieee_setets()
2237 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setets()
2333 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setapp() local
2364 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setapp()
2365 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setapp()
2370 entry = &dcbx_set.config.params.app_entry[i]; in qed_dcbnl_ieee_setapp()
2376 dcbx_set.config.params.num_app_entries++; in qed_dcbnl_ieee_setapp()
2386 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_ieee_setapp()
2387 dcbx_set.config.params.app_entry[i].sf_ieee = sf_ieee; in qed_dcbnl_ieee_setapp()
2388 dcbx_set.config.params.app_entry[i].proto_id = app->protocol; in qed_dcbnl_ieee_setapp()
2389 dcbx_set.config.params.app_entry[i].prio = BIT(app->priority); in qed_dcbnl_ieee_setapp()
2395 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setapp()