• Home
  • Raw
  • Download

Lines Matching refs:fan

98 	struct acpi_fan *fan = acpi_driver_data(device);  in fan_get_max_state()  local
100 if (fan->acpi4) in fan_get_max_state()
101 *state = fan->fps_count - 1; in fan_get_max_state()
110 struct acpi_fan *fan = acpi_driver_data(device); in fan_get_state_acpi4() local
131 for (i = 0; i < fan->fps_count; i++) { in fan_get_state_acpi4()
138 if (fan->fif.fine_grain_ctrl && control < fan->fps[i].control) { in fan_get_state_acpi4()
141 } else if (control == fan->fps[i].control) { in fan_get_state_acpi4()
145 if (i == fan->fps_count) { in fan_get_state_acpi4()
177 struct acpi_fan *fan = acpi_driver_data(device); in fan_get_cur_state() local
179 if (fan->acpi4) in fan_get_cur_state()
196 struct acpi_fan *fan = acpi_driver_data(device); in fan_set_state_acpi4() local
199 if (state >= fan->fps_count) in fan_set_state_acpi4()
203 fan->fps[state].control); in fan_set_state_acpi4()
216 struct acpi_fan *fan = acpi_driver_data(device); in fan_set_cur_state() local
218 if (fan->acpi4) in fan_set_cur_state()
246 struct acpi_fan *fan = acpi_driver_data(device); in acpi_fan_get_fif() local
248 struct acpi_buffer fif = { sizeof(fan->fif), &fan->fif }; in acpi_fan_get_fif()
283 struct acpi_fan *fan = acpi_driver_data(device); in acpi_fan_get_fps() local
300 fan->fps_count = obj->package.count - 1; /* minus revision field */ in acpi_fan_get_fps()
301 fan->fps = devm_kzalloc(&device->dev, in acpi_fan_get_fps()
302 fan->fps_count * sizeof(struct acpi_fan_fps), in acpi_fan_get_fps()
304 if (!fan->fps) { in acpi_fan_get_fps()
309 for (i = 0; i < fan->fps_count; i++) { in acpi_fan_get_fps()
311 struct acpi_buffer fps = { sizeof(fan->fps[i]), &fan->fps[i] }; in acpi_fan_get_fps()
321 sort(fan->fps, fan->fps_count, sizeof(*fan->fps), in acpi_fan_get_fps()
333 struct acpi_fan *fan; in acpi_fan_probe() local
337 fan = devm_kzalloc(&pdev->dev, sizeof(*fan), GFP_KERNEL); in acpi_fan_probe()
338 if (!fan) { in acpi_fan_probe()
342 device->driver_data = fan; in acpi_fan_probe()
343 platform_set_drvdata(pdev, fan); in acpi_fan_probe()
348 fan->acpi4 = true; in acpi_fan_probe()
371 fan->cdev = cdev; in acpi_fan_probe()
390 struct acpi_fan *fan = platform_get_drvdata(pdev); in acpi_fan_remove() local
393 sysfs_remove_link(&fan->cdev->device.kobj, "device"); in acpi_fan_remove()
394 thermal_cooling_device_unregister(fan->cdev); in acpi_fan_remove()
402 struct acpi_fan *fan = dev_get_drvdata(dev); in acpi_fan_suspend() local
403 if (fan->acpi4) in acpi_fan_suspend()
414 struct acpi_fan *fan = dev_get_drvdata(dev); in acpi_fan_resume() local
416 if (fan->acpi4) in acpi_fan_resume()