Lines Matching refs:part_info
63 const disk_partition_t *part_info) in android_boot_control_create_from_disk() argument
70 if (abc_offset % part_info->blksz) { in android_boot_control_create_from_disk()
74 abc_offset /= part_info->blksz; in android_boot_control_create_from_disk()
77 part_info->blksz); in android_boot_control_create_from_disk()
78 if (abc_offset + abc_blocks > part_info->size) { in android_boot_control_create_from_disk()
81 abc_offset + abc_blocks, part_info->size); in android_boot_control_create_from_disk()
84 buf = malloc(abc_blocks * part_info->blksz); in android_boot_control_create_from_disk()
88 if (blk_dread(dev_desc, part_info->start + abc_offset, abc_blocks, in android_boot_control_create_from_disk()
110 const disk_partition_t *part_info) in android_boot_control_store() argument
115 slot_suffix) / part_info->blksz; in android_boot_control_store()
117 part_info->blksz); in android_boot_control_store()
118 if (blk_dwrite(dev_desc, part_info->start + abc_offset, abc_blocks, in android_boot_control_store()
151 int android_ab_select(struct blk_desc *dev_desc, disk_partition_t *part_info) in android_ab_select() argument
159 abc = android_boot_control_create_from_disk(dev_desc, part_info); in android_ab_select()
259 android_boot_control_store(abc, dev_desc, part_info); in android_ab_select()