Lines Matching refs:dcbx_info

1004 	struct qed_dcbx_get *dcbx_info = &p_hwfn->p_dcbx_info->get;  in qed_dcbx_get_priority_tc()  local
1011 if (!dcbx_info->operational.valid) { in qed_dcbx_get_priority_tc()
1017 return dcbx_info->operational.params.ets_pri_tc_tbl[pri]; in qed_dcbx_get_priority_tc()
1267 struct qed_dcbx_get *dcbx_info; in qed_dcbx_get_config_params() local
1276 dcbx_info = kzalloc(sizeof(*dcbx_info), GFP_KERNEL); in qed_dcbx_get_config_params()
1277 if (!dcbx_info) in qed_dcbx_get_config_params()
1280 rc = qed_dcbx_query_params(p_hwfn, dcbx_info, QED_DCBX_OPERATIONAL_MIB); in qed_dcbx_get_config_params()
1282 kfree(dcbx_info); in qed_dcbx_get_config_params()
1288 if (dcbx_info->operational.cee) in qed_dcbx_get_config_params()
1290 if (dcbx_info->operational.ieee) in qed_dcbx_get_config_params()
1292 if (dcbx_info->operational.local) in qed_dcbx_get_config_params()
1295 p_hwfn->p_dcbx_info->set.enabled = dcbx_info->operational.enabled; in qed_dcbx_get_config_params()
1297 &dcbx_info->operational.params, in qed_dcbx_get_config_params()
1303 kfree(dcbx_info); in qed_dcbx_get_config_params()
1311 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_get_dcbx() local
1313 dcbx_info = kzalloc(sizeof(*dcbx_info), GFP_ATOMIC); in qed_dcbnl_get_dcbx()
1314 if (!dcbx_info) in qed_dcbnl_get_dcbx()
1317 if (qed_dcbx_query_params(hwfn, dcbx_info, type)) { in qed_dcbnl_get_dcbx()
1318 kfree(dcbx_info); in qed_dcbnl_get_dcbx()
1323 !dcbx_info->operational.enabled) { in qed_dcbnl_get_dcbx()
1325 kfree(dcbx_info); in qed_dcbnl_get_dcbx()
1329 return dcbx_info; in qed_dcbnl_get_dcbx()
1335 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getstate() local
1338 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getstate()
1339 if (!dcbx_info) in qed_dcbnl_getstate()
1342 enabled = dcbx_info->operational.enabled; in qed_dcbnl_getstate()
1344 kfree(dcbx_info); in qed_dcbnl_getstate()
1380 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getpgtccfgtx() local
1389 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpgtccfgtx()
1390 if (!dcbx_info) in qed_dcbnl_getpgtccfgtx()
1393 *pgid = dcbx_info->operational.params.ets_pri_tc_tbl[tc]; in qed_dcbnl_getpgtccfgtx()
1394 kfree(dcbx_info); in qed_dcbnl_getpgtccfgtx()
1400 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getpgbwgcfgtx() local
1409 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpgbwgcfgtx()
1410 if (!dcbx_info) in qed_dcbnl_getpgbwgcfgtx()
1413 *bw_pct = dcbx_info->operational.params.ets_tc_bw_tbl[pgid]; in qed_dcbnl_getpgbwgcfgtx()
1415 kfree(dcbx_info); in qed_dcbnl_getpgbwgcfgtx()
1436 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getpfccfg() local
1444 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpfccfg()
1445 if (!dcbx_info) in qed_dcbnl_getpfccfg()
1448 *setting = dcbx_info->operational.params.pfc.prio[priority]; in qed_dcbnl_getpfccfg()
1450 kfree(dcbx_info); in qed_dcbnl_getpfccfg()
1487 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getcap() local
1491 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getcap()
1492 if (!dcbx_info) in qed_dcbnl_getcap()
1516 kfree(dcbx_info); in qed_dcbnl_getcap()
1524 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getnumtcs() local
1528 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getnumtcs()
1529 if (!dcbx_info) in qed_dcbnl_getnumtcs()
1534 *num = dcbx_info->operational.params.max_ets_tc; in qed_dcbnl_getnumtcs()
1537 *num = dcbx_info->operational.params.pfc.max_tc; in qed_dcbnl_getnumtcs()
1543 kfree(dcbx_info); in qed_dcbnl_getnumtcs()
1552 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getpfcstate() local
1555 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpfcstate()
1556 if (!dcbx_info) in qed_dcbnl_getpfcstate()
1559 enabled = dcbx_info->operational.params.pfc.enabled; in qed_dcbnl_getpfcstate()
1561 kfree(dcbx_info); in qed_dcbnl_getpfcstate()
1569 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getdcbx() local
1572 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getdcbx()
1573 if (!dcbx_info) in qed_dcbnl_getdcbx()
1576 if (dcbx_info->operational.ieee) in qed_dcbnl_getdcbx()
1578 if (dcbx_info->operational.cee) in qed_dcbnl_getdcbx()
1580 if (dcbx_info->operational.local) in qed_dcbnl_getdcbx()
1584 kfree(dcbx_info); in qed_dcbnl_getdcbx()
1755 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getapp() local
1761 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getapp()
1762 if (!dcbx_info) in qed_dcbnl_getapp()
1767 entry = &dcbx_info->operational.params.app_entry[i]; in qed_dcbnl_getapp()
1776 kfree(dcbx_info); in qed_dcbnl_getapp()
1780 kfree(dcbx_info); in qed_dcbnl_getapp()
1883 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_getfeatcfg() local
1886 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getfeatcfg()
1887 if (!dcbx_info) in qed_dcbnl_getfeatcfg()
1893 if (dcbx_info->operational.params.ets_enabled) in qed_dcbnl_getfeatcfg()
1899 if (dcbx_info->operational.params.pfc.enabled) in qed_dcbnl_getfeatcfg()
1905 if (dcbx_info->operational.params.app_valid) in qed_dcbnl_getfeatcfg()
1912 kfree(dcbx_info); in qed_dcbnl_getfeatcfg()
1917 kfree(dcbx_info); in qed_dcbnl_getfeatcfg()
1975 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_peer_getappinfo() local
1977 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_peer_getappinfo()
1978 if (!dcbx_info) in qed_dcbnl_peer_getappinfo()
1981 info->willing = dcbx_info->remote.params.app_willing; in qed_dcbnl_peer_getappinfo()
1982 info->error = dcbx_info->remote.params.app_error; in qed_dcbnl_peer_getappinfo()
1983 *app_count = dcbx_info->remote.params.num_app_entries; in qed_dcbnl_peer_getappinfo()
1984 kfree(dcbx_info); in qed_dcbnl_peer_getappinfo()
1993 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_peer_getapptable() local
1996 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_peer_getapptable()
1997 if (!dcbx_info) in qed_dcbnl_peer_getapptable()
2000 for (i = 0; i < dcbx_info->remote.params.num_app_entries; i++) { in qed_dcbnl_peer_getapptable()
2001 if (dcbx_info->remote.params.app_entry[i].ethtype) in qed_dcbnl_peer_getapptable()
2005 table[i].priority = dcbx_info->remote.params.app_entry[i].prio; in qed_dcbnl_peer_getapptable()
2007 dcbx_info->remote.params.app_entry[i].proto_id; in qed_dcbnl_peer_getapptable()
2010 kfree(dcbx_info); in qed_dcbnl_peer_getapptable()
2018 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_cee_peer_getpfc() local
2021 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_cee_peer_getpfc()
2022 if (!dcbx_info) in qed_dcbnl_cee_peer_getpfc()
2026 if (dcbx_info->remote.params.pfc.prio[i]) in qed_dcbnl_cee_peer_getpfc()
2029 pfc->tcs_supported = dcbx_info->remote.params.pfc.max_tc; in qed_dcbnl_cee_peer_getpfc()
2032 kfree(dcbx_info); in qed_dcbnl_cee_peer_getpfc()
2040 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_cee_peer_getpg() local
2043 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_cee_peer_getpg()
2044 if (!dcbx_info) in qed_dcbnl_cee_peer_getpg()
2047 pg->willing = dcbx_info->remote.params.ets_willing; in qed_dcbnl_cee_peer_getpg()
2049 pg->pg_bw[i] = dcbx_info->remote.params.ets_tc_bw_tbl[i]; in qed_dcbnl_cee_peer_getpg()
2050 pg->prio_pg[i] = dcbx_info->remote.params.ets_pri_tc_tbl[i]; in qed_dcbnl_cee_peer_getpg()
2054 kfree(dcbx_info); in qed_dcbnl_cee_peer_getpg()
2064 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_get_ieee_pfc() local
2067 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_get_ieee_pfc()
2068 if (!dcbx_info) in qed_dcbnl_get_ieee_pfc()
2071 if (!dcbx_info->operational.ieee) { in qed_dcbnl_get_ieee_pfc()
2073 kfree(dcbx_info); in qed_dcbnl_get_ieee_pfc()
2078 memset(dcbx_info, 0, sizeof(*dcbx_info)); in qed_dcbnl_get_ieee_pfc()
2079 rc = qed_dcbx_query_params(hwfn, dcbx_info, in qed_dcbnl_get_ieee_pfc()
2082 kfree(dcbx_info); in qed_dcbnl_get_ieee_pfc()
2086 params = &dcbx_info->remote.params; in qed_dcbnl_get_ieee_pfc()
2088 params = &dcbx_info->operational.params; in qed_dcbnl_get_ieee_pfc()
2097 kfree(dcbx_info); in qed_dcbnl_get_ieee_pfc()
2110 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_ieee_setpfc() local
2115 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setpfc()
2116 if (!dcbx_info) in qed_dcbnl_ieee_setpfc()
2119 if (!dcbx_info->operational.ieee) { in qed_dcbnl_ieee_setpfc()
2121 kfree(dcbx_info); in qed_dcbnl_ieee_setpfc()
2125 kfree(dcbx_info); in qed_dcbnl_ieee_setpfc()
2153 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_get_ieee_ets() local
2157 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_get_ieee_ets()
2158 if (!dcbx_info) in qed_dcbnl_get_ieee_ets()
2161 if (!dcbx_info->operational.ieee) { in qed_dcbnl_get_ieee_ets()
2163 kfree(dcbx_info); in qed_dcbnl_get_ieee_ets()
2168 memset(dcbx_info, 0, sizeof(*dcbx_info)); in qed_dcbnl_get_ieee_ets()
2169 rc = qed_dcbx_query_params(hwfn, dcbx_info, in qed_dcbnl_get_ieee_ets()
2172 kfree(dcbx_info); in qed_dcbnl_get_ieee_ets()
2176 params = &dcbx_info->remote.params; in qed_dcbnl_get_ieee_ets()
2178 params = &dcbx_info->operational.params; in qed_dcbnl_get_ieee_ets()
2187 kfree(dcbx_info); in qed_dcbnl_get_ieee_ets()
2200 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_ieee_setets() local
2205 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setets()
2206 if (!dcbx_info) in qed_dcbnl_ieee_setets()
2209 if (!dcbx_info->operational.ieee) { in qed_dcbnl_ieee_setets()
2211 kfree(dcbx_info); in qed_dcbnl_ieee_setets()
2215 kfree(dcbx_info); in qed_dcbnl_ieee_setets()
2281 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_ieee_getapp() local
2296 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_getapp()
2297 if (!dcbx_info) in qed_dcbnl_ieee_getapp()
2300 if (!dcbx_info->operational.ieee) { in qed_dcbnl_ieee_getapp()
2302 kfree(dcbx_info); in qed_dcbnl_ieee_getapp()
2307 entry = &dcbx_info->operational.params.app_entry[i]; in qed_dcbnl_ieee_getapp()
2318 kfree(dcbx_info); in qed_dcbnl_ieee_getapp()
2324 kfree(dcbx_info); in qed_dcbnl_ieee_getapp()
2332 struct qed_dcbx_get *dcbx_info; in qed_dcbnl_ieee_setapp() local
2352 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setapp()
2353 if (!dcbx_info) in qed_dcbnl_ieee_setapp()
2356 if (!dcbx_info->operational.ieee) { in qed_dcbnl_ieee_setapp()
2358 kfree(dcbx_info); in qed_dcbnl_ieee_setapp()
2362 kfree(dcbx_info); in qed_dcbnl_ieee_setapp()