Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 – 2 of 2) sorted by relevance

/device/linaro/dragonboard/qcom/rmtfs/
Dstorage.c197 ssize_t storage_pread(const struct rmtfd *rmtfd, void *buf, size_t nbyte, off_t offset) in storage_pread() argument
202 n = pread(rmtfd->fd, buf, nbyte, offset); in storage_pread()
204 n = MIN(nbyte, rmtfd->shadow_len - offset); in storage_pread()
211 if (n < nbyte) in storage_pread()
212 memset((char*)buf + n, 0, nbyte - n); in storage_pread()
214 return nbyte; in storage_pread()
217 ssize_t storage_pwrite(struct rmtfd *rmtfd, const void *buf, size_t nbyte, off_t offset) in storage_pwrite() argument
219 size_t new_len = offset + nbyte; in storage_pwrite()
223 return pwrite(rmtfd->fd, buf, nbyte, offset); in storage_pwrite()
242 memcpy((char*)rmtfd->shadow_buf + offset, buf, nbyte); in storage_pwrite()
[all …]
Drmtfs.h35 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);