Lines Matching refs:d
66 HalDevice *d; in devinfo_add_subtree() local
73 d = devinfo_add_node (parent, node); in devinfo_add_subtree()
75 if ((d != NULL) && in devinfo_add_subtree()
77 devinfo_add_subtree (d, child_node, FALSE); in devinfo_add_subtree()
86 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path) in devinfo_set_default_properties() argument
93 hal_device_property_set_string (d, "info.parent", hal_device_get_udi (parent)); in devinfo_set_default_properties()
95 hal_device_property_set_string (d, "info.parent", "/org/freedesktop/Hal/devices/local"); in devinfo_set_default_properties()
102 hal_device_set_udi (d, udi); in devinfo_set_default_properties()
103 hal_device_property_set_string (d, "info.udi", udi); in devinfo_set_default_properties()
106 hal_device_property_set_string (d, "info.product", s); in devinfo_set_default_properties()
108 hal_device_property_set_string (d, "info.product", di_node_name (node)); in devinfo_set_default_properties()
111 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); in devinfo_set_default_properties()
114 hal_device_property_set_string (d, "info.solaris.driver", in devinfo_set_default_properties()
123 hal_device_property_set_bool (d, "info.claimed", TRUE); in devinfo_set_default_properties()
124 hal_device_property_set_string (d, "info.claimed.service", s1); in devinfo_set_default_properties()
152 HalDevice *d = NULL; in devinfo_add_node() local
163 for (i = 0; (d == NULL) && (devinfo_handlers[i] != NULL); i++) { in devinfo_add_node()
165 d = handler->add (parent, node, devfs_path, device_type); in devinfo_add_node()
170 HAL_INFO (("add_node: %s", d ? hal_device_get_udi (d) : "none")); in devinfo_add_node()
171 return (d); in devinfo_add_node()
175 devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, in… in devinfo_hotplug_enqueue() argument
182 hotplug_event->d = d; in devinfo_hotplug_enqueue()
191 devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler) in devinfo_add_enqueue() argument
193 devinfo_hotplug_enqueue (d, devfs_path, handler, HOTPLUG_ACTION_ADD, 0); in devinfo_add_enqueue()
197 devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler) in devinfo_add_enqueue_at_front() argument
199 devinfo_hotplug_enqueue (d, devfs_path, handler, HOTPLUG_ACTION_ADD, 1); in devinfo_add_enqueue_at_front()
209 devinfo_callouts_add_done (HalDevice *d, gpointer userdata1, gpointer userdata2) in devinfo_callouts_add_done() argument
214 hal_device_store_remove (hald_get_tdl (), d); in devinfo_callouts_add_done()
215 hal_device_store_add (hald_get_gdl (), d); in devinfo_callouts_add_done()
221 devinfo_callouts_probing_done (HalDevice *d, guint32 exit_type, gint return_code, char **error, gpo… in devinfo_callouts_probing_done() argument
227 HAL_INFO (("Probing for %s failed %d", hal_device_get_udi (d), return_code)); in devinfo_callouts_probing_done()
228 hal_device_store_remove (hald_get_tdl (), d); in devinfo_callouts_probing_done()
229 g_object_unref (d); in devinfo_callouts_probing_done()
235 di_search_and_merge (d, DEVICE_INFO_TYPE_INFORMATION); in devinfo_callouts_probing_done()
236 di_search_and_merge (d, DEVICE_INFO_TYPE_POLICY); in devinfo_callouts_probing_done()
238 hal_util_callout_device_add (d, devinfo_callouts_add_done, end_token, NULL); in devinfo_callouts_probing_done()
242 devinfo_callouts_preprobing_done (HalDevice *d, gpointer userdata1, gpointer userdata2) in devinfo_callouts_preprobing_done() argument
250 if (hal_device_property_get_bool (d, "info.ignore")) { in devinfo_callouts_preprobing_done()
254 hal_device_property_remove (d, "info.category"); in devinfo_callouts_preprobing_done()
255 hal_device_property_remove (d, "info.capabilities"); in devinfo_callouts_preprobing_done()
257 hal_device_store_remove (hald_get_tdl (), d); in devinfo_callouts_preprobing_done()
258 hal_device_store_add (hald_get_gdl (), d); in devinfo_callouts_preprobing_done()
265 prober = handler->get_prober (d, &prober_timeout); in devinfo_callouts_preprobing_done()
278 HAL_INFO(("Probing udi=%s", hal_device_get_udi (d))); in devinfo_callouts_preprobing_done()
279 hald_runner_run (d, in devinfo_callouts_preprobing_done()
285 probing_done (d, 0, 0, NULL, userdata1, userdata2); in devinfo_callouts_preprobing_done()
291 hotplug_event_begin_add_devinfo (HalDevice *d, HalDevice *parent, DevinfoDevHandler *handler, void … in hotplug_event_begin_add_devinfo() argument
295 HAL_INFO(("Preprobing udi=%s", hal_device_get_udi (d))); in hotplug_event_begin_add_devinfo()
310 if (hal_device_store_find (hald_get_tdl (), hal_device_get_udi (d)) == NULL) { in hotplug_event_begin_add_devinfo()
313 hal_device_store_add (hald_get_tdl (), d); in hotplug_event_begin_add_devinfo()
317 di_search_and_merge (d, DEVICE_INFO_TYPE_PREPROBE); in hotplug_event_begin_add_devinfo()
320 hal_util_callout_device_preprobe (d, devinfo_callouts_preprobing_done, end_token, handler); in hotplug_event_begin_add_devinfo()
325 if (hal_device_store_find (hald_get_tdl (), hal_device_get_udi (d))) in hotplug_event_begin_add_devinfo()
326 hal_device_store_remove (hald_get_tdl (), d); in hotplug_event_begin_add_devinfo()
328 g_object_unref (d); in hotplug_event_begin_add_devinfo()
342 devinfo_remove_branch (gchar *devfs_path, HalDevice *d) in devinfo_remove_branch() argument
349 if (d == NULL) { in devinfo_remove_branch()
350 d = hal_device_store_match_key_value_string (hald_get_gdl (), in devinfo_remove_branch()
352 if (d == NULL) in devinfo_remove_branch()
356 HAL_INFO (("remove_branch: %s %s\n", devfs_path, hal_device_get_udi (d))); in devinfo_remove_branch()
360 "info.parent", hal_device_get_udi (d)); in devinfo_remove_branch()
375 devinfo_callouts_remove_done (HalDevice *d, gpointer userdata1, gpointer userdata2) in devinfo_callouts_remove_done() argument
379 HAL_INFO (("Remove callouts completed udi=%s", hal_device_get_udi (d))); in devinfo_callouts_remove_done()
381 if (!hal_device_store_remove (hald_get_gdl (), d)) { in devinfo_callouts_remove_done()
384 g_object_unref (d); in devinfo_callouts_remove_done()
390 hotplug_event_begin_remove_devinfo (HalDevice *d, gchar *devfs_path, void *end_token) in hotplug_event_begin_remove_devinfo() argument
392 if (hal_device_has_capability (d, "volume")) { in hotplug_event_begin_remove_devinfo()
393 devinfo_volume_hotplug_begin_remove (d, devfs_path, end_token); in hotplug_event_begin_remove_devinfo()
395 hal_util_callout_device_remove (d, devinfo_callouts_remove_done, end_token, NULL); in hotplug_event_begin_remove_devinfo()
400 devinfo_device_rescan (HalDevice *d) in devinfo_device_rescan() argument
402 if (hal_device_has_capability (d, "block")) { in devinfo_device_rescan()
403 return (devinfo_storage_device_rescan (d)); in devinfo_device_rescan()
404 } else if (hal_device_has_capability (d, "button")) { in devinfo_device_rescan()
405 return (devinfo_lid_rescan (d)); in devinfo_device_rescan()