Home
last modified time | relevance | path

Searched refs:v (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/
Droots.cpp64 Volume* v = &fstab->recs[i]; in load_volume_table() local
65 printf(" %d %s %s %s %lld\n", i, v->mount_point, v->fs_type, in load_volume_table()
66 v->blk_device, v->length); in load_volume_table()
76 Volume* v = volume_for_path(path); in ensure_path_mounted() local
77 if (v == NULL) { in ensure_path_mounted()
81 if (strcmp(v->fs_type, "ramdisk") == 0) { in ensure_path_mounted()
94 find_mounted_volume_by_mount_point(v->mount_point); in ensure_path_mounted()
100 mkdir(v->mount_point, 0755); // in case it doesn't already exist in ensure_path_mounted()
102 if (strcmp(v->fs_type, "yaffs2") == 0) { in ensure_path_mounted()
106 partition = mtd_find_partition_by_name(v->blk_device); in ensure_path_mounted()
[all …]
Dbootloader.cpp29 static int get_bootloader_message_mtd(struct bootloader_message *out, const Volume* v);
30 static int set_bootloader_message_mtd(const struct bootloader_message *in, const Volume* v);
31 static int get_bootloader_message_block(struct bootloader_message *out, const Volume* v);
32 static int set_bootloader_message_block(const struct bootloader_message *in, const Volume* v);
35 Volume* v = volume_for_path("/misc"); in get_bootloader_message() local
36 if (v == NULL) { in get_bootloader_message()
40 if (strcmp(v->fs_type, "mtd") == 0) { in get_bootloader_message()
41 return get_bootloader_message_mtd(out, v); in get_bootloader_message()
42 } else if (strcmp(v->fs_type, "emmc") == 0) { in get_bootloader_message()
43 return get_bootloader_message_block(out, v); in get_bootloader_message()
[all …]
/bootable/recovery/mtdutils/
Dmounts.c92 MountedVolume* v = &g_mounts_state.volumes[g_mounts_state.volume_count++]; in scan_mounted_volumes() local
93 v->device = strdup(mentry->mnt_fsname); in scan_mounted_volumes()
94 v->mount_point = strdup(mentry->mnt_dir); in scan_mounted_volumes()
95 v->filesystem = strdup(mentry->mnt_type); in scan_mounted_volumes()
96 v->flags = strdup(mentry->mnt_opts); in scan_mounted_volumes()
108 MountedVolume *v = &g_mounts_state.volumes[i]; in find_mounted_volume_by_device() local
111 if (v->device != NULL) { in find_mounted_volume_by_device()
112 if (strcmp(v->device, device) == 0) { in find_mounted_volume_by_device()
113 return v; in find_mounted_volume_by_device()
127 MountedVolume *v = &g_mounts_state.volumes[i]; in find_mounted_volume_by_mount_point() local
[all …]
/bootable/recovery/edify/
Dexpr.c36 Value* v = expr->fn(expr->name, state, expr->argc, expr->argv); in Evaluate() local
37 if (v == NULL) return NULL; in Evaluate()
38 if (v->type != VAL_STRING) { in Evaluate()
39 ErrorAbort(state, "expecting string, got value type %d", v->type); in Evaluate()
40 FreeValue(v); in Evaluate()
43 char* result = v->data; in Evaluate()
44 free(v); in Evaluate()
54 Value* v = malloc(sizeof(Value)); in StringValue() local
55 v->type = VAL_STRING; in StringValue()
56 v->size = strlen(str); in StringValue()
[all …]
Dexpr.h165 void FreeValue(Value* v);
/bootable/recovery/uncrypt/
Duncrypt.cpp138 struct fstab_rec* v = &fstab->recs[i]; in find_block_device() local
139 if (!v->mount_point) { in find_block_device()
142 int len = strlen(v->mount_point); in find_block_device()
143 if (strncmp(path, v->mount_point, len) == 0 && in find_block_device()
147 if (fs_mgr_is_encryptable(v)) { in find_block_device()
155 return v->blk_device; in find_block_device()
330 struct fstab_rec* v = &fstab->recs[i]; in wipe_misc() local
331 if (!v->mount_point) continue; in wipe_misc()
332 if (strcmp(v->mount_point, "/misc") == 0) { in wipe_misc()
333 int fd = open(v->blk_device, O_WRONLY | O_SYNC); in wipe_misc()
[all …]
/bootable/recovery/updater/
Dinstall.c555 Value* v = malloc(sizeof(Value)); in PackageExtractFileFn() local
556 v->type = VAL_BLOB; in PackageExtractFileFn()
557 v->size = -1; in PackageExtractFileFn()
558 v->data = NULL; in PackageExtractFileFn()
569 v->size = mzGetZipEntryUncompLen(entry); in PackageExtractFileFn()
570 v->data = malloc(v->size); in PackageExtractFileFn()
571 if (v->data == NULL) { in PackageExtractFileFn()
573 name, (long)v->size, zip_path); in PackageExtractFileFn()
578 (unsigned char *)v->data); in PackageExtractFileFn()
583 free(v->data); in PackageExtractFileFn()
[all …]