Home
last modified time | relevance | path

Searched refs:hsmp_pdev (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/platform/x86/amd/hsmp/
H A Dplat.c40 static struct hsmp_plat_device *hsmp_pdev; variable
69 if (sock_ind >= hsmp_pdev->num_sockets) in hsmp_metric_tbl_plat_read()
72 sock = &hsmp_pdev->sock[sock_ind]; in hsmp_metric_tbl_plat_read()
84 if (id == 0 && sock_ind >= hsmp_pdev->num_sockets) in hsmp_is_sock_attr_visible()
87 if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) in hsmp_is_sock_attr_visible()
161 for (i = 0; i < hsmp_pdev->num_sockets; i++) { in init_platform_device()
164 sock = &hsmp_pdev->sock[i]; in init_platform_device()
199 if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) { in init_platform_device()
213 hsmp_pdev->sock = devm_kcalloc(&pdev->dev, hsmp_pdev->num_sockets, in hsmp_pltdrv_probe()
214 sizeof(*hsmp_pdev->sock), in hsmp_pltdrv_probe()
[all …]
H A Dacpi.c38 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()
[all …]
H A Dhsmp.c38 static struct hsmp_plat_device hsmp_pdev; variable
189 if (!hsmp_pdev.sock || msg->sock_ind >= hsmp_pdev.num_sockets) in hsmp_send_message()
191 sock = &hsmp_pdev.sock[msg->sock_ind]; in hsmp_send_message()
232 dev_err(hsmp_pdev.sock[sock_ind].dev, in hsmp_test()
326 struct hsmp_socket *sock = &hsmp_pdev.sock[sock_ind]; in hsmp_get_tbl_dram_base()
369 hsmp_pdev.proto_ver = msg.args[0]; in hsmp_cache_proto_ver()
383 hsmp_pdev.mdev.name = HSMP_CDEV_NAME; in hsmp_misc_register()
384 hsmp_pdev.mdev.minor = MISC_DYNAMIC_MINOR; in hsmp_misc_register()
385 hsmp_pdev.mdev.fops = &hsmp_fops; in hsmp_misc_register()
386 hsmp_pdev.mdev.parent = dev; in hsmp_misc_register()
[all …]