Lines Matching refs:buf
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);
505 * @param [out] buf Buffer to read into.
512 O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len)
549 DLOG(o2fs, "READ %lx %lx %lld\n", buf, entry->buffer, bLen);
550 memcpy(buf, entry->buffer + bOff, bLen);
554 buf += bLen;
571 * @param [in] buf Buffer to write out.
578 O2FS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len)
615 DLOG(o2fs, "WRITE %lx %lx %lld\n", buf, entry->buffer, bLen);
616 memcpy(entry->buffer + bOff, buf, bLen);
622 buf += bLen;
639 * @param [out] buf Buffer to read the directory entry into.
646 O2FS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off)
675 status = Copy_Out(&de, (uintptr_t)buf, sizeof(de));
680 buf += sizeof(de);