/titanic_44/usr/src/lib/sun_fc/common/ |
H A D | TgtFCHBAPort.cc | 232 HBA_PORTATTRIBUTES attrs = getPortAttributes(tmp); in TgtFCHBAPort() local 233 memcpy(&tmp, &attrs.PortWWN, 8); in TgtFCHBAPort() 235 memcpy(&tmp, &attrs.NodeWWN, 8); in TgtFCHBAPort() 250 fc_tgt_hba_port_attributes_t attrs; in getPortAttributes() local 272 fctio.fctio_olen = (uint32_t)(sizeof (attrs)); in getPortAttributes() 273 fctio.fctio_obuf = (uint64_t)(uintptr_t)&attrs; in getPortAttributes() 277 stateChange = attrs.lastChange; in getPortAttributes() 279 attributes.PortFcId = attrs.PortFcId; in getPortAttributes() 280 attributes.PortType = attrs.PortType; in getPortAttributes() 281 attributes.PortState = attrs.PortState; in getPortAttributes() [all …]
|
H A D | FCHBA.cc | 62 HBA_ADAPTERATTRIBUTES attrs = getHBAAttributes(); in FCHBA() local 63 name = attrs.Manufacturer; in FCHBA() 65 name += attrs.Model; in FCHBA() 68 for (int i = 1; i < attrs.NumberOfPorts; i++) { in FCHBA() 172 fc_hba_adapter_attributes_t attrs; in getHBAAttributes() local 177 fcio.fcio_olen = sizeof (attrs); in getHBAAttributes() 179 fcio.fcio_obuf = (caddr_t)&attrs; in getHBAAttributes() 198 attributes.NumberOfPorts = attrs.NumberOfPorts; in getHBAAttributes() 199 attributes.VendorSpecificID = attrs.VendorSpecificID; in getHBAAttributes() 200 memcpy(attributes.Manufacturer, attrs.Manufacturer, 64); in getHBAAttributes() [all …]
|
H A D | FCHBAPort.cc | 464 HBA_PORTATTRIBUTES attrs = getPortAttributes(tmp); in FCHBAPort() local 465 memcpy(&tmp, &attrs.PortWWN, 8); in FCHBAPort() 467 memcpy(&tmp, &attrs.NodeWWN, 8); in FCHBAPort() 558 fc_hba_port_npiv_attributes_t attrs; in getPortNPIVAttributes() local 565 fcio.fcio_olen = sizeof(attrs); in getPortNPIVAttributes() 567 fcio.fcio_obuf = (caddr_t)&attrs; in getPortNPIVAttributes() 571 stateChange = attrs.lastChange; in getPortNPIVAttributes() 572 attributes.npivflag = attrs.npivflag; in getPortNPIVAttributes() 573 memcpy(&attributes.NodeWWN, &attrs.NodeWWN, 8); in getPortNPIVAttributes() 574 memcpy(&attributes.PortWWN, &attrs.PortWWN, 8); in getPortNPIVAttributes() [all …]
|
H A D | TgtFCHBA.cc | 65 HBA_ADAPTERATTRIBUTES attrs = getHBAAttributes(); in TgtFCHBA() local 66 name = attrs.Manufacturer; in TgtFCHBA() 68 name += attrs.Model; in TgtFCHBA() 94 fc_tgt_hba_adapter_attributes_t attrs; in getHBAAttributes() local 125 fctio.fctio_olen = (uint32_t)(sizeof (attrs)); in getHBAAttributes() 127 fctio.fctio_obuf = (uint64_t)(uintptr_t)&attrs; in getHBAAttributes() 147 attributes.NumberOfPorts = attrs.NumberOfPorts; in getHBAAttributes() 148 attributes.VendorSpecificID = attrs.VendorSpecificID; in getHBAAttributes() 149 memcpy(attributes.Manufacturer, attrs.Manufacturer, 64); in getHBAAttributes() 150 memcpy(attributes.SerialNumber, attrs.SerialNumber, 64); in getHBAAttributes() [all …]
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_hba_fru.c | 235 fca_port_attrs_t *attrs = &port_info->pi_attrs; in ql_populate_hba_fru_details() local 244 attrs = &port_info->pi_attrs; in ql_populate_hba_fru_details() 247 (void) snprintf(attrs->manufacturer, FCHBA_MANUFACTURER_LEN, in ql_populate_hba_fru_details() 249 (void) snprintf(attrs->driver_name, FCHBA_DRIVER_NAME_LEN, in ql_populate_hba_fru_details() 251 (void) snprintf(attrs->driver_version, FCHBA_DRIVER_VERSION_LEN, in ql_populate_hba_fru_details() 255 attrs->serial_number, FCHBA_SERIAL_NUMBER_LEN)) == -1) { in ql_populate_hba_fru_details() 256 attrs->serial_number[0] = '\0'; in ql_populate_hba_fru_details() 258 attrs->hardware_version[0] = '\0'; in ql_populate_hba_fru_details() 261 (void) snprintf(attrs->firmware_version, FCHBA_FIRMWARE_VERSION_LEN, in ql_populate_hba_fru_details() 271 int8_t *orv = &*attrs->option_rom_version; in ql_populate_hba_fru_details() [all …]
|
/titanic_44/usr/src/lib/print/libprint/common/ |
H A D | nss_ldap.c | 159 static NSL_RESULT _addLDAPmodValue(LDAPMod ***attrs, char *type, char *value); 160 static NSL_RESULT _modLDAPmodValue(LDAPMod ***attrs, char *type, char *value); 162 char **attrList, LDAPMod ***attrs); 164 char **attrList, char ***oldKVPList, LDAPMod ***attrs); 174 static NSL_RESULT _attrAddKVP(LDAPMod ***attrs, char **kvpList, int kvpExists); 866 LDAPMod **attrs = NULL; in _addNewPrinterObject() local 890 attrList, &attrs); in _addNewPrinterObject() 894 (char *)printerDN, attrs); in _addNewPrinterObject() 907 (void) ldap_mods_free(attrs, 1); in _addNewPrinterObject() 963 LDAPMod **attrs = NULL; in _modifyPrinterObject() local [all …]
|
H A D | ns_cmn_kvp.c | 122 ns_kvp_t *kvp, **attrs; in ns_r_get_value() local 147 for (attrs = printer->attributes; attrs != NULL && *attrs != NULL; in ns_r_get_value() 148 attrs++) { in ns_r_get_value() 151 if ((strcmp((*attrs)->key, NS_KEY_ALL) == 0) || in ns_r_get_value() 152 (strcmp((*attrs)->key, NS_KEY_GROUP) == 0)) { in ns_r_get_value() 155 for (printers = string_to_value((*attrs)->key, in ns_r_get_value() 156 (*attrs)->value); in ns_r_get_value() 166 } else if (strcmp((*attrs)->key, NS_KEY_LIST) == 0) { in ns_r_get_value() 169 for (printers = string_to_value((*attrs)->key, in ns_r_get_value() 170 (*attrs)->value); in ns_r_get_value() [all …]
|
/titanic_44/usr/src/cmd/tnf/prex/ |
H A D | prbk.c | 82 tnfctl_trace_attrs_t attrs; in prbk_buffer_list() local 84 if (check_kernelmode(&attrs)) in prbk_buffer_list() 86 if (attrs.trace_buf_state == TNFCTL_BUF_NONE) { in prbk_buffer_list() 90 attrs.trace_buf_size); in prbk_buffer_list() 91 if (attrs.trace_buf_state == TNFCTL_BUF_BROKEN) { in prbk_buffer_list() 107 tnfctl_trace_attrs_t attrs; in prbk_buffer_alloc() local 109 if (check_kernelmode(&attrs)) in prbk_buffer_alloc() 112 if (attrs.trace_buf_state != TNFCTL_BUF_NONE) { in prbk_buffer_alloc() 117 if (size < attrs.trace_min_size) { in prbk_buffer_alloc() 121 size, attrs.trace_min_size, attrs.trace_min_size); in prbk_buffer_alloc() [all …]
|
H A D | list.c | 227 char *attrs; in list_getattrs() local 236 attrs = malloc(2); in list_getattrs() 237 if (attrs) in list_getattrs() 238 attrs[0] = '\0'; in list_getattrs() 239 return (attrs); in list_getattrs() 280 attrs = (char *) malloc(len); in list_getattrs() 282 if (attrs) { in list_getattrs() 283 (void) strcpy(attrs, buffer); in list_getattrs() 284 (void) strcat(attrs, p_state.attr_string); in list_getattrs() 287 return (attrs); in list_getattrs() [all …]
|
/titanic_44/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lpstat.c | 146 papi_attribute_t **attrs = papiPrinterGetAttributeList(p); in get_device_uri() local 148 (void) papiAttributeListGetString(attrs, NULL, in get_device_uri() 204 papi_attribute_t **attrs = papiPrinterGetAttributeList(printer); in report_device() local 210 status = papiAttributeListGetString(attrs, NULL, in report_device() 213 status = papiAttributeListGetString(attrs, NULL, in report_device() 220 (void) papiAttributeListGetString(attrs, NULL, in report_device() 256 papi_attribute_t **attrs = papiPrinterGetAttributeList(printer); in report_accepting() local 261 status = papiAttributeListGetString(attrs, NULL, in report_accepting() 264 status = papiAttributeListGetString(attrs, NULL, in report_accepting() 270 (void) papiAttributeListGetBoolean(attrs, NULL, in report_accepting() [all …]
|
/titanic_44/usr/src/lib/libdiskmgt/common/ |
H A D | alias.c | 41 static int get_status(disk_t *diskp, int fd, nvlist_t *attrs); 60 nvlist_t *attrs = NULL; in alias_get_attributes() local 69 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in alias_get_attributes() 75 if (nvlist_add_uint32(attrs, DM_LUN, ap->lun) != 0) { in alias_get_attributes() 76 nvlist_free(attrs); in alias_get_attributes() 81 if (nvlist_add_uint32(attrs, DM_TARGET, ap->target) != 0) { in alias_get_attributes() 82 nvlist_free(attrs); in alias_get_attributes() 89 if (nvlist_add_string(attrs, DM_WWN, ap->wwn) != 0) { in alias_get_attributes() 90 nvlist_free(attrs); in alias_get_attributes() 102 if ((*errp = get_status(dp->p.disk, fd, attrs)) != 0) { in alias_get_attributes() [all …]
|
H A D | controller.c | 64 nvlist_t *attrs; in controller_get_attributes() local 66 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in controller_get_attributes() 73 if (nvlist_add_string(attrs, DM_CTYPE, cp->ctype) != 0) { in controller_get_attributes() 74 nvlist_free(attrs); in controller_get_attributes() 80 if (nvlist_add_boolean(attrs, DM_MULTIPLEX) != 0) { in controller_get_attributes() 81 nvlist_free(attrs); in controller_get_attributes() 89 if (nvlist_add_boolean(attrs, DM_FAST) != 0) { in controller_get_attributes() 90 nvlist_free(attrs); in controller_get_attributes() 96 if (nvlist_add_boolean(attrs, DM_WIDE) != 0) { in controller_get_attributes() 97 nvlist_free(attrs); in controller_get_attributes() [all …]
|
H A D | media.c | 49 static int get_attrs(disk_t *dp, int fd, nvlist_t *attrs); 122 nvlist_t *attrs = NULL; in media_get_attributes() local 130 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in media_get_attributes() 137 if ((*errp = get_attrs(dp->p.disk, fd, attrs)) != 0) { in media_get_attributes() 138 nvlist_free(attrs); in media_get_attributes() 139 attrs = NULL; in media_get_attributes() 146 return (attrs); in media_get_attributes() 370 get_attrs(disk_t *dp, int fd, nvlist_t *attrs) argument 387 if (nvlist_add_boolean(attrs, DM_FDISK) != 0) { 393 if (nvlist_add_boolean(attrs, DM_REMOVABLE) != 0) { [all …]
|
H A D | path.c | 37 static int add_path_state(descriptor_t *dp, nvlist_t *attrs); 38 static int add_wwn(descriptor_t *dp, nvlist_t *attrs); 61 nvlist_t *attrs = NULL; in path_get_attributes() local 65 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in path_get_attributes() 70 if (nvlist_add_string(attrs, DM_CTYPE, pp->ctype) != 0) { in path_get_attributes() 71 nvlist_free(attrs); in path_get_attributes() 82 if (add_path_state(dp, attrs) != 0) { in path_get_attributes() 83 nvlist_free(attrs); in path_get_attributes() 87 if (add_wwn(dp, attrs) != 0) { in path_get_attributes() 88 nvlist_free(attrs); in path_get_attributes() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 63 int attrs = 0; in krb5int_pbkdf2_hmac_sha1() local 70 tmpl[attrs].type = CKA_CLASS; in krb5int_pbkdf2_hmac_sha1() 71 tmpl[attrs].pValue = &class; in krb5int_pbkdf2_hmac_sha1() 72 tmpl[attrs].ulValueLen = sizeof (class); in krb5int_pbkdf2_hmac_sha1() 73 attrs++; in krb5int_pbkdf2_hmac_sha1() 79 tmpl[attrs].type = CKA_KEY_TYPE; in krb5int_pbkdf2_hmac_sha1() 80 tmpl[attrs].pValue = &keytype; in krb5int_pbkdf2_hmac_sha1() 81 tmpl[attrs].ulValueLen = sizeof (keytype); in krb5int_pbkdf2_hmac_sha1() 82 attrs++; in krb5int_pbkdf2_hmac_sha1() 94 tmpl[attrs].type = CKA_VALUE_LEN; in krb5int_pbkdf2_hmac_sha1() [all …]
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | add.c | 61 ldap_add( LDAP *ld, const char *dn, LDAPMod **attrs ) in ldap_add() argument 67 if ( ldap_add_ext( ld, dn, attrs, NULL, NULL, &msgid ) in ldap_add() 82 ldap_add_ext( LDAP *ld, const char *dn, LDAPMod **attrs, in ldap_add_ext() argument 110 if ( !NSLDAPI_VALID_NONEMPTY_LDAPMOD_ARRAY( attrs ) in ldap_add_ext() 129 attrs )) != 0 ) { in ldap_add_ext() 152 for ( i = 0; attrs[i] != NULL; i++ ) { in ldap_add_ext() 153 if ( ( attrs[i]->mod_op & LDAP_MOD_BVALUES) != 0 ) { in ldap_add_ext() 154 rc = ber_printf( ber, "{s[V]}", attrs[i]->mod_type, in ldap_add_ext() 155 attrs[i]->mod_bvalues ); in ldap_add_ext() 157 rc = ber_printf( ber, "{s[v]}", attrs[i]->mod_type, in ldap_add_ext() [all …]
|
H A D | url.c | 185 char *urlcopy, *attrs, *scope, *extensions = NULL, *p, *q; in nsldapi_url_parse() local 278 attrs = NULL; in nsldapi_url_parse() 280 ( attrs = strchr( ludp->lud_dn, '?' )) != NULL ) { in nsldapi_url_parse() 282 *attrs++ = '\0'; in nsldapi_url_parse() 285 if (( p = strchr( attrs, '?' )) != NULL ) { in nsldapi_url_parse() 337 if ( attrs != NULL && *attrs != '\0' ) { in nsldapi_url_parse() 338 nsldapi_hex_unescape( attrs ); in nsldapi_url_parse() 339 for ( nattrs = 1, p = attrs; *p != '\0'; ++p ) { in nsldapi_url_parse() 351 for ( i = 0, p = attrs; i < nattrs; ++i ) { in nsldapi_url_parse() 567 char *attrs, in ldap_dns_to_url() argument [all …]
|
/titanic_44/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasGetVendorLibraryAttributes.c | 34 Sun_sasGetVendorLibraryAttributes(SMHBA_LIBRARYATTRIBUTES *attrs) { in Sun_sasGetVendorLibraryAttributes() argument 38 if (attrs == NULL) { in Sun_sasGetVendorLibraryAttributes() 42 (void) strlcpy(attrs->LibPath, SUN_SMHBA_VENDOR_LIB_PATH, in Sun_sasGetVendorLibraryAttributes() 43 sizeof (attrs->LibPath)); in Sun_sasGetVendorLibraryAttributes() 44 (void) strlcpy(attrs->VName, SUN_SMHBA_VENDOR_LIB, in Sun_sasGetVendorLibraryAttributes() 45 sizeof (attrs->VName)); in Sun_sasGetVendorLibraryAttributes() 46 (void) strlcpy(attrs->VVersion, SUN_SMHBA_VENDOR_LIB_VERSION, in Sun_sasGetVendorLibraryAttributes() 47 sizeof (attrs->VVersion)); in Sun_sasGetVendorLibraryAttributes()
|
/titanic_44/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_strict.c | 122 struct vattr attrs; in c_strict_check_cached_object() local 147 attrs.va_mask = AT_ALL; in c_strict_check_cached_object() 148 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_strict_check_cached_object() 151 cp->c_attr = attrs; in c_strict_check_cached_object() 195 attrs.va_mask = AT_ALL; in c_strict_check_cached_object() 196 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_strict_check_cached_object() 202 if ((!C_CACHE_VALID(mdp->md_vattr.va_mtime, attrs.va_mtime) || in c_strict_check_cached_object() 203 (cp->c_size != attrs.va_size)) && in c_strict_check_cached_object() 240 attrs.va_mask = AT_ALL; in c_strict_check_cached_object() 241 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_strict_check_cached_object() [all …]
|
H A D | cachefs_cod.c | 114 struct vattr attrs; in c_cod_check_cached_object() local 171 attrs.va_mask = AT_ALL; in c_cod_check_cached_object() 172 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_cod_check_cached_object() 178 if ((!C_CACHE_VALID(mdp->md_vattr.va_mtime, attrs.va_mtime) || in c_cod_check_cached_object() 179 (cp->c_size != attrs.va_size)) && in c_cod_check_cached_object() 211 attrs.va_mask = AT_ALL; in c_cod_check_cached_object() 212 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_cod_check_cached_object() 217 cp->c_size = attrs.va_size; in c_cod_check_cached_object() 227 if (!C_CACHE_VALID(mdp->md_vattr.va_ctime, attrs.va_ctime)) { in c_cod_check_cached_object() 231 cp->c_attr = attrs; in c_cod_check_cached_object() [all …]
|
H A D | cachefs_noopc.c | 102 struct vattr attrs; in c_nop_check_cached_object() local 128 attrs.va_mask = AT_ALL; in c_nop_check_cached_object() 129 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_nop_check_cached_object() 134 cp->c_attr = attrs; in c_nop_check_cached_object() 135 if (attrs.va_size > cp->c_size) in c_nop_check_cached_object() 136 cp->c_size = attrs.va_size; in c_nop_check_cached_object() 155 struct vattr attrs; in c_nop_modify_cached_object() local 182 attrs.va_mask = AT_ALL; in c_nop_modify_cached_object() 183 error = VOP_GETATTR(cp->c_backvp, &attrs, 0, cr, NULL); in c_nop_modify_cached_object() 187 cp->c_attr = attrs; in c_nop_modify_cached_object() [all …]
|
/titanic_44/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgettpent.c | 241 char *attrs = tpstrp->attrs; in tpstr_to_ent() local 259 if (attrs && *attrs != '\0' && *attrs != '#' && *attrs != '\n') in tpstr_to_ent() 260 *errstrp = attrs; in tpstr_to_ent() 267 if (attrs && *attrs != '\0' && *attrs != '#' && *attrs != '\n') in tpstr_to_ent() 268 *errstrp = attrs; in tpstr_to_ent() 271 if (attrs == NULL || *attrs == '\0' || *attrs == '#' || in tpstr_to_ent() 272 *attrs == '\n') { in tpstr_to_ent() 286 kv = _str2kva(attrs, KV_ASSIGN, KV_DELIMITER); in tpstr_to_ent() 292 attrs); in tpstr_to_ent()
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | radius_auth.c | 163 req->attrs[0].attr_type_code = RAD_USER_NAME; in set_radius_attrs() 164 (void) strncpy((char *)req->attrs[0].attr_value, in set_radius_attrs() 167 req->attrs[0].attr_value_len = strlen(target_chap_name); in set_radius_attrs() 169 req->attrs[1].attr_type_code = RAD_CHAP_PASSWORD; in set_radius_attrs() 171 (char *)req->attrs[1].attr_value, in set_radius_attrs() 172 min(response_length, sizeof (req->attrs[1].attr_value))); in set_radius_attrs() 174 req->attrs[1].attr_value_len = response_length; in set_radius_attrs() 176 req->attrs[2].attr_type_code = RAD_CHAP_CHALLENGE; in set_radius_attrs() 178 (char *)req->attrs[2].attr_value, in set_radius_attrs() 179 min(challenge_length, sizeof (req->attrs[2].attr_value))); in set_radius_attrs() [all …]
|
/titanic_44/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_radiusauth.c | 162 req->attrs[0].attr_type_code = RAD_USER_NAME; in set_radius_attrs() 163 (void) strncpy((char *)req->attrs[0].attr_value, in set_radius_attrs() 166 req->attrs[0].attr_value_len = strlen(target_chap_name); in set_radius_attrs() 168 req->attrs[1].attr_type_code = RAD_CHAP_PASSWORD; in set_radius_attrs() 170 (char *)req->attrs[1].attr_value, in set_radius_attrs() 171 min(response_length, sizeof (req->attrs[1].attr_value))); in set_radius_attrs() 173 req->attrs[1].attr_value_len = 16; in set_radius_attrs() 175 req->attrs[2].attr_type_code = RAD_CHAP_CHALLENGE; in set_radius_attrs() 177 (char *)req->attrs[2].attr_value, in set_radius_attrs() 178 min(challenge_length, sizeof (req->attrs[2].attr_value))); in set_radius_attrs() [all …]
|
/titanic_44/usr/src/cmd/keyserv/ |
H A D | chkey_common.c | 482 ns_ldap_attr_t *attrs; in ldap_attr_mod() local 542 if ((attrs = (ns_ldap_attr_t *)calloc(1, in ldap_attr_mod() 545 attrs->attrname = "nisPublicKey"; in ldap_attr_mod() 546 attrs->attrvalue = alist[0]; in ldap_attr_mod() 547 attrs->value_count = keycount[0]; in ldap_attr_mod() 548 *pkeyattrs = attrs; in ldap_attr_mod() 550 if ((attrs = (ns_ldap_attr_t *)calloc(1, in ldap_attr_mod() 553 attrs->attrname = "nisSecretKey"; in ldap_attr_mod() 554 attrs->attrvalue = alist[1]; in ldap_attr_mod() 555 attrs->value_count = keycount[1]; in ldap_attr_mod() [all …]
|