Lines Matching refs:hw_data
31 struct hw_data { struct
40 static const struct hw_data *hw_data; argument
81 static const struct hw_data intel_chipset_data = {
126 static const struct hw_data nvidia_chipset_data = {
151 hw_data = &intel_chipset_data; in apple_bl_add()
153 hw_data = &nvidia_chipset_data; in apple_bl_add()
157 if (!hw_data) { in apple_bl_add()
164 intensity = hw_data->backlight_ops.get_brightness(NULL); in apple_bl_add()
167 hw_data->set_brightness(1); in apple_bl_add()
168 if (!hw_data->backlight_ops.get_brightness(NULL)) in apple_bl_add()
171 hw_data->set_brightness(0); in apple_bl_add()
174 if (!request_region(hw_data->iostart, hw_data->iolen, in apple_bl_add()
182 NULL, NULL, &hw_data->backlight_ops, &props); in apple_bl_add()
185 release_region(hw_data->iostart, hw_data->iolen); in apple_bl_add()
190 hw_data->backlight_ops.get_brightness(apple_backlight_device); in apple_bl_add()
200 release_region(hw_data->iostart, hw_data->iolen); in apple_bl_remove()
201 hw_data = NULL; in apple_bl_remove()