Home
last modified time | relevance | path

Searched refs:lbaint_t (Results 1 – 25 of 57) sorted by relevance

123

/u-boot/drivers/mmc/
A Dmmc_private.h22 ulong mmc_bread(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
25 ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
32 ulong mmc_bwrite(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
34 ulong mmc_berase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt);
36 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
38 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt);
47 lbaint_t start, lbaint_t blkcnt) in mmc_berase()
52 static inline ulong mmc_bwrite(struct udevice *dev, lbaint_t start, in mmc_bwrite()
53 lbaint_t blkcnt, const void *src) in mmc_bwrite()
59 lbaint_t start, lbaint_t blkcnt) in mmc_berase()
[all …]
A Dmmc_write.c18 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) in mmc_erase_t()
70 ulong mmc_berase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt) in mmc_berase()
72 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt) in mmc_berase()
82 lbaint_t blk = 0, blk_r = 0; in mmc_berase()
130 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks()
131 lbaint_t blkcnt, const void *src) in mmc_write_blocks()
188 ulong mmc_bwrite(struct udevice *dev, lbaint_t start, lbaint_t blkcnt, in mmc_bwrite()
191 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, in mmc_bwrite()
199 lbaint_t cur, blocks_todo = blkcnt; in mmc_bwrite()
/u-boot/include/
A Dblk.h13 typedef uint64_t lbaint_t; typedef
16 typedef ulong lbaint_t; typedef
98 lbaint_t start,
99 lbaint_t blkcnt,
102 lbaint_t start,
106 lbaint_t start,
136 lbaint_t start, lbaint_t blkcnt,
152 lbaint_t start, lbaint_t blkcnt,
193 lbaint_t start, lbaint_t blkcnt, in blkcache_read()
200 lbaint_t start, lbaint_t blkcnt, in blkcache_fill()
[all …]
A Dimage-sparse.h13 lbaint_t blksz;
14 lbaint_t start;
15 lbaint_t size;
18 lbaint_t (*write)(struct sparse_storage *info,
19 lbaint_t blk,
20 lbaint_t blkcnt,
23 lbaint_t (*reserve)(struct sparse_storage *info,
24 lbaint_t blk,
25 lbaint_t blkcnt);
A Dide.h25 ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
27 ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
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,
A Dusb_mass_storage.h19 ulong start, lbaint_t blkcnt, void *buf);
21 ulong start, lbaint_t blkcnt, const void *buf);
A Dsata.h9 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer);
10 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
A Dext4fs.h124 lbaint_t block;
156 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, char *buf);
168 int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size);
A Dfs_internal.h13 int fs_devread(struct blk_desc *, struct disk_partition *, lbaint_t, int, int,
/u-boot/disk/
A Dpart_dos.c136 lbaint_t ext_part_sector, in print_partition_extended()
137 lbaint_t relative, in print_partition_extended()
191 lbaint_t lba_start in print_partition_extended()
207 lbaint_t ext_part_sector, lbaint_t relative, in part_get_info_extended()
279 lbaint_t lba_start in part_get_info_extended()
348 lbaint_t relative, lbaint_t size, uchar sys_ind, bool bootable) in mbr_fill_pt_entry()
398 lbaint_t next_ebr = 0; in write_mbr_partitions()
433 lbaint_t total_sectors) in layout_mbr_partitions()
437 lbaint_t ext_vol_start; in layout_mbr_partitions()
447 lbaint_t allocated = 0; in layout_mbr_partitions()
[all …]
A Dpart_efi.c91 static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba, in validate_gpt_header()
92 lbaint_t lastlba) in validate_gpt_header()
407 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->my_lba), 1, in write_gpt_table()
423 lbaint_t offset = (lbaint_t)le64_to_cpu(gpt_h->first_usable_lba); in gpt_fill_pte()
424 lbaint_t last_usable_lba = (lbaint_t) in gpt_fill_pte()
446 lbaint_t start = partitions[i].start; in gpt_fill_pte()
447 lbaint_t size = partitions[i].size; in gpt_fill_pte()
809 lbaint_t lba; in write_mbr_and_gpt_partitions()
947 if (blk_dread(dev_desc, (lbaint_t)lba, 1, pgpt_head) != 1) { in is_gpt_valid()
958 if (validate_gpt_header(pgpt_head, (lbaint_t)lba, dev_desc->lba)) in is_gpt_valid()
[all …]
/u-boot/drivers/ata/
A Dsata.c63 static unsigned long sata_bread(struct udevice *dev, lbaint_t start, in sata_bread()
64 lbaint_t blkcnt, void *dst) in sata_bread()
69 static unsigned long sata_bwrite(struct udevice *dev, lbaint_t start, in sata_bwrite()
70 lbaint_t blkcnt, const void *buffer) in sata_bwrite()
75 static unsigned long sata_bread(struct blk_desc *block_dev, lbaint_t start, in sata_bread()
76 lbaint_t blkcnt, void *dst) in sata_bread()
81 static unsigned long sata_bwrite(struct blk_desc *block_dev, lbaint_t start, in sata_bwrite()
82 lbaint_t blkcnt, const void *buffer) in sata_bwrite()
A Dsata_sandbox.c25 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read()
30 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write()
/u-boot/drivers/block/
A Dblkcache.c24 lbaint_t start;
25 lbaint_t blkcnt;
50 lbaint_t start, lbaint_t blkcnt, in cache_find()
72 lbaint_t start, lbaint_t blkcnt, in blkcache_read()
93 lbaint_t start, lbaint_t blkcnt, in blkcache_fill()
96 lbaint_t bytes; in blkcache_fill()
A Dblk-uclass.c314 ulong blk_read_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_read_devnum()
315 lbaint_t blkcnt, void *buffer) in blk_read_devnum()
332 lbaint_t blkcnt, const void *buffer) in blk_write_devnum()
435 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start, in blk_dread()
436 lbaint_t blkcnt, void *buffer) in blk_dread()
456 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start, in blk_dwrite()
457 lbaint_t blkcnt, const void *buffer) in blk_dwrite()
469 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start, in blk_derase()
470 lbaint_t blkcnt) in blk_derase()
568 lbaint_t lba, struct udevice **devp) in blk_create_device()
[all …]
A Dsandbox.c35 unsigned long start, lbaint_t blkcnt,
43 unsigned long start, lbaint_t blkcnt,
66 unsigned long start, lbaint_t blkcnt,
73 unsigned long start, lbaint_t blkcnt,
/u-boot/drivers/fastboot/
A Dfb_mmc.c134 static lbaint_t fb_mmc_blk_write(struct blk_desc *block_dev, lbaint_t start, in fb_mmc_blk_write()
137 lbaint_t blk = start; in fb_mmc_blk_write()
139 lbaint_t cur_blkcnt; in fb_mmc_blk_write()
140 lbaint_t blks = 0; in fb_mmc_blk_write()
162 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_mmc_sparse_write()
171 lbaint_t blk, lbaint_t blkcnt) in fb_mmc_sparse_reserve()
180 lbaint_t blkcnt; in write_raw_image()
181 lbaint_t blks; in write_raw_image()
212 lbaint_t blks; in fb_mmc_erase_mmc_hwpart()
234 lbaint_t blkcnt; in fb_mmc_boot_ops()
[all …]
A Dfb_nand.c107 static lbaint_t fb_nand_sparse_write(struct sparse_storage *info, in fb_nand_sparse_write()
108 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_nand_sparse_write()
131 static lbaint_t fb_nand_sparse_reserve(struct sparse_storage *info, in fb_nand_sparse_reserve()
132 lbaint_t blk, lbaint_t blkcnt) in fb_nand_sparse_reserve()
/u-boot/drivers/virtio/
A Dvirtio_blk.c21 lbaint_t blkcnt, void *buffer, u32 type) in virtio_blk_do_req()
58 static ulong virtio_blk_read(struct udevice *dev, lbaint_t start, in virtio_blk_read()
59 lbaint_t blkcnt, void *buffer) in virtio_blk_read()
65 static ulong virtio_blk_write(struct udevice *dev, lbaint_t start, in virtio_blk_write()
66 lbaint_t blkcnt, const void *buffer) in virtio_blk_write()
/u-boot/lib/efi_driver/
A Defi_block_device.c59 static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_read()
88 static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_write()
164 (lbaint_t)io->media->last_block, &bdev); in efi_bl_bind()
/u-boot/fs/ext4/
A Dext4fs.c57 lbaint_t blockcnt; in ext4fs_read_file()
62 lbaint_t previous_block_number = -1; in ext4fs_read_file()
63 lbaint_t delayed_start = 0; in ext4fs_read_file()
64 lbaint_t delayed_extent = 0; in ext4fs_read_file()
65 lbaint_t delayed_skipfirst = 0; in ext4fs_read_file()
66 lbaint_t delayed_next = 0; in ext4fs_read_file()
288 int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size) in ext_cache_read()
A Ddev.c34 lbaint_t part_offset;
50 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, in ext4fs_devread()
/u-boot/drivers/scsi/
A Dscsi.c149 static ulong scsi_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_read()
155 lbaint_t start, blks, max_blks; in scsi_read()
180 blocks = min_t(lbaint_t, blks, max_blks); in scsi_read()
219 static ulong scsi_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_write()
225 lbaint_t start, blks, max_blks; in scsi_write()
358 lbaint_t *capacity, unsigned long *blksz) in scsi_read_capacity()
372 *capacity = ((lbaint_t)pccb->pdata[0] << 24) | in scsi_read_capacity()
373 ((lbaint_t)pccb->pdata[1] << 16) | in scsi_read_capacity()
374 ((lbaint_t)pccb->pdata[2] << 8) | in scsi_read_capacity()
375 ((lbaint_t)pccb->pdata[3]); in scsi_read_capacity()
[all …]
/u-boot/cmd/
A Dusb_mass_storage.c23 ulong start, lbaint_t blkcnt, void *buf) in ums_read_sector()
26 lbaint_t blkstart = start + ums_dev->start_sector; in ums_read_sector()
32 ulong start, lbaint_t blkcnt, const void *buf) in ums_write_sector()
35 lbaint_t blkstart = start + ums_dev->start_sector; in ums_write_sector()
A Dblk_common.c67 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd()
82 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd()

Completed in 30 milliseconds

123