/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ring_buffer_util.c | 82 rbuf->base = (void *) dapl_os_alloc(rsize * sizeof (void *)); in dapls_rbuf_alloc() 83 if (rbuf->base != NULL) { in dapls_rbuf_alloc() 138 rbuf->base = (void *)dapl_os_realloc(rbuf->base, in dapls_rbuf_realloc() 140 if (NULL == rbuf->base) { in dapls_rbuf_realloc() 173 (NULL == rbuf->base)) { in dapls_rbuf_destroy() 178 dapl_os_free(rbuf->base, (rbuf->lim + 1) * sizeof (void *)); in dapls_rbuf_destroy() 179 rbuf->base = NULL; in dapls_rbuf_destroy() 210 rbuf->base[pos] = entry; in dapls_rbuf_add() 246 return (rbuf->base[pos]); in dapls_rbuf_remove()
|
/illumos-gate/usr/src/lib/libc/port/inet/ |
H A D | inet_network.c | 57 int base; in inet_network() local 64 val = 0; base = 10; in inet_network() 67 base = 16, cp++; in inet_network() 69 base = 8; in inet_network() 73 if ((c - '0') >= base) in inet_network() 75 val = (val * base) + (c - '0'); in inet_network() 79 if (base == 16 && isxdigit(c)) { in inet_network()
|
/illumos-gate/usr/src/uts/intel/syscall/ |
H A D | lwp_private.c | 40 lwp_setprivate(klwp_t *lwp, int which, uintptr_t base) in lwp_setprivate() argument 90 set_usegd(&pcb->pcb_fsdesc, SDP_SHORT, (void *)base, -1, in lwp_setprivate() 97 pcb->pcb_fsbase = base; in lwp_setprivate() 105 set_usegd(&pcb->pcb_gsdesc, SDP_SHORT, (void *)base, -1, in lwp_setprivate() 112 pcb->pcb_gsbase = base; in lwp_setprivate() 125 lwp_getprivate(klwp_t *lwp, int which, uintptr_t base) in lwp_getprivate() argument 192 if (sulword((void *)base, sbase) == -1) in lwp_getprivate() 196 if (suword32((void *)base, (uint32_t)sbase) == -1) in lwp_getprivate() 207 syslwp_private(int cmd, int which, uintptr_t base) in syslwp_private() argument 214 res = lwp_setprivate(lwp, which, base); in syslwp_private() [all …]
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | database.h | 68 struct base { struct 69 struct base *b_next; /* pointer to next base */ argument 191 struct base *f_base; /* pointer to owning base */ 240 extern struct base omnibase; /* base for global rules */ 241 extern struct base *bases; /* base for the main list */ 247 struct file *add_file_to_base(struct base *, const char *); 249 struct base *add_base(const char *src, const char *dst); 256 errmask_t add_include(struct base *, char *); 257 errmask_t add_ignore(struct base *, char *); 261 bool_t check_restr(struct base *, const char *); [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | lfind.c | 58 char *base = (char *)bs; in lfind() local 59 char *next = base + *nelp * width; /* End of table */ in lfind() 61 for (; base < next; base += width) in lfind() 62 if ((*compar)(key, base) == 0) in lfind() 63 return (base); /* Key found */ in lfind()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | zalloc.c | 280 zextendPool(MemPool *mp, void *base, uintptr_t bytes) in zextendPool() argument 283 mp->mp_Base = base; in zextendPool() 285 mp->mp_End = (char *)base + bytes; in zextendPool() 290 if (base < mp->mp_Base) { in zextendPool() 291 mp->mp_Size += (char *)mp->mp_Base - (char *)base; in zextendPool() 293 mp->mp_Base = base; in zextendPool() 295 base = (char *)base + bytes; in zextendPool() 296 if (base > pend) { in zextendPool() 297 mp->mp_Size += (char *)base - (char *)pend; in zextendPool() 298 mp->mp_Used += (char *)base - (char *)pend; in zextendPool() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | search.c | 89 const char *base, in ldap_search() argument 117 const char *base, in ldap_search_ext() argument 153 const char *base, in nsldapi_search() argument 175 if ( base == NULL ) { in nsldapi_search() 176 base = ""; in nsldapi_search() 225 (char *) base, ber ); in nsldapi_search() 271 const char *base, in nsldapi_build_search_req() argument 318 if ( base == NULL ) { in nsldapi_build_search_req() 319 base = ""; in nsldapi_build_search_req() 920 const char *base, in ldap_search_st() argument [all …]
|
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/ |
H A D | cherrystone.c | 281 uint64_t base = btop(slice[SLICE_PA]); in plat_discover_slice() local 283 if (len && pfn >= base && pfn < (base + len)) { in plat_discover_slice() 284 *first = base; in plat_discover_slice() 285 *last = base + len - 1; in plat_discover_slice() 306 uint64_t base, uint64_t size) in update_mem_bounds() argument 314 end = base + size - 1; in update_mem_bounds() 332 base = P2ALIGN(base, (1ul << PA_SLICE_SHIFT)); in update_mem_bounds() 334 while (base < end) { in update_mem_bounds() 335 slice_to_memnode[PA_2_SLICE(base)] = mnode; in update_mem_bounds() 336 base += (1ul << PA_SLICE_SHIFT); in update_mem_bounds() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | ServiceLocationEnumerator.java | 53 Enumeration base; field in ServiceLocationEnumerator 62 base = v.elements(); in ServiceLocationEnumerator() 64 base = (new Vector()).elements(); in ServiceLocationEnumerator() 73 return base.hasMoreElements(); in hasMoreElements() 81 return base.nextElement(); in nextElement() 89 return base.nextElement(); in next()
|
/illumos-gate/usr/src/uts/sun4v/vm/ |
H A D | mach_kpm.c | 226 pfn_t base, end; in hat_kpm_addmem_mseg_update() local 243 base = memseg_get_start(msp); in hat_kpm_addmem_mseg_update() 246 hat_devload(kas.a_hat, kpm_vbase + mmu_ptob(base), in hat_kpm_addmem_mseg_update() 247 mmu_ptob(end - base), base, PROT_READ | PROT_WRITE, in hat_kpm_addmem_mseg_update() 274 pfn_t base, end; in hat_kpm_delmem_mseg_update() local 284 base = memseg_get_start(msp); in hat_kpm_delmem_mseg_update() 287 hat_unload(kas.a_hat, kpm_vbase + mmu_ptob(base), mmu_ptob(end - base), in hat_kpm_delmem_mseg_update() 304 void *base; in hat_kpm_walk() local 311 base = ptob(pbase) + kpm_vbase; in hat_kpm_walk() 313 func(arg, base, size); in hat_kpm_walk()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_tsearchhash.c | 202 if(base) { in dwarf_initialize_search_hash() 204 return base ; in dwarf_initialize_search_hash() 207 if(!base) { in dwarf_initialize_search_hash() 217 free(base); in dwarf_initialize_search_hash() 225 if( base->allowed_fill_< (base->tablesize_/2)) { in dwarf_initialize_search_hash() 226 free(base); in dwarf_initialize_search_hash() 235 base->hashtab_ = calloc(sizeof(struct ts_entry),base->tablesize_); in dwarf_initialize_search_hash() 236 if(!base->hashtab_) { in dwarf_initialize_search_hash() 237 free(base); in dwarf_initialize_search_hash() 240 *treeptr = base; in dwarf_initialize_search_hash() [all …]
|
H A D | dwarf_ranges.c | 50 for ( cur = base ; cur ; cur = next ) { in free_allocated_ranges() 107 struct ranges_entry *base = 0; in dwarf_get_ranges_a() local 323 free_allocated_ranges(base); in dwarf_get_ranges_a() 337 free_allocated_ranges(base); in dwarf_get_ranges_a() 343 free_allocated_ranges(base); in dwarf_get_ranges_a() 369 if (!base) { in dwarf_get_ranges_a() 370 base = re; in dwarf_get_ranges_a() 391 free_allocated_ranges(base); in dwarf_get_ranges_a() 395 curre = base; in dwarf_get_ranges_a() 405 free_allocated_ranges(base); in dwarf_get_ranges_a() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_network.c | 56 register u_long val, base, n, i; local 62 val = 0; base = 10; digit = 0; 64 digit = 1, base = 8, cp++; 66 base = 16, cp++; 69 if (base == 8U && (c == '8' || c == '9')) 71 val = (val * base) + (c - '0'); 76 if (base == 16U && isxdigit((unsigned char)c)) {
|
/illumos-gate/usr/src/cmd/adbgen/common/ |
H A D | adbsub.c | 199 indirect(off_t offset, size_t size, char *base, char *member) in indirect() argument 203 printf("*%s", base); in indirect() 205 printf("*(%s+0t%ld)", base, offset); in indirect() 209 printf("(*%s&0xffff)", base); in indirect() 211 printf("(*(%s+0t%ld)&0xffff)", base, offset - 2); in indirect() 215 printf("(*%s&0xff)", base); in indirect() 218 printf("(*(%s+0t%ld)&0xff)", base, offset - 3); in indirect() 221 base, offset - 2); in indirect()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | xpv_platform.c | 96 uint32_t xen_signature[4], base; in xen_hvm_init() local 116 for (base = 0x40000000; base < 0x40010000; base += 0x100) { in xen_hvm_init() 117 cp.cp_eax = base; in xen_hvm_init() 125 cp.cp_eax >= (base + 2)) in xen_hvm_init() 128 if (base >= 0x40010000) in xen_hvm_init() 136 cp.cp_eax = base + 1; in xen_hvm_init() 158 cp.cp_eax = base + 2; in xen_hvm_init()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | vfscanf.c | 244 base = 10; 250 base = 0; 259 base = 8; 265 base = 10; 273 base = 16; 303 base = 16; 328 base = 10; 533 if (base == 0) 535 base = 8; 547 base = basefix[base]; [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmmopen.c | 90 Void_t* base; /* address to map to */ member 135 Void_t *base = mmvm->base; in mmfix() local 139 { /**/ASSERT(!base || (base && (VLONG(base)%_Vmpagesize) == 0) ); in mmfix() 159 Void_t *base; in mminit() local 210 base = (Void_t*)mmvm; in mminit() 212 mmvm->base = base; in mminit() 278 { if(mmvm->base ) 279 (void)munmap(mmvm->base, mmvm->size); 286 { if(mmvm->base ) 287 (void)shmdt(mmvm->base); [all …]
|
/illumos-gate/usr/src/cmd/valtools/ |
H A D | ckrange.c | 46 static int base = 10; variable 152 base = atoi(optarg); in main() 153 if ((base < 2) || (base > 36)) { in main() 205 uvalue = strtol(upper, &ptr, base); in main() 215 lvalue = strtol(lower, &ptr, base); in main() 235 exit(ckrange_val(lvalue, uvalue, base, argv[optind])); in main() 243 ckrange_err(lvalue, uvalue, base, error); in main() 247 ckrange_hlp(lvalue, uvalue, base, help); in main() 251 n = ckrange(&intval, lvalue, uvalue, (short)base, in main()
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | strtonum.c | 30 int base, long long expval, bool expect_pass) in runtestx() argument 36 if (base == -1) { in runtestx() 40 val = strtonumx(nstr, minval, maxval, &errstr, base); in runtestx() 42 nstr, base); in runtestx() 106 for (int base = 2; base <= 36; base++) in main() local 107 runtestx("1", 0, 100, base, 1, true); in main()
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/ |
H A D | check-common.c | 259 ctf_id_t base; in ctftest_check_descent() local 266 if (base == CTF_ERR) { in ctftest_check_descent() 276 if (base == CTF_ERR) { in ctftest_check_descent() 295 if (tid != base) { in ctftest_check_descent() 322 "symbol %s: %s", base, in ctftest_check_descent() 360 base = ari.ctr_contents; in ctftest_check_descent() 363 base = ctf_type_reference(fp, base); in ctftest_check_descent() 371 if (base != CTF_ERR) { in ctftest_check_descent() 415 ctf_id_t base; in ctftest_check_enum() local 516 ctf_id_t base; in ctftest_check_members() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfvprintf.c | 421 base = v; 579 { if(base < 0) 610 if(base >= 0) 990 if(base < 2 || base > SF_RADIX) 991 base = 10; 992 if((base&(n_s = base-1)) == 0) 993 { if(base < 8) 1212 if (base < 0) 1213 base = 0; 1252 if (base <= 0) [all …]
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | wsdiff.py | 536 def protoCatalog(base, ptch) : argument 546 baseStringLength = len(base) 638 if os.path.exists(base + f) : 949 fileName = fnFormat(base) 1066 fileName = fnFormat(base) 1168 fileName = fnFormat(base); 1174 with open(base, 'rb') as fh: 1208 fileName = fnFormat(base); 1298 base = baseRoot + fn 1313 btype = getTheFileType(base) [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiovia823x/ |
H A D | audiovia823x.c | 142 OUTL(devc, devc->base + REG_CODEC, val); in auvia_read_ac97() 159 val = INL(devc, devc->base + REG_CODEC); in auvia_read_ac97() 160 OUTB(devc, devc->base + REG_CODEC + 3, 0x02); in auvia_read_ac97() 177 OUTL(devc, devc->base + REG_CODEC, val); in auvia_write_ac97() 231 OUTB(devc, portc->base + OFF_CTRL, CTRL_TERMINATE); in auvia_stop() 275 pos = INL(devc, portc->base + OFF_COUNT); in auvia_count() 302 OUTL(devc, portc->base + OFF_DMA, portc->sgd_paddr); in auvia_reset_output() 304 OUTB(devc, portc->base + OFF_PLAYFMT, in auvia_reset_output() 359 OUTL(devc, portc->base + OFF_RECFMT, fmt); in auvia_reset_input() 381 portc->base = devc->base + REG_RECBASE; in auvia_alloc_port() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiop16x/ |
H A D | audiop16x.h | 57 caddr_t base; member 82 caddr_t base; member 89 ddi_get32(dev->regsh, (void *)((char *)dev->base+(reg))) 91 ddi_get16(dev->regsh, (void *)((char *)dev->base+(reg))) 93 ddi_get8(dev->regsh, (void *)((char *)dev->base+(reg))) 96 ddi_put32(dev->regsh, (void *)((char *)dev->base+(reg)), (val)) 98 ddi_put16(dev->regsh, (void *)((char *)dev->base+(reg)), (val)) 100 ddi_put8(dev->regsh, (void *)((char *)dev->base+(reg)), (val))
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | getpcstack.c | 60 uintptr_t base = 0; in getpcstack() local 84 base = (uintptr_t)st.ss_sp; in getpcstack() 94 base = 0; in getpcstack() 108 base = (uintptr_t)umem_min_stack; in getpcstack() 130 if (((uintptr_t)fp - base) >= size) in getpcstack() 148 else if (nextfp <= minfp || (tmp - base) >= size) { in getpcstack() 169 base = (uintptr_t)st.ss_sp - st.ss_size; in getpcstack() 171 minfp = (struct frame *)base; in getpcstack()
|