Lines Matching refs:hw_data
30 struct hw_data { struct
39 static const struct hw_data *hw_data; argument
84 static const struct hw_data intel_chipset_data = {
131 static const struct hw_data nvidia_chipset_data = {
156 hw_data = &intel_chipset_data; in apple_bl_add()
158 hw_data = &nvidia_chipset_data; in apple_bl_add()
162 if (!hw_data) { in apple_bl_add()
169 intensity = hw_data->backlight_ops.get_brightness(NULL); in apple_bl_add()
172 hw_data->set_brightness(1); in apple_bl_add()
173 if (!hw_data->backlight_ops.get_brightness(NULL)) in apple_bl_add()
176 hw_data->set_brightness(0); in apple_bl_add()
179 if (!request_region(hw_data->iostart, hw_data->iolen, in apple_bl_add()
187 NULL, NULL, &hw_data->backlight_ops, &props); in apple_bl_add()
190 release_region(hw_data->iostart, hw_data->iolen); in apple_bl_add()
195 hw_data->backlight_ops.get_brightness(apple_backlight_device); in apple_bl_add()
205 release_region(hw_data->iostart, hw_data->iolen); in apple_bl_remove()
206 hw_data = NULL; in apple_bl_remove()