Home
last modified time | relevance | path

Searched refs:loff_t (Results 1 – 25 of 106) sorted by relevance

12345

/u-boot/include/
A Dsandboxfs.h26 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer,
27 loff_t maxsize, loff_t *actread);
28 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer,
29 loff_t maxsize, loff_t *actwrite);
34 int sandbox_fs_size(const char *filename, loff_t *size);
35 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len,
36 loff_t *actread);
37 int fs_write_sandbox(const char *filename, void *buf, loff_t offset,
38 loff_t len, loff_t *actwrite);
A Dnand.h47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read()
59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad()
84 loff_t length; /* number of bytes to erase */
85 loff_t offset; /* first address in NAND to erase */
95 loff_t lim;
101 size_t *actual, loff_t lim, u_char *buffer);
107 size_t *actual, loff_t lim, u_char *buffer, int flags);
110 int nand_torture(struct mtd_info *mtd, loff_t offset);
112 loff_t ofs);
119 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length,
[all …]
A Dext4fs.h141 int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len,
142 loff_t *actwrite);
147 int ext4fs_open(const char *filename, loff_t *len);
148 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread);
154 int ext4fs_size(const char *filename, loff_t *size);
162 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len,
163 loff_t *actread);
A Donenand_uboot.h33 extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
35 extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
36 extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
42 extern unsigned onenand_block(struct onenand_chip *this, loff_t addr);
44 extern loff_t onenand_addr(struct onenand_chip *this, int block);
46 extern int flexonenand_region(struct mtd_info *mtd, loff_t addr);
A Dbtrfs.h18 int btrfs_size(const char *, loff_t *);
19 int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
A Dfs.h122 int fs_size(const char *filename, loff_t *size);
137 int fs_read(const char *filename, ulong addr, loff_t offset, loff_t len,
138 loff_t *actread);
152 int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len,
153 loff_t *actwrite);
169 loff_t size; /* size in bytes */
A Dsquashfs.h19 int sqfs_read(const char *filename, void *buf, loff_t offset,
20 loff_t len, loff_t *actread);
21 int sqfs_size(const char *filename, loff_t *size);
A Dubifs_uboot.h29 int ubifs_size(const char *filename, loff_t *size);
30 int ubifs_read(const char *filename, void *buf, loff_t offset,
31 loff_t size, loff_t *actread);
A Dfat.h202 int fat_size(const char *filename, loff_t *size);
203 int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
204 loff_t maxsize, loff_t *actread);
209 int file_fat_write(const char *filename, void *buf, loff_t offset, loff_t len,
210 loff_t *actwrite);
211 int fat_read_file(const char *filename, void *buf, loff_t offset, loff_t len,
212 loff_t *actread);
A Dmxs_nand.h66 loff_t from, struct mtd_oob_ops *ops);
68 loff_t to, struct mtd_oob_ops *ops);
70 loff_t ofs);
/u-boot/fs/sandbox/
A Dsandboxfs.c21 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_read_at()
22 loff_t maxsize, loff_t *actread) in sandbox_fs_read_at()
24 loff_t size; in sandbox_fs_read_at()
58 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_write_at()
59 loff_t towrite, loff_t *actwrite) in sandbox_fs_write_at()
106 loff_t size; in sandbox_fs_exists()
113 int sandbox_fs_size(const char *filename, loff_t *size) in sandbox_fs_size()
122 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, in fs_read_sandbox()
123 loff_t *actread) in fs_read_sandbox()
134 int fs_write_sandbox(const char *filename, void *buf, loff_t offset, in fs_write_sandbox()
[all …]
/u-boot/cmd/
A Dlegacy-mtd-utils.h6 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
7 loff_t *maxsize, int devtype, uint64_t chipsize);
8 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off,
9 loff_t *size, loff_t *maxsize, int devtype,
A Dlegacy-mtd-utils.c10 static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size, in get_part()
11 loff_t *maxsize, int devtype) in get_part()
44 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size, in mtd_arg_off()
45 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off()
60 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off, in mtd_arg_off_size()
61 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size()
/u-boot/include/linux/mtd/
A Dmtd.h243 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
245 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
249 int (*_read_oob) (struct mtd_info *mtd, loff_t from,
251 int (*_write_oob) (struct mtd_info *mtd, loff_t to,
267 unsigned long count, loff_t to, size_t *retlen);
274 int (*_block_isbad) (struct mtd_info *mtd, loff_t ofs);
275 int (*_block_markbad) (struct mtd_info *mtd, loff_t ofs);
431 unsigned long count, loff_t to, size_t *retlen);
443 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs);
444 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs);
[all …]
A Donenand.h92 int (*command) (struct mtd_info *mtd, int cmd, loff_t address,
97 int (*read_bufferram) (struct mtd_info *mtd, loff_t addr, int area,
99 int (*write_bufferram) (struct mtd_info *mtd, loff_t addr, int area,
106 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
175 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
178 unsigned int onenand_block(struct onenand_chip *this, loff_t addr);
179 int flexonenand_region(struct mtd_info *mtd, loff_t addr);
/u-boot/fs/
A Dfs.c92 loff_t offset, loff_t len, in fs_read_unsupported()
99 loff_t offset, loff_t len, in fs_write_unsupported()
153 loff_t len, loff_t *actread);
155 loff_t len, loff_t *actwrite);
498 loff_t size; in fs_read_lmb_check()
680 loff_t size; in do_size()
702 loff_t bytes; in do_load()
703 loff_t pos; in do_load()
806 loff_t bytes; in do_save()
807 loff_t pos; in do_save()
[all …]
/u-boot/fs/ext4/
A Dext4fs.c52 int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, in ext4fs_read_file()
53 loff_t len, char *buf, loff_t *actread) in ext4fs_read_file()
211 loff_t file_len; in ext4fs_exists()
218 int ext4fs_size(const char *filename, loff_t *size) in ext4fs_size()
223 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread) in ext4fs_read()
244 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len, in ext4_read_file()
245 loff_t *len_read) in ext4_read_file()
247 loff_t file_len; in ext4_read_file()
A Dext4_common.h53 int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, loff_t len,
54 char *buf, loff_t *actread);
/u-boot/fs/yaffs2/
A Dyaffsfs.h57 loff_t st_size; /* total size, in bytes */
93 int yaffs_pread(int fd, void *buf, unsigned int nbyte, loff_t offset);
94 int yaffs_pwrite(int fd, const void *buf, unsigned int nbyte, loff_t offset);
96 loff_t yaffs_lseek(int fd, loff_t offset, int whence) ;
98 int yaffs_truncate(const YCHAR *path, loff_t new_size);
99 int yaffs_ftruncate(int fd, loff_t new_size);
176 loff_t yaffs_freespace(const YCHAR *path);
177 loff_t yaffs_totalspace(const YCHAR *path);
A Dyaffs_guts.h205 loff_t extra_file_size; /* Length if it is a file */
370 loff_t file_size;
371 loff_t scanned_size;
372 loff_t shrink_size;
500 loff_t size_or_equiv_obj;
842 loff_t yaffs_get_obj_length(struct yaffs_obj *obj);
852 int yaffs_resize_file(struct yaffs_obj *obj, loff_t new_size);
962 void yaffs_addr_to_chunk(struct yaffs_dev *dev, loff_t addr,
968 void yaffs_oh_size_load(struct yaffs_obj_hdr *oh, loff_t fsize);
969 loff_t yaffs_oh_to_size(struct yaffs_obj_hdr *oh);
[all …]
A Dyaffs_mtdif.c69 loff_t addr = ((loff_t) chunkInNAND) * dev->data_bytes_per_chunk; in nandmtd_WriteChunkToNAND()
105 loff_t addr = ((loff_t) chunkInNAND) * dev->data_bytes_per_chunk; in nandmtd_ReadChunkFromNAND()
138 ((loff_t) blockNumber) * dev->data_bytes_per_chunk in nandmtd_EraseBlockInNAND()
/u-boot/arch/arm/mach-imx/
A Dcmd_nandbcb.c141 loff_t maxsize;
143 loff_t offset;
158 loff_t bs_addr;
233 loff_t maxsize; in nandbcb_set_boot_config()
480 loff_t offset = (loff_t)n * mtd->erasesize; in fill_dbbt_data()
573 loff_t off; in write_fcb()
678 loff_t to; in read_dbbt()
882 loff_t offset; in nandbcb_write_fw()
1065 loff_t off; in do_nandbcb_bcbonly()
1303 loff_t off; in nandbcb_dump()
[all …]
/u-boot/drivers/mtd/nand/raw/
A Dnand_util.c267 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status()
312 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock()
419 loff_t block_start; in check_skip_len()
424 block_start = offset & ~(loff_t)(mtd->erasesize - 1); in check_skip_len()
481 loff_t ofs) in nand_verify_page_oob()
521 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf) in nand_verify()
575 size_t *actual, loff_t lim, u_char *buffer, int flags) in nand_write_skip_bad()
638 loff_t block_start = offset & ~(loff_t)(mtd->erasesize - 1); in nand_write_skip_bad()
708 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_read_skip_bad()
709 size_t *actual, loff_t lim, u_char *buffer) in nand_read_skip_bad()
[all …]
A Dnand_bbt.c178 loff_t from; in read_bbt()
186 from = ((loff_t)page) << this->page_shift; in read_bbt()
224 (loff_t)(offs + act) << in read_bbt()
236 (loff_t)(offs + act) << in read_bbt()
415 loff_t offs, uint8_t *buf, int numpages) in scan_block_fast()
461 loff_t from; in create_bbt()
561 loff_t offs = (loff_t)actblock << this->bbt_erase_shift; in search_bbt()
630 loff_t to; in write_bbt()
716 to = ((loff_t)page) << this->page_shift; in write_bbt()
989 nand_update_bbt(mtd, (loff_t)block << in mark_bbt_region()
[all …]
/u-boot/drivers/mtd/onenand/
A Donenand_base.c267 loff_t ofs = 0; in flexonenand_addr()
277 ofs += (loff_t) block << (this->erase_shift - 1); in flexonenand_addr()
279 ofs += (loff_t) (block - boundary - 1) in flexonenand_addr()
284 loff_t onenand_addr(struct onenand_chip *this, int block) in onenand_addr()
287 return (loff_t) block << this->erase_shift; in onenand_addr()
725 loff_t end_addr = addr + len; in onenand_invalidate_bufferram()
1735 loff_t addr = instr->addr; in onenand_erase()
2102 loff_t ofs = 0; in onenand_unlock_all()
2318 loff_t ofs; in flexonenand_get_size()
2407 loff_t addr; in flexonenand_check_blocks_erased()
[all …]

Completed in 47 milliseconds

12345