Lines Matching refs:hal_ctx
147 rmm_hal_fini(LibHalContext *hal_ctx) in rmm_hal_fini() argument
149 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_fini()
152 (void) libhal_ctx_free(hal_ctx); in rmm_hal_fini()
161 rmm_hal_volume_find(LibHalContext *hal_ctx, const char *name, DBusError *error, in rmm_hal_volume_find() argument
180 if (((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find()
182 ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find()
184 ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find()
186 ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find()
195 if ((drive = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_find()
200 drive = rmm_hal_volume_findby_nickname(hal_ctx, name, volumes); in rmm_hal_volume_find()
213 rmm_hal_volume_find_default(LibHalContext *hal_ctx, DBusError *error, in rmm_hal_volume_find_default() argument
223 if ((drive = rmm_hal_volume_findby_nickname(hal_ctx, in rmm_hal_volume_find_default()
231 libhal_device_get_property_bool(hal_ctx, in rmm_hal_volume_find_default()
250 rmm_hal_volume_findby(LibHalContext *hal_ctx, const char *property, in rmm_hal_volume_findby() argument
266 if ((udis = libhal_manager_find_device_string_match(hal_ctx, property, in rmm_hal_volume_findby()
275 if (libhal_device_query_capability(hal_ctx, udis[i], "volume", in rmm_hal_volume_findby()
277 v = libhal_volume_from_udi(hal_ctx, udis[i]); in rmm_hal_volume_findby()
282 libhal_device_query_capability(hal_ctx, udis[i], "storage", in rmm_hal_volume_findby()
293 drive = libhal_drive_from_udi(hal_ctx, in rmm_hal_volume_findby()
300 drive = libhal_drive_from_udi(hal_ctx, udis[i_drive]); in rmm_hal_volume_findby()
354 rmm_print_volume_nicknames(LibHalContext *hal_ctx, DBusError *error, in rmm_print_volume_nicknames() argument
370 if ((udis = libhal_find_device_by_capability(hal_ctx, "storage", in rmm_print_volume_nicknames()
377 if ((d = libhal_drive_from_udi(hal_ctx, udis[i])) == NULL) { in rmm_print_volume_nicknames()
382 if ((d_tmp = rmm_hal_volume_findby(hal_ctx, in rmm_print_volume_nicknames()
387 nicknames = libhal_device_get_property_strlist(hal_ctx, in rmm_print_volume_nicknames()
429 rmm_hal_volume_findby_nickname(LibHalContext *hal_ctx, const char *name, in rmm_hal_volume_findby_nickname() argument
444 if ((udis = libhal_find_device_by_capability(hal_ctx, "storage", in rmm_hal_volume_findby_nickname()
452 if ((nicknames = libhal_device_get_property_strlist(hal_ctx, in rmm_hal_volume_findby_nickname()
459 drive = libhal_drive_from_udi(hal_ctx, udis[i]); in rmm_hal_volume_findby_nickname()
468 if ((drive_tmp = rmm_hal_volume_findby(hal_ctx, in rmm_hal_volume_findby_nickname()
495 rmm_hal_mount(LibHalContext *hal_ctx, const char *udi, in rmm_hal_mount() argument
498 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_mount()
548 rmm_hal_unmount(LibHalContext *hal_ctx, const char *udi, DBusError *error) in rmm_hal_unmount() argument
550 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_unmount()
593 rmm_hal_eject(LibHalContext *hal_ctx, const char *udi, DBusError *error) in rmm_hal_eject() argument
595 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_eject()
638 rmm_hal_closetray(LibHalContext *hal_ctx, const char *udi, DBusError *error) in rmm_hal_closetray() argument
640 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_closetray()
686 rmm_hal_rescan(LibHalContext *hal_ctx, const char *udi, DBusError *error) in rmm_hal_rescan() argument
688 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_rescan()
719 rmm_hal_claim_branch(LibHalContext *hal_ctx, const char *udi) in rmm_hal_claim_branch() argument
722 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_claim_branch()
760 rmm_hal_unclaim_branch(LibHalContext *hal_ctx, const char *udi) in rmm_hal_unclaim_branch() argument
763 DBusConnection *dbus_conn = libhal_ctx_get_dbus_connection(hal_ctx); in rmm_hal_unclaim_branch()
801 rmm_action_one(LibHalContext *hal_ctx, const char *name, action_t action, in rmm_action_one() argument
820 ret = rmm_hal_eject(hal_ctx, udi, &error); in rmm_action_one()
827 ret = rmm_hal_mount(hal_ctx, udi, in rmm_action_one()
834 ret = rmm_hal_unmount(hal_ctx, udi, &error); in rmm_action_one()
837 ret = rmm_hal_closetray(hal_ctx, udi, &error); in rmm_action_one()
880 rmm_action(LibHalContext *hal_ctx, const char *name, action_t action, in rmm_action() argument
902 d = rmm_hal_volume_find(hal_ctx, name, &error, &volumes); in rmm_action()
924 ret = rmm_action_one(hal_ctx, name, action, d_dev, d_udi, NULL, in rmm_action()
942 if (!rmm_volume_aa_from_prop(hal_ctx, udi, v, aap)) { in rmm_action()
952 ret = rmm_action_one(hal_ctx, name, action, dev, udi, v, in rmm_action()
956 (void) vold_postprocess(hal_ctx, udi, aap); in rmm_action()
977 rmm_rescan(LibHalContext *hal_ctx, const char *name, boolean_t query) in rmm_rescan() argument
996 if ((drive = rmm_hal_volume_find(hal_ctx, name, &error, in rmm_rescan()
1010 if ((udis = libhal_find_device_by_capability(hal_ctx, in rmm_rescan()
1021 nicks = libhal_device_get_property_strlist(hal_ctx, in rmm_rescan()
1029 if (!(ret = rmm_hal_rescan(hal_ctx, udis[i], &error))) { in rmm_rescan()
1038 ret = libhal_device_get_property_bool(hal_ctx, udis[i], in rmm_rescan()
1066 rmm_volume_aa_from_prop(LibHalContext *hal_ctx, const char *udi_arg, in rmm_volume_aa_from_prop() argument
1082 if ((volume = libhal_volume_from_udi(hal_ctx, udi)) == NULL) { in rmm_volume_aa_from_prop()
1095 if (!(aap->aa_symdev = libhal_device_get_property_string(hal_ctx, in rmm_volume_aa_from_prop()
1101 if (!(aap->aa_media = libhal_device_get_property_string(hal_ctx, in rmm_volume_aa_from_prop()
1110 if ((volume_label = (char *)libhal_device_get_property_string(hal_ctx, in rmm_volume_aa_from_prop()
1132 if (!(aap->aa_path = libhal_device_get_property_string(hal_ctx, udi, in rmm_volume_aa_from_prop()
1137 if (!(aap->aa_rawpath = libhal_device_get_property_string(hal_ctx, udi, in rmm_volume_aa_from_prop()
1143 if (!(aap->aa_type = libhal_device_get_property_string(hal_ctx, udi, in rmm_volume_aa_from_prop()
1148 if (!libhal_device_get_property_bool(hal_ctx, udi, in rmm_volume_aa_from_prop()
1152 hal_ctx, udi, "block.solaris.slice", NULL))) { in rmm_volume_aa_from_prop()
1157 if (!(mountpoint = libhal_device_get_property_string(hal_ctx, udi, in rmm_volume_aa_from_prop()
1188 rmm_volume_aa_update_mountpoint(LibHalContext *hal_ctx, const char *udi, in rmm_volume_aa_update_mountpoint() argument