Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 167) sorted by relevance

1234567

/xnu-11215/libkern/libkern/
H A DOSByteOrder.h169 #define OSReadBigInt16(base, byteOffset) _OSReadInt16(base, byteOffset) argument
170 #define OSReadBigInt32(base, byteOffset) _OSReadInt32(base, byteOffset) argument
171 #define OSReadBigInt64(base, byteOffset) _OSReadInt64(base, byteOffset) argument
181 #define OSReadLittleInt16(base, byteOffset) OSReadSwapInt16(base, byteOffset) argument
182 #define OSReadLittleInt32(base, byteOffset) OSReadSwapInt32(base, byteOffset) argument
243 #define OSReadBigInt16(base, byteOffset) OSReadSwapInt16(base, byteOffset) argument
244 #define OSReadBigInt32(base, byteOffset) OSReadSwapInt32(base, byteOffset) argument
245 #define OSReadBigInt64(base, byteOffset) OSReadSwapInt64(base, byteOffset) argument
255 #define OSReadLittleInt16(base, byteOffset) _OSReadInt16(base, byteOffset) argument
256 #define OSReadLittleInt32(base, byteOffset) _OSReadInt32(base, byteOffset) argument
[all …]
/xnu-11215/iokit/Kernel/
H A DIOStringFuncs.c147 if ((base == 0 || base == 16) && in strtol()
151 base = 16; in strtol()
152 } else if ((base == 0 || base == 2) && in strtol()
156 base = 2; in strtol()
238 if ((base == 0 || base == 16) && in strtoul()
242 base = 16; in strtoul()
243 } else if ((base == 0 || base == 2) && in strtoul()
247 base = 2; in strtoul()
323 if ((base == 0 || base == 16) && in strtoq()
327 base = 16; in strtoq()
[all …]
/xnu-11215/libkern/net/
H A Dinet_ntop.c117 best.base = -1; in inet_ntop6()
119 cur.base = -1; in inet_ntop6()
123 if (cur.base == -1) { in inet_ntop6()
124 cur.base = i; in inet_ntop6()
130 if (cur.base != -1) { in inet_ntop6()
134 cur.base = -1; in inet_ntop6()
138 if (cur.base != -1) { in inet_ntop6()
144 best.base = -1; in inet_ntop6()
153 if (best.base != -1 && i >= best.base && in inet_ntop6()
155 if (i == best.base) { in inet_ntop6()
[all …]
/xnu-11215/san/memory/
H A Dkasan.c144 assert(base > 0); in kasan_unpoison_stack()
148 base = kasan_granule_trunc(base); in kasan_unpoison_stack()
151 kasan_unpoison((void *)base, size); in kasan_unpoison_stack()
157 uintptr_t base = ml_stack_base(); in kasan_unpoison_curstack() local
159 uintptr_t cur = (uintptr_t)&base; in kasan_unpoison_curstack()
162 cur = base; in kasan_unpoison_curstack()
165 if (cur >= base && cur < base + sz) { in kasan_unpoison_curstack()
167 size_t unused = cur - base; in kasan_unpoison_curstack()
216 kasan_dybl_unload_kext(base); in kasan_unload_kext()
288 vm_offset_t addr = base + i; in kasan_debug_touch_mappings()
[all …]
H A Dkasan-arm64.c196 kasan_arm64_lookup_l1(uint64_t *base, vm_offset_t address) in kasan_arm64_lookup_l1() argument
202 kasan_arm64_lookup_l2(uint64_t *base, vm_offset_t address) in kasan_arm64_lookup_l2() argument
236 pte = kasan_arm64_lookup_l1(base, shadow_base); in kasan_arm64_pte_map()
251 pte = kasan_arm64_lookup_l2(base, shadow_base); in kasan_arm64_pte_map()
275 pte = kasan_arm64_lookup_l3(base, shadow_base); in kasan_arm64_pte_map()
517 uint64_t *base = cpu_tte; in kasan_is_shadow_mapped() local
523 pte = kasan_arm64_lookup_l1(base, shadowp); in kasan_is_shadow_mapped()
527 base = (uint64_t *)phystokv(*pte & ARM_TTE_TABLE_MASK); in kasan_is_shadow_mapped()
530 pte = kasan_arm64_lookup_l2(base, shadowp); in kasan_is_shadow_mapped()
534 base = (uint64_t *)phystokv(*pte & ARM_TTE_TABLE_MASK); in kasan_is_shadow_mapped()
[all …]
H A Dkasan-classic.c253 uint8_t *shadow = SHADOW_FOR_ADDRESS(base); in kasan_poison()
263 assert(kasan_granule_partial(base) == 0); in kasan_poison()
317 size += kasan_granule_partial(base); in kasan_range_poisoned()
318 base = kasan_granule_trunc(base); in kasan_range_poisoned()
320 shadow = SHADOW_FOR_ADDRESS(base); in kasan_range_poisoned()
340 *first_invalid = base + i * 8; in kasan_range_poisoned()
382 sz -= base - addr; in kasan_check_shadow()
384 uintptr_t end = base + sz; in kasan_check_shadow()
386 while (base < end) { in kasan_check_shadow()
387 uint8_t *sh = SHADOW_FOR_ADDRESS(base); in kasan_check_shadow()
[all …]
H A Dkasan_dynamic_blacklist.c145 uintptr_t base; member
164 if (e1->base + e1->size < e2->base) { in range_tree_cmp()
166 } else if (e1->base > e2->base + e2->size) { in range_tree_cmp()
173 if (e1->base + e1->size <= e2->base) { in range_tree_cmp()
175 } else if (e1->base >= e2->base + e2->size) { in range_tree_cmp()
214 e->base = seg->vmaddr; in kasan_dybl_load_kext()
251 struct range_tree_entry key = { .base = seg->vmaddr, .size = 0 }; in kasan_dybl_unload_kext()
403 struct range_tree_entry key = { .base = bt[i], .size = 0 }; in kasan_is_blacklisted()
/xnu-11215/libkern/libkern/i386/
H A DOSByteOrder.h43 const volatile void * base, in OSReadSwapInt16() argument
49 result = *(volatile uint16_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt16()
56 const volatile void * base, in OSReadSwapInt32() argument
62 result = *(volatile uint32_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt32()
69 const volatile void * base, in OSReadSwapInt64() argument
75 result = *(volatile uint64_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt64()
84 volatile void * base, in OSWriteSwapInt16() argument
89 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); in OSWriteSwapInt16()
95 volatile void * base, in OSWriteSwapInt32() argument
100 *(volatile uint32_t *)((uintptr_t)base + byteOffset) = _OSSwapInt32(data); in OSWriteSwapInt32()
[all …]
/xnu-11215/libkern/libkern/machine/
H A DOSByteOrder.h80 const volatile void * base, in OSReadSwapInt16() argument
84 uint16_t data = *(volatile uint16_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt16()
91 const volatile void * base, in OSReadSwapInt32() argument
95 uint32_t data = *(volatile uint32_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt32()
102 const volatile void * base, in OSReadSwapInt64() argument
106 uint64_t data = *(volatile uint64_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt64()
115 volatile void * base, in OSWriteSwapInt16() argument
120 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); in OSWriteSwapInt16()
126 volatile void * base, in OSWriteSwapInt32() argument
131 *(volatile uint32_t *)((uintptr_t)base + byteOffset) = _OSSwapInt32(data); in OSWriteSwapInt32()
[all …]
/xnu-11215/tests/vm/
H A Dzalloc_buddy.c104 vm_address_t base, pos; variable
110 base = (vm_address_t)(void *)zba_slot_base();
112 T_QUIET; T_ASSERT_EQ(base + pos, zba_alloc(0, false), "alloc");
113 *(uint64_t *)(base + pos) = ~0ull;
116 zba_free(base + pos, 0, false);
121 *(uint64_t *)(base + pos) = ~0ull;
125 base += ZBA_CHUNK_SIZE;
128 *(uint64_t *)(base + pos) = ~0ull;
132 zba_free(base + pos, 0, false);
134 base -= ZBA_CHUNK_SIZE;
[all …]
/xnu-11215/libkern/stdio/
H A Dscanf.c225 base = 10; in vsscanf()
230 base = 0; in vsscanf()
236 base = 8; in vsscanf()
242 base = 10; in vsscanf()
250 base = 16; in vsscanf()
272 base = 16; in vsscanf()
477 if (base == 0) { in vsscanf()
478 base = 8; in vsscanf()
491 base = basefix[base]; in vsscanf()
497 base = basefix[base]; in vsscanf()
[all …]
/xnu-11215/osfmk/kern/
H A Dmk_sp.c76 policy_base_t base, in thread_set_policy() argument
96 policy_rr_base_t rr_base = (policy_rr_base_t) base; in thread_set_policy()
117 policy_fifo_base_t fifo_base = (policy_fifo_base_t) base; in thread_set_policy()
186 policy_base_t base, in thread_policy() argument
226 rr_base = (policy_rr_base_t) base; in thread_policy()
243 fifo_base = (policy_fifo_base_t) base; in thread_policy()
260 ts_base = (policy_timeshare_base_t) base; in thread_policy()
287 rr_base = (policy_rr_base_t) base; in thread_policy()
309 fifo_base = (policy_fifo_base_t) base; in thread_policy()
331 ts_base = (policy_timeshare_base_t) base; in thread_policy()
[all …]
H A Dprintf.c211 int base, in printnum() argument
221 u /= base; in printnum()
400 base = *p++; in __doprnt()
522 base = 8; in __doprnt()
552 base = 10; in __doprnt()
559 base = 10; in __doprnt()
570 base = 16; in __doprnt()
574 base = 16; in __doprnt()
582 base = radix; in __doprnt()
589 base = radix; in __doprnt()
[all …]
/xnu-11215/tests/ipc/
H A Dmach_msg_transport.c136 mach_msg_base_t *base, in t_send() argument
140 mach_msg_header_t *msg = &base->header; in t_send()
274 mach_msg_base_t base; member
280 mach_msg_base_t base; member
286 mach_msg_base_t base; member
293 mach_msg_base_t base; member
305 .base.body.msgh_descriptor_count = 1, in t_fill_complex_port_msg()
322 .base.body.msgh_descriptor_count = 1, in t_fill_complex_port_guarded_msg()
344 .base.body.msgh_descriptor_count = 1, in t_fill_complex_memory_msg()
362 .base.body.msgh_descriptor_count = 1, in t_fill_complex_port_array_msg()
[all …]
/xnu-11215/osfmk/i386/
H A Di386_vm_init.c460 ppnum_t base, top; in i386_vm_init() local
470 if (base == 0) { in i386_vm_init()
477 base++; in i386_vm_init()
488 if (top < base) { in i386_vm_init()
567 if (base >= maxpg) { in i386_vm_init()
610 pmptr->base = base; in i386_vm_init()
620 pmptr->alloc_up = pmptr->base; in i386_vm_init()
640 pmptr->base = base; in i386_vm_init()
667 pmptr->alloc_up = pmptr->base = base; in i386_vm_init()
1019 pmap_high_used_bottom = r->base; in pmap_hi_pages_done()
[all …]
H A Dhibernate_i386.c62 ppnum_t base, num; in hibernate_page_list_allocate() local
93 base = (ppnum_t) (mptr->PhysicalStart >> I386_PGSHIFT); in hibernate_page_list_allocate()
106 if (base > pnmax) { in hibernate_page_list_allocate()
109 if ((base + num - 1) > pnmax) { in hibernate_page_list_allocate()
110 num = pnmax - base + 1; in hibernate_page_list_allocate()
131 if (dram_ranges[bank].first_page <= base) { in hibernate_page_list_allocate()
134 if ((base + num) == dram_ranges[bank].first_page) { in hibernate_page_list_allocate()
135 dram_ranges[bank].first_page = base; in hibernate_page_list_allocate()
144 if (bank && (base == (1 + dram_ranges[bank - 1].last_page))) { in hibernate_page_list_allocate()
154 dram_ranges[bank].first_page = base; in hibernate_page_list_allocate()
[all …]
H A Drtclock.c146 _rtc_nanotime_init(pal_rtc_nanotime_t *rntp, uint64_t base) in _rtc_nanotime_init() argument
150 _pal_rtc_nanotime_store(tsc, base, rntp->scale, rntp->shift, rntp); in _rtc_nanotime_init()
154 rtc_nanotime_init(uint64_t base) in rtc_nanotime_init() argument
159 _rtc_nanotime_init(&pal_rtc_nanotime_info, base); in rtc_nanotime_init()
203 rtc_clock_napped(uint64_t base, uint64_t tsc_base) in rtc_clock_napped() argument
213 newnsecs = base + _rtc_tsc_to_nanoseconds(tsc - tsc_base, rntp); in rtc_clock_napped()
220 _pal_rtc_nanotime_store(tsc_base, base, rntp->scale, rntp->shift, rntp); in rtc_clock_napped()
253 uint64_t base) in rtc_sleep_wakeup() argument
263 rtc_nanotime_init(base); in rtc_sleep_wakeup()
/xnu-11215/osfmk/mach/
H A Dexclaves_l4.h92 #define Exclaves_L4_BfmW(base, bits) \ argument
93 (((~Exclaves_L4_Word(0)) >> (Exclaves_L4_WordBits - (bits))) << (base))
103 #define Exclaves_L4_BfxW(bitfield, base, bits) \ argument
104 (((bitfield) & Exclaves_L4_BfmW((base), (bits))) >> (base))
116 #define Exclaves_L4_BfiW(bitfield, base, bits, value) \ argument
117 (((bitfield) & (~Exclaves_L4_BfmW((base), (bits)))) | \
118 (((Exclaves_L4_Word(value)) << (base)) & Exclaves_L4_BfmW((base), (bits))))
128 #define Exclaves_L4_BfW(base, bits, value) \ argument
129 (Exclaves_L4_BfiW(Exclaves_L4_Word(0), (base), (bits), (value)))
/xnu-11215/osfmk/ipc/
H A Dipc_port.c1272 ipc_port_t *base) in ipc_port_destination_chain_lock() argument
1294 *base = port; in ipc_port_destination_chain_lock()
1300 *base = port; in ipc_port_destination_chain_lock()
1335 ipc_port_t base; in ipc_port_check_circularity()
1345 base = dest; in ipc_port_check_circularity()
1376 if (port == base) { in ipc_port_check_circularity()
1386 base = dest; in ipc_port_check_circularity()
1396 base = next; in ipc_port_check_circularity()
1472 ip_mq_unlock(base); in ipc_port_check_circularity()
1474 ip_release(base); in ipc_port_check_circularity()
[all …]
/xnu-11215/libkern/os/
H A DMakefile12 base.h \
34 base.h \
39 base.h \
43 base.h \
48 base.h \
/xnu-11215/bsd/kern/
H A Dmcache.c953 void *buf, *base, **pbuf; in mcache_slab_alloc() local
983 VERIFY(((intptr_t)base + rsize) <= in mcache_slab_alloc()
989 *list = (mcache_obj_t *)base; in mcache_slab_alloc()
1013 void *base; in mcache_slab_free() local
1020 base = list; in mcache_slab_free()
1030 VERIFY(((intptr_t)base + rsize) <= in mcache_slab_free()
1053 void *base, **pbuf; in mcache_slab_audit() local
1058 base = list; in mcache_slab_audit()
1064 VERIFY(((intptr_t)base + rsize) <= in mcache_slab_audit()
1564 base = *base_ts; in mcache_buffer_log()
[all …]
/xnu-11215/tools/lldbmacros/kmemory/
H A Dwhatis.py142 base = cls.__base__
144 if base != object:
147 if getattr(cls, k) == getattr(base, k)
152 base.subproviders.append(cls)
153 base.subproviders.sort(key=operator.attrgetter('COST'))
H A Dzone.py235 base = self.page_addr
241 return range(base + offs, base + (run << self.kmem.page_shift), esize)
252 idx = (addr - base) // esize
270 base = self.page_addr
276 base += zone.elem_inner_offs
284 yield base + i * esize
295 yield base + i * esize
324 elem_idx = (address - base) // esize if address >= base else -1
325 elem_addr = base + elem_idx * esize if address >= base else None
343 base = self.meta.page_addr
[all …]
/xnu-11215/libsyscall/mach/
H A Dthread_act.c35 thread_policy(thread_act_t thr_act, policy_t policy, policy_base_t base, mach_msg_type_number_t bas… in thread_policy() argument
39 kr = _kernelrpc_thread_policy(thr_act, policy, base, baseCnt, set_limit); in thread_policy()
65 thread_set_policy(thread_act_t thr_act, processor_set_t pset, policy_t policy, policy_base_t base, … in thread_set_policy() argument
69 kr = _kernelrpc_thread_set_policy(thr_act, pset, policy, base, baseCnt, limit, limitCnt); in thread_set_policy()
/xnu-11215/bsd/dev/
H A Dmemdev.c180 dev_t mdevadd(int devid, uint64_t base, unsigned int size, int phys);
183 int mdevgetrange(int devid, uint64_t *base, uint64_t *size);
488 uint64_t base; in mdevinit() local
526 if (base & 0xFFF) { in mdevinit()
540 dev = mdevadd(devid, base >> 12, (unsigned)size >> 12, phys); /* Go add the device */ in mdevinit()
635 mdevadd(int devid, uint64_t base, unsigned int size, int phys) in mdevadd() argument
648 …if (!(((base + size - 1) < mdev[i].mdBase) || ((mdev[i].mdBase + mdev[i].mdSize - 1) < base))) { /… in mdevadd()
747 mdevgetrange(int devid, uint64_t *base, uint64_t *size) in mdevgetrange() argument
749 assert(base); in mdevgetrange()
762 *base = mdev[devid].mdBase << 12; in mdevgetrange()
[all …]

1234567