Lines Matching refs:dev_desc
79 * @param[in] dev_desc Device where to read the boot_control struct from
80 * @param[in] part_info Partition in 'dev_desc' where to read from, normally
85 static int ab_control_create_from_disk(struct blk_desc *dev_desc,
112 ret = blk_dread(dev_desc, part_info->start + abc_offset, abc_blocks,
131 * @param[in] dev_desc Device where we should write the boot_control struct
132 * @param[in] part_info Partition on the 'dev_desc' where to write
137 static int ab_control_store(struct blk_desc *dev_desc,
148 ret = blk_dwrite(dev_desc, part_info->start + abc_offset, abc_blocks,
186 int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info,
197 ret = ab_control_create_from_disk(dev_desc, part_info, &abc, 0);
208 ret = ab_control_create_from_disk(dev_desc, part_info, &backup_abc,
333 ret = ab_control_store(dev_desc, part_info, abc, 0);
348 ret = ab_control_store(dev_desc, part_info, abc,