Lines Matching refs:desc

1366 				 struct hclge_desc *desc, u32 cmd, u16 flag)  in hclge_cmd_query_error()  argument
1372 hclge_cmd_setup_basic_desc(&desc[0], cmd, true); in hclge_cmd_query_error()
1374 desc[0].flag |= cpu_to_le16(flag); in hclge_cmd_query_error()
1375 hclge_cmd_setup_basic_desc(&desc[1], cmd, true); in hclge_cmd_query_error()
1379 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_cmd_query_error()
1388 struct hclge_desc desc; in hclge_clear_mac_tnl_int() local
1390 hclge_cmd_setup_basic_desc(&desc, HCLGE_OPC_CLEAR_MAC_TNL_INT, false); in hclge_clear_mac_tnl_int()
1391 desc.data[0] = cpu_to_le32(HCLGE_MAC_TNL_INT_CLR); in hclge_clear_mac_tnl_int()
1393 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_clear_mac_tnl_int()
1399 struct hclge_desc desc[2]; in hclge_config_common_hw_err_int() local
1403 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_COMMON_ECC_INT_CFG, false); in hclge_config_common_hw_err_int()
1404 desc[0].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_config_common_hw_err_int()
1405 hclge_cmd_setup_basic_desc(&desc[1], HCLGE_COMMON_ECC_INT_CFG, false); in hclge_config_common_hw_err_int()
1408 desc[0].data[0] = cpu_to_le32(HCLGE_IMP_TCM_ECC_ERR_INT_EN); in hclge_config_common_hw_err_int()
1409 desc[0].data[2] = cpu_to_le32(HCLGE_CMDQ_NIC_ECC_ERR_INT_EN | in hclge_config_common_hw_err_int()
1411 desc[0].data[3] = cpu_to_le32(HCLGE_IMP_RD_POISON_ERR_INT_EN); in hclge_config_common_hw_err_int()
1412 desc[0].data[4] = cpu_to_le32(HCLGE_TQP_ECC_ERR_INT_EN | in hclge_config_common_hw_err_int()
1414 desc[0].data[5] = cpu_to_le32(HCLGE_IMP_ITCM4_ECC_ERR_INT_EN); in hclge_config_common_hw_err_int()
1417 desc[1].data[0] = cpu_to_le32(HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK); in hclge_config_common_hw_err_int()
1418 desc[1].data[2] = cpu_to_le32(HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK | in hclge_config_common_hw_err_int()
1420 desc[1].data[3] = cpu_to_le32(HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK); in hclge_config_common_hw_err_int()
1421 desc[1].data[4] = cpu_to_le32(HCLGE_TQP_ECC_ERR_INT_EN_MASK | in hclge_config_common_hw_err_int()
1423 desc[1].data[5] = cpu_to_le32(HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK); in hclge_config_common_hw_err_int()
1425 ret = hclge_cmd_send(&hdev->hw, &desc[0], 2); in hclge_config_common_hw_err_int()
1436 struct hclge_desc desc; in hclge_config_ncsi_hw_err_int() local
1443 hclge_cmd_setup_basic_desc(&desc, HCLGE_NCSI_INT_EN, false); in hclge_config_ncsi_hw_err_int()
1445 desc.data[0] = cpu_to_le32(HCLGE_NCSI_ERR_INT_EN); in hclge_config_ncsi_hw_err_int()
1447 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_ncsi_hw_err_int()
1458 struct hclge_desc desc; in hclge_config_igu_egu_hw_err_int() local
1462 hclge_cmd_setup_basic_desc(&desc, HCLGE_IGU_COMMON_INT_EN, false); in hclge_config_igu_egu_hw_err_int()
1463 desc.data[0] = cpu_to_le32(HCLGE_IGU_ERR_INT_TYPE); in hclge_config_igu_egu_hw_err_int()
1465 desc.data[0] |= cpu_to_le32(HCLGE_IGU_ERR_INT_EN); in hclge_config_igu_egu_hw_err_int()
1467 desc.data[1] = cpu_to_le32(HCLGE_IGU_ERR_INT_EN_MASK); in hclge_config_igu_egu_hw_err_int()
1469 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_igu_egu_hw_err_int()
1476 hclge_cmd_setup_basic_desc(&desc, HCLGE_IGU_EGU_TNL_INT_EN, false); in hclge_config_igu_egu_hw_err_int()
1478 desc.data[0] = cpu_to_le32(HCLGE_IGU_TNL_ERR_INT_EN); in hclge_config_igu_egu_hw_err_int()
1480 desc.data[1] = cpu_to_le32(HCLGE_IGU_TNL_ERR_INT_EN_MASK); in hclge_config_igu_egu_hw_err_int()
1482 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_igu_egu_hw_err_int()
1498 struct hclge_desc desc[2]; in hclge_config_ppp_error_interrupt() local
1502 hclge_cmd_setup_basic_desc(&desc[0], cmd, false); in hclge_config_ppp_error_interrupt()
1503 desc[0].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_config_ppp_error_interrupt()
1504 hclge_cmd_setup_basic_desc(&desc[1], cmd, false); in hclge_config_ppp_error_interrupt()
1508 desc[0].data[0] = in hclge_config_ppp_error_interrupt()
1510 desc[0].data[1] = in hclge_config_ppp_error_interrupt()
1512 desc[0].data[4] = cpu_to_le32(HCLGE_PPP_PF_ERR_INT_EN); in hclge_config_ppp_error_interrupt()
1515 desc[1].data[0] = in hclge_config_ppp_error_interrupt()
1517 desc[1].data[1] = in hclge_config_ppp_error_interrupt()
1520 desc[1].data[2] = in hclge_config_ppp_error_interrupt()
1524 desc[0].data[0] = in hclge_config_ppp_error_interrupt()
1526 desc[0].data[1] = in hclge_config_ppp_error_interrupt()
1530 desc[1].data[0] = in hclge_config_ppp_error_interrupt()
1532 desc[1].data[1] = in hclge_config_ppp_error_interrupt()
1536 ret = hclge_cmd_send(&hdev->hw, &desc[0], 2); in hclge_config_ppp_error_interrupt()
1561 struct hclge_desc desc; in hclge_config_tm_hw_err_int() local
1565 hclge_cmd_setup_basic_desc(&desc, HCLGE_TM_SCH_ECC_INT_EN, false); in hclge_config_tm_hw_err_int()
1567 desc.data[0] = cpu_to_le32(HCLGE_TM_SCH_ECC_ERR_INT_EN); in hclge_config_tm_hw_err_int()
1569 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_tm_hw_err_int()
1576 hclge_cmd_setup_basic_desc(&desc, HCLGE_TM_QCN_MEM_INT_CFG, false); in hclge_config_tm_hw_err_int()
1577 desc.data[0] = cpu_to_le32(HCLGE_TM_QCN_ERR_INT_TYPE); in hclge_config_tm_hw_err_int()
1579 desc.data[0] |= cpu_to_le32(HCLGE_TM_QCN_FIFO_INT_EN); in hclge_config_tm_hw_err_int()
1580 desc.data[1] = cpu_to_le32(HCLGE_TM_QCN_MEM_ERR_INT_EN); in hclge_config_tm_hw_err_int()
1583 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_tm_hw_err_int()
1594 struct hclge_desc desc; in hclge_config_mac_err_int() local
1598 hclge_cmd_setup_basic_desc(&desc, HCLGE_MAC_COMMON_INT_EN, false); in hclge_config_mac_err_int()
1600 desc.data[0] = cpu_to_le32(HCLGE_MAC_COMMON_ERR_INT_EN); in hclge_config_mac_err_int()
1602 desc.data[1] = cpu_to_le32(HCLGE_MAC_COMMON_ERR_INT_EN_MASK); in hclge_config_mac_err_int()
1604 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_mac_err_int()
1614 struct hclge_desc desc; in hclge_config_mac_tnl_int() local
1616 hclge_cmd_setup_basic_desc(&desc, HCLGE_OPC_MAC_TNL_INT_EN, false); in hclge_config_mac_tnl_int()
1618 desc.data[0] = cpu_to_le32(HCLGE_MAC_TNL_INT_EN); in hclge_config_mac_tnl_int()
1620 desc.data[0] = 0; in hclge_config_mac_tnl_int()
1622 desc.data[1] = cpu_to_le32(HCLGE_MAC_TNL_INT_EN_MASK); in hclge_config_mac_tnl_int()
1624 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_mac_tnl_int()
1631 struct hclge_desc desc[2]; in hclge_config_ppu_error_interrupts() local
1637 hclge_cmd_setup_basic_desc(&desc[0], cmd, false); in hclge_config_ppu_error_interrupts()
1638 desc[0].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_config_ppu_error_interrupts()
1639 hclge_cmd_setup_basic_desc(&desc[1], cmd, false); in hclge_config_ppu_error_interrupts()
1641 desc[0].data[0] = in hclge_config_ppu_error_interrupts()
1643 desc[0].data[1] = in hclge_config_ppu_error_interrupts()
1645 desc[1].data[3] = in hclge_config_ppu_error_interrupts()
1647 desc[1].data[4] = in hclge_config_ppu_error_interrupts()
1651 desc[1].data[0] = in hclge_config_ppu_error_interrupts()
1653 desc[1].data[1] = in hclge_config_ppu_error_interrupts()
1655 desc[1].data[2] = in hclge_config_ppu_error_interrupts()
1657 desc[1].data[3] |= in hclge_config_ppu_error_interrupts()
1661 hclge_cmd_setup_basic_desc(&desc[0], cmd, false); in hclge_config_ppu_error_interrupts()
1663 desc[0].data[0] = in hclge_config_ppu_error_interrupts()
1666 desc[0].data[2] = in hclge_config_ppu_error_interrupts()
1669 hclge_cmd_setup_basic_desc(&desc[0], cmd, false); in hclge_config_ppu_error_interrupts()
1671 desc[0].data[0] = in hclge_config_ppu_error_interrupts()
1674 desc[0].data[2] = in hclge_config_ppu_error_interrupts()
1681 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_config_ppu_error_interrupts()
1718 struct hclge_desc desc[2]; in hclge_config_ssu_hw_err_int() local
1722 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_SSU_ECC_INT_CMD, false); in hclge_config_ssu_hw_err_int()
1723 desc[0].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_config_ssu_hw_err_int()
1724 hclge_cmd_setup_basic_desc(&desc[1], HCLGE_SSU_ECC_INT_CMD, false); in hclge_config_ssu_hw_err_int()
1726 desc[0].data[0] = cpu_to_le32(HCLGE_SSU_1BIT_ECC_ERR_INT_EN); in hclge_config_ssu_hw_err_int()
1727 desc[0].data[1] = in hclge_config_ssu_hw_err_int()
1729 desc[0].data[4] = cpu_to_le32(HCLGE_SSU_BIT32_ECC_ERR_INT_EN); in hclge_config_ssu_hw_err_int()
1732 desc[1].data[0] = cpu_to_le32(HCLGE_SSU_1BIT_ECC_ERR_INT_EN_MASK); in hclge_config_ssu_hw_err_int()
1733 desc[1].data[1] = cpu_to_le32(HCLGE_SSU_MULTI_BIT_ECC_ERR_INT_EN_MASK); in hclge_config_ssu_hw_err_int()
1734 desc[1].data[2] = cpu_to_le32(HCLGE_SSU_BIT32_ECC_ERR_INT_EN_MASK); in hclge_config_ssu_hw_err_int()
1736 ret = hclge_cmd_send(&hdev->hw, &desc[0], 2); in hclge_config_ssu_hw_err_int()
1744 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_SSU_COMMON_INT_CMD, false); in hclge_config_ssu_hw_err_int()
1745 desc[0].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_config_ssu_hw_err_int()
1746 hclge_cmd_setup_basic_desc(&desc[1], HCLGE_SSU_COMMON_INT_CMD, false); in hclge_config_ssu_hw_err_int()
1750 desc[0].data[0] = in hclge_config_ssu_hw_err_int()
1753 desc[0].data[0] = in hclge_config_ssu_hw_err_int()
1755 desc[0].data[1] = cpu_to_le32(HCLGE_SSU_PORT_BASED_ERR_INT_EN); in hclge_config_ssu_hw_err_int()
1756 desc[0].data[2] = in hclge_config_ssu_hw_err_int()
1760 desc[1].data[0] = cpu_to_le32(HCLGE_SSU_COMMON_INT_EN_MASK | in hclge_config_ssu_hw_err_int()
1762 desc[1].data[1] = cpu_to_le32(HCLGE_SSU_FIFO_OVERFLOW_ERR_INT_EN_MASK); in hclge_config_ssu_hw_err_int()
1764 ret = hclge_cmd_send(&hdev->hw, &desc[0], 2); in hclge_config_ssu_hw_err_int()
1827 struct hclge_desc *desc, in hclge_handle_mpf_ras_error() argument
1837 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_QUERY_CLEAR_MPF_RAS_INT, in hclge_handle_mpf_ras_error()
1839 ret = hclge_cmd_send(&hdev->hw, &desc[0], num); in hclge_handle_mpf_ras_error()
1846 status = le32_to_cpu(desc[0].data[0]); in hclge_handle_mpf_ras_error()
1852 status = le32_to_cpu(desc[0].data[1]); in hclge_handle_mpf_ras_error()
1858 if ((le32_to_cpu(desc[0].data[2])) & BIT(0)) in hclge_handle_mpf_ras_error()
1861 status = le32_to_cpu(desc[0].data[3]); in hclge_handle_mpf_ras_error()
1867 status = le32_to_cpu(desc[0].data[4]); in hclge_handle_mpf_ras_error()
1874 desc_data = (__le32 *)&desc[2]; in hclge_handle_mpf_ras_error()
1895 desc_data = (__le32 *)&desc[3]; in hclge_handle_mpf_ras_error()
1903 desc_data = (__le32 *)&desc[4]; in hclge_handle_mpf_ras_error()
1917 desc_data = (__le32 *)&desc[5]; in hclge_handle_mpf_ras_error()
1938 desc_data = (__le32 *)&desc[6]; in hclge_handle_mpf_ras_error()
1946 desc_data = (__le32 *)&desc[7]; in hclge_handle_mpf_ras_error()
1960 desc_data = (__le32 *)&desc[9]; in hclge_handle_mpf_ras_error()
1968 hclge_comm_cmd_reuse_desc(&desc[0], false); in hclge_handle_mpf_ras_error()
1969 ret = hclge_cmd_send(&hdev->hw, &desc[0], num); in hclge_handle_mpf_ras_error()
1985 struct hclge_desc *desc, in hclge_handle_pf_ras_error() argument
1995 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_QUERY_CLEAR_PF_RAS_INT, in hclge_handle_pf_ras_error()
1997 ret = hclge_cmd_send(&hdev->hw, &desc[0], num); in hclge_handle_pf_ras_error()
2004 status = le32_to_cpu(desc[0].data[0]); in hclge_handle_pf_ras_error()
2010 status = le32_to_cpu(desc[0].data[1]); in hclge_handle_pf_ras_error()
2016 status = le32_to_cpu(desc[0].data[2]); in hclge_handle_pf_ras_error()
2023 desc_data = (__le32 *)&desc[1]; in hclge_handle_pf_ras_error()
2031 desc_data = (__le32 *)&desc[3]; in hclge_handle_pf_ras_error()
2041 hclge_comm_cmd_reuse_desc(&desc[0], false); in hclge_handle_pf_ras_error()
2042 ret = hclge_cmd_send(&hdev->hw, &desc[0], num); in hclge_handle_pf_ras_error()
2052 struct hclge_desc *desc; in hclge_handle_all_ras_errors() local
2061 desc = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_handle_all_ras_errors()
2062 if (!desc) in hclge_handle_all_ras_errors()
2066 ret = hclge_handle_mpf_ras_error(hdev, desc, mpf_bd_num); in hclge_handle_all_ras_errors()
2068 kfree(desc); in hclge_handle_all_ras_errors()
2071 memset(desc, 0, bd_num * sizeof(struct hclge_desc)); in hclge_handle_all_ras_errors()
2074 ret = hclge_handle_pf_ras_error(hdev, desc, pf_bd_num); in hclge_handle_all_ras_errors()
2075 kfree(desc); in hclge_handle_all_ras_errors()
2083 struct hclge_desc desc[3]; in hclge_log_rocee_axi_error() local
2086 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_QUERY_ROCEE_AXI_RAS_INFO_CMD, in hclge_log_rocee_axi_error()
2088 hclge_cmd_setup_basic_desc(&desc[1], HCLGE_QUERY_ROCEE_AXI_RAS_INFO_CMD, in hclge_log_rocee_axi_error()
2090 hclge_cmd_setup_basic_desc(&desc[2], HCLGE_QUERY_ROCEE_AXI_RAS_INFO_CMD, in hclge_log_rocee_axi_error()
2092 desc[0].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_log_rocee_axi_error()
2093 desc[1].flag |= cpu_to_le16(HCLGE_COMM_CMD_FLAG_NEXT); in hclge_log_rocee_axi_error()
2095 ret = hclge_cmd_send(&hdev->hw, &desc[0], 3); in hclge_log_rocee_axi_error()
2102 le32_to_cpu(desc[0].data[0]), le32_to_cpu(desc[0].data[1]), in hclge_log_rocee_axi_error()
2103 le32_to_cpu(desc[0].data[2]), le32_to_cpu(desc[0].data[3]), in hclge_log_rocee_axi_error()
2104 le32_to_cpu(desc[0].data[4]), le32_to_cpu(desc[0].data[5])); in hclge_log_rocee_axi_error()
2106 le32_to_cpu(desc[1].data[0]), le32_to_cpu(desc[1].data[1]), in hclge_log_rocee_axi_error()
2107 le32_to_cpu(desc[1].data[2]), le32_to_cpu(desc[1].data[3]), in hclge_log_rocee_axi_error()
2108 le32_to_cpu(desc[1].data[4]), le32_to_cpu(desc[1].data[5])); in hclge_log_rocee_axi_error()
2110 le32_to_cpu(desc[2].data[0]), le32_to_cpu(desc[2].data[1]), in hclge_log_rocee_axi_error()
2111 le32_to_cpu(desc[2].data[2]), le32_to_cpu(desc[2].data[3])); in hclge_log_rocee_axi_error()
2119 struct hclge_desc desc[2]; in hclge_log_rocee_ecc_error() local
2122 ret = hclge_cmd_query_error(hdev, &desc[0], in hclge_log_rocee_ecc_error()
2131 le32_to_cpu(desc[0].data[0]), le32_to_cpu(desc[0].data[1]), in hclge_log_rocee_ecc_error()
2132 le32_to_cpu(desc[0].data[2]), le32_to_cpu(desc[0].data[3]), in hclge_log_rocee_ecc_error()
2133 le32_to_cpu(desc[0].data[4]), le32_to_cpu(desc[0].data[5])); in hclge_log_rocee_ecc_error()
2134 dev_err(dev, "ECC2: %08X %08X %08X\n", le32_to_cpu(desc[1].data[0]), in hclge_log_rocee_ecc_error()
2135 le32_to_cpu(desc[1].data[1]), le32_to_cpu(desc[1].data[2])); in hclge_log_rocee_ecc_error()
2143 struct hclge_desc desc[2]; in hclge_log_rocee_ovf_error() local
2147 ret = hclge_cmd_query_error(hdev, &desc[0], HCLGE_ROCEE_PF_RAS_INT_CMD, in hclge_log_rocee_ovf_error()
2155 if (le32_to_cpu(desc[0].data[0]) & HCLGE_ROCEE_OVF_ERR_INT_MASK) { in hclge_log_rocee_ovf_error()
2161 le32_to_cpu(desc[0].data[0]); in hclge_log_rocee_ovf_error()
2166 le32_to_cpu(desc[0].data[0])); in hclge_log_rocee_ovf_error()
2173 if (le32_to_cpu(desc[0].data[1]) & HCLGE_ROCEE_OVF_ERR_INT_MASK) { in hclge_log_rocee_ovf_error()
2175 le32_to_cpu(desc[0].data[1])); in hclge_log_rocee_ovf_error()
2178 if (le32_to_cpu(desc[0].data[2]) & HCLGE_ROCEE_OVF_ERR_INT_MASK) { in hclge_log_rocee_ovf_error()
2180 le32_to_cpu(desc[0].data[2])); in hclge_log_rocee_ovf_error()
2191 struct hclge_desc desc[2]; in hclge_log_and_clear_rocee_ras_error() local
2196 ret = hclge_cmd_query_error(hdev, &desc[0], in hclge_log_and_clear_rocee_ras_error()
2204 status = le32_to_cpu(desc[0].data[0]); in hclge_log_and_clear_rocee_ras_error()
2240 hclge_comm_cmd_reuse_desc(&desc[0], false); in hclge_log_and_clear_rocee_ras_error()
2241 ret = hclge_cmd_send(&hdev->hw, &desc[0], 1); in hclge_log_and_clear_rocee_ras_error()
2254 struct hclge_desc desc; in hclge_config_rocee_ras_interrupt() local
2261 hclge_cmd_setup_basic_desc(&desc, HCLGE_CONFIG_ROCEE_RAS_INT_EN, false); in hclge_config_rocee_ras_interrupt()
2264 desc.data[0] = cpu_to_le32(HCLGE_ROCEE_RAS_NFE_INT_EN); in hclge_config_rocee_ras_interrupt()
2265 desc.data[1] = cpu_to_le32(HCLGE_ROCEE_RAS_CE_INT_EN); in hclge_config_rocee_ras_interrupt()
2269 desc.data[2] = cpu_to_le32(HCLGE_ROCEE_RAS_NFE_INT_EN_MASK); in hclge_config_rocee_ras_interrupt()
2270 desc.data[3] = cpu_to_le32(HCLGE_ROCEE_RAS_CE_INT_EN_MASK); in hclge_config_rocee_ras_interrupt()
2272 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_config_rocee_ras_interrupt()
2401 struct hclge_desc *desc, bool is_mpf, in hclge_clear_hw_msix_error() argument
2405 desc[0].opcode = in hclge_clear_hw_msix_error()
2408 desc[0].opcode = cpu_to_le16(HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT); in hclge_clear_hw_msix_error()
2410 desc[0].flag = cpu_to_le16(HCLGE_COMM_CMD_FLAG_NO_INTR | in hclge_clear_hw_msix_error()
2413 return hclge_cmd_send(&hdev->hw, &desc[0], bd_num); in hclge_clear_hw_msix_error()
2429 struct hclge_desc desc; in hclge_query_over_8bd_err_info() local
2432 hclge_cmd_setup_basic_desc(&desc, HCLGE_OPC_PPU_PF_OTHER_INT_DFX, true); in hclge_query_over_8bd_err_info()
2433 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_query_over_8bd_err_info()
2437 req = (struct hclge_query_ppu_pf_other_int_dfx_cmd *)desc.data; in hclge_query_over_8bd_err_info()
2501 struct hclge_desc *desc, in hclge_handle_mpf_msix_error() argument
2510 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_QUERY_CLEAR_ALL_MPF_MSIX_INT, in hclge_handle_mpf_msix_error()
2512 ret = hclge_cmd_send(&hdev->hw, &desc[0], mpf_bd_num); in hclge_handle_mpf_msix_error()
2519 desc_data = (__le32 *)&desc[1]; in hclge_handle_mpf_msix_error()
2527 desc_data = (__le32 *)&desc[5]; in hclge_handle_mpf_msix_error()
2535 ret = hclge_clear_hw_msix_error(hdev, desc, true, mpf_bd_num); in hclge_handle_mpf_msix_error()
2552 struct hclge_desc *desc, in hclge_handle_pf_msix_error() argument
2562 hclge_cmd_setup_basic_desc(&desc[0], HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT, in hclge_handle_pf_msix_error()
2564 ret = hclge_cmd_send(&hdev->hw, &desc[0], pf_bd_num); in hclge_handle_pf_msix_error()
2571 status = le32_to_cpu(desc[0].data[0]) & HCLGE_SSU_PORT_INT_MSIX_MASK; in hclge_handle_pf_msix_error()
2578 desc_data = (__le32 *)&desc[2]; in hclge_handle_pf_msix_error()
2586 desc_data = (__le32 *)&desc[3]; in hclge_handle_pf_msix_error()
2598 ret = hclge_clear_hw_msix_error(hdev, desc, false, pf_bd_num); in hclge_handle_pf_msix_error()
2609 struct hclge_desc *desc; in hclge_handle_all_hw_msix_error() local
2618 desc = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_handle_all_hw_msix_error()
2619 if (!desc) in hclge_handle_all_hw_msix_error()
2622 ret = hclge_handle_mpf_msix_error(hdev, desc, mpf_bd_num, in hclge_handle_all_hw_msix_error()
2627 memset(desc, 0, bd_num * sizeof(struct hclge_desc)); in hclge_handle_all_hw_msix_error()
2628 ret = hclge_handle_pf_msix_error(hdev, desc, pf_bd_num, reset_requests); in hclge_handle_all_hw_msix_error()
2635 kfree(desc); in hclge_handle_all_hw_msix_error()
2658 struct hclge_desc desc; in hclge_handle_mac_tnl() local
2663 hclge_cmd_setup_basic_desc(&desc, HCLGE_OPC_QUERY_MAC_TNL_INT, true); in hclge_handle_mac_tnl()
2664 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_handle_mac_tnl()
2670 status = le32_to_cpu(desc.data[0]); in hclge_handle_mac_tnl()
2694 struct hclge_desc *desc; in hclge_handle_all_hns_hw_errors() local
2707 desc = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_handle_all_hns_hw_errors()
2708 if (!desc) in hclge_handle_all_hns_hw_errors()
2712 memset(&desc[0].data[0], 0xFF, mpf_bd_num * sizeof(struct hclge_desc) - in hclge_handle_all_hns_hw_errors()
2714 ret = hclge_clear_hw_msix_error(hdev, desc, true, mpf_bd_num); in hclge_handle_all_hns_hw_errors()
2721 memset(&desc[0].data[0], 0xFF, pf_bd_num * sizeof(struct hclge_desc) - in hclge_handle_all_hns_hw_errors()
2723 ret = hclge_clear_hw_msix_error(hdev, desc, false, pf_bd_num); in hclge_handle_all_hns_hw_errors()
2737 kfree(desc); in hclge_handle_all_hns_hw_errors()
2877 struct hclge_desc *desc, u32 bd_num) in hclge_query_all_err_info() argument
2882 hclge_cmd_setup_basic_desc(desc, HCLGE_QUERY_ALL_ERR_INFO, true); in hclge_query_all_err_info()
2883 ret = hclge_cmd_send(&hdev->hw, desc, bd_num); in hclge_query_all_err_info()
2894 struct hclge_desc *desc; in hclge_handle_error_info_log() local
2904 desc = kzalloc(desc_len, GFP_KERNEL); in hclge_handle_error_info_log()
2905 if (!desc) { in hclge_handle_error_info_log()
2910 ret = hclge_query_all_err_info(hdev, desc, bd_num); in hclge_handle_error_info_log()
2929 memcpy(desc_data, &desc[0].data[0], buf_len); in hclge_handle_error_info_log()
2939 kfree(desc); in hclge_handle_error_info_log()