Searched refs:sock_ind (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/platform/x86/amd/hsmp/ |
H A D | hsmp.c | 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() 211 int hsmp_test(u16 sock_ind, u32 value) in hsmp_test() argument 224 msg.sock_ind = sock_ind; in hsmp_test() 232 dev_err(hsmp_pdev.sock[sock_ind].dev, in hsmp_test() 234 sock_ind, (value + 1), msg.args[0]); in hsmp_test() 313 msg.sock_ind = sock->sock_ind; in hsmp_metric_tbl_read() 324 int hsmp_get_tbl_dram_base(u16 sock_ind) in hsmp_get_tbl_dram_base() argument 326 struct hsmp_socket *sock = &hsmp_pdev.sock[sock_ind]; in hsmp_get_tbl_dram_base() 331 msg.sock_ind = sock_ind; in hsmp_get_tbl_dram_base() [all …]
|
H A D | acpi.c | 64 static inline int hsmp_get_uid(struct device *dev, u16 *sock_ind) in hsmp_get_uid() argument 75 return kstrtou16(uid + 2, 10, sock_ind); in hsmp_get_uid() 206 static int hsmp_parse_acpi_table(struct device *dev, u16 sock_ind) in hsmp_parse_acpi_table() argument 208 struct hsmp_socket *sock = &hsmp_pdev->sock[sock_ind]; in hsmp_parse_acpi_table() 211 sock->sock_ind = sock_ind; in hsmp_parse_acpi_table() 249 u16 sock_ind; in init_acpi() local 252 ret = hsmp_get_uid(dev, &sock_ind); in init_acpi() 255 if (sock_ind >= hsmp_pdev->num_sockets) in init_acpi() 258 ret = hsmp_parse_acpi_table(dev, sock_ind); in init_acpi() 265 ret = hsmp_test(sock_ind, 0xDEADBEEF); in init_acpi() [all …]
|
H A D | plat.c | 66 u16 sock_ind; in hsmp_metric_tbl_plat_read() local 68 sock_ind = (uintptr_t)bin_attr->private; in hsmp_metric_tbl_plat_read() 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() 80 u16 sock_ind; in hsmp_is_sock_attr_visible() local 82 sock_ind = (uintptr_t)battr->private; in hsmp_is_sock_attr_visible() 84 if (id == 0 && sock_ind >= hsmp_pdev->num_sockets) in hsmp_is_sock_attr_visible() 166 sock->sock_ind = i; in init_platform_device()
|