Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dsony-laptop.c2135 static struct snc_thermal_ctrl *th_handle; variable
2154 if ((mode && !(th_handle->profiles & mode)) || mode >= THM_PROFILE_MAX) in sony_nc_thermal_mode_set()
2160 th_handle->mode = mode; in sony_nc_thermal_mode_set()
2182 if (!cnt || (th_handle->profiles & cnt)) in sony_nc_thermal_profiles_show()
2232 th_handle = kzalloc(sizeof(struct snc_thermal_ctrl), GFP_KERNEL); in sony_nc_thermal_setup()
2233 if (!th_handle) in sony_nc_thermal_setup()
2236 ret = sony_call_snc_handle(0x0122, 0x0000, &th_handle->profiles); in sony_nc_thermal_setup()
2247 th_handle->mode = ret; in sony_nc_thermal_setup()
2249 sysfs_attr_init(&th_handle->profiles_attr.attr); in sony_nc_thermal_setup()
2250 th_handle->profiles_attr.attr.name = "thermal_profiles"; in sony_nc_thermal_setup()
[all …]