/external/u-boot/include/ |
D | sandboxfs.h | 23 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, 24 loff_t maxsize, loff_t *actread); 25 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, 26 loff_t maxsize, loff_t *actwrite); 31 int sandbox_fs_size(const char *filename, loff_t *size); 32 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, 33 loff_t *actread); 34 int fs_write_sandbox(const char *filename, void *buf, loff_t offset, 35 loff_t len, loff_t *actwrite);
|
D | nand.h | 47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read() 53 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write() 59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() 64 static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size) in nand_erase() 84 loff_t length; /* number of bytes to erase */ 85 loff_t offset; /* first address in NAND to erase */ 95 loff_t lim; 100 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, 101 size_t *actual, loff_t lim, u_char *buffer); 106 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, [all …]
|
D | ext4fs.h | 132 int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len, 133 loff_t *actwrite); 137 int ext4fs_open(const char *filename, loff_t *len); 138 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread); 144 int ext4fs_size(const char *filename, loff_t *size); 151 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len, 152 loff_t *actread);
|
D | fs.h | 72 int fs_size(const char *filename, loff_t *size); 85 int fs_read(const char *filename, ulong addr, loff_t offset, loff_t len, 86 loff_t *actread); 99 int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len, 100 loff_t *actwrite); 116 loff_t size; /* size in bytes */
|
D | fat.h | 190 int fat_size(const char *filename, loff_t *size); 191 int file_fat_read_at(const char *filename, loff_t pos, void *buffer, 192 loff_t maxsize, loff_t *actread); 197 int file_fat_write(const char *filename, void *buf, loff_t offset, loff_t len, 198 loff_t *actwrite); 199 int fat_read_file(const char *filename, void *buf, loff_t offset, loff_t len, 200 loff_t *actread);
|
D | onenand_uboot.h | 33 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);
|
D | btrfs.h | 14 int btrfs_size(const char *, loff_t *); 15 int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
|
D | ubifs_uboot.h | 26 int ubifs_size(const char *filename, loff_t *size); 27 int ubifs_read(const char *filename, void *buf, loff_t offset, 28 loff_t size, loff_t *actread);
|
/external/u-boot/include/linux/mtd/ |
D | mtd.h | 235 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 237 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 243 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, 247 int (*_panic_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, 255 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, 259 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from, 261 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to, [all …]
|
D | onenand.h | 92 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);
|
/external/u-boot/fs/sandbox/ |
D | sandboxfs.c | 19 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_read_at() 20 loff_t maxsize, loff_t *actread) in sandbox_fs_read_at() 22 loff_t size; in sandbox_fs_read_at() 56 int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, in sandbox_fs_write_at() 57 loff_t towrite, loff_t *actwrite) in sandbox_fs_write_at() 104 loff_t size; in sandbox_fs_exists() 111 int sandbox_fs_size(const char *filename, loff_t *size) in sandbox_fs_size() 120 int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, in fs_read_sandbox() 121 loff_t *actread) in fs_read_sandbox() 132 int fs_write_sandbox(const char *filename, void *buf, loff_t offset, in fs_write_sandbox() [all …]
|
/external/ltp/testcases/kernel/syscalls/copy_file_range/ |
D | copy_file_range01.c | 29 static loff_t **off_arr; 52 off_arr = malloc(sizeof(loff_t *) * off_sz); in setup() 54 off_arr[i] = malloc(sizeof(loff_t)); in setup() 65 loff_t *off1, loff_t *off2, size_t len) in check_file_content() 91 static int check_file_offset(const char *m, int fd, loff_t len, in check_file_offset() 92 loff_t *off_ori, loff_t *off_after) in check_file_offset() 98 loff_t fd_off = SAFE_LSEEK(fd, 0, SEEK_CUR); in check_file_offset() 126 loff_t fd_off = SAFE_LSEEK(fd, 0, SEEK_CUR); in check_file_offset() 143 static void test_one(size_t len, loff_t *off_in, loff_t *off_out) in test_one() 147 loff_t *off_in_ori = off_in; in test_one() [all …]
|
/external/u-boot/fs/ |
D | fs.c | 74 static inline int fs_size_unsupported(const char *filename, loff_t *size) in fs_size_unsupported() 80 loff_t offset, loff_t len, in fs_read_unsupported() 81 loff_t *actread) in fs_read_unsupported() 87 loff_t offset, loff_t len, in fs_write_unsupported() 88 loff_t *actwrite) in fs_write_unsupported() 124 int (*size)(const char *filename, loff_t *size); 125 int (*read)(const char *filename, void *buf, loff_t offset, 126 loff_t len, loff_t *actread); 127 int (*write)(const char *filename, void *buf, loff_t offset, 128 loff_t len, loff_t *actwrite); [all …]
|
/external/u-boot/drivers/mtd/ |
D | mtd_uboot.c | 10 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()
|
D | mtdpart.c | 84 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 104 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point() 113 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint() 133 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 171 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg() 187 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg() 203 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write() 211 static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in part_panic_write() 219 static int part_write_oob(struct mtd_info *mtd, loff_t to, in part_write_oob() 231 static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_write_user_prot_reg() [all …]
|
/external/u-boot/fs/ext4/ |
D | ext4fs.c | 48 int ext4fs_read_file(struct ext2fs_node *node, loff_t pos, in ext4fs_read_file() 49 loff_t len, char *buf, loff_t *actread) in ext4fs_read_file() 190 loff_t file_len; in ext4fs_exists() 197 int ext4fs_size(const char *filename, loff_t *size) in ext4fs_size() 202 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread) in ext4fs_read() 223 int ext4_read_file(const char *filename, void *buf, loff_t offset, loff_t len, in ext4_read_file() 224 loff_t *len_read) in ext4_read_file() 226 loff_t file_len; in ext4_read_file()
|
/external/u-boot/fs/yaffs2/ |
D | yaffsfs.h | 57 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);
|
D | yaffs_guts.h | 205 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); 848 int yaffs_file_rd(struct yaffs_obj *obj, u8 * buffer, loff_t offset, 850 int yaffs_wr_file(struct yaffs_obj *obj, const u8 * buffer, loff_t offset, 852 int yaffs_resize_file(struct yaffs_obj *obj, loff_t new_size); 946 int yaffs_do_file_wr(struct yaffs_obj *in, const u8 *buffer, loff_t offset, [all …]
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek01.c | 102 loff_t offset; /* Ret value from llseek */ in main() 117 TEST(lseek64(fildes, (loff_t) (80 * BUFSIZ), SEEK_SET)); in main() 119 if (TEST_RETURN == (loff_t) - 1) { in main() 125 if (TEST_RETURN != (loff_t) (80 * BUFSIZ)) { in main() 142 offset = lseek64(fildes, (loff_t) BUFSIZ, SEEK_SET); in main() 143 if (offset != (loff_t) BUFSIZ) { in main()
|
/external/strace/linux/ |
D | asm_stat.h | 7 # undef loff_t 18 # define loff_t __kernel_loff_t macro 31 # undef loff_t 42 # define loff_t loff_t macro
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate01.c | 111 void runtest(int, int, loff_t); 117 loff_t block_size; 195 loff_t expected_size; in main() 219 void runtest(int mode, int fd, loff_t expected_size) in runtest() 221 loff_t offset; in runtest() 222 loff_t len = block_size; in runtest() 223 loff_t write_offset, lseek_offset; in runtest()
|
/external/u-boot/drivers/mtd/nand/ |
D | nand_bbt.c | 77 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs); 175 loff_t from; in read_bbt() 183 from = ((loff_t)page) << this->page_shift; in read_bbt() 221 (loff_t)(offs + act) << in read_bbt() 233 (loff_t)(offs + act) << in read_bbt() 288 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data() 312 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob() 342 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read() 352 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt() 393 scan_read(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts() [all …]
|
D | nand_util.c | 264 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status() 309 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock() 408 static int check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, in check_skip_len() 416 loff_t block_start; in check_skip_len() 421 block_start = offset & ~(loff_t)(mtd->erasesize - 1); in check_skip_len() 478 loff_t ofs) in nand_verify_page_oob() 518 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf) in nand_verify() 571 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_write_skip_bad() 572 size_t *actual, loff_t lim, u_char *buffer, int flags) in nand_write_skip_bad() 705 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_read_skip_bad() [all …]
|
/external/u-boot/drivers/mtd/onenand/ |
D | onenand_base.c | 229 static unsigned int flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() 248 unsigned int onenand_block(struct onenand_chip *this, loff_t addr) in onenand_block() 262 static loff_t flexonenand_addr(struct onenand_chip *this, int block) in flexonenand_addr() 264 loff_t ofs = 0; in flexonenand_addr() 274 ofs += (loff_t) block << (this->erase_shift - 1); in flexonenand_addr() 276 ofs += (loff_t) (block - boundary - 1) in flexonenand_addr() 281 loff_t onenand_addr(struct onenand_chip *this, int block) in onenand_addr() 284 return (loff_t) block << this->erase_shift; in onenand_addr() 293 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 325 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in onenand_command() [all …]
|
/external/u-boot/cmd/ |
D | onenand.c | 24 static loff_t next_ofs; 25 static loff_t skip_ofs; 61 static int onenand_block_read(loff_t from, size_t len, in onenand_block_read() 67 loff_t ofs = from; in onenand_block_read() 108 static int onenand_write_oneblock_withoob(loff_t to, const u_char * buf, in onenand_write_oneblock_withoob() 132 static int onenand_block_write(loff_t to, size_t len, in onenand_block_write() 138 loff_t ofs; in onenand_block_write() 192 loff_t ofs; in onenand_block_erase() 228 loff_t ofs; in onenand_block_test() 310 loff_t addr; in onenand_dump() [all …]
|