| /OK3568_Linux_fs/u-boot/env/ |
| H A D | env_blk.c | 21 int get_env_addr(struct blk_desc *blk_desc, int copy, u32 *env_addr) in get_env_addr() argument 50 static const char *init_blk_hwpart_for_env(struct blk_desc *blk_desc) in init_blk_hwpart_for_env() argument 61 env_org_hwpart = blk_desc->hwpart; in init_blk_hwpart_for_env() 82 static inline const char *init_blk_hwpart_for_env(struct blk_desc *blk_desc) in init_blk_hwpart_for_env() argument 88 static inline int write_env(struct blk_desc *blk_desc, unsigned long size, in write_env() argument 93 blk_start = ALIGN(offset, blk_desc->blksz) / blk_desc->blksz; in write_env() 94 blk_cnt = ALIGN(size, blk_desc->blksz) / blk_desc->blksz; in write_env() 96 n = blk_dwrite(blk_desc, blk_start, blk_cnt, (u_char *)buffer); in write_env() 104 struct blk_desc *blk_desc; in env_blk_save() local 109 blk_desc = rockchip_get_bootdev(); in env_blk_save() [all …]
|
| H A D | envf.c | 62 static int can_find_pmbr(struct blk_desc *dev_desc) in can_find_pmbr() 76 static void envf_init_location(struct blk_desc *desc) in envf_init_location() 104 static int env_read(struct blk_desc *desc, u32 offset, u32 size, env_t **envp) in env_read() 144 static __maybe_unused env_t *envf_read(struct blk_desc *desc) in envf_read() 197 char *envf_get_part_table(struct blk_desc *desc) in envf_get_part_table() 257 struct blk_desc *desc; in envf_load() 284 struct blk_desc *desc; in envf_save()
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | part.h | 101 struct blk_desc *blk_get_dev(const char *ifname, int dev); 103 struct blk_desc *mg_disk_get_dev(int dev); 104 int host_get_dev_err(int dev, struct blk_desc **blk_devp); 107 int part_get_info(struct blk_desc *dev_desc, int part, disk_partition_t *info); 112 int part_get_info_whole_disk(struct blk_desc *dev_desc, disk_partition_t *info); 113 const char *part_get_type(struct blk_desc *dev_desc); 114 void part_print(struct blk_desc *dev_desc); 115 void part_init(struct blk_desc *dev_desc); 116 void dev_print(struct blk_desc *dev_desc); 144 struct blk_desc **dev_desc); [all …]
|
| H A D | blk.h | 73 struct blk_desc { struct 110 unsigned long (*block_read)(struct blk_desc *block_dev, argument 114 unsigned long (*block_write)(struct blk_desc *block_dev, argument 118 unsigned long (*block_erase)(struct blk_desc *block_dev, argument 125 #define BLOCK_CNT(size, blk_desc) (PAD_COUNT(size, blk_desc->blksz)) argument 126 #define PAD_TO_BLOCKSIZE(size, blk_desc) \ argument 127 (PAD_SIZE(size, blk_desc->blksz)) 285 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start, 287 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start, 289 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start, [all …]
|
| H A D | spl_ab.h | 24 int spl_get_current_slot(struct blk_desc *dev_desc, char *partition, 36 int spl_ab_append_part_slot(struct blk_desc *dev_desc, 47 int spl_ab_decrease_tries(struct blk_desc *dev_desc); 56 int spl_ab_decrease_reset(struct blk_desc *dev_desc);
|
| H A D | mtd_blk.h | 14 char *mtd_part_parse(struct blk_desc *dev_desc); 15 int mtd_blk_map_table_init(struct blk_desc *desc, 18 void mtd_blk_map_partitions(struct blk_desc *desc); 19 void mtd_blk_map_fit(struct blk_desc *desc, ulong sector, void *fit);
|
| H A D | ramdisk.h | 20 ulong (*read)(struct blk_desc *desc, 34 ulong (*write)(struct blk_desc *desc, 45 ulong (*erase)(struct blk_desc *desc, lbaint_t start, lbaint_t blkcnt);
|
| /OK3568_Linux_fs/u-boot/drivers/block/ |
| H A D | blk-uclass.c | 76 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum) in blk_get_devnum_by_type() 78 struct blk_desc *desc; in blk_get_devnum_by_type() 95 struct blk_desc *blk_get_devnum_by_typename(const char *if_typename, int devnum) in blk_get_devnum_by_typename() 120 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_get_devnum_by_typename() 177 static int get_desc(enum if_type if_type, int devnum, struct blk_desc **descp) in get_desc() 189 struct blk_desc *desc = dev_get_uclass_platdata(dev); in get_desc() 224 struct blk_desc *desc; in blk_list_part() 249 struct blk_desc *desc; in blk_print_part_devnum() 264 struct blk_desc *desc; in blk_list_devices() 283 struct blk_desc *desc; in blk_print_device_num() [all …]
|
| H A D | blk_legacy.c | 58 static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp) in get_desc() 76 struct blk_desc *desc; in blk_list_part() 103 struct blk_desc *desc; in blk_print_part_devnum() 121 struct blk_desc *desc; in blk_list_devices() 139 struct blk_desc *desc; in blk_print_device_num() 156 struct blk_desc *desc; in blk_show_device() 178 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum) in blk_get_devnum_by_type() 181 struct blk_desc *desc; in blk_get_devnum_by_type() 192 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart) in blk_dselect_hwpart() 204 struct blk_desc *blk_get_devnum_by_typename(const char *if_typename, int devnum) in blk_get_devnum_by_typename() [all …]
|
| H A D | sandbox.c | 38 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); 41 static unsigned long host_block_read(struct blk_desc *block_dev, 69 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); 71 static unsigned long host_block_write(struct blk_desc *block_dev, 180 struct blk_desc *blk_dev = &host_dev->blk_dev; 195 int host_get_dev_err(int devnum, struct blk_desc **blk_devp)
|
| /OK3568_Linux_fs/u-boot/disk/ |
| H A D | part.c | 34 static struct part_driver *part_driver_lookup_type(struct blk_desc *dev_desc) in part_driver_lookup_type() 62 static struct blk_desc *get_dev_hwpart(const char *ifname, int dev, int hwpart) in get_dev_hwpart() 64 struct blk_desc *dev_desc; in get_dev_hwpart() 83 struct blk_desc *blk_get_dev(const char *ifname, int dev) in blk_get_dev() 88 struct blk_desc *get_dev_hwpart(const char *ifname, int dev, int hwpart) in get_dev_hwpart() 93 struct blk_desc *blk_get_dev(const char *ifname, int dev) in blk_get_dev() 126 void dev_print (struct blk_desc *dev_desc) in dev_print() 237 void part_init(struct blk_desc *dev_desc) in part_init() 259 static void print_part_header(const char *type, struct blk_desc *dev_desc) in print_part_header() 316 void part_print(struct blk_desc *dev_desc) in part_print() [all …]
|
| H A D | part_mac.c | 35 static int part_mac_read_ddb(struct blk_desc *dev_desc, 37 static int part_mac_read_pdb(struct blk_desc *dev_desc, int part, 43 static int part_test_mac(struct blk_desc *dev_desc) in part_test_mac() 69 static void part_print_mac(struct blk_desc *dev_desc) in part_print_mac() 158 static int part_mac_read_ddb(struct blk_desc *dev_desc, in part_mac_read_ddb() 175 static int part_mac_read_pdb(struct blk_desc *dev_desc, int part, in part_mac_read_pdb() 217 static int part_get_info_mac(struct blk_desc *dev_desc, int part, in part_get_info_mac()
|
| H A D | part_efi.c | 46 static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba, 48 static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc, 197 int get_disk_guid(struct blk_desc * dev_desc, char *guid) in get_disk_guid() 224 void part_print_efi(struct blk_desc *dev_desc) in part_print_efi() 281 int part_get_info_efi(struct blk_desc *dev_desc, int part, in part_get_info_efi() 356 static void gpt_entry_modify(struct blk_desc *dev_desc, in gpt_entry_modify() 378 static int part_efi_repair(struct blk_desc *dev_desc, gpt_entry *gpt_pte, in part_efi_repair() 445 static int part_test_efi(struct blk_desc *dev_desc) in part_test_efi() 515 static int set_protective_mbr(struct blk_desc *dev_desc) in set_protective_mbr() 548 int write_gpt_table(struct blk_desc *dev_desc, in write_gpt_table() [all …]
|
| H A D | part_dos.c | 90 static int part_test_dos(struct blk_desc *dev_desc) in part_test_dos() 111 static void print_partition_extended(struct blk_desc *dev_desc, in print_partition_extended() 175 static int part_get_info_extended(struct blk_desc *dev_desc, in part_get_info_extended() 268 void part_print_dos(struct blk_desc *dev_desc) in part_print_dos() 274 int part_get_info_dos(struct blk_desc *dev_desc, int part, in part_get_info_dos() 285 int write_mbr_partition(struct blk_desc *dev_desc, void *buf) in write_mbr_partition()
|
| /OK3568_Linux_fs/u-boot/drivers/rkflash/ |
| H A D | rkflash_api.h | 24 int rksfc_nor_vendor_read(struct blk_desc *dev_desc, 28 int rksfc_nor_vendor_write(struct blk_desc *dev_desc, 46 int rksfc_nand_vendor_read(struct blk_desc *dev_desc, 50 int rksfc_nand_vendor_write(struct blk_desc *dev_desc, 66 int rknand_flash_vendor_read(struct blk_desc *dev_desc, 70 int rknand_flash_vendor_write(struct blk_desc *dev_desc,
|
| /OK3568_Linux_fs/u-boot/drivers/rknand/ |
| H A D | rknand.c | 15 struct blk_desc *rknand_get_blk_desc(struct rknand_dev *ndev) in rknand_get_blk_desc() 17 struct blk_desc *desc; in rknand_get_blk_desc() 31 struct blk_desc *block_dev = dev_get_uclass_platdata(udev); in rknand_bread() 54 struct blk_desc *block_dev = dev_get_uclass_platdata(udev); in rknand_bwrite() 77 struct blk_desc *block_dev = dev_get_uclass_platdata(udev); in rknand_berase() 97 int rkftl_nand_vendor_read(struct blk_desc *dev_desc, in rkftl_nand_vendor_read() 111 int rkftl_nand_vendor_write(struct blk_desc *dev_desc, in rkftl_nand_vendor_write() 164 struct blk_desc *desc = dev_get_uclass_platdata(udev); in rknand_blk_probe()
|
| /OK3568_Linux_fs/u-boot/drivers/mmc/ |
| H A D | mmc_private.h | 35 ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, 38 ulong mmc_bread_prepare(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, 50 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, 52 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt); 72 static inline unsigned long mmc_berase(struct blk_desc *block_dev, in mmc_berase() 78 static inline ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, in mmc_bwrite()
|
| /OK3568_Linux_fs/u-boot/common/spl/ |
| H A D | spl_ab.c | 111 static int spl_read_ab_metadata(struct blk_desc *dev_desc, AvbABData *ab_data, in spl_read_ab_metadata() 137 static int spl_write_ab_metadata(struct blk_desc *dev_desc, AvbABData *ab_data, in spl_write_ab_metadata() 162 static int spl_ab_data_write(struct blk_desc *dev_desc, AvbABData *ab_data, in spl_ab_data_write() 172 static int spl_ab_data_read(struct blk_desc *dev_desc, AvbABData *ab_data, in spl_ab_data_read() 203 int spl_get_current_slot(struct blk_desc *dev_desc, char *partition, char *slot) in spl_get_current_slot() 254 int spl_ab_append_part_slot(struct blk_desc *dev_desc, in spl_ab_append_part_slot() 277 static int spl_save_metadata_if_changed(struct blk_desc *dev_desc, in spl_save_metadata_if_changed() 288 int spl_ab_decrease_tries(struct blk_desc *dev_desc) in spl_ab_decrease_tries() 327 int spl_ab_decrease_reset(struct blk_desc *dev_desc) in spl_ab_decrease_reset()
|
| H A D | spl_mtd_blk.c | 41 struct blk_desc *find_mtd_device(int dev_num) in find_mtd_device() 44 struct blk_desc *desc; in find_mtd_device() 74 struct blk_desc *desc = load->dev; in mtd_spl_load_read() 80 int spl_mtd_load_rkfw(struct spl_image_info *spl_image, struct blk_desc *desc) in spl_mtd_load_rkfw() 107 struct blk_desc *desc;
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | android_ab.c | 67 struct blk_desc *dev_desc, in android_boot_control_create_from_disk() 114 struct blk_desc *dev_desc, in android_boot_control_store() 156 int android_ab_select(struct blk_desc *dev_desc, disk_partition_t *part_info) in android_ab_select() 275 struct blk_desc *dev_desc; in read_misc_virtual_ab_message() 309 struct blk_desc *dev_desc; in write_misc_virtual_ab_message() 340 int ab_is_support_dynamic_partition(struct blk_desc *dev_desc) in ab_is_support_dynamic_partition() 389 struct blk_desc *dev_desc; in get_partition_unique_uuid() 425 struct blk_desc *dev_desc; in ab_update_root_uuid() 449 struct blk_desc *dev_desc; in ab_update_root_partition() 572 struct blk_desc *dev_desc; in ab_can_find_recovery_part()
|
| H A D | fb_mmc.c | 48 struct blk_desc *dev_desc; 51 static int part_get_info_by_name_or_alias(struct blk_desc *dev_desc, in part_get_info_by_name_or_alias() 73 static lbaint_t fb_mmc_blk_write(struct blk_desc *block_dev, lbaint_t start, in fb_mmc_blk_write() 101 struct blk_desc *dev_desc = sparse->dev_desc; in fb_mmc_sparse_write() 112 static void write_raw_image(struct blk_desc *dev_desc, disk_partition_t *info, in write_raw_image() 153 static lbaint_t fb_mmc_get_boot_header(struct blk_desc *dev_desc, in fb_mmc_get_boot_header() 199 static int fb_mmc_update_zimage(struct blk_desc *dev_desc, in fb_mmc_update_zimage() 305 struct blk_desc *dev_desc; in fb_mmc_flash_write() 424 struct blk_desc *dev_desc; in fb_mmc_erase()
|
| /OK3568_Linux_fs/u-boot/api/ |
| H A D | api_storage.c | 101 struct blk_desc *dd; in dev_stor_get() 137 dd = (struct blk_desc *)di->cookie; in dev_stor_get() 155 static int dev_stor_type(struct blk_desc *dd) in dev_stor_type() 289 static int dev_stor_is_valid(int type, struct blk_desc *dd) in dev_stor_is_valid() 309 if (dev_stor_is_valid(type, (struct blk_desc *)cookie)) in dev_open_stor() 329 struct blk_desc *dd = (struct blk_desc *)cookie; in dev_read_stor()
|
| /OK3568_Linux_fs/u-boot/drivers/ata/ |
| H A D | sata.c | 19 struct blk_desc sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE]; 54 struct blk_desc *sata_get_dev(int dev) in sata_get_dev() 74 static unsigned long sata_bread(struct blk_desc *block_dev, lbaint_t start, in sata_bread() 80 static unsigned long sata_bwrite(struct blk_desc *block_dev, lbaint_t start, in sata_bwrite() 94 memset(&sata_dev_desc[i], 0, sizeof(struct blk_desc)); in __sata_initialize()
|
| /OK3568_Linux_fs/u-boot/lib/efi_loader/ |
| H A D | efi_disk.c | 37 struct blk_desc *desc; 57 struct blk_desc *desc; in efi_disk_rw_blocks() 63 desc = (struct blk_desc *) diskobj->desc; in efi_disk_rw_blocks() 177 struct blk_desc *desc, in efi_disk_add_dev() 216 static int efi_disk_create_eltorito(struct blk_desc *desc, in efi_disk_create_eltorito() 267 struct blk_desc *desc = dev_get_uclass_platdata(dev); in efi_disk_register() 309 struct blk_desc *desc; in efi_disk_register()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | resource_img.c | 151 static int resource_setup_list(struct blk_desc *desc, ulong blk_start, in resource_setup_list() 175 int resource_setup_ram_list(struct blk_desc *desc, void *hdr) in resource_setup_ram_list() 210 static int resource_setup_logo_bmp(struct blk_desc *desc) in resource_setup_logo_bmp() 255 static int resource_setup_blk_list(struct blk_desc *desc, ulong blk_start) in resource_setup_blk_list() 307 static int resource_init(struct blk_desc *desc, in resource_init() 342 static int resource_default(struct blk_desc *desc, in resource_default() 360 struct blk_desc *desc = rockchip_get_bootdev(); in resource_scan() 429 struct blk_desc *desc = rockchip_get_bootdev(); in rockchip_read_resource_file()
|