Lines Matching refs:dcbx_set

1325 	struct qed_dcbx_set dcbx_set;  in qed_dcbnl_setstate()  local
1331 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setstate()
1332 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setstate()
1336 dcbx_set.enabled = !!state; in qed_dcbnl_setstate()
1342 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setstate()
1429 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpfccfg() local
1440 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpfccfg()
1441 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfccfg()
1445 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setpfccfg()
1446 dcbx_set.config.params.pfc.prio[priority] = !!setting; in qed_dcbnl_setpfccfg()
1452 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfccfg()
1567 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpgtccfgtx() local
1580 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpgtccfgtx()
1581 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgtccfgtx()
1585 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setpgtccfgtx()
1586 dcbx_set.config.params.ets_pri_tc_tbl[tc] = pgid; in qed_dcbnl_setpgtccfgtx()
1592 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgtccfgtx()
1606 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpgbwgcfgtx() local
1616 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpgbwgcfgtx()
1617 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgbwgcfgtx()
1621 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setpgbwgcfgtx()
1622 dcbx_set.config.params.ets_tc_bw_tbl[pgid] = bw_pct; in qed_dcbnl_setpgbwgcfgtx()
1628 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgbwgcfgtx()
1641 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setall() local
1645 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setall()
1646 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setall()
1654 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 1); in qed_dcbnl_setall()
1664 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setnumtcs() local
1669 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setnumtcs()
1670 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setnumtcs()
1676 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setnumtcs()
1677 dcbx_set.config.params.max_ets_tc = num; in qed_dcbnl_setnumtcs()
1680 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setnumtcs()
1681 dcbx_set.config.params.pfc.max_tc = num; in qed_dcbnl_setnumtcs()
1692 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setnumtcs()
1702 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setpfcstate() local
1708 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setpfcstate()
1709 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfcstate()
1713 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setpfcstate()
1714 dcbx_set.config.params.pfc.enabled = !!state; in qed_dcbnl_setpfcstate()
1720 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfcstate()
1762 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setapp() local
1768 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setapp()
1769 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setapp()
1775 entry = &dcbx_set.config.params.app_entry[i]; in qed_dcbnl_setapp()
1780 dcbx_set.config.params.num_app_entries++; in qed_dcbnl_setapp()
1790 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_setapp()
1791 dcbx_set.config.params.app_entry[i].ethtype = ethtype; in qed_dcbnl_setapp()
1792 dcbx_set.config.params.app_entry[i].proto_id = idval; in qed_dcbnl_setapp()
1793 dcbx_set.config.params.app_entry[i].prio = pri_map; in qed_dcbnl_setapp()
1799 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setapp()
1809 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setdcbx() local
1821 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setdcbx()
1822 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setdcbx()
1826 dcbx_set.ver_num = 0; in qed_dcbnl_setdcbx()
1828 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_CEE; in qed_dcbnl_setdcbx()
1829 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1833 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_IEEE; in qed_dcbnl_setdcbx()
1834 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1838 dcbx_set.ver_num |= DCBX_CONFIG_VERSION_STATIC; in qed_dcbnl_setdcbx()
1839 dcbx_set.enabled = true; in qed_dcbnl_setdcbx()
1846 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setdcbx()
1898 struct qed_dcbx_set dcbx_set; in qed_dcbnl_setfeatcfg() local
1905 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_setfeatcfg()
1906 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setfeatcfg()
1914 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_setfeatcfg()
1915 dcbx_set.config.params.ets_enabled = enabled; in qed_dcbnl_setfeatcfg()
1916 dcbx_set.config.params.ets_willing = willing; in qed_dcbnl_setfeatcfg()
1919 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_setfeatcfg()
1920 dcbx_set.config.params.pfc.enabled = enabled; in qed_dcbnl_setfeatcfg()
1921 dcbx_set.config.params.pfc.willing = willing; in qed_dcbnl_setfeatcfg()
1924 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_setfeatcfg()
1925 dcbx_set.config.params.app_willing = willing; in qed_dcbnl_setfeatcfg()
1936 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setfeatcfg()
2084 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setpfc() local
2100 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setpfc()
2101 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setpfc()
2105 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_PFC_CFG; in qed_dcbnl_ieee_setpfc()
2107 dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i)); in qed_dcbnl_ieee_setpfc()
2109 dcbx_set.config.params.pfc.max_tc = pfc->pfc_cap; in qed_dcbnl_ieee_setpfc()
2115 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setpfc()
2174 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setets() local
2190 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setets()
2191 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setets()
2195 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_ETS_CFG; in qed_dcbnl_ieee_setets()
2196 dcbx_set.config.params.max_ets_tc = ets->ets_cap; in qed_dcbnl_ieee_setets()
2197 dcbx_set.config.params.ets_willing = ets->willing; in qed_dcbnl_ieee_setets()
2198 dcbx_set.config.params.ets_cbs = ets->cbs; in qed_dcbnl_ieee_setets()
2199 memcpy(dcbx_set.config.params.ets_tc_bw_tbl, ets->tc_tx_bw, in qed_dcbnl_ieee_setets()
2201 memcpy(dcbx_set.config.params.ets_tc_tsa_tbl, ets->tc_tsa, in qed_dcbnl_ieee_setets()
2203 memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc, in qed_dcbnl_ieee_setets()
2210 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setets()
2306 struct qed_dcbx_set dcbx_set; in qed_dcbnl_ieee_setapp() local
2337 memset(&dcbx_set, 0, sizeof(dcbx_set)); in qed_dcbnl_ieee_setapp()
2338 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setapp()
2343 entry = &dcbx_set.config.params.app_entry[i]; in qed_dcbnl_ieee_setapp()
2349 dcbx_set.config.params.num_app_entries++; in qed_dcbnl_ieee_setapp()
2359 dcbx_set.override_flags |= QED_DCBX_OVERRIDE_APP_CFG; in qed_dcbnl_ieee_setapp()
2360 dcbx_set.config.params.app_entry[i].sf_ieee = sf_ieee; in qed_dcbnl_ieee_setapp()
2361 dcbx_set.config.params.app_entry[i].proto_id = app->protocol; in qed_dcbnl_ieee_setapp()
2362 dcbx_set.config.params.app_entry[i].prio = BIT(app->priority); in qed_dcbnl_ieee_setapp()
2368 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setapp()