th_handle        2142 drivers/platform/x86/sony-laptop.c static struct snc_thermal_ctrl *th_handle;
th_handle        2161 drivers/platform/x86/sony-laptop.c 	if ((mode && !(th_handle->profiles & mode)) || mode >= THM_PROFILE_MAX)
th_handle        2167 drivers/platform/x86/sony-laptop.c 	th_handle->mode = mode;
th_handle        2189 drivers/platform/x86/sony-laptop.c 		if (!cnt || (th_handle->profiles & cnt))
th_handle        2239 drivers/platform/x86/sony-laptop.c 	th_handle = kzalloc(sizeof(struct snc_thermal_ctrl), GFP_KERNEL);
th_handle        2240 drivers/platform/x86/sony-laptop.c 	if (!th_handle)
th_handle        2243 drivers/platform/x86/sony-laptop.c 	ret = sony_call_snc_handle(0x0122, 0x0000, &th_handle->profiles);
th_handle        2254 drivers/platform/x86/sony-laptop.c 	th_handle->mode = ret;
th_handle        2256 drivers/platform/x86/sony-laptop.c 	sysfs_attr_init(&th_handle->profiles_attr.attr);
th_handle        2257 drivers/platform/x86/sony-laptop.c 	th_handle->profiles_attr.attr.name = "thermal_profiles";
th_handle        2258 drivers/platform/x86/sony-laptop.c 	th_handle->profiles_attr.attr.mode = S_IRUGO;
th_handle        2259 drivers/platform/x86/sony-laptop.c 	th_handle->profiles_attr.show = sony_nc_thermal_profiles_show;
th_handle        2261 drivers/platform/x86/sony-laptop.c 	sysfs_attr_init(&th_handle->mode_attr.attr);
th_handle        2262 drivers/platform/x86/sony-laptop.c 	th_handle->mode_attr.attr.name = "thermal_control";
th_handle        2263 drivers/platform/x86/sony-laptop.c 	th_handle->mode_attr.attr.mode = S_IRUGO | S_IWUSR;
th_handle        2264 drivers/platform/x86/sony-laptop.c 	th_handle->mode_attr.show = sony_nc_thermal_mode_show;
th_handle        2265 drivers/platform/x86/sony-laptop.c 	th_handle->mode_attr.store = sony_nc_thermal_mode_store;
th_handle        2267 drivers/platform/x86/sony-laptop.c 	ret = device_create_file(&pd->dev, &th_handle->profiles_attr);
th_handle        2271 drivers/platform/x86/sony-laptop.c 	ret = device_create_file(&pd->dev, &th_handle->mode_attr);
th_handle        2278 drivers/platform/x86/sony-laptop.c 	device_remove_file(&pd->dev, &th_handle->profiles_attr);
th_handle        2280 drivers/platform/x86/sony-laptop.c 	kfree(th_handle);
th_handle        2281 drivers/platform/x86/sony-laptop.c 	th_handle = NULL;
th_handle        2287 drivers/platform/x86/sony-laptop.c 	if (th_handle) {
th_handle        2288 drivers/platform/x86/sony-laptop.c 		device_remove_file(&pd->dev, &th_handle->profiles_attr);
th_handle        2289 drivers/platform/x86/sony-laptop.c 		device_remove_file(&pd->dev, &th_handle->mode_attr);
th_handle        2290 drivers/platform/x86/sony-laptop.c 		kfree(th_handle);
th_handle        2291 drivers/platform/x86/sony-laptop.c 		th_handle = NULL;
th_handle        2300 drivers/platform/x86/sony-laptop.c 	if (status != th_handle->mode)
th_handle        2301 drivers/platform/x86/sony-laptop.c 		sony_nc_thermal_mode_set(th_handle->mode);