Searched refs:base (Results 1 - 25 of 851) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dlfind.c44 lfind(key, base, nelp, width, compar)
46 register POINTER base; /* Beginning of table */
51 register POINTER next = base + *nelp * width; /* End of table */
53 for ( ; base < next; base += width)
54 if ((*compar)(key, base) == 0)
55 return (base); /* Key found */
H A Dlsearch.c44 lsearch(key, base, nelp, width, compar)
46 register POINTER base; /* Beginning of table */
51 register POINTER next = base + *nelp * width; /* End of table */
53 for ( ; base < next; base += width)
54 if ((*compar)(key, base) == 0)
55 return (base); /* Key found */
57 return (memcpy(base, key, (int)width)); /* base now == next */
H A Dstrtol.c34 strtol(str, ptr, base)
37 register int base;
45 if (base < 0 || base > MBASE)
46 return (0); /* base is invalid -- should be a fatal error */
57 if (base == 0)
59 base = 10;
61 base = 16;
63 base = 8;
65 * for any base > 1
[all...]
H A Dbsearch.c36 bsearch(key, base, nel, width, compar)
38 POINTER base; /* Beginning of table */
44 POINTER last = base + width * (nel - 1); /* Last element in table */
46 while (last >= base) {
48 register POINTER p = base + width * ((last - base)/two_width);
56 base = p + width;
/illumos-gate/usr/src/lib/libadm/common/
H A Dckint.c42 setmsg(char *msg, short base) argument
44 if ((base == 0) || (base == 10))
47 (void) sprintf(msg, "Please enter a base %d integer.", base);
51 setprmpt(char *prmpt, short base) argument
53 if ((base == 0) || (base == 10))
56 (void) sprintf(prmpt, "Enter a base %d integer.", base);
60 ckint_val(char *value, short base) argument
71 ckint_err(short base, char *error) argument
80 ckint_hlp(short base, char *help) argument
89 ckint(long *intval, short base, char *defstr, char *error, char *help, char *prompt) argument
[all...]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DServiceLocationEnumerator.java51 // The base enumerator.
53 Enumeration base; field in class:ServiceLocationEnumerator
62 base = v.elements();
64 base = (new Vector()).elements();
73 return base.hasMoreElements();
81 return base.nextElement();
89 return base.nextElement();
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwcstoimax.c54 wcstoimax(const wchar_t *nptr, wchar_t **endptr, int base) argument
56 return ((intmax_t)wcstoll(nptr, endptr, base));
61 wcstoumax(const wchar_t *nptr, wchar_t **endptr, int base) argument
63 return ((uintmax_t)wcstoull(nptr, endptr, base));
69 _wcstoimax_c89(const wchar_t *nptr, wchar_t **endptr, int base) argument
71 return ((int32_t)wcstol(nptr, endptr, base));
76 _wcstoumax_c89(const wchar_t *nptr, wchar_t **endptr, int base) argument
78 return ((uint32_t)wcstoul(nptr, endptr, base));
H A Dwstol.c39 wstol(const wchar_t *str, wchar_t **ptr, int base) argument
41 return (wcstol(str, ptr, base));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dtimespec_get.c24 timespec_get(struct timespec *ts, int base) argument
26 if (base != TIME_UTC)
H A Dstrtoimax.c39 strtoimax(const char *nptr, char **endptr, int base) argument
41 return ((intmax_t)strtoll(nptr, endptr, base));
55 _strtoimax_c89(const char *nptr, char **endptr, int base) argument
57 return ((int32_t)strtol(nptr, endptr, base));
H A Dstrtoumax.c39 strtoumax(const char *nptr, char **endptr, int base) argument
41 return ((uintmax_t)strtoull(nptr, endptr, base));
55 _strtoumax_c89(const char *nptr, char **endptr, int base) argument
57 return ((uint32_t)strtoul(nptr, endptr, base));
H A Dlsearch.c59 char *base = (char *)bs; local
60 char *next = base + *nelp * width; /* End of table */
63 for (; base < next; base += width)
64 if ((*compar)(key, base) == 0)
65 return (base); /* Key found */
67 res = memcpy(base, key, width); /* base now == next */
H A Dlfind.c60 char *base = (char *)bs; local
61 char *next = base + *nelp * width; /* End of table */
63 for (; base < next; base += width)
64 if ((*compar)(key, base) == 0)
65 return (base); /* Key found */
/illumos-gate/usr/src/lib/libumem/common/
H A Dinit_stand.c46 umem_type_init(caddr_t base, size_t len, size_t pgsize) argument
51 (void) vmem_stand_add(base, len);
61 umem_add(caddr_t base, size_t len) argument
63 return (vmem_stand_add(base, len));
/illumos-gate/usr/src/common/util/
H A Dbsearch.c50 char *base; local
57 base = (char *)bs;
59 last = base + width * (nel - 1);
61 while (last >= base) {
63 char *p = base + width * ((last - base)/two_width);
71 base = p + width;
H A Dstrtol.c50 ddi_strtol(const char *str, char **nptr, int base, long *result) argument
53 strtol(const char *str, char **nptr, int base)
67 if (base < 0 || base > MBASE || base == 1) {
68 /* base is invalid -- should be a fatal error */
87 if (base == 0)
89 base = 10;
91 base = 16;
93 base
[all...]
H A Dstrtoll.c46 ddi_strtoll(const char *str, char **nptr, int base, longlong_t *result) argument
49 strtoll(const char *str, char **nptr, int base)
63 if (base < 0 || base > MBASE || base == 1) {
64 /* base is invalid -- should be a fatal error */
83 if (base == 0)
85 base = 10;
87 base = 16;
89 base
[all...]
H A Dstrtoul.c46 ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result) argument
49 strtoul(const char *str, char **nptr, int base)
62 if (base < 0 || base > MBASE || base == 1) {
63 /* base is invalid -- should be a fatal error */
82 if (base == 0)
84 base = 10;
86 base = 16;
88 base
[all...]
H A Dstrtoull.c46 ddi_strtoull(const char *str, char **nptr, int base, u_longlong_t *result) argument
49 strtoull(const char *str, char **nptr, int base)
62 if (base < 0 || base > MBASE || base == 1) {
63 /* base is invalid -- should be a fatal error */
82 if (base == 0)
84 base = 10;
86 base = 16;
88 base
[all...]
/illumos-gate/usr/src/uts/sun4u/io/px/
H A Dpx_csr.h37 #define CSR_XR(base, off) \
38 (*(volatile uint64_t *)((base) + ((off))))
40 #define CSRA_XR(base, off, index) \
41 (*(volatile uint64_t *)((base) + ((off) + ((index) * 8))))
43 #define CSR_XS(base, off, val) \
44 ((*(volatile uint64_t *)((base) + ((off)))) = (val))
46 #define CSRA_XS(base, off, index, val) \
47 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = (val))
50 #define CSR_FR(base, off, bit) \
51 (((*(volatile uint64_t *) ((base)
[all...]
/illumos-gate/usr/src/common/crypto/arcfour/sun4v/
H A Darcfour_crypt.c66 uchar_t i, j, *base, jj, *base1, tmp; local
71 base = key->arr;
113 tmp0 = base[i];
115 tmp1 = base[j];
116 base[i] = (uchar_t)tmp1;
117 base[j] = (uchar_t)tmp0;
120 out[ii] = in[ii] ^ base[tmp0];
130 * Want to align base[i] on a 2B boundary -- allows updates
137 tmp0 = base[i];
139 tmp1 = base[
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dpci_cap.c51 * pci_cap_probe: returns the capid and base based upon a given index
58 uint16_t base, pcix_cmd, status; local
67 for (i = 0, base = pci_config_get8(h, PCI_CONF_CAP_PTR);
68 base && i < index; base = pci_config_get8(h, base
71 if ((id = pci_config_get8(h, base)) == 0xff)
77 if ((pcix_cmd = pci_config_get16(h, base +
85 if (base && i == index) {
86 if ((id = pci_config_get8(h, base)) !
128 uint16_t status, base; local
170 uint16_t status, base; local
210 uint16_t status, base; local
252 pci_cap_get(ddi_acc_handle_t h, pci_cap_config_size_t size, uint32_t id, uint16_t base, uint16_t offset) argument
293 pci_cap_put(ddi_acc_handle_t h, pci_cap_config_size_t size, uint32_t id, uint16_t base, uint16_t offset, uint32_t data) argument
329 pci_cap_read(ddi_acc_handle_t h, uint32_t id, uint16_t base, uint32_t *buf_p, uint32_t nwords) argument
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/
H A D577xx_int_offsets.h36 #define COMMON_SB_SIZE (IRO[0].base)
37 #define COMMON_SB_DATA_SIZE (IRO[1].base)
38 #define COMMON_SP_SB_SIZE (IRO[2].base)
39 #define COMMON_SP_SB_DATA_SIZE (IRO[3].base)
40 #define COMMON_DYNAMIC_HC_CONFIG_SIZE (IRO[4].base)
41 #define COMMON_ASM_ASSERT_MSG_SIZE (IRO[5].base)
42 #define COMMON_ASM_ASSERT_INDEX_SIZE (IRO[6].base)
43 #define COMMON_ASM_INVALID_ASSERT_OPCODE (IRO[7].base)
44 #define COMMON_RAM1_TEST_EVENT_ID (IRO[8].base)
45 #define COMMON_INBOUND_INTERRUPT_TEST_AGG_INT_EVENT_ID (IRO[9].base)
[all...]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmihd/
H A Daudiocmihd.h66 #define RECA_ADDR (devc->base+0x00)
67 #define RECA_SIZE (devc->base+0x04)
68 #define RECA_FRAG (devc->base+0x06)
69 #define RECB_ADDR (devc->base+0x08)
70 #define RECB_SIZE (devc->base+0x0C)
71 #define RECB_FRAG (devc->base+0x0E)
72 #define RECC_ADDR (devc->base+0x10)
73 #define RECC_SIZE (devc->base+0x14)
74 #define RECC_FRAG (devc->base+0x16)
75 #define SPDIF_ADDR (devc->base
345 caddr_t base; member in struct:_cmediahd_devc_t
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dstrtoul.c51 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) argument
74 if ((base == 0 || base == 16) &&
81 base = 16;
83 if (base == 0)
84 base = c == '0' ? 8 : 10;
86 if (base < 2 || base > 36)
89 cutoff = ULONG_MAX / base;
90 cutlim = ULONG_MAX % base;
[all...]

Completed in 77 milliseconds

1234567891011>>