Lines Matching defs:hal_ctx

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