Searched refs:media (Results 1 - 25 of 25) sorted by relevance

/u-boot/drivers/block/
H A Defi_blk.c4 * This supports a media driver of UCLASS_EFI with a child UCLASS_BLK
38 ret = io->read_blocks(io, io->media->media_id, blknr,
39 blkcnt * io->media->block_size, buffer);
66 ret = io->write_blocks(io, io->media->media_id, blknr,
67 blkcnt * io->media->block_size, (void *)buffer);
97 dev_seq(dev), plat->blkio->media->block_size,
98 plat->blkio->media->last_block, &blk);
H A DMakefile21 obj-$(CONFIG_EFI_MEDIA) += efi-media-uclass.o
/u-boot/lib/efi_loader/
H A Defi_disk.c34 * @media: block I/O media information
41 struct efi_block_io_media media; member in struct:efi_disk_obj
69 * efi_disk_is_removable() - check if the device is removable media
73 * and removable media.
89 if (!io || !io->media)
92 return (bool)io->media->removable_media;
110 blksz = diskobj->media.block_size;
174 /* TODO: check for media changes */
175 if (media_id != this->media
[all...]
H A Defi_tcg2.c1195 gpt_h = memalign(block_io->media->io_align, block_io->media->block_size);
1201 ret = block_io->read_blocks(block_io, block_io->media->media_id, 1,
1202 block_io->media->block_size, gpt_h);
1209 entry = memalign(block_io->media->io_align, total_gpt_entry_size);
1215 ret = block_io->read_blocks(block_io, block_io->media->media_id,
H A Defi_bootmgr.c61 * If @device_path is a media or disk partition which houses a file
63 * an architecture-specific default file name for removable media.
77 * If device_path is a (removable) media or partition which provides
79 * booting from removable media.
100 * Given a file media path iterate through a list of handles and try to
107 * @removable: if true only consider removable media, else only non-removable
153 * prepend its media device path to the file path, @fp, and
177 /* removable media first */
182 /* fixed media */
553 * try_load_from_media() - load file from media
[all...]
/u-boot/lib/efi_driver/
H A Defi_block_device.c69 io, io->media->media_id, (u64)blknr,
71 (efi_uintn_t)io->media->block_size, buffer));
98 io, io->media->media_id, (u64)blknr,
100 (efi_uintn_t)io->media->block_size,
137 devnum, io->media->block_size,
138 (lbaint_t)io->media->last_block, &bdev)) {
/u-boot/boot/
H A Dbootmeth_qfw.c21 const struct udevice *media = dev_get_parent(iter->dev); local
22 enum uclass_id id = device_get_uclass_id(media);
24 log_debug("media=%s\n", media->name);
H A Dbootflow.c33 "media",
158 * scan_next_in_uclass() - Scan for the next bootdev in the same media uclass
160 * Move through the following bootdevs until we find another in this media
268 * Move to the next bootdev child of this media
568 const struct udevice *media = dev_get_parent(iter->dev); local
569 enum uclass_id id = device_get_uclass_id(media);
580 const struct udevice *media = dev_get_parent(iter->dev); local
581 enum uclass_id id = device_get_uclass_id(media);
592 const struct udevice *media = dev_get_parent(iter->dev); local
593 enum uclass_id id = device_get_uclass_id(media);
604 const struct udevice *media = dev_get_parent(iter->dev); local
[all...]
H A Dvbe_simple_fw.c42 struct udevice *media = dev_get_parent(bflow->dev); local
54 log_debug("media=%s\n", media->name);
55 ret = blk_get_from_parent(media, &blk);
H A Dbootmeth_script.c152 const struct udevice *media = dev_get_parent(bflow->dev); local
161 device_get_uclass_id(media) == UCLASS_ETH) {
H A Dbootmeth_efi.c63 * bootmeth_uses_network() - check if the media device is Ethernet
66 * Returns: true if the media device is Ethernet, else false
70 const struct udevice *media = dev_get_parent(bflow->dev); local
73 device_get_uclass_id(media) == UCLASS_ETH;
H A Dbootdev-uclass.c142 * us whether there is valid media there
150 * This error indicates the media is not present. Otherwise we just
433 struct udevice *media; local
442 /* Iterate through devices in the media uclass (e.g. UCLASS_MMC) */
443 uclass_id_foreach_dev(id, media, uc) {
448 if (seq != -1 && dev_seq(media) != seq) {
449 log_debug("- skip, media seq=%d\n", dev_seq(media));
453 ret = device_find_first_child_by_uclass(media, UCLASS_BOOTDEV,
470 * bootdevs for this media uclas
[all...]
/u-boot/lib/efi_selftest/
H A Defi_selftest_block_device.c75 * @media_id media id
100 * @media_id media id
167 static struct efi_block_io_media media; variable in typeref:struct:efi_block_io_media
170 .media = &media,
198 block_io.media->block_size = 1 << LB_BLOCK_SIZE;
199 block_io.media->last_block = (img.length >> LB_BLOCK_SIZE) - 1;
372 if (block_io_protocol->media->last_block != part1_size - 1) {
374 (unsigned int)block_io_protocol->media->last_block,
465 block_io_protocol->media
[all...]
/u-boot/doc/media/
H A DMakefile3 SRC_DIR=$(srctree)/doc/media
/u-boot/doc/
H A DMakefile47 # $3 name of the build subfolder / e.g. "media", used as:
50 # $4 dest subfolder e.g. "man" for man pages at media/man
52 # e.g. "media" for the linux-tv book-set at ./doc/media
55 cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=doc/media $2 && \
115 $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=doc/media clean
/u-boot/drivers/misc/
H A Dqfw.c103 const struct udevice *media = dev_get_parent(dev); local
109 log_debug("media=%s\n", media->name);
/u-boot/test/boot/
H A Dbootdev.c107 struct udevice *dev, *media; local
113 media = dev_get_parent(dev);
114 ut_asserteq(UCLASS_MMC, device_get_uclass_id(media));
115 ut_asserteq_str("mmc2", media->name);
140 struct udevice *dev, *media; local
165 media = dev_get_parent(dev);
166 ut_asserteq(UCLASS_MMC, device_get_uclass_id(media));
167 ut_asserteq_str("mmc2", media->name);
/u-boot/tools/
H A Dmtk_image.c107 static const char *media = ""; local
149 if (!strcmp(key, "media"))
150 media = val;
191 /* parse media type */
193 if (!strcmp(brom_images[i].name, media)) {
212 fprintf(stderr, "Error: media type is invalid or missing.\n");
213 fprintf(stderr, " Please specify -n \"media=<type>\"\n");
220 fprintf(stderr, " Please specify -n \"media=%s;"
221 "nandinfo=<info>\"\n", media);
/u-boot/include/
H A Dfat.h96 __u8 media; /* Media code */ member in struct:boot_sector
H A Defi_api.h750 struct efi_block_io_media *media; member in struct:efi_block_io
/u-boot/drivers/net/
H A Dbcm6368-eth.c225 int val, j, up, adv, lpa, speed, duplex, media; local
267 /* figure out media and duplex from advertise and LPA values */
268 media = mii_nway_result(lpa & adv);
269 duplex = (media & ADVERTISE_FULL) ? 1 : 0;
271 if (media & (ADVERTISE_100FULL | ADVERTISE_100HALF))
H A Dmacb.c671 int media, speed, duplex; local
760 media = mii_nway_result(lpa & adv);
761 speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF)
763 duplex = (media & ADVERTISE_FULL) ? 1 : 0;
H A Drtl8169.c67 /* media options */
69 static int media[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 }; variable
943 option = (board_idx >= MAX_UNITS) ? 0 : media[board_idx];
/u-boot/fs/fat/
H A Dfat.c512 * Determines if the boot sector's media field is valid
516 static int fat_valid_media(u8 media) argument
518 return media >= 0xf8 || media == 0xf0;
537 if (!fat_valid_media(bs->media))
/u-boot/test/image/
H A Dspl_load_fs.c216 bs->media = 0xf8;

Completed in 291 milliseconds