Lines Matching refs:hal_ctx

65 static LibHalContext	*hal_ctx;  variable
204 if ((hal_ctx = rmm_hal_init(rmm_device_added, rmm_device_removed, in rmvolmgr()
213 if (!rmm_hal_claim_branch(hal_ctx, HAL_BRANCH_LOCAL)) { in rmvolmgr()
341 if (libhal_device_get_property_bool(hal_ctx, udi, in volume_should_mount()
347 if (!(storage_device = libhal_device_get_property_string(hal_ctx, udi, in volume_should_mount()
354 if (!libhal_device_get_property_bool(hal_ctx, storage_device, in volume_should_mount()
356 !libhal_device_get_property_bool(hal_ctx, storage_device, in volume_should_mount()
362 if (libhal_device_get_property_bool(hal_ctx, storage_device, in volume_should_mount()
393 if ((v = rmm_managed_alloc(hal_ctx, udi)) == NULL) { in volume_added()
396 if (rmm_action(hal_ctx, udi, INSERT, &v->aa, 0, 0, 0)) { in volume_added()
421 (void) vold_postprocess(hal_ctx, udi, &v->aa); in volume_removed()
431 if (libhal_device_query_capability(hal_ctx, udi, "volume", NULL)) { in rmm_device_added()
440 if (libhal_device_query_capability(hal_ctx, udi, "volume", NULL)) { in rmm_device_removed()
458 is_mounted = libhal_device_get_property_bool(hal_ctx, udi, key, NULL); in rmm_property_modified()
479 (void) vold_postprocess(hal_ctx, udi, &v->aa); in rmm_property_modified()
489 (void) vold_postprocess(hal_ctx, udi, &v->aa); in rmm_property_modified()
503 libhal_device_get_property_bool(hal_ctx, udi, "info.claimed", in storage_eject_pressed()
509 (void) rmm_hal_eject(hal_ctx, udi, &error); in storage_eject_pressed()
519 libhal_device_query_capability(hal_ctx, udi, "storage", NULL)) { in rmm_device_condition()
539 if ((udis = libhal_find_device_by_capability(hal_ctx, "volume", in rmm_mount_all()
547 if (libhal_device_get_property_bool(hal_ctx, udis[i], in rmm_mount_all()
555 if ((v = rmm_managed_alloc(hal_ctx, udis[i])) == NULL) { in rmm_mount_all()
558 if (rmm_action(hal_ctx, udis[i], INSERT, &v->aa, 0, 0, 0)) { in rmm_mount_all()
585 if (v->my && libhal_device_get_property_bool(hal_ctx, v->udi, in rmm_unmount_all()
587 (void) rmm_action(hal_ctx, v->udi, UNMOUNT, in rmm_unmount_all()