Home
last modified time | relevance | path

Searched refs:blk_desc (Results 1 – 25 of 96) sorted by relevance

1234

/openbmc/u-boot/include/
H A Dpart.h93 struct blk_desc *blk_get_dev(const char *ifname, int dev);
95 struct blk_desc *mg_disk_get_dev(int dev);
96 int host_get_dev_err(int dev, struct blk_desc **blk_devp);
99 int part_get_info(struct blk_desc *dev_desc, int part, disk_partition_t *info);
104 int part_get_info_whole_disk(struct blk_desc *dev_desc, disk_partition_t *info);
106 void part_print(struct blk_desc *dev_desc);
107 void part_init(struct blk_desc *dev_desc);
108 void dev_print(struct blk_desc *dev_desc);
136 struct blk_desc **dev_desc);
172 struct blk_desc **dev_desc,
[all …]
H A Dblk.h60 struct blk_desc { struct
96 unsigned long (*block_read)(struct blk_desc *block_dev, argument
100 unsigned long (*block_write)(struct blk_desc *block_dev, argument
104 unsigned long (*block_erase)(struct blk_desc *block_dev, argument
111 #define BLOCK_CNT(size, blk_desc) (PAD_COUNT(size, blk_desc->blksz)) argument
112 #define PAD_TO_BLOCKSIZE(size, blk_desc) \ argument
113 (PAD_SIZE(size, blk_desc->blksz))
271 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start,
273 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start,
275 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start,
[all …]
H A Dide.h22 struct blk_desc;
30 ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
32 ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
H A Dspl.h272 struct blk_desc *block_dev, int partition,
275 struct blk_desc *block_dev, int partition);
281 struct blk_desc *block_dev, int partition,
284 struct blk_desc *block_dev, int partition);
H A Dext4fs.h117 struct blk_desc *dev_desc;
148 void ext4fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
150 int ext4fs_probe(struct blk_desc *fs_dev_desc,
/openbmc/u-boot/drivers/block/
H A Dblk-uclass.c67 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum) in blk_get_devnum_by_type()
69 struct blk_desc *desc; in blk_get_devnum_by_type()
86 struct blk_desc *blk_get_devnum_by_typename(const char *if_typename, int devnum) in blk_get_devnum_by_typename()
111 struct blk_desc *desc = dev_get_uclass_platdata(dev); in blk_get_devnum_by_typename()
143 struct blk_desc *blk_get_by_device(struct udevice *dev) in blk_get_by_device()
169 static int get_desc(enum if_type if_type, int devnum, struct blk_desc **descp) in get_desc()
181 struct blk_desc *desc = dev_get_uclass_platdata(dev); in get_desc()
216 struct blk_desc *desc; in blk_list_part()
241 struct blk_desc *desc; in blk_print_part_devnum()
256 struct blk_desc *desc; in blk_list_devices()
[all …]
H A Dblk_legacy.c57 static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp) in get_desc()
75 struct blk_desc *desc; in blk_list_part()
102 struct blk_desc *desc; in blk_print_part_devnum()
120 struct blk_desc *desc; in blk_list_devices()
138 struct blk_desc *desc; in blk_print_device_num()
155 struct blk_desc *desc; in blk_show_device()
177 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum) in blk_get_devnum_by_type()
180 struct blk_desc *desc; in blk_get_devnum_by_type()
191 int blk_dselect_hwpart(struct blk_desc *desc, int hwpart) in blk_dselect_hwpart()
203 struct blk_desc *blk_get_devnum_by_typename(const char *if_typename, int devnum) in blk_get_devnum_by_typename()
[all …]
H A Dsandbox.c37 struct blk_desc *block_dev = dev_get_uclass_platdata(dev);
40 static unsigned long host_block_read(struct blk_desc *block_dev,
68 struct blk_desc *block_dev = dev_get_uclass_platdata(dev);
70 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)
/openbmc/u-boot/disk/
H A Dpart.c26 static struct part_driver *part_driver_lookup_type(struct blk_desc *dev_desc) in part_driver_lookup_type()
55 static struct blk_desc *get_dev_hwpart(const char *ifname, int dev, int hwpart) in get_dev_hwpart()
57 struct blk_desc *dev_desc; in get_dev_hwpart()
76 struct blk_desc *blk_get_dev(const char *ifname, int dev) in blk_get_dev()
81 struct blk_desc *get_dev_hwpart(const char *ifname, int dev, int hwpart) in get_dev_hwpart()
86 struct blk_desc *blk_get_dev(const char *ifname, int dev) in blk_get_dev()
119 void dev_print (struct blk_desc *dev_desc) in dev_print()
229 void part_init(struct blk_desc *dev_desc) in part_init()
251 static void print_part_header(const char *type, struct blk_desc *dev_desc) in print_part_header()
299 void part_print(struct blk_desc *dev_desc) in part_print()
[all …]
H A Dpart_mac.c34 static int part_mac_read_ddb(struct blk_desc *dev_desc,
36 static int part_mac_read_pdb(struct blk_desc *dev_desc, int part,
42 static int part_test_mac(struct blk_desc *dev_desc) in part_test_mac()
68 static void part_print_mac(struct blk_desc *dev_desc) in part_print_mac()
157 static int part_mac_read_ddb(struct blk_desc *dev_desc, in part_mac_read_ddb()
174 static int part_mac_read_pdb(struct blk_desc *dev_desc, int part, in part_mac_read_pdb()
216 static int part_get_info_mac(struct blk_desc *dev_desc, int part, in part_get_info_mac()
H A Dpart_efi.c49 static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba,
51 static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc,
188 int get_disk_guid(struct blk_desc * dev_desc, char *guid) in get_disk_guid()
215 void part_print_efi(struct blk_desc *dev_desc) in part_print_efi()
272 int part_get_info_efi(struct blk_desc *dev_desc, int part, in part_get_info_efi()
335 static int part_test_efi(struct blk_desc *dev_desc) in part_test_efi()
353 static int set_protective_mbr(struct blk_desc *dev_desc) in set_protective_mbr()
388 int write_gpt_table(struct blk_desc *dev_desc, in write_gpt_table()
436 int gpt_fill_pte(struct blk_desc *dev_desc, in gpt_fill_pte()
556 static uint32_t partition_entries_offset(struct blk_desc *dev_desc) in partition_entries_offset()
[all …]
H A Dpart_dos.c93 static int part_test_dos(struct blk_desc *dev_desc) in part_test_dos()
124 static void print_partition_extended(struct blk_desc *dev_desc, in print_partition_extended()
195 static int part_get_info_extended(struct blk_desc *dev_desc, in part_get_info_extended()
295 void part_print_dos(struct blk_desc *dev_desc) in part_print_dos()
301 int part_get_info_dos(struct blk_desc *dev_desc, int part, in part_get_info_dos()
312 int write_mbr_partition(struct blk_desc *dev_desc, void *buf) in write_mbr_partition()
H A Dpart_iso.c28 unsigned long iso_dread(struct blk_desc *block_dev, lbaint_t start, in iso_dread()
48 int part_get_info_iso_verb(struct blk_desc *dev_desc, int part_num, in part_get_info_iso_verb()
201 static int part_get_info_iso(struct blk_desc *dev_desc, int part_num, in part_get_info_iso()
207 static void part_print_iso(struct blk_desc *dev_desc) in part_print_iso()
226 static int part_test_iso(struct blk_desc *dev_desc) in part_test_iso()
H A Dpart_amiga.c128 struct rigid_disk_block *get_rdisk(struct blk_desc *dev_desc) in get_rdisk()
168 struct bootcode_block *get_bootcode(struct blk_desc *dev_desc) in get_bootcode()
209 static int part_test_amiga(struct blk_desc *dev_desc) in part_test_amiga()
238 static struct partition_block *find_partition(struct blk_desc *dev_desc, in find_partition()
292 static int part_get_info_amiga(struct blk_desc *dev_desc, int part, in part_get_info_amiga()
320 static void part_print_amiga(struct blk_desc *dev_desc) in part_print_amiga()
/openbmc/u-boot/drivers/mmc/
H A Dmmc_private.h26 ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
37 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
39 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt);
59 static inline unsigned long mmc_berase(struct blk_desc *block_dev, in mmc_berase()
65 static inline ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, in mmc_bwrite()
H A Dmmc_legacy.c32 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc()
61 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc()
165 struct blk_desc *bdesc; in mmc_create()
213 static int mmc_select_hwpartp(struct blk_desc *desc, int hwpart) in mmc_select_hwpartp()
234 static int mmc_get_dev(int dev, struct blk_desc **descp) in mmc_get_dev()
/openbmc/u-boot/drivers/fastboot/
H A Dfb_mmc.c24 struct blk_desc *dev_desc;
27 static int part_get_info_by_name_or_alias(struct blk_desc *dev_desc, in part_get_info_by_name_or_alias()
57 static lbaint_t fb_mmc_blk_write(struct blk_desc *block_dev, lbaint_t start, in fb_mmc_blk_write()
88 struct blk_desc *dev_desc = sparse->dev_desc; in fb_mmc_sparse_write()
99 static void write_raw_image(struct blk_desc *dev_desc, disk_partition_t *info, in write_raw_image()
141 static lbaint_t fb_mmc_get_boot_header(struct blk_desc *dev_desc, in fb_mmc_get_boot_header()
188 static int fb_mmc_update_zimage(struct blk_desc *dev_desc, in fb_mmc_update_zimage()
301 int fastboot_mmc_get_part_info(char *part_name, struct blk_desc **dev_desc, in fastboot_mmc_get_part_info()
336 struct blk_desc *dev_desc; in fastboot_mmc_flash_write()
440 struct blk_desc *dev_desc; in fastboot_mmc_erase()
/openbmc/u-boot/drivers/ata/
H A Dsata.c18 struct blk_desc sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
53 struct blk_desc *sata_get_dev(int dev) in sata_get_dev()
73 static unsigned long sata_bread(struct blk_desc *block_dev, lbaint_t start, in sata_bread()
79 static unsigned long sata_bwrite(struct blk_desc *block_dev, lbaint_t start, in sata_bwrite()
93 memset(&sata_dev_desc[i], 0, sizeof(struct blk_desc)); in __sata_initialize()
/openbmc/u-boot/api/
H A Dapi_storage.c100 struct blk_desc *dd; in dev_stor_get()
141 dd = (struct blk_desc *)di->cookie; in dev_stor_get()
159 static int dev_stor_type(struct blk_desc *dd) in dev_stor_type()
293 static int dev_stor_is_valid(int type, struct blk_desc *dd) in dev_stor_is_valid()
313 if (dev_stor_is_valid(type, (struct blk_desc *)cookie)) in dev_open_stor()
333 struct blk_desc *dd = (struct blk_desc *)cookie; in dev_read_stor()
/openbmc/u-boot/env/
H A Dsata.c32 static inline int write_env(struct blk_desc *sata, unsigned long size, in write_env()
48 struct blk_desc *sata = NULL; in env_sata_save()
78 static inline int read_env(struct blk_desc *sata, unsigned long size, in read_env()
94 struct blk_desc *sata = NULL; in env_sata_load()
/openbmc/u-boot/common/spl/
H A Dspl_fat.c21 static int spl_register_fat_device(struct blk_desc *block_dev, int partition) in spl_register_fat_device()
56 struct blk_desc *block_dev, int partition, in spl_load_image_fat()
115 struct blk_desc *block_dev, int partition) in spl_load_image_fat_os()
166 struct blk_desc *block_dev, int partition) in spl_load_image_fat_os()
/openbmc/u-boot/drivers/scsi/
H A Dscsi.c43 static struct blk_desc scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE];
147 static ulong scsi_read(struct blk_desc *block_dev, lbaint_t blknr, in scsi_read()
152 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in scsi_read()
223 static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr, in scsi_write()
228 struct blk_desc *block_dev = dev_get_uclass_platdata(dev); in scsi_write()
441 static void scsi_init_dev_desc_priv(struct blk_desc *dev_desc) in scsi_init_dev_desc_priv()
465 static void scsi_init_dev_desc(struct blk_desc *dev_desc, int devnum) in scsi_init_dev_desc()
490 struct blk_desc *dev_desc) in scsi_detect_dev()
562 struct blk_desc bd; in do_scsi_scan_one()
563 struct blk_desc *bdesc; in do_scsi_scan_one()
[all …]
/openbmc/u-boot/lib/efi_loader/
H A Defi_disk.c41 struct blk_desc *desc;
61 struct blk_desc *desc; in efi_disk_rw_blocks()
67 desc = (struct blk_desc *) diskobj->desc; in efi_disk_rw_blocks()
235 struct blk_desc *desc, in efi_disk_add_dev()
312 int efi_disk_create_partitions(efi_handle_t parent, struct blk_desc *desc, in efi_disk_create_partitions()
368 struct blk_desc *desc = dev_get_uclass_platdata(dev); in efi_disk_register()
406 struct blk_desc *desc; in efi_disk_register()
/openbmc/u-boot/fs/reiserfs/
H A Ddev.c14 static struct blk_desc *reiserfs_blk_desc;
18 void reiserfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) in reiserfs_set_blk_dev()
/openbmc/u-boot/fs/zfs/
H A Ddev.c16 static struct blk_desc *zfs_blk_desc;
19 void zfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) in zfs_set_blk_dev()

1234