Lines Matching refs:hwfn
851 static void qed_dcbx_aen(struct qed_hwfn *hwfn, u32 mib_type) in qed_dcbx_aen() argument
853 struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common; in qed_dcbx_aen()
854 void *cookie = hwfn->cdev->ops_cookie; in qed_dcbx_aen()
857 op->dcbx_aen(cookie, &hwfn->p_dcbx_info->get, mib_type); in qed_dcbx_aen()
1281 static struct qed_dcbx_get *qed_dcbnl_get_dcbx(struct qed_hwfn *hwfn, in qed_dcbnl_get_dcbx() argument
1290 if (qed_dcbx_query_params(hwfn, dcbx_info, type)) { in qed_dcbnl_get_dcbx()
1297 DP_INFO(hwfn, "DCBX is not enabled/operational\n"); in qed_dcbnl_get_dcbx()
1307 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getstate() local
1311 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getstate()
1316 DP_VERBOSE(hwfn, QED_MSG_DCB, "DCB state = %d\n", enabled); in qed_dcbnl_getstate()
1324 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setstate() local
1329 DP_VERBOSE(hwfn, QED_MSG_DCB, "DCB state = %d\n", state); in qed_dcbnl_setstate()
1332 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setstate()
1338 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setstate()
1342 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setstate()
1344 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setstate()
1352 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpgtccfgtx() local
1355 DP_VERBOSE(hwfn, QED_MSG_DCB, "tc = %d\n", tc); in qed_dcbnl_getpgtccfgtx()
1358 DP_INFO(hwfn, "Invalid tc %d\n", tc); in qed_dcbnl_getpgtccfgtx()
1362 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpgtccfgtx()
1372 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpgbwgcfgtx() local
1376 DP_VERBOSE(hwfn, QED_MSG_DCB, "pgid = %d\n", pgid); in qed_dcbnl_getpgbwgcfgtx()
1378 DP_INFO(hwfn, "Invalid pgid %d\n", pgid); in qed_dcbnl_getpgbwgcfgtx()
1382 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpgbwgcfgtx()
1387 DP_VERBOSE(hwfn, QED_MSG_DCB, "bw_pct = %d\n", *bw_pct); in qed_dcbnl_getpgbwgcfgtx()
1408 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpfccfg() local
1411 DP_VERBOSE(hwfn, QED_MSG_DCB, "priority = %d\n", priority); in qed_dcbnl_getpfccfg()
1413 DP_INFO(hwfn, "Invalid priority %d\n", priority); in qed_dcbnl_getpfccfg()
1417 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpfccfg()
1422 DP_VERBOSE(hwfn, QED_MSG_DCB, "setting = %d\n", *setting); in qed_dcbnl_getpfccfg()
1428 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpfccfg() local
1433 DP_VERBOSE(hwfn, QED_MSG_DCB, "priority = %d setting = %d\n", in qed_dcbnl_setpfccfg()
1436 DP_INFO(hwfn, "Invalid priority %d\n", priority); in qed_dcbnl_setpfccfg()
1441 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfccfg()
1448 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpfccfg()
1452 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfccfg()
1454 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpfccfg()
1459 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getcap() local
1463 DP_VERBOSE(hwfn, QED_MSG_DCB, "capid = %d\n", capid); in qed_dcbnl_getcap()
1464 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getcap()
1488 DP_VERBOSE(hwfn, QED_MSG_DCB, "id = %d caps = %d\n", capid, *cap); in qed_dcbnl_getcap()
1496 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getnumtcs() local
1500 DP_VERBOSE(hwfn, QED_MSG_DCB, "tcid = %d\n", tcid); in qed_dcbnl_getnumtcs()
1501 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getnumtcs()
1517 DP_VERBOSE(hwfn, QED_MSG_DCB, "numtcs = %d\n", *num); in qed_dcbnl_getnumtcs()
1524 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpfcstate() local
1528 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpfcstate()
1533 DP_VERBOSE(hwfn, QED_MSG_DCB, "pfc state = %d\n", enabled); in qed_dcbnl_getpfcstate()
1541 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getdcbx() local
1545 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getdcbx()
1556 DP_VERBOSE(hwfn, QED_MSG_DCB, "dcb mode = %d\n", mode); in qed_dcbnl_getdcbx()
1566 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpgtccfgtx() local
1571 DP_VERBOSE(hwfn, QED_MSG_DCB, in qed_dcbnl_setpgtccfgtx()
1576 DP_INFO(hwfn, "Invalid tc %d\n", tc); in qed_dcbnl_setpgtccfgtx()
1581 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgtccfgtx()
1588 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpgtccfgtx()
1592 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgtccfgtx()
1594 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpgtccfgtx()
1605 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpgbwgcfgtx() local
1610 DP_VERBOSE(hwfn, QED_MSG_DCB, "pgid = %d bw_pct = %d\n", pgid, bw_pct); in qed_dcbnl_setpgbwgcfgtx()
1612 DP_INFO(hwfn, "Invalid pgid %d\n", pgid); in qed_dcbnl_setpgbwgcfgtx()
1617 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgbwgcfgtx()
1624 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpgbwgcfgtx()
1628 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgbwgcfgtx()
1630 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpgbwgcfgtx()
1640 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setall() local
1646 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setall()
1650 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setall()
1654 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 1); in qed_dcbnl_setall()
1656 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setall()
1663 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setnumtcs() local
1668 DP_VERBOSE(hwfn, QED_MSG_DCB, "tcid = %d num = %d\n", tcid, num); in qed_dcbnl_setnumtcs()
1670 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setnumtcs()
1684 DP_INFO(hwfn, "Invalid tcid %d\n", tcid); in qed_dcbnl_setnumtcs()
1688 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setnumtcs()
1692 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setnumtcs()
1694 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setnumtcs()
1701 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpfcstate() local
1706 DP_VERBOSE(hwfn, QED_MSG_DCB, "new state = %d\n", state); in qed_dcbnl_setpfcstate()
1709 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfcstate()
1716 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpfcstate()
1720 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfcstate()
1722 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpfcstate()
1727 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getapp() local
1734 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getapp()
1761 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setapp() local
1769 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setapp()
1795 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setapp()
1799 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setapp()
1801 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setapp()
1808 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setdcbx() local
1813 DP_VERBOSE(hwfn, QED_MSG_DCB, "new mode = %x\n", mode); in qed_dcbnl_setdcbx()
1817 DP_INFO(hwfn, "Allowed modes are cee, ieee or static\n"); in qed_dcbnl_setdcbx()
1822 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setdcbx()
1842 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setdcbx()
1846 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setdcbx()
1848 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setdcbx()
1855 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getfeatcfg() local
1858 DP_VERBOSE(hwfn, QED_MSG_DCB, "Feature id = %d\n", featid); in qed_dcbnl_getfeatcfg()
1859 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getfeatcfg()
1884 DP_INFO(hwfn, "Invalid feature-ID %d\n", featid); in qed_dcbnl_getfeatcfg()
1889 DP_VERBOSE(hwfn, QED_MSG_DCB, "flags = %d\n", *flags); in qed_dcbnl_getfeatcfg()
1897 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setfeatcfg() local
1903 DP_VERBOSE(hwfn, QED_MSG_DCB, "featid = %d flags = %d\n", in qed_dcbnl_setfeatcfg()
1906 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setfeatcfg()
1928 DP_INFO(hwfn, "Invalid feature-ID %d\n", featid); in qed_dcbnl_setfeatcfg()
1932 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setfeatcfg()
1936 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setfeatcfg()
1938 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setfeatcfg()
1947 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_peer_getappinfo() local
1950 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_peer_getappinfo()
1965 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_peer_getapptable() local
1969 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_peer_getapptable()
1990 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_cee_peer_getpfc() local
1994 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_cee_peer_getpfc()
2003 DP_VERBOSE(hwfn, QED_MSG_DCB, "pfc state = %d tcs_supported = %d\n", in qed_dcbnl_cee_peer_getpfc()
2012 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_cee_peer_getpg() local
2016 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_cee_peer_getpg()
2026 DP_VERBOSE(hwfn, QED_MSG_DCB, "willing = %d", pg->willing); in qed_dcbnl_cee_peer_getpg()
2035 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_get_ieee_pfc() local
2040 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_get_ieee_pfc()
2045 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_get_ieee_pfc()
2052 rc = qed_dcbx_query_params(hwfn, dcbx_info, in qed_dcbnl_get_ieee_pfc()
2082 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_setpfc() local
2088 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setpfc()
2093 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_setpfc()
2101 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setpfc()
2111 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_ieee_setpfc()
2115 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setpfc()
2117 qed_ptt_release(hwfn, ptt); in qed_dcbnl_ieee_setpfc()
2125 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_get_ieee_ets() local
2130 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_get_ieee_ets()
2135 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_get_ieee_ets()
2142 rc = qed_dcbx_query_params(hwfn, dcbx_info, in qed_dcbnl_get_ieee_ets()
2172 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_setets() local
2178 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setets()
2183 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_setets()
2191 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setets()
2206 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_ieee_setets()
2210 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setets()
2212 qed_ptt_release(hwfn, ptt); in qed_dcbnl_ieee_setets()
2253 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_getapp() local
2260 DP_VERBOSE(hwfn, QED_MSG_DCB, "selector = %d protocol = %d\n", in qed_dcbnl_ieee_getapp()
2269 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_getapp()
2274 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_getapp()
2304 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_setapp() local
2312 DP_VERBOSE(hwfn, QED_MSG_DCB, "selector = %d protocol = %d pri = %d\n", in qed_dcbnl_ieee_setapp()
2315 DP_INFO(hwfn, "Invalid priority %d\n", app->priority); in qed_dcbnl_ieee_setapp()
2325 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setapp()
2330 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_setapp()
2338 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setapp()
2364 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_ieee_setapp()
2368 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setapp()
2370 qed_ptt_release(hwfn, ptt); in qed_dcbnl_ieee_setapp()