Home
last modified time | relevance | path

Searched refs:uint64_t (Results 1 – 25 of 87) sorted by relevance

1234

/include/
Dsyscall.h10 uint64_t OSTime();
11 uint64_t OSGetPID();
13 uint64_t OSSpawn(const char *path, const char *argv[]);
14 uint64_t OSWait(uint64_t pid);
17 void *OSMemMap(void *addr, uint64_t len, int flags);
18 int OSMemUnmap(void *addr, uint64_t len);
19 int OSMemProtect(void *addr, uint64_t len, int flags);
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);
24 int OSFlush(uint64_t fd);
[all …]
/lib/libc/
Dsyscall.c8 uint64_t syscall(int num, ...);
10 uint64_t
22 uint64_t
28 uint64_t
34 uint64_t
35 OSWait(uint64_t pid) in OSWait()
41 OSMemMap(void *addr, uint64_t len, int flags) in OSMemMap()
47 OSMemUnmap(void *addr, uint64_t len) in OSMemUnmap()
53 OSMemProtect(void *addr, uint64_t len, int flags) in OSMemProtect()
59 OSRead(uint64_t fd, void *addr, uint64_t off, uint64_t length) in OSRead()
[all …]
Dtime.c22 uint64_t nsec = OSTime(); in time()
34 uint64_t nsec = OSTime(); in gettimeofday()
84 Time_IsLeapYear(uint64_t year) in Time_IsLeapYear()
96 Time_DaysInMonth(uint64_t year, uint64_t month) in Time_DaysInMonth()
98 static const uint64_t days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; in Time_DaysInMonth()
110 uint64_t secs, mins, hours; in gmtime_r()
111 uint64_t days; in gmtime_r()
112 uint64_t y, m; in gmtime_r()
134 uint64_t daysOfYear; in gmtime_r()
150 uint64_t daysOfMonth = Time_DaysInMonth(tm->tm_year + 1900, m); in gmtime_r()
[all …]
/sys/amd64/include/
Dpmap.h54 uint64_t tables;
55 uint64_t mappings;
70 bool PMap_Map(AS *as, uint64_t phys, uint64_t virt, uint64_t pages, uint64_t flags);
71 bool PMap_AllocMap(AS *as, uint64_t virt, uint64_t len, uint64_t flags);
72 bool PMap_Unmap(AS *as, uint64_t virt, uint64_t pages);
75 void PMap_SystemLookup(uint64_t va, PageEntry **entry, int size);
76 bool PMap_SystemLMap(uint64_t phys, uint64_t virt, uint64_t lpages, uint64_t flags);
77 bool PMap_SystemMap(uint64_t phys, uint64_t virt, uint64_t pages, uint64_t flags);
78 bool PMap_SystemUnmap(uint64_t virt, uint64_t pages);
Damd64op.h39 static INLINE uint64_t rdtsc() in rdtsc()
46 return ((uint64_t)hi << 32) | (uint64_t)lo; in rdtsc()
49 static INLINE uint64_t rdtscp(uint32_t *procno) in rdtscp()
59 return ((uint64_t)hi << 32) | (uint64_t)lo; in rdtscp()
104 static INLINE void wrmsr(uint32_t addr, uint64_t val) in wrmsr()
114 static INLINE uint64_t rdmsr(uint32_t addr) in rdmsr()
116 uint64_t eax, edx; in rdmsr()
129 static INLINE uint64_t read_cr0() in read_cr0()
131 uint64_t val; in read_cr0()
139 static INLINE void write_cr0(uint64_t val) in write_cr0()
[all …]
Dtrap.h52 uint64_t r15;
53 uint64_t r14;
54 uint64_t r13;
55 uint64_t r12;
56 uint64_t r11;
57 uint64_t r10;
58 uint64_t r9;
59 uint64_t r8;
60 uint64_t rbp;
61 uint64_t rdi;
[all …]
Dthread.h9 uint64_t r15;
10 uint64_t r14;
11 uint64_t r13;
12 uint64_t r12;
13 uint64_t rbx;
14 uint64_t rdi; // First argument
15 uint64_t rbp;
16 uint64_t rip;
22 uint64_t rsp;
Damd64.h52 typedef uint64_t PageEntry;
64 uint64_t off;
86 typedef uint64_t SegmentDescriptor;
108 uint64_t rsp0;
109 uint64_t rsp1;
110 uint64_t rsp2;
111 uint64_t _unused1;
112 uint64_t ist1;
113 uint64_t ist2;
114 uint64_t ist3;
[all …]
Datomic.h5 static INLINE uint64_t
14 static INLINE uint64_t
15 atomic_swap_uint64(volatile uint64_t *dst, uint64_t newval) in atomic_swap_uint64()
24 atomic_set_uint64(volatile uint64_t *dst, uint64_t newval) in atomic_set_uint64()
/sys/kern/
Dsyscall.c27 uint64_t
33 uint64_t
37 uint64_t pid = cur->proc->pid; in Syscall_GetPID()
45 Syscall_Exit(uint64_t status) in Syscall_Exit()
67 uint64_t
68 Syscall_Spawn(uint64_t user_path, uint64_t user_argv) in Syscall_Spawn()
165 uint64_t
166 Syscall_Wait(uint64_t pid) in Syscall_Wait()
168 uint64_t status; in Syscall_Wait()
177 uint64_t
[all …]
Dktime.c15 static uint64_t ktimeLastEpoch;
16 static uint64_t ktimeLastTSC;
17 uint64_t ticksPerSecond;
35 KTimeIsLeapYear(uint64_t year) in KTimeIsLeapYear()
47 KTimeDaysInMonth(uint64_t year, uint64_t month) in KTimeDaysInMonth()
49 static const uint64_t days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; in KTimeDaysInMonth()
63 uint64_t m; in KTime_Fixup()
66 uint64_t yday = 0; in KTime_Fixup()
78 uint64_t days = 0; in KTime_ToEpoch()
79 uint64_t secs = 0; in KTime_ToEpoch()
[all …]
Dmalloc.c14 uint64_t size;
22 uint64_t magic;
27 uint64_t poolSize;
28 uint64_t poolAllocs;
47 Malloc_Alloc(Heap *heap, uint64_t len) in Malloc_Alloc()
57 Malloc_Realloc(Heap *heap, void *buf, uint64_t newlen) in Malloc_Realloc()
Ddebug.c80 uint64_t
88 return (uint64_t)*val | 0xFFFFFFFFFFFFFF00ULL; in Debug_GetValue()
95 return (uint64_t)*val | 0xFFFFFFFFFFFF0000ULL; in Debug_GetValue()
102 return (uint64_t)*val | 0xFFFFFFFF00000000ULL; in Debug_GetValue()
107 uint64_t *val = (uint64_t *)addr; in Debug_GetValue()
112 return (uint64_t)-1; in Debug_GetValue()
123 uint64_t
128 uint64_t val = 0; in Debug_StrToInt()
138 val = val * base + (uint64_t)(s[i] - '0'); in Debug_StrToInt()
142 val = val * base + (uint64_t)(s[i] - 'a' + 10); in Debug_StrToInt()
[all …]
/sys/fs/o2fs/
Do2fs.h38 uint64_t device;
39 uint64_t offset;
51 uint64_t features; /* Feature Flags */
52 uint64_t blockCount; /* Total Blocks */
53 uint64_t blockSize; /* Block Size in Bytes */
54 uint64_t bitmapSize; /* Free Bitmap Size in Bytes */
55 uint64_t bitmapOffset; /* Free Bitmap Offset */
57 uint64_t version; /* Snapshot version */
70 uint64_t device;
71 uint64_t offset;
[all …]
Do2fs.c25 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);
79 uint64_t offset = sb->bitmapOffset + i * sb->blockSize; in O2FS_Mount()
132 uint64_t
160 uint64_t blk = fs->blksize*8*i + 8*b + bi; in O2FSBAlloc()
181 O2FSBFree(VFS *fs, uint64_t block) in O2FSBFree()
183 uint64_t bitoff = block & 0x7; in O2FSBFree()
184 uint64_t bytoff = (block >> 8) % fs->blksize; in O2FSBFree()
185 uint64_t bufoff = block / (fs->blksize*8); in O2FSBFree()
[all …]
/sys/include/
Dvfs.h15 uint64_t refCount;
18 uint64_t fsval;
19 uint64_t blksize;
28 uint64_t refCount;
31 uint64_t fsval;
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);
[all …]
Dthread.h36 uint64_t tid;
37 uint64_t refCount;
51 uint64_t ctxSwitches;
52 uint64_t userTime;
53 uint64_t kernTime;
54 uint64_t waitTime;
55 uint64_t waitStart;
66 uint64_t pid;
70 uint64_t nextThreadID;
73 uint64_t refCount;
[all …]
Dspinlock.h17 volatile uint64_t lock;
18 uint64_t cpu;
19 uint64_t count;
20 uint64_t rCount;
21 uint64_t lockTime;
22 uint64_t waitTime;
23 uint64_t lockedTSC;
24 uint64_t type;
36 void Spinlock_Init(Spinlock *lock, const char *name, uint64_t type);
Dsyscall.h52 uint64_t Syscall_Entry(uint64_t syscall, uint64_t a1, uint64_t a2,
53 uint64_t a3, uint64_t a4, uint64_t a5);
55 #define SYSCALL_PACK(_errcode, _val) (((uint64_t)_errcode << 32) | (_val))
Dhandle.h18 uint64_t fd; // FD Number
19 uint64_t type; // Type
20 uint64_t processId; // Process ID
23 int (*read)(Handle *, void *, uint64_t, uint64_t); // Read
24 int (*write)(Handle *, void *, uint64_t, uint64_t); // Write
Dtypes.h13 typedef unsigned long uint64_t; typedef
16 typedef uint64_t uintptr_t;
17 typedef uint64_t size_t;
23 typedef uint64_t ino_t;
25 typedef uint64_t time_t;
26 typedef uint64_t suseconds_t;
Ddisk.h13 uint64_t ctrlNo; // Controller number
14 uint64_t diskNo; // Disk number
15 uint64_t sectorSize; // Sector Size
16 uint64_t sectorCount; // Sector Count
17 uint64_t diskSize; // Disk Size in Bytes
26 Disk *Disk_GetByID(uint64_t ctrlNo, uint64_t diskNo);
Dktime.h5 uint64_t Time_GetTSC();
18 typedef uint64_t UnixEpoch;
19 typedef uint64_t UnixEpochNS;
24 void KTime_SetTime(UnixEpoch epoch, uint64_t tsc, uint64_t tps);
/sys/amd64/
Dpmap.c42 PageEntry pte = DMVA2PA((uint64_t)pgtbl) | PTE_W | PTE_P; in PMap_Init()
184 write_cr3(DMVA2PA((uint64_t)space->root)); in PMap_LoadAS()
278 PMapLookupEntry(AS *space, uint64_t va, PageEntry **entry, int size) in PMapLookupEntry()
297 pte = DMVA2PA((uint64_t)newtable) | PTE_P | PTE_W | PTE_U; in PMapLookupEntry()
313 pte = DMVA2PA((uint64_t)newtable) | PTE_P | PTE_W | PTE_U; in PMapLookupEntry()
329 pte = DMVA2PA((uint64_t)newtable) | PTE_P | PTE_W | PTE_U; in PMapLookupEntry()
355 PMap_Map(AS *as, uint64_t phys, uint64_t virt, uint64_t pages, uint64_t flags) in PMap_Map()
361 uint64_t va = virt + PGSIZE * i; in PMap_Map()
387 PMap_Unmap(AS *as, uint64_t va, uint64_t pages) in PMap_Unmap()
393 uint64_t vai = va + PGSIZE * i; in PMap_Unmap()
[all …]
Dthread.c17 extern void switchstack(uint64_t *oldrsp, uint64_t rsp);
30 uint64_t stacktop = thr->kstack + PGSIZE; in Thread_SetupKThread()
36 thr->arch.rsp = (uint64_t)sf; in Thread_SetupKThread()
43 sf->rip = (uint64_t)&ThreadKThreadEntry; in Thread_SetupKThread()
44 sf->rdi = (uint64_t)tf; in Thread_SetupKThread()
50 tf->rip = (uint64_t)f; in Thread_SetupKThread()
51 tf->rdi = (uint64_t)arg1; in Thread_SetupKThread()
52 tf->rsi = (uint64_t)arg2; in Thread_SetupKThread()
53 tf->rdx = (uint64_t)arg3; in Thread_SetupKThread()
64 tf.rip = (uint64_t)arg1; in ThreadEnterUserLevelCB()
[all …]

1234