| /xnu-12377.61.12/bsd/netinet/ |
| H A D | in_stat.c | 43 uint64_t *bitmap; in in_stat_set_activity_bitmap() local 53 bitmap = &activity->bitmap[0]; in in_stat_set_activity_bitmap() 55 bitmap = &activity->bitmap[1]; in in_stat_set_activity_bitmap() 58 *bitmap |= (((u_int64_t) 1) << slot); in in_stat_set_activity_bitmap() 62 activity->bitmap[0] = activity->bitmap[1] = 0; in in_stat_set_activity_bitmap() 73 activity->bitmap[0] = activity->bitmap[1]; in in_stat_set_activity_bitmap() 74 activity->bitmap[1] = 0; in in_stat_set_activity_bitmap() 77 activity->bitmap[0] = 0; in in_stat_set_activity_bitmap() 79 activity->bitmap[0] >>= shift; in in_stat_set_activity_bitmap() 91 activity->bitmap[0] >>= shift; in in_stat_set_activity_bitmap() [all …]
|
| H A D | in_stat.h | 38 uint64_t bitmap[2]; /* 128 bit map, each bit == 8 sec */ member
|
| /xnu-12377.61.12/iokit/Kernel/ |
| H A D | IOHibernateRestoreKernel.c | 313 hibernate_bitmap_t * bitmap = &list->bank_bitmap[0]; in hibernate_page_bitmap() local 316 if ((page >= bitmap->first_page) && (page <= bitmap->last_page)) { in hibernate_page_bitmap() 319 bitmap = (hibernate_bitmap_t *) &bitmap->bitmap[bitmap->bitmapwords]; in hibernate_page_bitmap() 322 bitmap = NULL; in hibernate_page_bitmap() 325 return bitmap; in hibernate_page_bitmap() 332 hibernate_bitmap_t * bitmap = &list->bank_bitmap[0]; in hibernate_page_bitmap_pin() local 335 if (page <= bitmap->first_page) { in hibernate_page_bitmap_pin() 336 *pPage = bitmap->first_page; in hibernate_page_bitmap_pin() 339 if (page <= bitmap->last_page) { in hibernate_page_bitmap_pin() 342 bitmap = (hibernate_bitmap_t *) &bitmap->bitmap[bitmap->bitmapwords]; in hibernate_page_bitmap_pin() [all …]
|
| H A D | IOHibernateIO.cpp | 477 hibernate_bitmap_t * bitmap; in hibernate_page_list_iterate() local 479 while ((bitmap = hibernate_page_bitmap_pin(list, &page))) { in hibernate_page_list_iterate() 480 count = hibernate_page_bitmap_count(bitmap, TRUE, page); in hibernate_page_list_iterate() 485 if (page <= bitmap->last_page) { in hibernate_page_list_iterate() 491 if (bitmap) { in hibernate_page_list_iterate() 492 count = hibernate_page_bitmap_count(bitmap, FALSE, page); in hibernate_page_list_iterate()
|
| /xnu-12377.61.12/osfmk/arm64/ |
| H A D | hibernate_arm64.c | 95 hibernate_bitmap_t * bitmap; in hibernate_page_list_allocate() local 129 bitmap = &list->bank_bitmap[0]; in hibernate_page_list_allocate() 131 bitmap->first_page = dram_ranges[bank].first_page; in hibernate_page_list_allocate() 132 bitmap->last_page = dram_ranges[bank].last_page; in hibernate_page_list_allocate() 133 bitmap->bitmapwords = (bitmap->last_page + 1 in hibernate_page_list_allocate() 134 - bitmap->first_page + 31) >> 5; in hibernate_page_list_allocate() 138 ptoa_64(bitmap->first_page), bitmap->first_page, in hibernate_page_list_allocate() 139 ptoa_64(bitmap->last_page), bitmap->last_page); in hibernate_page_list_allocate() 141 bitmap = (hibernate_bitmap_t *) &bitmap->bitmap[bitmap->bitmapwords]; in hibernate_page_list_allocate()
|
| H A D | hibernate_restore.c | 154 hibernate_page_list_t *bitmap; member 189 ppnum_t ppnum = hibernate_page_list_grab(ctx->bitmap, &ctx->nextFree); in allocate_page() 190 hibernate_page_bitset(ctx->bitmap, FALSE, ppnum); in allocate_page() 291 hibernate_bitmap_t *bank_bitmap = &ctx->bitmap->bank_bitmap[0]; 292 for (uint32_t bank = 0; bank < ctx->bitmap->bank_count; bank++) { 296 bank_bitmap = (hibernate_bitmap_t*)&bank_bitmap->bitmap[bank_bitmap->bitmapwords]; 318 ctx.bitmap = (hibernate_page_list_t *)map_phys; in pal_hib_resume_tramp() 346 hibernate_reserve_restore_pages(header_phys, header, ctx.bitmap); in pal_hib_resume_tramp() 349 hibernate_page_list_grab(ctx.bitmap, &ctx.nextFree); in pal_hib_resume_tramp()
|
| /xnu-12377.61.12/osfmk/i386/ |
| H A D | hibernate_i386.c | 67 hibernate_bitmap_t * bitmap; in hibernate_page_list_allocate() local 200 bitmap = &list->bank_bitmap[0]; in hibernate_page_list_allocate() 202 bitmap->first_page = dram_ranges[bank].first_page; in hibernate_page_list_allocate() 203 bitmap->last_page = dram_ranges[bank].last_page; in hibernate_page_list_allocate() 204 bitmap->bitmapwords = (bitmap->last_page + 1 in hibernate_page_list_allocate() 205 - bitmap->first_page + 31) >> 5; in hibernate_page_list_allocate() 208 bank, bitmap->first_page, bitmap->last_page); in hibernate_page_list_allocate() 210 bitmap = (hibernate_bitmap_t *) &bitmap->bitmap[bitmap->bitmapwords]; in hibernate_page_list_allocate()
|
| H A D | iopb.h | 85 isa_iopb bitmap; /* bitmap of mapped IO ports */ member
|
| /xnu-12377.61.12/osfmk/kern/ |
| H A D | bits.h | 65 bit_ror64(uint64_t bitmap, uint n) in bit_ror64() argument 67 return __builtin_rotateright64(bitmap, n); in bit_ror64() 71 bit_rol64(uint64_t bitmap, uint n) in bit_rol64() argument 73 return __builtin_rotateleft64(bitmap, n); in bit_rol64() 77 #define bit_clear_if_set(bitmap, bit) \ argument 80 __auto_type _map = &(bitmap); \ 87 #define bit_set_if_clear(bitmap, bit) \ argument 90 __auto_type _map = &(bitmap); \ 103 bit_first(uint64_t bitmap) in bit_first() argument 105 return 63 - __builtin_clzg(bitmap, 64); in bit_first() [all …]
|
| H A D | misc_protos.h | 61 int *bitmap); 66 int *bitmap); 70 int *bitmap); 87 int *bitmap);
|
| H A D | sched.h | 250 bitmap_t bitmap[BITMAP_LEN(NRQS)]; /* run queue bitmap array */ member 287 bitmap_t bitmap[BITMAP_LEN(NRTQS)]; member
|
| H A D | sched_rt.c | 199 bzero(&rt_runq->bitmap, sizeof(rt_runq->bitmap)); in pset_rt_init() 707 bitmap_t *map = pset->rt_runq.bitmap; in sched_rt_runq_scan() 1204 bitmap_t *map = rt_run_queue->bitmap; in check_rt_runq_consistency() 1268 bitmap_t *map = rt_run_queue->bitmap; in rt_runq_enqueue() 1356 bitmap_t *map = rt_run_queue->bitmap; in rt_runq_priority() 1376 bitmap_t *map = rt_run_queue->bitmap; in rt_runq_dequeue() 1440 bitmap_t *map = rt_run_queue->bitmap; in rt_runq_first() 1460 bitmap_t *map = rt_run_queue->bitmap; in rt_runq_remove()
|
| /xnu-12377.61.12/bsd/vfs/ |
| H A D | vfs_utfconv.c | 92 const u_int8_t *bitmap = __CFUniCharCombiningBitmap; in unicode_combinable() local 99 value = bitmap[(character >> 8) & 0xFF]; in unicode_combinable() 104 bitmap = bitmap + ((value - 1) * 32) + 256; in unicode_combinable() 105 return bitmap[(character & 0xFF) / 8] & (1 << (character % 8)) ? 1 : 0; in unicode_combinable() 118 const u_int8_t *bitmap = __CFUniCharDecomposableBitmap; in unicode_decomposeable() local 125 value = bitmap[(character >> 8) & 0xFF]; in unicode_decomposeable() 130 bitmap = bitmap + ((value - 1) * 32) + 256; in unicode_decomposeable() 131 return bitmap[(character & 0xFF) / 8] & (1 << (character % 8)) ? 1 : 0; in unicode_decomposeable() 145 const u_int8_t *bitmap = __CFUniCharCombiningPropertyBitmap; in get_combining_class() local 147 u_int8_t value = bitmap[(character >> 8)]; in get_combining_class() [all …]
|
| /xnu-12377.61.12/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | sched_prim.c | 107 rq->bitmap[i] = 0; in run_queue_init() 145 bitmap_clear(rq->bitmap, rq->highq); in run_queue_dequeue() 146 rq->highq = bitmap_first(rq->bitmap, NRQS); in run_queue_dequeue() 172 rq_bitmap_set(rq->bitmap, thread->sched_pri); in run_queue_enqueue() 216 bitmap_clear(rq->bitmap, thread->sched_pri); in run_queue_remove() 217 rq->highq = bitmap_first(rq->bitmap, NRQS); in run_queue_remove()
|
| /xnu-12377.61.12/bsd/netkey/ |
| H A D | keydb.c | 148 p->bitmap = tmp_bitmap; in keydb_newsecreplay() 157 if (p->bitmap) { in keydb_delsecreplay() 158 kfree_data_sized_by(p->bitmap, p->wsize); in keydb_delsecreplay()
|
| H A D | keydb.h | 140 caddr_t __sized_by(wsize) bitmap; /* used by receiver */
|
| H A D | key_debug.c | 675 if (rpl->bitmap == NULL) { 684 printf("%u", (((rpl->bitmap)[len] >> l) & 1) ? 1 : 0);
|
| /xnu-12377.61.12/tools/lldbmacros/kmemory/ |
| H A D | zone.py | 140 bitmap = [ 144 print(" bitmap : inline [ {} ]".format(" ".join(bitmap))) 152 bitmap = ( 163 baddr, bsize, ' '.join(bitmap))) 168 next(bitmap), next(bitmap), 169 next(bitmap), next(bitmap)))
|
| /xnu-12377.61.12/tools/lldbmacros/ |
| H A D | scheduler.py | 615 rt_pri_bitmap = int(rt_runq.bitmap[0]) 937 def bit_first(bitmap): argument 938 return bitmap.bit_length() - 1 940 def lsb_first(bitmap): argument 941 bitmap = bitmap & -bitmap 942 return bit_first(bitmap) 944 def IterateBitmap(bitmap): argument 956 i = lsb_first(bitmap) 959 bitmap = bitmap & ~((1 << (i + 1)) - 1) 960 i = lsb_first(bitmap)
|
| /xnu-12377.61.12/bsd/net/aop/ |
| H A D | kpi_aop.c | 703 struct aop_proc_activity_bitmap *__single bitmap = NULL; variable 704 error = aop_get_process_activity_bitmaps(&bitmap, buffer_space, &out_size); 705 out_buffer = (uint8_t *)bitmap;
|
| H A D | aop_stats.h | 278 uint64_t bitmap[8]; member
|
| /xnu-12377.61.12/iokit/IOKit/ |
| H A D | IOHibernatePrivate.h | 416 uint32_t bitmap[0]; member 667 hibernate_page_bitmap_count(hibernate_bitmap_t * bitmap, uint32_t set, uint32_t page);
|
| /xnu-12377.61.12/osfmk/vm/ |
| H A D | vm_resident.c | 9259 hibernate_bitmap_t * bitmap; in hibernate_page_list_zero() local 9261 bitmap = &list->bank_bitmap[0]; in hibernate_page_list_zero() 9265 bzero((void *) &bitmap->bitmap[0], bitmap->bitmapwords << 2); in hibernate_page_list_zero() 9267 last_bit = ((bitmap->last_page - bitmap->first_page + 1) & 31); in hibernate_page_list_zero() 9269 bitmap->bitmap[bitmap->bitmapwords - 1] = (0xFFFFFFFF >> last_bit); in hibernate_page_list_zero() 9272 bitmap = (hibernate_bitmap_t *) &bitmap->bitmap[bitmap->bitmapwords]; in hibernate_page_list_zero() 9527 hibernate_bitmap_t * bitmap; in hibernate_page_list_setall() local 9916 bitmap = &page_list->bank_bitmap[0]; in hibernate_page_list_setall() 9919 for (uint32_t i = 0; i < bitmap->bitmapwords; i++) { in hibernate_page_list_setall() 9920 bitmap->bitmap[i] = bitmap->bitmap[i] | ~bitmap_wired->bitmap[i]; in hibernate_page_list_setall() [all …]
|
| /xnu-12377.61.12/bsd/netinet6/ |
| H A D | ipsec.c | 251 static void vshiftl(unsigned char *__sized_by(wsize)bitmap, int nbit, size_t wsize); 2879 if ((replay->bitmap)[fr] & (1 << (diff % 8))) { in ipsec_chkreplay() 2928 bzero(replay->bitmap, replay->wsize); in ipsec_updatereplay() 2929 (replay->bitmap)[frlast] = 1; in ipsec_updatereplay() 2941 vshiftl((unsigned char *) replay->bitmap, diff, replay->wsize); in ipsec_updatereplay() 2942 (replay->bitmap)[frlast] |= 1; in ipsec_updatereplay() 2945 bzero(replay->bitmap, replay->wsize); in ipsec_updatereplay() 2946 (replay->bitmap)[frlast] = 1; in ipsec_updatereplay() 2964 if ((replay->bitmap)[fr] & (1 << (diff % 8))) { in ipsec_updatereplay() 2970 (replay->bitmap)[fr] |= (1 << (diff % 8)); in ipsec_updatereplay() [all …]
|
| /xnu-12377.61.12/bsd/net/ |
| H A D | restricted_in_port.c | 152 SYSCTL_PROC(_net_restricted_port, OID_AUTO, bitmap,
|