Searched refs:num (Results 1 - 25 of 44) sorted by relevance

12

/xnu-2422.115.4/osfmk/kern/
H A Dexc_resource.h177 #define EXC_RESOURCE_CPUMONITOR_ENCODE_WAKEUPS_PERMITTED(code, num) \
178 ((code) |= ((uint64_t)(num) & 0xFFFFFULL))
179 #define EXC_RESOURCE_CPUMONITOR_ENCODE_OBSERVATION_INTERVAL(code, num) \
180 ((code) |= (((uint64_t)(num) & 0xFFFULL) << 20))
181 #define EXC_RESOURCE_CPUMONITOR_ENCODE_WAKEUPS_OBSERVED(subcode, num) \
182 ((subcode) |= ((uint64_t)(num) & 0xFFFFFULL))
185 #define EXC_RESOURCE_HWM_ENCODE_LIMIT(code, num) \
186 ((code) |= ((uint64_t)(num) & 0x1FFFULL))
H A Dipc_kobject.c155 mach_msg_id_t num; member in struct:__anon1048
234 mig_buckets[pos].num;
236 if (mig_buckets[pos].num == nentry) {
244 mig_buckets[pos].num = nentry;
290 while (key != ptr->num && ptr->num && --max_iter);
292 if (!ptr->routine || key != ptr->num) {
/xnu-2422.115.4/osfmk/i386/
H A Dcpu_affinity.h39 uint32_t num; /* Logical id */ member in struct:x86_affinity_set
H A Dhibernate_i386.c56 ppnum_t base, num; local
80 num = (ppnum_t) mptr->NumberOfPages;
84 if ((base + num - 1) > max_ppnum)
85 num = max_ppnum - base + 1;
86 if (!num)
94 non_os_pagecount += num;
107 if ((base + num) == dram_ranges[bank].first_page)
110 num = 0;
114 if (!num) break;
127 dram_ranges[bank].last_page = base + num
[all...]
H A Dcpu_topology.c157 aset->num = x86_affinity_count++;
165 aset, aset->num, aset->pset, aset->cache);
169 aset, aset->num, lcpup, lcpup->cpu_num, cpup, cpup->cpu_processor);
243 if (affinity_num == aset->num)
/xnu-2422.115.4/osfmk/ipc/
H A Dipc_table.c79 unsigned int num,
99 unsigned int num, /* size of array */
111 (index < num) && (size < PAGE_SIZE);
121 for (incrsize = PAGE_SIZE; index < num;) {
125 (period < 15) && (index < num);
97 ipc_table_fill( ipc_table_size_t its, unsigned int num, unsigned int min, vm_size_t elemsize) argument
/xnu-2422.115.4/bsd/sys/
H A Dioccom.h91 #define _IOC(inout,group,num,len) \
92 (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))
H A Daio_kern.h101 _aio_create_worker_threads(int num);
/xnu-2422.115.4/osfmk/profiling/
H A Dprofile-internal.h163 #define ENCODE_KGMON(num, control, cpu_thread) \
164 ((num) = ((cpu_thread) << 8) | (control))
166 #define DECODE_KGMON(num, control, cpu_thread) \
168 control = (num) & 0xff; \
169 cpu_thread = (num) >> 8; \
172 #define LEGAL_KGMON(num) (((unsigned long)(num)) <= 0xffff)
/xnu-2422.115.4/iokit/Kernel/
H A DIOHibernateRestoreKernel.c163 static void uart_puthex(uint64_t num) argument
171 c = 0xf & (num >> bit);
777 ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) argument
783 uint32_t num2 = (uint32_t) num;
785 uintmax_t num2 = num;
834 uintmax_t num; local
841 num = 0;
911 num = (u_int)va_arg(ap, int);
913 for (q = ksprintn(nbuf, num, *p++, NULL, 0); *q;)
916 if (num
[all...]
H A DIORangeAllocator.cpp335 OSNumber * num; local
345 if( (num = OSNumber::withNumber( elements[index].start,
347 array->setObject(num);
348 num->release();
350 if( (num = OSNumber::withNumber( elements[index].end,
352 array->setObject(num);
353 num->release();
H A DIOWorkLoop.cpp61 { unsigned char *num = (unsigned char *) addr; *num |= flag; } local
63 { unsigned char *num = (unsigned char *) addr; *num &= ~flag; } local
65 { unsigned char *num = (unsigned char *) addr; return (*num & flag) != 0; } local
/xnu-2422.115.4/tools/tests/libMicro/apple/
H A Dlmbench_select_file.c93 int num; member in struct:__anon1219
312 ts->num = 200;
314 ts->num = optn;
316 N = ts->num;
317 //(void) fprintf(stderr, "benchmark_initworker ts->num is %i\n",ts->num);
399 select(ts->num, 0, &nosave, 0, &tv);
H A Dlmbench_select_tcp.c108 int num; member in struct:__anon1220
539 ts->num = 200;
541 ts->num = optn;
543 N = ts->num;
616 select(ts->num, 0, &nosave, 0, &tv);
/xnu-2422.115.4/bsd/libkern/
H A Dlibkern.h200 * __builtin_clz(num), unfortunately this one is ill defined
201 * by gcc for num=0
204 clz(unsigned int num) argument
206 return num?__builtin_clz(num):__builtin_clz(0);
/xnu-2422.115.4/osfmk/device/
H A Dsubrs.c395 * num integer to be converted
404 int num,
411 if (num == 0) {
416 while (num) {
417 *dp++ = '0' + num % 10;
418 num /= 10;
403 itoa( int num, char *str) argument
/xnu-2422.115.4/pexpert/i386/
H A Dpe_init.c276 unsigned long num, den, cnt; local
278 num = gPEClockFrequencyInfo.bus_clock_rate_num * gPEClockFrequencyInfo.bus_to_dec_rate_num;
283 if ((num % cnt) || (den % cnt)) {
288 num /= cnt;
292 timebase_freq.timebase_num = num;
/xnu-2422.115.4/tools/lldbmacros/
H A Dutils.py183 def sizeof_fmt(num, unit_str='B'):
187 num - int : number to be converted
193 if num < 1024.0:
194 return "%3.1f%s%s" % (num, x,unit_str)
195 num /= 1024.0
196 return "%3.1f%s%s" % (num, 'P', unit_str)
/xnu-2422.115.4/SETUP/config/
H A Dconfig.h223 char *qu(int num);
291 void dev_param(struct device *dp, const char *str, long num);
H A Dparser.y138 void check_nexus(struct device *dev, int num);
139 void check_slot(struct device *dev, int num);
143 struct device *dconnect(const char *dev, int num);
901 dconnect(const char *dev, int num)
905 if (num == QUES)
908 if ((num != dp->d_unit) || !eq(dev, dp->d_name))
918 (void) sprintf(errbuf, "%s %d not defined", dev, num);
1009 check_nexus(struct device *dev, int num)
1017 if (num != QUES)
1070 if (num !
[all...]
/xnu-2422.115.4/libkern/libkern/
H A Dmkext.h94 #define MKEXT_SWAP(num) OSSwapBigToHostInt32((uint32_t)(num))
/xnu-2422.115.4/bsd/kern/
H A Duipc_mbuf.c1967 mbuf_slab_alloc(void *arg, mcache_obj_t ***plist, unsigned int num, int wait) argument
1970 unsigned int need = num;
2037 m_alloc_cnt(class) += num - need;
2040 return (num - need);
2053 unsigned int num = 0; local
2064 ++num;
2068 m_free_cnt(class) += num;
2156 cslab_alloc(mbuf_class_t class, mcache_obj_t ***plist, unsigned int num) argument
2158 unsigned int need = num;
2207 m_infree(class) -= (num
2219 unsigned int num = 0; local
2356 unsigned int num = 0, cnum = 0, want = needed; local
2549 unsigned int num; local
2655 m_clalloc(const u_int32_t num, const int wait, const u_int32_t bufsize) argument
2905 freelist_populate(mbuf_class_t class, unsigned int num, int wait) argument
3102 mbuf_steal(mbuf_class_t class, unsigned int num) argument
3140 m_reclaim(mbuf_class_t class, unsigned int num, boolean_t comp) argument
3863 unsigned int num = 0; local
5133 m_howmany(int num, size_t bufsize) argument
6057 mbuf_sleep(mbuf_class_t class, unsigned int num, int wait) argument
6369 mcl_audit_init(void *buf, mcache_audit_t **mca_list, mcache_obj_t **con_list, size_t con_size, unsigned int num) argument
6652 mleak_logger(u_int32_t num, mcache_obj_t *addr, boolean_t alloc) argument
6678 mleak_log(uintptr_t *bt, mcache_obj_t *addr, uint32_t depth, int num) argument
[all...]
H A Dmcache.c441 mcache_alloc_ext(mcache_t *cp, mcache_obj_t **list, unsigned int num, int wait) argument
446 unsigned int need = num;
455 if (num == 0)
493 (*cp->mc_slab_log)(num, *top, TRUE);
498 return (num);
563 (*cp->mc_slab_log)((num - need), *top, TRUE);
566 return (num - need);
584 if (n != (num - need)) {
587 (void *)cp, num - need, n);
595 return (num
886 mcache_slab_alloc(void *arg, mcache_obj_t ***plist, unsigned int num, int wait) argument
[all...]
/xnu-2422.115.4/osfmk/console/
H A Dvideo_console.c139 void (*scroll_down)(int num, unsigned int top, unsigned int bottom);
140 void (*scroll_up)(int num, unsigned int top, unsigned int bottom);
288 static void gc_scroll_down(int num, unsigned int top, unsigned int bottom);
289 static void gc_scroll_up(int num, unsigned int top, unsigned int bottom);
1034 gc_scroll_down(int num, unsigned int top, unsigned int bottom) argument
1044 jump = num * gc_buffer_columns;
1046 for ( row = bottom - 1 ; row >= top + num ; row-- )
1096 for ( row = top ; row < top + num ; row++ )
1134 gc_ops.scroll_down(num, top, bottom);
1138 gc_clear_screen(vinfo.v_columns - 1, top + num
1143 gc_scroll_up(int num, unsigned int top, unsigned int bottom) argument
1736 vc_scroll_down(int num, unsigned int scrreg_top, unsigned int scrreg_bottom) argument
1769 vc_scroll_up(int num, unsigned int scrreg_top, unsigned int scrreg_bottom) argument
[all...]
/xnu-2422.115.4/bsd/dev/
H A Dmemdev.c116 static char * cvtnum(char *pos, char *end, uint64_t *num);
529 char *cvtnum(char *pos, char *end, uint64_t *num) { /* Convert to a number */ argument
533 *num = 0; /* Set answer to 0 to start */
556 *num = (*num * rad) + dig; /* Accumulate the number */

Completed in 197 milliseconds

12