Lines Matching refs:hw_data
34 struct hw_data { struct
43 static const struct hw_data *hw_data; argument
84 static const struct hw_data intel_chipset_data = {
129 static const struct hw_data nvidia_chipset_data = {
154 hw_data = &intel_chipset_data; in apple_bl_add()
156 hw_data = &nvidia_chipset_data; in apple_bl_add()
160 if (!hw_data) { in apple_bl_add()
167 intensity = hw_data->backlight_ops.get_brightness(NULL); in apple_bl_add()
170 hw_data->set_brightness(1); in apple_bl_add()
171 if (!hw_data->backlight_ops.get_brightness(NULL)) in apple_bl_add()
174 hw_data->set_brightness(0); in apple_bl_add()
177 if (!request_region(hw_data->iostart, hw_data->iolen, in apple_bl_add()
185 NULL, NULL, &hw_data->backlight_ops, &props); in apple_bl_add()
188 release_region(hw_data->iostart, hw_data->iolen); in apple_bl_add()
193 hw_data->backlight_ops.get_brightness(apple_backlight_device); in apple_bl_add()
203 release_region(hw_data->iostart, hw_data->iolen); in apple_bl_remove()
204 hw_data = NULL; in apple_bl_remove()