Lines Matching refs:hsmp_pdev
38 static struct hsmp_plat_device *hsmp_pdev; variable
208 struct hsmp_socket *sock = &hsmp_pdev->sock[sock_ind]; in hsmp_parse_acpi_table()
241 if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) in hsmp_is_sock_attr_visible()
255 if (sock_ind >= hsmp_pdev->num_sockets) in init_acpi()
279 if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) { in init_acpi()
319 hsmp_pdev = get_hsmp_pdev(); in hsmp_acpi_probe()
320 if (!hsmp_pdev) in hsmp_acpi_probe()
323 if (!hsmp_pdev->is_probed) { in hsmp_acpi_probe()
324 hsmp_pdev->num_sockets = amd_nb_num(); in hsmp_acpi_probe()
325 if (hsmp_pdev->num_sockets == 0 || hsmp_pdev->num_sockets > MAX_AMD_SOCKETS) in hsmp_acpi_probe()
328 hsmp_pdev->sock = devm_kcalloc(&pdev->dev, hsmp_pdev->num_sockets, in hsmp_acpi_probe()
329 sizeof(*hsmp_pdev->sock), in hsmp_acpi_probe()
331 if (!hsmp_pdev->sock) in hsmp_acpi_probe()
341 if (!hsmp_pdev->is_probed) { in hsmp_acpi_probe()
345 hsmp_pdev->is_probed = true; in hsmp_acpi_probe()
357 if (hsmp_pdev->is_probed) { in hsmp_acpi_remove()
359 hsmp_pdev->is_probed = false; in hsmp_acpi_remove()