Home
last modified time | relevance | path

Searched refs:rmtfd (Results 1 – 3 of 3) sorted by relevance

/device/linaro/dragonboard/qcom/rmtfs/
Dstorage.c24 struct rmtfd { struct
47 static struct rmtfd rmtfds[MAX_CALLERS]; argument
49 static int storage_populate_shadow_buf(struct rmtfd *rmtfd, const char *file);
75 struct rmtfd *storage_open(unsigned node, const char *path) in storage_open()
79 struct rmtfd *rmtfd = NULL; in storage_open() local
106 rmtfd = &rmtfds[i]; in storage_open()
110 if (!rmtfd) { in storage_open()
132 rmtfd->fd = fd; in storage_open()
133 rmtfd->shadow_len = 0; in storage_open()
135 ret = storage_populate_shadow_buf(rmtfd, fspath); in storage_open()
[all …]
Drmtfs.h26 struct rmtfd;
29 struct rmtfd *storage_open(unsigned node, const char *path);
30 struct rmtfd *storage_get(unsigned node, int caller_id);
31 void storage_close(struct rmtfd *rmtfd);
32 int storage_get_caller_id(const struct rmtfd *rmtfd);
33 int storage_get_error(const struct rmtfd *rmtfd);
35 ssize_t storage_pread(const struct rmtfd *rmtfd, void *buf, size_t nbyte, off_t offset);
36 ssize_t storage_pwrite(struct rmtfd *rmtfd, const void *buf, size_t nbyte, off_t offset);
Drmtfs.c59 struct rmtfd *rmtfd; in rmtfs_open() local
72 rmtfd = storage_open(pkt->node, req.path); in rmtfs_open()
73 if (!rmtfd) { in rmtfs_open()
78 caller_id = storage_get_caller_id(rmtfd); in rmtfs_open()
107 struct rmtfd *rmtfd; in rmtfs_close() local
119 rmtfd = storage_get(pkt->node, req.caller_id); in rmtfs_close()
120 if (!rmtfd) { in rmtfs_close()
125 storage_close(rmtfd); in rmtfs_close()
154 struct rmtfd *rmtfd; in rmtfs_iovec() local
183 rmtfd = storage_get(pkt->node, caller_id); in rmtfs_iovec()
[all …]