Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/subsys/fs/
Dfuse_fs_access_bottom.h31 int (*create)(const char *path, uint64_t *fh);
32 int (*release)(uint64_t fh);
33 int (*read)(uint64_t fh, char *buf, size_t size, off_t off);
34 int (*write)(uint64_t fh, const char *buf, size_t size, off_t off);
35 int (*ftruncate)(uint64_t fh, off_t size);
Dfuse_fs_access.c118 static int ffa_create_top(const char *path, uint64_t *fh) in ffa_create_top() argument
128 *fh = handle; in ffa_create_top()
133 *fh = INVALID_FILE_HANDLE; in ffa_create_top()
140 static int ffa_release_top(uint64_t fh) in ffa_release_top() argument
142 fs_close(&files[fh]); in ffa_release_top()
144 release_file_handle(fh); in ffa_release_top()
149 static int ffa_read_top(uint64_t fh, char *buf, size_t size, off_t off) in ffa_read_top() argument
153 err = fs_seek(&files[fh], off, FS_SEEK_SET); in ffa_read_top()
156 err = fs_read(&files[fh], buf, size); in ffa_read_top()
162 static int ffa_write_top(uint64_t fh, const char *buf, size_t size, off_t off) in ffa_write_top() argument
[all …]
Dfuse_fs_access_bottom.c72 uint64_t fh; member
76 uint64_t fh; member
128 op_queue.ret = op_callbacks->ftruncate(args->fh, args->size); in ffa_run_pending_op()
134 op_queue.ret = op_callbacks->write(args->fh, args->buf, args->size, args->off); in ffa_run_pending_op()
140 op_queue.ret = op_callbacks->read(args->fh, args->buf, args->size, args->off); in ffa_run_pending_op()
399 args.fh_p = &fi->fh; in fuse_fs_access_create()
417 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_release()
421 (void)queue_op(OP_RELEASE, (void *)&fi->fh); in fuse_fs_access_release()
434 if (fi->fh == INVALID_FILE_HANDLE) { in fuse_fs_access_read()
438 args.fh = fi->fh; in fuse_fs_access_read()
[all …]
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_stat.c25 int fh; in create_file() local
27 fh = open(filename, O_CREAT | O_WRONLY, 0440); in create_file()
28 zassert(fh >= 0, "Failed creating test file"); in create_file()
33 zassert_equal(FILL_SIZE, write(fh, filling, FILL_SIZE)); in create_file()
37 zassert_equal(size, write(fh, filling, size)); in create_file()
39 zassert_ok(close(fh)); in create_file()
/Zephyr-latest/scripts/build/
Dgen_cfb_font_header.py84 fh = size[3] - size[1] # bottom - top
88 if fh > fh_max:
89 fh_max = fh
114 fh = size[3] - size[1] # bottom - top