Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 26) sorted by relevance

12

/lib/libc/
Ddir.c27 int status = OSReadDir(d->fd, (char *)&d->de, sizeof(struct dirent), &d->offset); in readdir()
38 d->offset = 0; in rewinddir()
42 seekdir(DIR *d, long offset) in seekdir() argument
44 d->offset = offset; in seekdir()
50 return d->offset; in telldir()
Dfile.c59 fh->offset = 0; in _free_file()
78 fh->offset = 0; in fopen()
Dsyscall.c95 OSReadDir(uint64_t fd, char *buf, size_t length, uint64_t *offset) in OSReadDir() argument
97 return syscall(SYSCALL_READDIR, fd, buf, length, offset); in OSReadDir()
/sbin/newfs_o2fs/
Dnewfs_o2fs.c96 FlushBlock(uint64_t offset, const void *buf, size_t len) in FlushBlock() argument
98 assert(offset % blockSize == 0); in FlushBlock()
101 pwrite(diskfd, buf, len, offset); in FlushBlock()
103 pwrite(diskfd, zerobuf, blockSize - len, offset + len); in FlushBlock()
111 uint64_t offset = lseek(diskfd, 0, SEEK_CUR); in AppendBlock() local
113 FlushBlock(offset, buf, len); in AppendBlock()
116 return offset; in AppendBlock()
155 node.direct[i].offset = AppendBlock(tempbuf, len); in AddFile()
162 uint64_t offset = AppendBlock(&node, sizeof(node)); in AddFile() local
166 id->offset = offset; in AddFile()
[all …]
/lib/liblwip/src/core/
Dpbuf.c210 u16_t offset; in pbuf_alloc() local
218 offset = PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN; in pbuf_alloc()
222 offset = PBUF_LINK_HLEN + PBUF_IP_HLEN; in pbuf_alloc()
226 offset = PBUF_LINK_HLEN; in pbuf_alloc()
229 offset = 0; in pbuf_alloc()
249 p->payload = LWIP_MEM_ALIGN((void *)((u8_t *)p + (SIZEOF_STRUCT_PBUF + offset))); in pbuf_alloc()
255 p->len = LWIP_MIN(length, PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)); in pbuf_alloc()
260 (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 ); in pbuf_alloc()
308 …p = (struct pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZ… in pbuf_alloc()
313 p->payload = LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)); in pbuf_alloc()
[all …]
Ddhcp.c1340 u16_t offset; in dhcp_parse_reply() local
1376 offset = options_idx; in dhcp_parse_reply()
1380 while((q != NULL) && (options[offset] != DHCP_OPTION_END) && (offset < offset_max)) { in dhcp_parse_reply()
1381 u8_t op = options[offset]; in dhcp_parse_reply()
1385 u16_t val_offset = offset + 2; in dhcp_parse_reply()
1387 if (offset + 1 < q->len) { in dhcp_parse_reply()
1388 len = options[offset + 1]; in dhcp_parse_reply()
1400 offset--; in dhcp_parse_reply()
1448 offset += len + 2; in dhcp_parse_reply()
1476 if (offset >= q->len) { in dhcp_parse_reply()
[all …]
/sys/amd64/
Dmachine.c55 uint64_t offset; in Machine_GDTInit() local
67 offset = (uint64_t)&TSS[c]; in Machine_GDTInit()
69 tmp = offset & 0x00FFFFFF; in Machine_GDTInit()
71 tmp = offset & 0xFF000000; in Machine_GDTInit()
74 GDT[c][5] = offset >> 32; in Machine_GDTInit()
/sys/kern/
Dloader.c62 uintptr_t offset, uintptr_t len) in LoaderLoadSegment() argument
71 VFS_Read(vn, raddr, offset, rlen); in LoaderLoadSegment()
73 offset += rlen; in LoaderLoadSegment()
79 VFS_Read(vn, raddr, offset, PGSIZE); in LoaderLoadSegment()
81 offset += PGSIZE; in LoaderLoadSegment()
87 VFS_Read(vn, raddr, offset, len); in LoaderLoadSegment()
Dsga.c22 sga->entries[sga->len].offset = off; in SGArray_Append()
37 kprintf("%d: %016llx %016llx\n", i, sga->entries[i].offset, in SGArray_Dump()
Dsyscall.c156 uintptr_t offset = sizeof(uintptr_t)*8; in Syscall_Spawn() local
363 uint64_t offset; in Syscall_ReadDir() local
370 status = Copy_In(user_off, &offset, sizeof(offset)); in Syscall_ReadDir()
381 rstatus = VFS_ReadDir(handle->vnode, user_buf, len, &offset); in Syscall_ReadDir()
387 status = Copy_Out(&offset, user_off, sizeof(offset)); in Syscall_ReadDir()
Ddisk.c94 sga.entries[0].offset = sector; in Debug_DumpDisk()
/bin/ls/
Dls.c17 uintptr_t offset = 0; in main() local
33 status = OSReadDir(fd, (char *)&de, sizeof(de), &offset); in main()
/lib/liblwip/src/include/lwip/
Dpbuf.h161 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
169 u8_t pbuf_get_at(struct pbuf* p, u16_t offset);
170 u16_t pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n);
Dnetbuf.h79 #define netbuf_copy_partial(buf, dataptr, len, offset) \ argument
80 pbuf_copy_partial((buf)->p, (dataptr), (len), (offset))
/sys/fs/o2fs/
Do2fs.h39 uint64_t offset; member
71 uint64_t offset; member
Do2fs.c79 uint64_t offset = sb->bitmapOffset + i * sb->blockSize; in O2FS_Mount() local
81 if (BufCache_Read(disk, offset, &bentry) < 0) { in O2FS_Mount()
93 DLOG(o2fs, "Root @ 0x%llx\n", sb->root.offset); in O2FS_Mount()
96 fs->fsval = sb->root.offset; in O2FS_Mount()
217 status = BufCache_Read(fs->disk, objid->offset, &entry); in O2FSLoadVNode()
274 if (bn->direct[i].offset != 0) in O2FSGrowVNode()
282 bn->direct[i].offset = blkno * vfs->blksize; in O2FSGrowVNode()
333 status = BufCache_Read(vn->disk, bn->direct[b].offset, &dent); in O2FSResolveBuf()
401 VLOG(o2fs, "%16s %08llx %08llx\n", entry->name, entry->objId.offset, entry->size); in O2FSDumpDirEntry()
/include/
Ddirent.h9 uint64_t offset; member
Dstdio.h11 fpos_t offset; member
Dsyscall.h30 int OSReadDir(uint64_t fd, char *buf, size_t length, uint64_t *offset);
/lib/liblwip/src/core/ipv4/
Dip_frag.c335 u16_t offset,len; in ip_reass_chain_frag_into_datagram_and_validate() local
342 offset = (ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) * 8; in ip_reass_chain_frag_into_datagram_and_validate()
351 iprh->start = offset; in ip_reass_chain_frag_into_datagram_and_validate()
352 iprh->end = offset + len; in ip_reass_chain_frag_into_datagram_and_validate()
482 u16_t offset, len; in ip_reass() local
497 offset = (ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) * 8; in ip_reass()
560 ipr->datagram_len = offset + len; in ip_reass()
/sys/include/
Dsga.h9 uint64_t offset; member
Dmman.h18 void *mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset);
/lib/libc/posix/
Dmman.c35 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) in mmap() argument
/sys/amd64/include/
Dmultiboot.h256 uint32_t offset; member
/sys/dev/
Dahci.c268 ct->prdt[i].dba = sga->entries[i].offset; in AHCI_IssueCommand()
315 sga.entries[0].offset = (uintptr_t)&ident; in AHCI_IdentifyPort()

12