| /illumos-gate/usr/src/uts/i86pc/boot/ |
| H A D | boot_vga.c | 68 static void vga_set_crtc(int index, unsigned char val); 69 static unsigned char vga_get_crtc(int index); 74 unsigned char val, msl; local 91 val = vga_get_crtc(VGA_CRTC_CSSL); 92 vga_set_crtc(VGA_CRTC_CSSL, (val & 0xc) | ((msl - 2) & 0x1f)); 109 unsigned short val; local 112 val = (color << 8) | ' '; 115 VGA_SCREEN[i] = val; 132 unsigned short val; local 166 vga_set_crtc(int index, unsigned char val) argument 173 vga_get_crtc(int index) argument [all...] |
| /illumos-gate/usr/src/lib/libtnf/ |
| H A D | access.c | 51 tnf_get_block_absolute(TNF *tnf, unsigned index) argument 53 if (index >= tnf->block_count) 65 (caddr_t)_GET_INDEX_BLOCK(tnf, index))); 73 unsigned index; local 79 index = _GET_BLOCK_INDEX(tnf, bhdr); 81 return (tnf_get_block_absolute(tnf, index + adjust)); 88 caddr_t val; local 94 val = DATUM_VAL(datum); 95 bhdr = _GET_BLOCK(info->tnf, val); 97 return (((caddr_t)bhdr == val) 105 caddr_t val; local 126 caddr_t val, nval, bval, blim; local [all...] |
| /illumos-gate/usr/src/uts/common/io/igb/ |
| H A D | igb_osdep.c | 35 uint16_t val = hw->bus.pci_cmd_word | CMD_MEM_WRT_INVALIDATE; local 37 e1000_write_pci_cfg(hw, PCI_COMMAND_REGISTER, &val); 43 uint16_t val = hw->bus.pci_cmd_word & ~CMD_MEM_WRT_INVALIDATE; local 45 e1000_write_pci_cfg(hw, PCI_COMMAND_REGISTER, &val); 113 e1000_rar_clear(struct e1000_hw *hw, uint32_t index) argument 121 E1000_WRITE_REG_ARRAY(hw, E1000_RA, ((index << 1) + 1), rar_high); 129 e1000_rar_set_vmdq(struct e1000_hw *hw, const uint8_t *addr, uint32_t index, argument 162 E1000_WRITE_REG_ARRAY(hw, E1000_RA, (index << 1), rar_low); 163 E1000_WRITE_REG_ARRAY(hw, E1000_RA, ((index << 1) + 1), rar_high);
|
| /illumos-gate/usr/src/uts/common/io/rge/ |
| H A D | rge_kstats.c | 36 offset_t index; member in struct:__anon6477 156 rge_m_stat(void *arg, uint_t stat, uint64_t *val) argument 168 *val = rgep->param_link_speed * 1000000ull; 172 *val = RGE_BSWAP_32(bstp->multi_rcv); 176 *val = RGE_BSWAP_64(bstp->brdcst_rcv); 180 *val = RGE_BSWAP_16(bstp->in_discards); 184 *val = RGE_BSWAP_32(bstp->rcv_err); 188 *val = RGE_BSWAP_64(bstp->xmt_err); 192 *val = RGE_BSWAP_32(bstp->xmt_1col + bstp->xmt_mcol); 196 *val [all...] |
| /illumos-gate/usr/src/uts/common/io/e1000g/ |
| H A D | e1000g_osdep.c | 32 uint16_t val = hw->bus.pci_cmd_word | CMD_MEM_WRT_INVALIDATE; local 34 e1000_write_pci_cfg(hw, PCI_COMMAND_REGISTER, &val); 40 uint16_t val = hw->bus.pci_cmd_word & ~CMD_MEM_WRT_INVALIDATE; local 42 e1000_write_pci_cfg(hw, PCI_COMMAND_REGISTER, &val); 145 e1000_rar_clear(struct e1000_hw *hw, uint32_t index) argument 153 E1000_WRITE_REG_ARRAY(hw, E1000_RA, ((index << 1) + 1), rar_high);
|
| /illumos-gate/usr/src/uts/common/io/softmac/ |
| H A D | softmac_stat.c | 259 softmac_m_stat(void *arg, uint_t stat, uint64_t *val) argument 263 uint_t index; local 272 for (index = 0; index < SOFTMAC_DRIVER_SI_SZ; index++) { 273 if (stat == i_softmac_driver_si[index].ssi_stat) { 274 ssip = &i_softmac_driver_si[index]; 283 val)) != 0) 285 val); 294 for (index [all...] |
| /illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
| H A D | mp_utils.c | 199 uint64_t *val = NULL; local 209 int index = -1; local 236 index = MP_OBJECT_TYPE_PLUGIN; 241 index = MP_OBJECT_TYPE_MULTIPATH_LU; 246 index = MP_OBJECT_TYPE_PATH_LU; 251 index = MP_OBJECT_TYPE_INITIATOR_PORT; 256 index = MP_OBJECT_TYPE_TARGET_PORT_GROUP; 261 index = MP_OBJECT_TYPE_TARGET_PORT; 266 index = MP_OBJECT_TYPE_DEVICE_PRODUCT; 282 index [all...] |
| /illumos-gate/usr/src/lib/libnisdb/ |
| H A D | ldap_ldap.c | 44 __nis_value_t *val; local 53 val = getMappingElement(e, mit_any, rv, NULL); 58 return (val); 64 __nis_value_t *val, *eVal = 0; local 90 eVal->val[0].length > 0 && 91 eVal->val[0].value != 0) 92 ename = eVal->val[0].value; 101 filter = eVal->val[0].value; 178 for (i = 0, val = 0; i < nrv; i++) { 182 eVal = concatenateValues(val, 233 storeLDAP(__nis_mapping_item_t *item, int index, int numIndexes, __nis_value_t *val, __nis_object_dn_t *defDN, char **dn, int numDN) argument [all...] |
| H A D | ldap_print.c | 35 __nis_value_t *val = getMappingFormat(f, 0, fa_any, 0, 0); local 39 if (val == 0) 42 for (i = 0; i < val->numVals; i++) { 43 c2buf(myself, val->val[i].value, val->val[i].length); 45 freeValue(val, 1); 50 __nis_value_t *val = getMappingFormatArray(a, 0, fa_any, 0, 0); local 53 if (val ! 104 __nis_value_t *val = getMappingItem(i, native, 0, 0, NULL); local 240 printObjName(__nis_index_t *index, char *name) argument [all...] |
| /illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
| H A D | cap.c | 153 Dbg_cap_val_entry(Lm_list *lml, dbg_state_t dbg_state, Xword tag, Xword val, argument 163 conv_cap_tag(tag, 0, &inv_buf), conv_cap_val(tag, val, mach, 0, 218 char index[INDEX_STR_SIZE]; local 220 (void) snprintf(index, INDEX_STR_SIZE, MSG_ORIG(MSG_FMT_INDEX), ndx); 238 dbg_print(lml, MSG_INTL(MSG_CAP_ELF_ENTRY), index,
|
| /illumos-gate/usr/src/cmd/streams/log/ |
| H A D | strace.c | 119 static int index = 1; local 146 if (index >= ac) 152 if (strcmp(av[index], "-") == 0) { 154 index++; 162 if ((index+2) >= ac) 165 tp->ti_mid = convarg(av[index++]); 166 tp->ti_sid = convarg(av[index++]); 167 tp->ti_level = convarg(av[index++]); 186 int val; local
|
| /illumos-gate/usr/src/lib/libshare/smbfs/ |
| H A D | libshare_smbfs.c | 193 range_check_validator(int index, char *section, char *value) argument 204 int val; local 205 val = strtoul(value, NULL, 0); 206 if (val < smbclnt_proto_options[index].minval || 207 val > smbclnt_proto_options[index].maxval) 218 string_length_check_validator(int index, char *section, char *value) argument 226 if (strlen(value) > smbclnt_proto_options[index].maxval) 236 yes_no_validator(int index, cha argument 255 ip_address_validator(int index, char *section, char *value) argument 271 minauth_validator(int index, char *section, char *value) argument 289 signing_validator(int index, char *section, char *value) argument 305 password_validator(int index, char *section, char *value) argument 595 smbfs_validate_proto_prop(int index, char *section, char *name, char *value) argument 611 smbfs_save_property(int index, char *section, char *value) argument [all...] |
| /illumos-gate/usr/src/lib/libpp/common/ |
| H A D | ppop.c | 44 set(register long* p, register long op, int val) argument 53 if (val) 110 int index; local 188 mp->bound[index] = fp; 193 index = token == T_HEADER ? INC_STANDARD : INC_LOCAL; 629 dp->index = INC_LOCAL + pp.ignoresrc != 0;
|
| /illumos-gate/usr/src/cmd/hal/hald/ |
| H A D | property.c | 340 gboolean val) 346 prop->readonly = val; 349 prop->persistence = val; 352 prop->callout = val; 421 hal_property_strlist_remove_elem (HalProperty *prop, guint index) argument 431 elem = g_slist_nth (prop->v.strlist_value, index); 338 hal_property_set_attribute(HalProperty *prop, enum PropertyAttribute attr, gboolean val) argument
|
| /illumos-gate/usr/src/cmd/ldmad/ |
| H A D | mdesc_mutable.h | 118 uint64_t index; member in union:md_prop::__anon740::__anon741::__anon742 120 } val; member in struct:md_prop::__anon740::__anon741
|
| /illumos-gate/usr/src/uts/common/io/bge/ |
| H A D | bge_kstats.c | 40 offset_t index; member in struct:__anon4965 222 knp->value.ui64 = bstp->a[ksip->index]; 549 switch (ksip->index) { 571 knp->value.ui64 = bge_mii_get16(bgep, ksip->index); 687 bge_m_stat(void *arg, uint_t stat, uint64_t *val) argument 765 *val = (bgep->link_state != LINK_STATE_UNKNOWN) ? 771 *val = bstp->s.ifHCInMulticastPkts; 773 *val = pstats->ifHCInMulticastPkts; 778 *val = bstp->s.ifHCInBroadcastPkts; 780 *val 1171 bge_rx_ring_stat(mac_ring_driver_t rh, uint_t stat, uint64_t *val) argument [all...] |
| /illumos-gate/usr/src/uts/common/io/chxge/com/ |
| H A D | vsc7321.c | 60 u32 index; member in struct:_cmac_instance 66 static void vsc_read(adapter_t *adapter, u32 addr, u32 *val) argument 81 *val = (vhi << 16) | vlo; 93 u32 val; local 95 (void) t1_tpi_read(adapter, A_ELMER0_GPO, &val); 96 val &= ~1; 97 (void) t1_tpi_write(adapter, A_ELMER0_GPO, val); 99 val |= 0x80001; /* Turn on SPI4_EN, and the MAC itself */ 101 val |= 0x40000; /* Enable 10G section */ 103 val | 240 vsc7321_mac_create(adapter_t *adapter, int index) argument 243 u32 val; local 349 int index = mac->instance->index; local 379 u32 val; local 393 u32 val; local [all...] |
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | schedctl.c | 140 index_t index; local 163 index = (index_t)(ssp - pagep->spc_base); 164 BT_CLEAR(pagep->spc_map, index); 272 schedctl_set_nopreempt(kthread_t *t, short val) argument 275 t->t_schedctl->sc_preemptctl.sc_nopreempt = val; 287 schedctl_set_yield(kthread_t *t, short val) argument 290 t->t_schedctl->sc_preemptctl.sc_yield = val; 475 index_t index; local 532 index = bt_availbit(pagep->spc_map, sc_bitmap_len); 533 ASSERT(index ! [all...] |
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | vgasubr.c | 168 unsigned char index, 169 unsigned char val) 171 PUTB(reg, indexreg, index); 172 PUTB(reg, datareg, val); 180 unsigned char index) 182 PUTB(reg, indexreg, index); 194 int index, 200 PUTB(reg, VGA_DAC_WR_AD, index); 209 int index, 214 PUTB(reg, VGA_DAC_RD_AD, index); 164 vga_set_indexed( struct vgaregmap *reg, int indexreg, int datareg, unsigned char index, unsigned char val) argument 176 vga_get_indexed( struct vgaregmap *reg, int indexreg, int datareg, unsigned char index) argument 192 vga_put_cmap( struct vgaregmap *reg, int index, unsigned char r, unsigned char g, unsigned char b) argument 207 vga_get_cmap( struct vgaregmap *reg, int index, unsigned char *r, unsigned char *g, unsigned char *b) argument [all...] |
| /illumos-gate/usr/src/cmd/cron/ |
| H A D | elm.c | 115 * the index list breaks the keys into time intervals as specified in init. 116 * the index is "shifted" one time interval whenever el_first returns an 122 struct index { struct key *key; struct 123 struct index *right; }; 125 /* index pts to the front of the index list */ 126 static struct index *index = NULL; variable in typeref:struct:index 137 struct index *indprev, *ind; 149 * initialize index, key 409 int ctr, *val; local [all...] |
| /illumos-gate/usr/src/lib/libzpool/common/ |
| H A D | util.c | 45 int index = 0; local 50 index++; 53 u = " KMGTPE"[index]; 55 if (index == 0) { 59 (double)num / (1ULL << 10 * index), u); 62 (double)num / (1ULL << 10 * index), u); 168 u_longlong_t val; local 183 val = strtoull(varval, NULL, 0); 184 if (val > UINT32_MAX) { 202 *var = (uint32_t)val; [all...] |
| /illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
| H A D | obj_mgr.c | 1753 CK_ULONG index; local 1771 obj, &index); 1778 entry = &global_shm->priv_tok_objs[index]; 1783 obj, &index); 1789 entry = &global_shm->publ_tok_objs[index]; 1833 CK_ULONG index, count; local 1841 0, global_shm->num_priv_tok_obj - 1, obj, &index); 1847 if (index > global_shm->num_priv_tok_obj) { 1848 count = index - global_shm->num_priv_tok_obj; 1850 count = global_shm->num_priv_tok_obj - index; 1902 CK_ULONG index; local 1935 object_mgr_search_shm_for_obj( TOK_OBJ_ENTRY *obj_list, CK_ULONG lo, CK_ULONG hi, OBJECT *obj, CK_ULONG *index) argument 1977 CK_ULONG index; local 1978 int val; local 2088 CK_ULONG index; local 2089 int val; local [all...] |
| /illumos-gate/usr/src/lib/libshare/autofs/ |
| H A D | libshare_autofs.c | 60 static int true_false_validator(int index, char *value); 61 static int strlen_validator(int index, char *value); 62 static int range_check_validator(int index, char *value); 112 int index; member in struct:proto_option_defs 420 int index; local 428 index = findprotoopt(name); 429 if (index >= 0) { 431 prop = sa_create_property(proto_options[index].name, value); 469 range_check_validator(int index, char *value) argument 475 int val; local 489 true_false_validator(int index, char *value) argument 509 strlen_validator(int index, char *value) argument 526 autofs_validate_proto_prop(int index, char *name, char *value) argument 545 int index = findprotoopt(name); local [all...] |
| /illumos-gate/usr/src/lib/libsldap/common/ |
| H A D | ns_confmgr.c | 824 char val[BUFSIZE]; local 829 ParamIndexType index; local 882 (void) strcpy(val, NS_LDAP_VERSION_1); 884 val, &error); 886 (void) strcpy(val, NS_LDAP_VERSION_2); 888 val, &error); 897 if (__s_api_get_profiletype(attrname, &index) != 0) 901 switch (index) { 910 (void) __ns_ldap_setParamValue(ptr, index, 926 (void) __ns_ldap_setParamValue(ptr, index, buffe [all...] |
| /illumos-gate/usr/src/cmd/oamuser/user/ |
| H A D | funcs.c | 151 addkey_args(char **argv, int *index) argument 157 char *val = keys[i].newvalue; local 161 if (val == NULL) 164 len = strlen(key) + strlen(val) + 2; 167 (void) snprintf(arg, len, "%s=%s", key, val); 168 argv[(*index)++] = "-K"; 169 argv[(*index)++] = arg; 260 if ((suffix = index(authname, KV_OBJECTCHAR)) != NULL)
|