Lines Matching refs:off
25 int O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len);
26 int O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len);
27 int O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off);
506 * @param [in] off Offset within the file.
512 O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len)
525 if (off > fileBN->size) {
529 if (off + len > fileBN->size) {
530 len = fileBN->size - off;
534 uint64_t b = off / sb->blockSize;
535 uint64_t bOff = off % sb->blockSize;
555 off += bLen;
572 * @param [in] off Offset within the file.
578 O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len)
593 if (fileBN->size < (off+len)) {
594 status = O2FSGrowVNode(fn, off+len);
600 uint64_t b = off / sb->blockSize;
601 uint64_t bOff = off % sb->blockSize;
623 off += bLen;
641 * @param [inout] off Offset to start from and return the next offset.
646 O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off)
656 if (*off == fileBN->size)
658 if (*off > fileBN->size)
663 status = O2FS_Read(fn, &dirEntry, *off, sizeof(dirEntry));
679 *off += sizeof(dirEntry);