• Home
  • Raw
  • Download

Lines Matching refs:hwfn

879 static void qed_dcbx_aen(struct qed_hwfn *hwfn, u32 mib_type)  in qed_dcbx_aen()  argument
881 struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common; in qed_dcbx_aen()
882 void *cookie = hwfn->cdev->ops_cookie; in qed_dcbx_aen()
885 op->dcbx_aen(cookie, &hwfn->p_dcbx_info->get, mib_type); in qed_dcbx_aen()
1308 static struct qed_dcbx_get *qed_dcbnl_get_dcbx(struct qed_hwfn *hwfn, in qed_dcbnl_get_dcbx() argument
1317 if (qed_dcbx_query_params(hwfn, dcbx_info, type)) { in qed_dcbnl_get_dcbx()
1324 DP_INFO(hwfn, "DCBX is not enabled/operational\n"); in qed_dcbnl_get_dcbx()
1334 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getstate() local
1338 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getstate()
1343 DP_VERBOSE(hwfn, QED_MSG_DCB, "DCB state = %d\n", enabled); in qed_dcbnl_getstate()
1351 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setstate() local
1356 DP_VERBOSE(hwfn, QED_MSG_DCB, "DCB state = %d\n", state); in qed_dcbnl_setstate()
1359 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setstate()
1365 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setstate()
1369 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setstate()
1371 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setstate()
1379 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpgtccfgtx() local
1382 DP_VERBOSE(hwfn, QED_MSG_DCB, "tc = %d\n", tc); in qed_dcbnl_getpgtccfgtx()
1385 DP_INFO(hwfn, "Invalid tc %d\n", tc); in qed_dcbnl_getpgtccfgtx()
1389 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpgtccfgtx()
1399 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpgbwgcfgtx() local
1403 DP_VERBOSE(hwfn, QED_MSG_DCB, "pgid = %d\n", pgid); in qed_dcbnl_getpgbwgcfgtx()
1405 DP_INFO(hwfn, "Invalid pgid %d\n", pgid); in qed_dcbnl_getpgbwgcfgtx()
1409 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpgbwgcfgtx()
1414 DP_VERBOSE(hwfn, QED_MSG_DCB, "bw_pct = %d\n", *bw_pct); in qed_dcbnl_getpgbwgcfgtx()
1435 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpfccfg() local
1438 DP_VERBOSE(hwfn, QED_MSG_DCB, "priority = %d\n", priority); in qed_dcbnl_getpfccfg()
1440 DP_INFO(hwfn, "Invalid priority %d\n", priority); in qed_dcbnl_getpfccfg()
1444 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpfccfg()
1449 DP_VERBOSE(hwfn, QED_MSG_DCB, "setting = %d\n", *setting); in qed_dcbnl_getpfccfg()
1455 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpfccfg() local
1460 DP_VERBOSE(hwfn, QED_MSG_DCB, "priority = %d setting = %d\n", in qed_dcbnl_setpfccfg()
1463 DP_INFO(hwfn, "Invalid priority %d\n", priority); in qed_dcbnl_setpfccfg()
1468 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfccfg()
1475 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpfccfg()
1479 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfccfg()
1481 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpfccfg()
1486 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getcap() local
1490 DP_VERBOSE(hwfn, QED_MSG_DCB, "capid = %d\n", capid); in qed_dcbnl_getcap()
1491 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getcap()
1515 DP_VERBOSE(hwfn, QED_MSG_DCB, "id = %d caps = %d\n", capid, *cap); in qed_dcbnl_getcap()
1523 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getnumtcs() local
1527 DP_VERBOSE(hwfn, QED_MSG_DCB, "tcid = %d\n", tcid); in qed_dcbnl_getnumtcs()
1528 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getnumtcs()
1544 DP_VERBOSE(hwfn, QED_MSG_DCB, "numtcs = %d\n", *num); in qed_dcbnl_getnumtcs()
1551 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getpfcstate() local
1555 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getpfcstate()
1560 DP_VERBOSE(hwfn, QED_MSG_DCB, "pfc state = %d\n", enabled); in qed_dcbnl_getpfcstate()
1568 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getdcbx() local
1572 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getdcbx()
1583 DP_VERBOSE(hwfn, QED_MSG_DCB, "dcb mode = %d\n", mode); in qed_dcbnl_getdcbx()
1593 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpgtccfgtx() local
1598 DP_VERBOSE(hwfn, QED_MSG_DCB, in qed_dcbnl_setpgtccfgtx()
1603 DP_INFO(hwfn, "Invalid tc %d\n", tc); in qed_dcbnl_setpgtccfgtx()
1608 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgtccfgtx()
1615 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpgtccfgtx()
1619 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgtccfgtx()
1621 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpgtccfgtx()
1632 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpgbwgcfgtx() local
1637 DP_VERBOSE(hwfn, QED_MSG_DCB, "pgid = %d bw_pct = %d\n", pgid, bw_pct); in qed_dcbnl_setpgbwgcfgtx()
1639 DP_INFO(hwfn, "Invalid pgid %d\n", pgid); in qed_dcbnl_setpgbwgcfgtx()
1644 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpgbwgcfgtx()
1651 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpgbwgcfgtx()
1655 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpgbwgcfgtx()
1657 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpgbwgcfgtx()
1667 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setall() local
1673 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setall()
1677 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setall()
1681 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 1); in qed_dcbnl_setall()
1683 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setall()
1690 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setnumtcs() local
1695 DP_VERBOSE(hwfn, QED_MSG_DCB, "tcid = %d num = %d\n", tcid, num); in qed_dcbnl_setnumtcs()
1697 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setnumtcs()
1711 DP_INFO(hwfn, "Invalid tcid %d\n", tcid); in qed_dcbnl_setnumtcs()
1715 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setnumtcs()
1719 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setnumtcs()
1721 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setnumtcs()
1728 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setpfcstate() local
1733 DP_VERBOSE(hwfn, QED_MSG_DCB, "new state = %d\n", state); in qed_dcbnl_setpfcstate()
1736 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setpfcstate()
1743 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setpfcstate()
1747 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setpfcstate()
1749 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setpfcstate()
1754 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getapp() local
1761 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getapp()
1788 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setapp() local
1796 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setapp()
1822 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setapp()
1826 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setapp()
1828 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setapp()
1835 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setdcbx() local
1840 DP_VERBOSE(hwfn, QED_MSG_DCB, "new mode = %x\n", mode); in qed_dcbnl_setdcbx()
1844 DP_INFO(hwfn, "Allowed modes are cee, ieee or static\n"); in qed_dcbnl_setdcbx()
1849 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setdcbx()
1869 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setdcbx()
1873 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setdcbx()
1875 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setdcbx()
1882 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_getfeatcfg() local
1885 DP_VERBOSE(hwfn, QED_MSG_DCB, "Feature id = %d\n", featid); in qed_dcbnl_getfeatcfg()
1886 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_getfeatcfg()
1911 DP_INFO(hwfn, "Invalid feature-ID %d\n", featid); in qed_dcbnl_getfeatcfg()
1916 DP_VERBOSE(hwfn, QED_MSG_DCB, "flags = %d\n", *flags); in qed_dcbnl_getfeatcfg()
1924 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_setfeatcfg() local
1930 DP_VERBOSE(hwfn, QED_MSG_DCB, "featid = %d flags = %d\n", in qed_dcbnl_setfeatcfg()
1933 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_setfeatcfg()
1955 DP_INFO(hwfn, "Invalid feature-ID %d\n", featid); in qed_dcbnl_setfeatcfg()
1959 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_setfeatcfg()
1963 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_setfeatcfg()
1965 qed_ptt_release(hwfn, ptt); in qed_dcbnl_setfeatcfg()
1974 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_peer_getappinfo() local
1977 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_peer_getappinfo()
1992 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_peer_getapptable() local
1996 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_REMOTE_MIB); in qed_dcbnl_peer_getapptable()
2017 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); 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()
2030 DP_VERBOSE(hwfn, QED_MSG_DCB, "pfc state = %d tcs_supported = %d\n", in qed_dcbnl_cee_peer_getpfc()
2039 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); 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()
2053 DP_VERBOSE(hwfn, QED_MSG_DCB, "willing = %d", pg->willing); in qed_dcbnl_cee_peer_getpg()
2062 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); 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()
2072 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_get_ieee_pfc()
2079 rc = qed_dcbx_query_params(hwfn, dcbx_info, in qed_dcbnl_get_ieee_pfc()
2109 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_setpfc() local
2115 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setpfc()
2120 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_setpfc()
2128 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setpfc()
2138 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_ieee_setpfc()
2142 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setpfc()
2144 qed_ptt_release(hwfn, ptt); in qed_dcbnl_ieee_setpfc()
2152 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); 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()
2162 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_get_ieee_ets()
2169 rc = qed_dcbx_query_params(hwfn, dcbx_info, in qed_dcbnl_get_ieee_ets()
2199 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_setets() local
2205 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setets()
2210 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_setets()
2218 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setets()
2233 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_ieee_setets()
2237 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setets()
2239 qed_ptt_release(hwfn, ptt); in qed_dcbnl_ieee_setets()
2280 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_getapp() local
2287 DP_VERBOSE(hwfn, QED_MSG_DCB, "selector = %d protocol = %d\n", in qed_dcbnl_ieee_getapp()
2296 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_getapp()
2301 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_getapp()
2331 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); in qed_dcbnl_ieee_setapp() local
2339 DP_VERBOSE(hwfn, QED_MSG_DCB, "selector = %d protocol = %d pri = %d\n", in qed_dcbnl_ieee_setapp()
2342 DP_INFO(hwfn, "Invalid priority %d\n", app->priority); in qed_dcbnl_ieee_setapp()
2352 dcbx_info = qed_dcbnl_get_dcbx(hwfn, QED_DCBX_OPERATIONAL_MIB); in qed_dcbnl_ieee_setapp()
2357 DP_INFO(hwfn, "DCBX is not enabled/operational in IEEE mode\n"); in qed_dcbnl_ieee_setapp()
2365 rc = qed_dcbx_get_config_params(hwfn, &dcbx_set); in qed_dcbnl_ieee_setapp()
2391 ptt = qed_ptt_acquire(hwfn); in qed_dcbnl_ieee_setapp()
2395 rc = qed_dcbx_config_params(hwfn, ptt, &dcbx_set, 0); in qed_dcbnl_ieee_setapp()
2397 qed_ptt_release(hwfn, ptt); in qed_dcbnl_ieee_setapp()