Lines Matching refs:desc
48 struct blk_desc *desc; member
83 struct blk_desc *desc; in efi_disk_rw_blocks() local
89 desc = (struct blk_desc *) diskobj->desc; in efi_disk_rw_blocks()
90 blksz = desc->blksz; in efi_disk_rw_blocks()
102 n = blk_dread(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
104 n = blk_dwrite(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
328 static int efi_fs_exists(struct blk_desc *desc, int part) in efi_fs_exists() argument
330 if (fs_set_blk_dev_with_part(desc, part)) in efi_fs_exists()
358 struct blk_desc *desc, in efi_disk_add_dev() argument
370 if (!desc->lba) in efi_disk_add_dev()
382 struct efi_device_path *node = efi_dp_part_node(desc, part); in efi_disk_add_dev()
408 diskobj->dp = efi_dp_from_part(desc, part); in efi_disk_add_dev()
410 diskobj->media.last_block = desc->lba - 1; in efi_disk_add_dev()
433 if ((part || desc->part_type == PART_TYPE_UNKNOWN) && in efi_disk_add_dev()
434 efi_fs_exists(desc, part)) { in efi_disk_add_dev()
435 diskobj->volume = efi_simple_file_system(desc, part, in efi_disk_add_dev()
446 diskobj->desc = desc; in efi_disk_add_dev()
449 diskobj->media.removable_media = desc->removable; in efi_disk_add_dev()
456 diskobj->media.block_size = desc->blksz; in efi_disk_add_dev()
457 diskobj->media.io_align = desc->blksz; in efi_disk_add_dev()
476 efi_system_partition.if_type = desc->if_type; in efi_disk_add_dev()
477 efi_system_partition.devnum = desc->devnum; in efi_disk_add_dev()
480 blk_get_if_type_name(desc->if_type), in efi_disk_add_dev()
481 desc->devnum, part); in efi_disk_add_dev()
502 int efi_disk_create_partitions(efi_handle_t parent, struct blk_desc *desc, in efi_disk_create_partitions() argument
522 if (part_get_info(desc, part, &info)) in efi_disk_create_partitions()
526 ret = efi_disk_add_dev(parent, dp, if_typename, desc, diskid, in efi_disk_create_partitions()
563 struct blk_desc *desc = dev_get_uclass_plat(dev); in efi_disk_register() local
564 const char *if_typename = blk_get_if_type_name(desc->if_type); in efi_disk_register()
569 desc, desc->devnum, NULL, 0, &disk); in efi_disk_register()
583 &disk->header, desc, if_typename, in efi_disk_register()
584 desc->devnum, dev->name); in efi_disk_register()
601 struct blk_desc *desc; in efi_disk_register() local
604 desc = blk_get_devnum_by_type(if_type, i); in efi_disk_register()
605 if (!desc) in efi_disk_register()
607 if (desc->type == DEV_TYPE_UNKNOWN) in efi_disk_register()
614 ret = efi_disk_add_dev(NULL, NULL, if_typename, desc, in efi_disk_register()
629 (&disk->header, desc, in efi_disk_register()
661 r = part_get_info(diskobj->desc, diskobj->part, &info); in efi_disk_is_system_part()