Lines Matching refs:d

40 static void devinfo_battery_rescan_probing_done(HalDevice *d, guint32 exit_type,
65 HalDevice *d, *computer; in devinfo_acpi_add() local
79 d = hal_device_new(); in devinfo_acpi_add()
90 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_acpi_add()
91 devinfo_add_enqueue(d, devfs_path, &devinfo_acpi_handler); in devinfo_acpi_add()
95 return (d); in devinfo_acpi_add()
109 devinfo_acpi_add_minor(d, node, minor_path, dev); in devinfo_acpi_add()
116 return (d); in devinfo_acpi_add()
123 HalDevice *d; in devinfo_acpi_add_minor() local
125 d = hal_device_new(); in devinfo_acpi_add_minor()
126 devinfo_set_default_properties(d, parent, node, minor_path); in devinfo_acpi_add_minor()
127 devinfo_add_enqueue(d, minor_path, &devinfo_acpi_handler); in devinfo_acpi_add_minor()
134 HalDevice *d; in devinfo_power_button_add() local
142 d = hal_device_new(); in devinfo_power_button_add()
144 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_power_button_add()
145 hal_device_add_capability(d, "button"); in devinfo_power_button_add()
146 hal_device_property_set_bool(d, "button.has_state", FALSE); in devinfo_power_button_add()
147 hal_device_property_set_string(d, "info.category", "input"); in devinfo_power_button_add()
148 hal_device_property_set_string(d, "button.type", "power"); in devinfo_power_button_add()
149 hal_device_property_set_string(d, "info.product", "Power Button"); in devinfo_power_button_add()
151 devinfo_add_enqueue(d, devfs_path, &devinfo_power_button_handler); in devinfo_power_button_add()
153 return (d); in devinfo_power_button_add()
159 HalDevice *d = NULL; in devinfo_power_button_event() local
162 d = hal_device_store_match_key_value_string (store, "button.type", in devinfo_power_button_event()
164 if (d != NULL) { in devinfo_power_button_event()
165 device_send_signal_condition(d, "ButtonPressed", "power"); in devinfo_power_button_event()
172 HalDevice *d = NULL; in devinfo_brightness_hotkeys_event() local
174 if ((d = hal_device_store_find(hald_get_gdl(), in devinfo_brightness_hotkeys_event()
176 (d = hal_device_store_find(hald_get_tdl(), in devinfo_brightness_hotkeys_event()
179 device_send_signal_condition(d, "ButtonPressed", in devinfo_brightness_hotkeys_event()
182 device_send_signal_condition(d, "ButtonPressed", in devinfo_brightness_hotkeys_event()
191 HalDevice *d = NULL; in devinfo_battery_rescan() local
193 d = hal_device_store_find(hald_get_gdl(), udi); in devinfo_battery_rescan()
194 if (d == NULL) { in devinfo_battery_rescan()
199 hald_runner_run(d, "hald-probe-acpi", NULL, in devinfo_battery_rescan()
207 HalDevice *d = NULL; in devinfo_lid_event() local
209 d = hal_device_store_find(hald_get_gdl(), udi); in devinfo_lid_event()
210 if (d == NULL) { in devinfo_lid_event()
215 hal_device_property_set_bool(d, "button.state.value", in devinfo_lid_event()
217 device_send_signal_condition(d, "ButtonPressed", "lid"); in devinfo_lid_event()
221 devinfo_lid_rescan(HalDevice *d) in devinfo_lid_rescan() argument
223 if (hal_device_property_get_bool(d, "button.workaround")) { in devinfo_lid_rescan()
225 hal_device_property_set_bool(d, "button.state.value", FALSE); in devinfo_lid_rescan()
227 hald_runner_run(d, "hald-probe-acpi", NULL, in devinfo_lid_rescan()
236 devinfo_battery_rescan_probing_done(HalDevice *d, guint32 exit_type, in devinfo_battery_rescan_probing_done() argument
243 devinfo_acpi_get_prober(HalDevice *d, int *timeout) in devinfo_acpi_get_prober() argument