Home
last modified time | relevance | path

Searched refs:val (Results 176 – 200 of 2347) sorted by relevance

12345678910>>...94

/illumos-gate/usr/src/common/util/
H A Dstrtol.c66 long val; in ddi_strtol() local
128 val = -DIGIT(c); in ddi_strtol()
131 if (val < multmin) in ddi_strtol()
133 val *= base; in ddi_strtol()
134 if (val < limit + xx) in ddi_strtol()
136 val -= xx; in ddi_strtol()
142 *result = neg ? val : -val; in ddi_strtol()
145 return (neg ? val : -val); in ddi_strtol()
H A Dstrtoll.c64 longlong_t val; in ddi_strtoll() local
125 val = -DIGIT(c); in ddi_strtoll()
128 if (val < multmin) in ddi_strtoll()
130 val *= base; in ddi_strtoll()
131 if (val < limit + xx) in ddi_strtoll()
133 val -= xx; in ddi_strtoll()
139 *result = neg ? val : -val; in ddi_strtoll()
142 return (neg ? val : -val); in ddi_strtoll()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmformat.h74 #define les(val) ((((val)&0xFF)<<8)|(((val)>>8)&0xFF)) argument
75 #define lel(val) (((unsigned)(les((val)&0x0000FFFF))<<16) | \ argument
76 (les((unsigned)((val)&0xffff0000)>>16)))
78 #define les(val) (val)
79 #define lel(val) (val)
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dpcnet32.c283 int val);
440 u16 val; in pcnet32_reset() local
452 val |= 2; in pcnet32_reset()
458 val |= 1; in pcnet32_reset()
461 val |= 2; in pcnet32_reset()
470 val |= 3; in pcnet32_reset()
478 val |= 0x10; in pcnet32_reset()
484 val |= 0x10; in pcnet32_reset()
486 val |= 0x08; in pcnet32_reset()
491 val |= 0x20; in pcnet32_reset()
[all …]
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dauxprop.c389 struct propval *val; in prop_getnames() local
390 for(val = ctx->values; val->name; val++) { in prop_getnames()
477 for(val = ctx->values; val->name; val++) { in prop_erase()
487 memset((void *)(val->values[i]),0,strlen(val->values[i])); in prop_erase()
492 val->nvalues = 0; in prop_erase()
524 for(val = ctx->values; val->name; val++) { in prop_format()
536 for(val = ctx->values; val->name; val++) { in prop_format()
565 struct propval *val; in prop_set() local
569 for(val = ctx->values; val->name; val++) { in prop_set()
771 val++; in prop_setvals()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Deventfd.c27 uint64_t val = initval; in eventfd() local
50 if (write(fd, &val, sizeof (val)) < sizeof (val)) { in eventfd()
68 eventfd_write(int fd, eventfd_t val) in eventfd_write() argument
70 ssize_t ret = write(fd, &val, sizeof (val)); in eventfd_write()
71 if (ret == -1 || (size_t)ret < sizeof (val)) in eventfd_write()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_power.c55 u32_t val = 0 ; in init_nwuf_57710() local
116 val = nwuf->pattern_size; in init_nwuf_57710()
123 if( val != nwuf->size * 8 ) in init_nwuf_57710()
131 val = nwuf->crc32 ; in init_nwuf_57710()
296 u32_t val = 0 ; in lm_set_d3_mpkt() local
343 u32_t val; in set_d0_power_state()
354 &val); in set_d0_power_state()
356 val &= ~PCICFG_PM_CSR_STATE; in set_d0_power_state()
361 val); in set_d0_power_state()
378 val &= ~EMAC_MODE_MPKT; in set_d0_power_state()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dmodhash.c157 #define MH_VAL_DESTROY(hash, val) ((hash->mh_vdtor)(val)) argument
238 char *c = (char *)val; in mod_hash_strval_dtor()
569 entry->mhe_val = val; in i_mod_hash_insert_nosync()
671 mod_hash_val_t *val) in i_mod_hash_remove_nosync() argument
699 *val = e->mhe_val; in i_mod_hash_remove_nosync()
752 mod_hash_val_t val; in mod_hash_destroy() local
761 MH_VAL_DESTROY(hash, val); in mod_hash_destroy()
775 mod_hash_val_t *val) in i_mod_hash_find_nosync() argument
784 *val = e->mhe_val; in i_mod_hash_find_nosync()
814 find_cb(key, *val); in mod_hash_find_cb()
[all …]
/illumos-gate/usr/src/uts/common/io/rwn/
H A Drt2860.c92 uint32_t val; member
99 uint8_t val; member
341 val = 0; in rt2860_eeprom_read()
392 val & 0xff, val >> 8); in rt2860_read_eeprom()
418 sc->bbp[i].val = val & 0xff; in rt2860_read_eeprom()
427 sc->freq = ((val & 0xff) != 0xff) ? val & 0xff : 0; in rt2860_read_eeprom()
478 if (val >> 8 != 0x92 || !(val & 0x80)) in rt2860_read_eeprom()
535 if ((val & 0xff) != 0xff && (val & 0x80)) { in rt2860_read_eeprom()
540 val >>= 8; in rt2860_read_eeprom()
541 if ((val & 0xff) != 0xff && (val & 0x80)) { in rt2860_read_eeprom()
[all …]
/illumos-gate/usr/src/uts/common/io/usbgem/
H A Dusbgem.c1024 uint16_t val; in usbgem_mii_read() local
1030 return (val); in usbgem_mii_read()
1067 uint16_t val; in usbgem_mii_config_default() local
1144 val = 0; in usbgem_mii_config_default()
1226 uint16_t val; in usbgem_mii_link_check() local
3010 return (val); in usbgem_mac_xcvr_inuse()
3191 uint64_t val; in usbgem_m_getstat() local
3501 *valp = val; in usbgem_m_getstat()
3626 uint64_t val; in usbgem_generate_macaddr() local
3739 int val; in usbgem_read_conf() local
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dleb128.c109 int val; in uleb_extract() local
120 val = (*data) & 0x7f; in uleb_extract()
125 res = res | (val << shift); in uleb_extract()
151 int val; in sleb_extract() local
162 val = (*data) & 0x7f; in sleb_extract()
167 res = res | (val << shift); in sleb_extract()
265 uint64_t val; in dwarf_ehe_extract() local
269 val = data[dot]; in dwarf_ehe_extract()
270 result |= val << (cnt * 8); in dwarf_ehe_extract()
280 uint64_t val; in dwarf_ehe_extract() local
[all …]
/illumos-gate/usr/src/uts/common/io/ntxn/
H A Dunm_nic_init.c189 uint32_t val; in rom_unlock() local
260 int addr, val, status, i, init_delay = 0, n; in pinit_from_rom() local
273 int val; in pinit_from_rom() local
274 if (rom_fast_read(adapter, 0x4008, &val) == 0) in pinit_from_rom()
335 buf[i].data = val; in pinit_from_rom()
341 (unsigned long)addr), val); in pinit_from_rom()
415 (val & 0xffffff0f), adapter); in pinit_from_rom()
445 u32 val = 0; in phantom_init() local
453 if ((val == PHAN_INITIALIZE_COMPLETE) || in phantom_init()
454 (val == PHAN_INITIALIZE_ACK)) in phantom_init()
[all …]
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_value.c156 pv->pv_u.u = val; in pool_value_set_uint64()
169 pv->pv_u.i = val; in pool_value_set_int64()
183 pv->pv_u.d = val; in pool_value_set_double()
191 pool_value_set_bool(pool_value_t *pv, uchar_t val) in pool_value_set_bool() argument
196 pv->pv_u.b = !!val; /* Lock value at 0 or 1 */ in pool_value_set_bool()
209 if (val == NULL || strlen(val) >= PV_VALUE_MAX_LEN) { in pool_value_set_string()
213 if ((pv->pv_u.s = atom_string(val)) == NULL) in pool_value_set_string()
227 pool_value_t *val; in pool_value_alloc() local
233 (void) memset(val, 0, sizeof (pool_value_t)); in pool_value_alloc()
234 val->pv_class = POC_INVAL; in pool_value_alloc()
[all …]
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_stats.c888 *val = i40e->i40e_hw_space.port; in i40e_m_stat()
906 *val = i40e->i40e_phy.phy_id[0] | in i40e_m_stat()
1029 *val = 0; in i40e_m_stat()
1033 *val = i40e->i40e_link_duplex; in i40e_m_stat()
1055 *val = 1; in i40e_m_stat()
1059 *val = 1; in i40e_m_stat()
1067 *val = 1; in i40e_m_stat()
1075 *val = (i40e->i40e_phy.abilities & in i40e_m_stat()
1089 *val = 0; in i40e_m_stat()
1142 *val = 0; in i40e_rx_ring_stat()
[all …]
/illumos-gate/usr/src/data/locale/tools/
H A Dmkwidths.py26 def u8_str(val): argument
31 u8str = unichr(val).encode('utf-8')
50 (sym, val) = (items[0], items[1])
51 SYMBOLS[val] = sym
66 val = start
67 while val <= end:
68 key = u8_str(val)
69 val += 1
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_debug.h59 #define IGB_DEBUG_STAT_COND(val, cond) if (cond) (val)++ argument
60 #define IGB_DEBUG_STAT(val) (val)++ argument
63 #define IGB_DEBUG_STAT_COND(val, cond) argument
64 #define IGB_DEBUG_STAT(val) argument
67 #define IGB_STAT(val) (val)++ argument
/illumos-gate/usr/src/cmd/cpc/common/
H A Dstrtoset.c53 uint64_t val; member
206 pic(int tok, char *val) in pic() argument
217 if (val == NULL || val[0] == '\0') { in pic()
276 if (val != NULL) { in doattr()
277 tmp->val = strtoll(val, &endptr, 0); in doattr()
278 if (endptr == val) { in doattr()
289 tmp->val = 1; in doattr()
349 char *val; in cpc_strtoset() local
371 attrs[i]->val = i; in cpc_strtoset()
606 attr->val = 1; in smt_special()
[all …]
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200_hw.c90 uint8_t val) in ipw2200_csr_put8() argument
97 uint16_t val) in ipw2200_csr_put16() argument
105 uint32_t val) in ipw2200_csr_put32() argument
142 uint16_t val) in ipw2200_imem_put16() argument
150 uint32_t val) in ipw2200_imem_put32() argument
167 uint16_t val; in ipw2200_rom_get16() local
204 val = 0; in ipw2200_rom_get16()
220 return (BE_16(val)); in ipw2200_rom_get16()
344 uint8_t val; in ipw2200_load_uc() local
347 if (val & 1) in ipw2200_load_uc()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c349 stop = (unsigned char *)val; in ldif_put_type_and_value_with_options()
350 if ( val && vlen > 0 ) { in ldif_put_type_and_value_with_options()
352 stop = (unsigned char *) (val + vlen); in ldif_put_type_and_value_with_options()
354 if ( !LDIF_SAFE_INITCHAR( val[0] )) { in ldif_put_type_and_value_with_options()
358 if ( !LDIF_CONSERVATIVE_INITCHAR( val[0] ) || in ldif_put_type_and_value_with_options()
359 !LDIF_CONSERVATIVE_FINALCHAR( val[vlen-1] )) { in ldif_put_type_and_value_with_options()
366 for ( byte = (unsigned char *) val; byte < stop; in ldif_put_type_and_value_with_options()
403 ldif_put_type_and_value_with_options( out, t, val, vlen, 0 ); in ldif_put_type_and_value()
510 ldif_type_and_value_with_options( char *type, char *val, int vlen, in ldif_type_and_value_with_options() argument
528 ldif_type_and_value( char *type, char *val, int vlen ) in ldif_type_and_value() argument
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_ring.c111 rdsv3_ib_ring_alloc(struct rdsv3_ib_work_ring *ring, uint32_t val, in rdsv3_ib_ring_alloc() argument
119 "ring %p val %u next %u free %u", ring, val, in rdsv3_ib_ring_alloc()
122 if (val && avail) { in rdsv3_ib_ring_alloc()
123 ret = min(val, avail); in rdsv3_ib_ring_alloc()
134 rdsv3_ib_ring_free(struct rdsv3_ib_work_ring *ring, uint32_t val) in rdsv3_ib_ring_free() argument
136 ring->w_free_ptr = (ring->w_free_ptr + val) % ring->w_nr; in rdsv3_ib_ring_free()
137 atomic_add_32(&ring->w_free_ctr, val); in rdsv3_ib_ring_free()
144 rdsv3_ib_ring_unalloc(struct rdsv3_ib_work_ring *ring, uint32_t val) in rdsv3_ib_ring_unalloc() argument
146 ring->w_alloc_ptr = (ring->w_alloc_ptr - val) % ring->w_nr; in rdsv3_ib_ring_unalloc()
147 ring->w_alloc_ctr -= val; in rdsv3_ib_ring_unalloc()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dsdn.c87 if (sdn.val <= 0) in fdprintsdn()
99 if (-1000. < sdn.val && sdn.val < 10000.) { in fdprintsdn()
104 sprintf (dec, "%.3f", sdn.val); in fdprintsdn()
123 (void)fdprintf(fd, "%.3f", sdn.val); in fdprintsdn()
151 sdn.val = 10; in _getsdn()
157 sdn.val = 12; in _getsdn()
163 sdn.val = N_COMPRESSED; in _getsdn()
169 sdn.val = strtod(str, &rest); in _getsdn()
170 if (sdn.val <= 0) { in _getsdn()
/illumos-gate/usr/src/cmd/sendmail/db/hsearch/
H A Dhsearch.c87 DBT key, val; local
94 memset(&val, 0, sizeof(val));
100 val.data = item.data;
101 val.size = strlen(item.data) + 1;
108 dbp->put(dbp, NULL, &key, &val, DB_NOOVERWRITE)) == 0)
112 if ((errno = dbp->get(dbp, NULL, &key, &val, 0)) == 0)
119 if ((errno = dbp->get(dbp, NULL, &key, &val, 0)) != 0) {
124 item.data = (char *)val.data;
/illumos-gate/usr/src/cmd/pcidr/
H A Dpcidr_common.c249 char *val, *name; in pcidr_check_attrs() local
252 val = drp->class; in pcidr_check_attrs()
255 fn, name, val); in pcidr_check_attrs()
260 val = drp->subclass; in pcidr_check_attrs()
263 fn, name, val); in pcidr_check_attrs()
268 val = drp->pub_name; in pcidr_check_attrs()
271 fn, name, val); in pcidr_check_attrs()
276 val = drp->dr_req_type; in pcidr_check_attrs()
280 fn, name, val); in pcidr_check_attrs()
285 val = drp->dr_ap_id; in pcidr_check_attrs()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/
H A Dkmdb_promif_isadep.c82 kmdb_prom_free_ddi_prop(char *val) in kmdb_prom_free_ddi_prop() argument
118 char *val; in kmdb_prom_get_tem_size() local
121 val = kmdb_prom_get_ddi_prop(kav, "screen-#rows"); in kmdb_prom_get_tem_size()
122 if (val != NULL) { in kmdb_prom_get_tem_size()
123 u = strtoul(val, NULL, 10); in kmdb_prom_get_tem_size()
126 val = kmdb_prom_get_ddi_prop(kav, "screen-#cols"); in kmdb_prom_get_tem_size()
127 if (val != NULL) { in kmdb_prom_get_tem_size()
128 u = strtoul(val, NULL, 10); in kmdb_prom_get_tem_size()
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/
H A Dadm1026.c399 *val = i2c_tran_pointer->i2c_rbuf[0]; in adm1026_get8()
401 reg, *val)); in adm1026_get8()
423 i2c_tran_pointer->i2c_wbuf[1] = val; in adm1026_put8()
443 uint8_t val = 0; in adm1026_send8() local
448 val &= ~reg_mask; in adm1026_send8()
449 val |= (reg_val & reg_mask); in adm1026_send8()
470 (uint8_t)(val >> OUTPUT_SHIFT), in adm1026_set_output()
492 *val = reg_val; in adm1026_get_output()
521 uint32_t m = mask, v = val; in adm1026_set_config()
568 *val = 0; in adm1026_get_config()
[all …]

12345678910>>...94