Lines Matching refs:dev_desc
75 struct blk_desc *dev_desc; in get_size_of_partition() local
78 dev_desc = rockchip_get_bootdev(); in get_size_of_partition()
79 if (!dev_desc) { in get_size_of_partition()
84 if (part_get_info_by_name(dev_desc, partition, &part_info) < 0) in get_size_of_partition()
98 struct blk_desc *dev_desc; in read_from_partition() local
114 dev_desc = rockchip_get_bootdev(); in read_from_partition()
115 if (!dev_desc) { in read_from_partition()
120 if (part_get_info_by_name(dev_desc, partition, &part_info) < 0) { in read_from_partition()
126 blk_dread(dev_desc, part_info.start + offset_blk, in read_from_partition()
137 blk_dread(dev_desc, part_info.start + offset_blk, in read_from_partition()
153 struct blk_desc *dev_desc; in write_to_partition() local
165 dev_desc = rockchip_get_bootdev(); in write_to_partition()
166 if (!dev_desc) { in write_to_partition()
171 if (part_get_info_by_name(dev_desc, partition, &part_info) < 0) { in write_to_partition()
177 blk_dread(dev_desc, part_info.start + offset_blk, in write_to_partition()
181 blk_dwrite(dev_desc, part_info.start + offset_blk, blkcnt, buffer); in write_to_partition()
350 struct blk_desc *dev_desc; in get_unique_guid_for_partition() local
353 dev_desc = rockchip_get_bootdev(); in get_unique_guid_for_partition()
354 if (!dev_desc) { in get_unique_guid_for_partition()
359 if (part_get_info_by_name(dev_desc, partition, &part_info) < 0) { in get_unique_guid_for_partition()
449 struct blk_desc *dev_desc; in get_preloaded_partition() local
455 dev_desc = rockchip_get_bootdev(); in get_preloaded_partition()
456 if (!dev_desc) in get_preloaded_partition()
459 if (part_get_info_by_name(dev_desc, partition, &part_info) < 0) { in get_preloaded_partition()
553 ret = android_image_load_by_partname(dev_desc, partition, &load_addr); in get_preloaded_partition()