/sys/amd64/ |
D | xmem.c | 65 uintptr_t off; in XMem_Destroy() local 68 for (off = 0; off < xmem->length; off += PGSIZE) { in XMem_Destroy() 69 PMap_SystemLookup(xmem->base + off, &entry, PGSIZE); in XMem_Destroy() 94 uint64_t off; in XMem_Allocate() local 104 for (off = xmem->length; off < length; off += PGSIZE) { in XMem_Allocate() 109 PMap_SystemMap(DMVA2PA((uint64_t)pg), xmem->base + off, 1, 0); in XMem_Allocate()
|
D | machine.c | 79 GDTDescriptor[c].off = (uint64_t)&GDT[c]; in Machine_GDTInit()
|
D | trap.c | 75 idtdesc.off = (uint64_t)&idt; in Trap_Init()
|
/tests/ |
D | writetest.c | 25 size_t off = i * BLKSIZE; in write() local 30 ret = OSWrite(fd, inbuf, off, sizeof(inbuf)); in write() 32 printf("OSWrite: error at offset %d\n", off); in write() 37 printf("OSWrite: no data written at offset %d\n", off); in write() 61 size_t off = i * BLKSIZE; in read() local 64 ret = OSRead(fd, outbuf, off, sizeof(outbuf)); in read() 66 printf("OSRead: error at offset %d\n", off); in read() 71 printf("OSWrite: no data read at offset %d\n", off); in read() 78 printf("read the wrong data back at offset %d\n", off); in read()
|
/sys/kern/ |
D | debug.c | 30 Debug_PrintHex(const char *data, size_t length, off_t off, size_t limit) in Debug_PrintHex() argument 52 ixc += off; in Debug_PrintHex() 67 ixc += off; in Debug_PrintHex() 118 Debug_PrintSymbol(uintptr_t off, int strategy) in Debug_PrintSymbol() argument 120 kprintf("0x%llx", off); in Debug_PrintSymbol() 207 uint64_t off, len; in Debug_Dump() local 215 off = Debug_SymbolToInt(argv[1]); in Debug_Dump() 217 kprintf("Dump 0x%llx 0x%llx\n", off, len); in Debug_Dump() 218 Debug_PrintHex((const char *)off, len, 0, len); in Debug_Dump() 226 uintptr_t off; in Debug_Disasm() local [all …]
|
D | vfs.c | 180 VFS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len) in VFS_Read() argument 182 return fn->op->read(fn, buf, off, len); in VFS_Read() 198 VFS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len) in VFS_Write() argument 200 return fn->op->write(fn, buf, off, len); in VFS_Write() 216 VFS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off) in VFS_ReadDir() argument 218 return fn->op->readdir(fn, buf, len, off); in VFS_ReadDir()
|
D | vfsuio.c | 16 VFSUIO_Read(Handle *handle, void *buf, uint64_t len, uint64_t off) in VFSUIO_Read() argument 22 return VFS_Read(handle->vnode, buf, len, off); in VFSUIO_Read() 26 VFSUIO_Write(Handle *handle, void *buf, uint64_t len, uint64_t off) in VFSUIO_Write() argument 32 return VFS_Write(handle->vnode, buf, len, off); in VFSUIO_Write()
|
D | sga.c | 18 SGArray_Append(SGArray *sga, uint64_t off, uint64_t len) in SGArray_Append() argument 22 sga->entries[sga->len].offset = off; in SGArray_Append()
|
D | syscall.c | 92 uintptr_t off = sizeof(uintptr_t)*i; in Syscall_Spawn() local 94 status = Copy_In(user_argv+off, arg+sizeof(uintptr_t)*(1+i), sizeof(uintptr_t)); in Syscall_Spawn() 219 Syscall_Read(uint64_t fd, uint64_t addr, uint64_t off, uint64_t length) in Syscall_Read() argument 228 status = (handle->read)(handle, (void *)addr, off, length); in Syscall_Read() 237 Syscall_Write(uint64_t fd, uint64_t addr, uint64_t off, uint64_t length) in Syscall_Write() argument 246 status = (handle->write)(handle, (void *)addr, off, length); in Syscall_Write()
|
/sys/include/ |
D | vfs.h | 47 int (*read)(VNode *fn, void *buf, uint64_t off, uint64_t len); 48 int (*write)(VNode *fn, void *buf, uint64_t off, uint64_t len); 49 int (*readdir)(VNode *fn, void *buf, uint64_t len, uint64_t *off); 58 int VFS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len); 59 int VFS_Write(VNode *fn, void *buf, uint64_t off, uint64_t len); 60 int VFS_ReadDir(VNode *fn, void *buf, uint64_t len, uint64_t *off);
|
D | kdebug.h | 15 void Debug_PrintHex(const char *data, size_t length, off_t off, size_t limit); 25 void Debug_PrintSymbol(uintptr_t off, int strategy);
|
D | sga.h | 20 int SGArray_Append(SGArray *sga, uint64_t off, uint64_t len);
|
/sys/dev/x86/ |
D | ide.c | 79 int IDE_ReadOne(IDEDrive *drive, void *buf, uint64_t off, uint64_t len); 80 int IDE_WriteOne(IDEDrive *drive, void *buf, uint64_t off, uint64_t len); 340 IDE_ReadOne(IDEDrive *drive, void *buf, uint64_t off, uint64_t len) in IDE_ReadOne() argument 347 DLOG(ide, "read %llx %llx\n", off, len); in IDE_ReadOne() 374 outb(ide->base + IDE_LBALOW, off >> 24); in IDE_ReadOne() 375 outb(ide->base + IDE_LBAMID, off >> 32); in IDE_ReadOne() 376 outb(ide->base + IDE_LBAHIGH, off >> 40); in IDE_ReadOne() 379 outb(ide->base + IDE_LBALOW, off & 0xff); in IDE_ReadOne() 380 outb(ide->base + IDE_LBAMID, (off >> 8) & 0xff); in IDE_ReadOne() 381 outb(ide->base + IDE_LBAHIGH, (off >> 16) & 0xff); in IDE_ReadOne() [all …]
|
/sys/fs/o2fs/ |
D | o2fs.c | 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); 512 O2FS_Read(VNode *fn, void *buf, uint64_t off, uint64_t len) in O2FS_Read() argument 525 if (off > fileBN->size) { in O2FS_Read() 529 if (off + len > fileBN->size) { in O2FS_Read() 530 len = fileBN->size - off; in O2FS_Read() 534 uint64_t b = off / sb->blockSize; in O2FS_Read() 535 uint64_t bOff = off % sb->blockSize; in O2FS_Read() 555 off += bLen; in O2FS_Read() [all …]
|
/lib/libc/ |
D | syscall.c | 59 OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length) in OSRead() argument 61 return syscall(SYSCALL_READ, fd, addr, off, length); in OSRead() 65 OSWrite(uint64_t fd, const void *addr, uint64_t off, uint64_t length) in OSWrite() argument 67 return syscall(SYSCALL_WRITE, fd, addr, off, length); in OSWrite()
|
/sbin/newfs_o2fs/ |
D | newfs_o2fs.c | 248 off_t off = lseek(diskfd, 0, SEEK_CUR) / blockSize; in BlockBitmap() local 251 assert(off < blockSize); in BlockBitmap() 256 assert(off > 8); in BlockBitmap() 257 for (off_t i = 0; i < (off / 8); i++) { in BlockBitmap() 260 for (off_t i = 0; i < (off % 8); i++) { in BlockBitmap() 261 tempbuf[off / 8] |= 1 << i; in BlockBitmap()
|
/include/ |
D | syscall.h | 22 int OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length); 23 int OSWrite(uint64_t fd, const void *addr, uint64_t off, uint64_t length);
|
/lib/liblwip/src/netif/ppp/ |
D | ppp_oe.c | 300 int off, err, errortag; in pppoe_dispatch_disc_pkt() local 312 off = sizeof(*ethhdr); in pppoe_dispatch_disc_pkt() 321 if (pb->len - off < PPPOE_HEADERLEN) { in pppoe_dispatch_disc_pkt() 333 off += sizeof(*ph); in pppoe_dispatch_disc_pkt() 335 if (plen + off > pb->len) { in pppoe_dispatch_disc_pkt() 337 pb->len - off, plen); in pppoe_dispatch_disc_pkt() 341 pb->tot_len = pb->len = (u16_t)off + plen; /* ignore trailing garbage */ in pppoe_dispatch_disc_pkt() 346 while (off + sizeof(pt) <= pb->len) { in pppoe_dispatch_disc_pkt() 347 MEMCPY(&pt, (u8_t*)pb->payload + off, sizeof(pt)); in pppoe_dispatch_disc_pkt() 350 if (off + sizeof(pt) + len > pb->len) { in pppoe_dispatch_disc_pkt() [all …]
|
/sys/dev/ |
D | console.c | 151 Console_Read(Handle *handle, void *buf, uint64_t off, uint64_t len) in Console_Read() argument 167 Console_Write(Handle *handle, void *buf, uint64_t off, uint64_t len) in Console_Write() argument
|
/lib/liblwip/src/include/ipv4/lwip/ |
D | ip.h | 160 #define IPH_OFFSET_SET(hdr, off) (hdr)->_offset = (off) argument
|
/lib/liblwip/src/api/ |
D | sockets.c | 564 int off = 0; in lwip_recvfrom() local 585 if (off > 0) { in lwip_recvfrom() 587 netconn_recved(sock->conn, (u32_t)off); in lwip_recvfrom() 590 return off; in lwip_recvfrom() 608 if (off > 0) { in lwip_recvfrom() 610 netconn_recved(sock->conn, (u32_t)off); in lwip_recvfrom() 613 return off; in lwip_recvfrom() 636 buflen, len, off, sock->lastoffset)); in lwip_recvfrom() 648 pbuf_copy_partial(p, (u8_t*)mem + off, copylen, sock->lastoffset); in lwip_recvfrom() 650 off += copylen; in lwip_recvfrom() [all …]
|
/lib/liblwip/src/core/ |
D | tcp_in.c | 854 s32_t off; in tcp_receive() local 1172 off = pcb->rcv_nxt - seqno; in tcp_receive() 1175 LWIP_ASSERT("insane offset!", (off < 0x7fff)); in tcp_receive() 1176 if (inseg.p->len < off) { in tcp_receive() 1177 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); in tcp_receive() 1178 new_tot_len = (u16_t)(inseg.p->tot_len - off); in tcp_receive() 1179 while (p->len < off) { in tcp_receive() 1180 off -= p->len; in tcp_receive() 1188 if(pbuf_header(p, (s16_t)-off)) { in tcp_receive() 1193 if(pbuf_header(inseg.p, (s16_t)-off)) { in tcp_receive()
|
/sys/amd64/include/ |
D | amd64.h | 64 uint64_t off; member
|
/lib/liblwip/ |
D | UPGRADING | 120 off any more, if this is set to 0, only one packet (the most recent one) is
|
/docs/ |
D | Doxyfile | 815 # The QUIET tag can be used to turn on/off the messages that are generated to 817 # messages are off. 822 # The WARNINGS tag can be used to turn on/off the warning messages that are 1632 # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top 1646 # (i.e. any modern browser). Windows users are probably better off using the
|