Lines Matching refs:hsmp_pdev
40 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()
216 if (!hsmp_pdev->sock) in hsmp_pltdrv_probe()
303 hsmp_pdev = get_hsmp_pdev(); in hsmp_plt_init()
304 if (!hsmp_pdev) in hsmp_plt_init()
311 hsmp_pdev->num_sockets = amd_nb_num(); in hsmp_plt_init()
312 if (hsmp_pdev->num_sockets == 0 || hsmp_pdev->num_sockets > MAX_AMD_SOCKETS) in hsmp_plt_init()