Home
last modified time | relevance | path

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

123

/third_party/uboot/u-boot-2020.01/include/
Dblk.h13 typedef uint64_t lbaint_t; typedef
16 typedef ulong lbaint_t; typedef
77 lbaint_t lba; /* number of blocks */
97 lbaint_t start,
98 lbaint_t blkcnt,
101 lbaint_t start,
102 lbaint_t blkcnt,
105 lbaint_t start,
106 lbaint_t blkcnt);
129 lbaint_t start, lbaint_t blkcnt,
[all …]
Dimage-sparse.h12 lbaint_t blksz;
13 lbaint_t start;
14 lbaint_t size;
17 lbaint_t (*write)(struct sparse_storage *info,
18 lbaint_t blk,
19 lbaint_t blkcnt,
22 lbaint_t (*reserve)(struct sparse_storage *info,
23 lbaint_t blk,
24 lbaint_t blkcnt);
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,
Dusb_mass_storage.h19 ulong start, lbaint_t blkcnt, void *buf);
21 ulong start, lbaint_t blkcnt, const void *buf);
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);
Dext4fs.h122 lbaint_t block;
154 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, char *buf);
166 int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size);
/third_party/uboot/u-boot-2020.01/drivers/mmc/
Dmmc_private.h24 ulong mmc_bread(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
27 ulong mmc_bread(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
34 ulong mmc_bwrite(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
36 ulong mmc_berase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt);
38 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
40 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt);
49 lbaint_t start, lbaint_t blkcnt) in mmc_berase()
54 static inline ulong mmc_bwrite(struct udevice *dev, lbaint_t start, in mmc_bwrite()
55 lbaint_t blkcnt, const void *src) in mmc_bwrite()
61 lbaint_t start, lbaint_t blkcnt) in mmc_berase()
[all …]
Dmmc_write.c17 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) in mmc_erase_t()
69 ulong mmc_berase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt) in mmc_berase()
71 ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt) in mmc_berase()
81 lbaint_t blk = 0, blk_r = 0; in mmc_berase()
129 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks()
130 lbaint_t blkcnt, const void *src) in mmc_write_blocks()
187 ulong mmc_bwrite(struct udevice *dev, lbaint_t start, lbaint_t blkcnt, in mmc_bwrite()
190 ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt, in mmc_bwrite()
198 lbaint_t cur, blocks_todo = blkcnt; in mmc_bwrite()
/third_party/uboot/u-boot-2020.01/drivers/fastboot/
Dfb_mmc.c58 static lbaint_t fb_mmc_blk_write(struct blk_desc *block_dev, lbaint_t start, in fb_mmc_blk_write()
59 lbaint_t blkcnt, const void *buffer) in fb_mmc_blk_write()
61 lbaint_t blk = start; in fb_mmc_blk_write()
62 lbaint_t blks_written; in fb_mmc_blk_write()
63 lbaint_t cur_blkcnt; in fb_mmc_blk_write()
64 lbaint_t blks = 0; in fb_mmc_blk_write()
85 static lbaint_t fb_mmc_sparse_write(struct sparse_storage *info, in fb_mmc_sparse_write()
86 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_mmc_sparse_write()
94 static lbaint_t fb_mmc_sparse_reserve(struct sparse_storage *info, in fb_mmc_sparse_reserve()
95 lbaint_t blk, lbaint_t blkcnt) in fb_mmc_sparse_reserve()
[all …]
Dfb_nand.c105 static lbaint_t fb_nand_sparse_write(struct sparse_storage *info, in fb_nand_sparse_write()
106 lbaint_t blk, lbaint_t blkcnt, const void *buffer) in fb_nand_sparse_write()
129 static lbaint_t fb_nand_sparse_reserve(struct sparse_storage *info, in fb_nand_sparse_reserve()
130 lbaint_t blk, lbaint_t blkcnt) in fb_nand_sparse_reserve()
/third_party/uboot/u-boot-2020.01/drivers/ata/
Dsata.c61 static unsigned long sata_bread(struct udevice *dev, lbaint_t start, in sata_bread()
62 lbaint_t blkcnt, void *dst) in sata_bread()
67 static unsigned long sata_bwrite(struct udevice *dev, lbaint_t start, in sata_bwrite()
68 lbaint_t blkcnt, const void *buffer) in sata_bwrite()
73 static unsigned long sata_bread(struct blk_desc *block_dev, lbaint_t start, in sata_bread()
74 lbaint_t blkcnt, void *dst) in sata_bread()
79 static unsigned long sata_bwrite(struct blk_desc *block_dev, lbaint_t start, in sata_bwrite()
80 lbaint_t blkcnt, const void *buffer) in sata_bwrite()
Dsata_sandbox.c24 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read()
29 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write()
/third_party/uboot/u-boot-2020.01/drivers/block/
Dblkcache.c18 lbaint_t start;
19 lbaint_t blkcnt;
32 lbaint_t start, lbaint_t blkcnt, in cache_find()
54 lbaint_t start, lbaint_t blkcnt, in blkcache_read()
75 lbaint_t start, lbaint_t blkcnt, in blkcache_fill()
78 lbaint_t bytes; in blkcache_fill()
Dblk-uclass.c308 ulong blk_read_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_read_devnum()
309 lbaint_t blkcnt, void *buffer) in blk_read_devnum()
325 ulong blk_write_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_write_devnum()
326 lbaint_t blkcnt, const void *buffer) in blk_write_devnum()
429 unsigned long blk_dread(struct blk_desc *block_dev, lbaint_t start, in blk_dread()
430 lbaint_t blkcnt, void *buffer) in blk_dread()
450 unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start, in blk_dwrite()
451 lbaint_t blkcnt, const void *buffer) in blk_dwrite()
463 unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start, in blk_derase()
464 lbaint_t blkcnt) in blk_derase()
[all …]
Dsandbox.c33 unsigned long start, lbaint_t blkcnt,
41 unsigned long start, lbaint_t blkcnt,
64 unsigned long start, lbaint_t blkcnt,
71 unsigned long start, lbaint_t blkcnt,
Dblk_legacy.c217 ulong blk_read_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_read_devnum()
218 lbaint_t blkcnt, void *buffer) in blk_read_devnum()
237 ulong blk_write_devnum(enum if_type if_type, int devnum, lbaint_t start, in blk_write_devnum()
238 lbaint_t blkcnt, const void *buffer) in blk_write_devnum()
/third_party/uboot/u-boot-2020.01/disk/
Dpart_dos.c53 static void print_one_part(dos_partition_t *p, lbaint_t ext_part_sector, in print_one_part()
56 lbaint_t lba_start = ext_part_sector + le32_to_int (p->start4); in print_one_part()
57 lbaint_t lba_size = le32_to_int (p->size4); in print_one_part()
137 lbaint_t ext_part_sector, in print_partition_extended()
138 lbaint_t relative, in print_partition_extended()
192 lbaint_t lba_start in print_partition_extended()
208 lbaint_t ext_part_sector, lbaint_t relative, in part_get_info_extended()
254 info->start = (lbaint_t)(ext_part_sector + in part_get_info_extended()
256 info->size = (lbaint_t)le32_to_int(pt->size4); in part_get_info_extended()
280 lbaint_t lba_start in part_get_info_extended()
Dpart_efi.c81 static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba, in validate_gpt_header()
82 lbaint_t lastlba) in validate_gpt_header()
280 info->start = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].starting_lba); in part_get_info_efi()
282 info->size = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].ending_lba) + 1 in part_get_info_efi()
392 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->last_usable_lba) in write_gpt_table()
396 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->my_lba), 1, in write_gpt_table()
412 lbaint_t offset = (lbaint_t)le64_to_cpu(gpt_h->first_usable_lba); in gpt_fill_pte()
413 lbaint_t last_usable_lba = (lbaint_t) in gpt_fill_pte()
435 lbaint_t start = partitions[i].start; in gpt_fill_pte()
436 lbaint_t size = partitions[i].size; in gpt_fill_pte()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/scsi/
Dscsi.c57 void scsi_setup_read16(struct scsi_cmd *pccb, lbaint_t start, in scsi_setup_read16()
102 static void scsi_setup_read_ext(struct scsi_cmd *pccb, lbaint_t start, in scsi_setup_read_ext()
123 static void scsi_setup_write_ext(struct scsi_cmd *pccb, lbaint_t start, in scsi_setup_write_ext()
145 static ulong scsi_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_read()
151 lbaint_t start, blks, max_blks; in scsi_read()
176 blocks = min_t(lbaint_t, blks, max_blks); in scsi_read()
215 static ulong scsi_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in scsi_write()
221 lbaint_t start, blks, max_blks; in scsi_write()
354 lbaint_t *capacity, unsigned long *blksz) in scsi_read_capacity()
368 *capacity = ((lbaint_t)pccb->pdata[0] << 24) | in scsi_read_capacity()
[all …]
/third_party/uboot/u-boot-2020.01/fs/ext4/
Dext4fs.c53 lbaint_t blockcnt; in ext4fs_read_file()
58 lbaint_t previous_block_number = -1; in ext4fs_read_file()
59 lbaint_t delayed_start = 0; in ext4fs_read_file()
60 lbaint_t delayed_extent = 0; in ext4fs_read_file()
61 lbaint_t delayed_skipfirst = 0; in ext4fs_read_file()
62 lbaint_t delayed_next = 0; in ext4fs_read_file()
284 int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size) in ext_cache_read()
Ddev.c33 lbaint_t part_offset;
49 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, in ext4fs_devread()
/third_party/uboot/u-boot-2020.01/drivers/virtio/
Dvirtio_blk.c20 lbaint_t blkcnt, void *buffer, u32 type) in virtio_blk_do_req()
57 static ulong virtio_blk_read(struct udevice *dev, lbaint_t start, in virtio_blk_read()
58 lbaint_t blkcnt, void *buffer) in virtio_blk_read()
64 static ulong virtio_blk_write(struct udevice *dev, lbaint_t start, in virtio_blk_write()
65 lbaint_t blkcnt, const void *buffer) in virtio_blk_write()
/third_party/uboot/u-boot-2020.01/lib/efi_driver/
Defi_block_device.c55 static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_read()
84 static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in efi_bl_write()
160 (lbaint_t)io->media->last_block, &bdev); in efi_bl_bind()
/third_party/uboot/u-boot-2020.01/cmd/
Dusb_mass_storage.c20 ulong start, lbaint_t blkcnt, void *buf) in ums_read_sector()
23 lbaint_t blkstart = start + ums_dev->start_sector; in ums_read_sector()
29 ulong start, lbaint_t blkcnt, const void *buf) in ums_write_sector()
32 lbaint_t blkstart = start + ums_dev->start_sector; in ums_write_sector()
/third_party/uboot/u-boot-2020.01/common/
Dusb_storage.c115 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr,
116 lbaint_t blkcnt, void *buffer);
117 static unsigned long usb_stor_write(struct udevice *dev, lbaint_t blknr,
118 lbaint_t blkcnt, const void *buffer);
120 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr,
121 lbaint_t blkcnt, void *buffer);
122 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr,
123 lbaint_t blkcnt, const void *buffer);
1124 static unsigned long usb_stor_read(struct udevice *dev, lbaint_t blknr, in usb_stor_read()
1125 lbaint_t blkcnt, void *buffer) in usb_stor_read()
[all …]

123