Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/lib/sun_fc/common/
H A DTgtFCHBAPort.cc233 memcpy(&tmp, &attrs.PortWWN, 8); in TgtFCHBAPort()
235 memcpy(&tmp, &attrs.NodeWWN, 8); in TgtFCHBAPort()
277 stateChange = attrs.lastChange; in getPortAttributes()
279 attributes.PortFcId = attrs.PortFcId; in getPortAttributes()
280 attributes.PortType = attrs.PortType; in getPortAttributes()
333 stateChange = attrs.lastChange; in getDiscoveredAttributes()
335 attributes.PortFcId = attrs.PortFcId; in getDiscoveredAttributes()
336 attributes.PortType = attrs.PortType; in getDiscoveredAttributes()
376 stateChange = attrs.lastChange; in getDiscoveredAttributes()
378 attributes.PortFcId = attrs.PortFcId; in getDiscoveredAttributes()
[all …]
H A DFCHBA.cc63 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()
202 memcpy(attributes.Model, attrs.Model, 256); in getHBAAttributes()
281 fc_hba_adapter_attributes_t attrs; in npivGetHBAAttributes() local
285 fcio.fcio_olen = sizeof (attrs); in npivGetHBAAttributes()
287 fcio.fcio_obuf = (caddr_t)&attrs; in npivGetHBAAttributes()
[all …]
H A DFCHBAPort.cc465 memcpy(&tmp, &attrs.PortWWN, 8); in FCHBAPort()
467 memcpy(&tmp, &attrs.NodeWWN, 8); in FCHBAPort()
565 fcio.fcio_olen = sizeof(attrs); in getPortNPIVAttributes()
571 stateChange = attrs.lastChange; in getPortNPIVAttributes()
592 fcio.fcio_olen = sizeof (attrs); in getPortAttributes()
598 stateChange = attrs.lastChange; in getPortAttributes()
631 fcio.fcio_olen = sizeof (attrs); in getDiscoveredAttributes()
639 stateChange = attrs.lastChange; in getDiscoveredAttributes()
684 stateChange = attrs.lastChange; in getDiscoveredAttributes()
954 HBA_PORTATTRIBUTES attrs; in sendRLS() local
[all …]
H A DTgtFCHBA.cc65 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()
151 memcpy(attributes.Model, attrs.Model, 256); in getHBAAttributes()
158 memcpy(attributes.DriverName, attrs.DriverName, 256); in getHBAAttributes()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c242 attrs = &port_info->pi_attrs; in ql_populate_hba_fru_details()
254 attrs->serial_number[0] = '\0'; in ql_populate_hba_fru_details()
256 attrs->hardware_version[0] = '\0'; in ql_populate_hba_fru_details()
311 (void) snprintf(attrs->option_rom_version, in ql_populate_hba_fru_details()
328 attrs->supported_speed = chip == 0x2071 ? in ql_populate_hba_fru_details()
332 attrs->supported_speed = chip == 0x2261 ? in ql_populate_hba_fru_details()
396 attrs->hba_fru_details.low = 0; in ql_populate_hba_fru_details()
397 attrs->hba_fru_details.high = 0; in ql_populate_hba_fru_details()
398 attrs->hba_fru_details.port_index = 0; in ql_populate_hba_fru_details()
426 (void) snprintf(attrs->model_description, in ql_populate_hba_fru_details()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_ldap.c1157 for (i = 0; *attrs != NULL && (*attrs)[i] != NULL; i++) in _addLDAPmodValue()
1165 if (*attrs == NULL) in _addLDAPmodValue()
1170 if (*attrs != NULL) in _addLDAPmodValue()
1185 if (*attrs == NULL) in _addLDAPmodValue()
1295 for (i = 0; *attrs != NULL && (*attrs)[i] != NULL; i++) in _modLDAPmodValue()
1303 if (*attrs == NULL) in _modLDAPmodValue()
1480 *attrs = NULL; in _constructAddLDAPMod()
1561 attrs = NULL; in _constructAddLDAPMod()
1616 *attrs = NULL; in _constructModLDAPMod()
1751 *attrs = NULL; in _constructModLDAPMod()
[all …]
H A Dns_cmn_kvp.c123 ns_kvp_t *kvp, **attrs; in ns_r_get_value() local
148 for (attrs = printer->attributes; attrs != NULL && *attrs != NULL; in ns_r_get_value()
149 attrs++) { in ns_r_get_value()
152 if ((strcmp((*attrs)->key, NS_KEY_ALL) == 0) || in ns_r_get_value()
153 (strcmp((*attrs)->key, NS_KEY_GROUP) == 0)) { in ns_r_get_value()
156 for (printers = string_to_value((*attrs)->key, in ns_r_get_value()
157 (*attrs)->value); in ns_r_get_value()
170 for (printers = string_to_value((*attrs)->key, in ns_r_get_value()
171 (*attrs)->value); in ns_r_get_value()
177 } else if (strcmp((*attrs)->key, NS_KEY_USE) == 0) { in ns_r_get_value()
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpstat.c148 (void) papiAttributeListGetString(attrs, NULL, in get_device_uri()
220 (void) papiAttributeListGetString(attrs, NULL, in report_device()
339 (void) papiAttributeListGetString(attrs, NULL, in get_remote_hostname()
341 (void) papiAttributeListGetString(attrs, NULL, in get_remote_hostname()
534 print_description(attrs, name); in report_printer()
665 print_description(attrs, name); in report_printer()
871 (void) papiAttributeListGetString(attrs, in report_job()
1215 papi_attribute_t **attrs = NULL; in service_query() local
1224 attrs = papiServiceGetAttributeList(svc); in service_query()
1225 if (attrs != NULL) { in service_query()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dalias.c58 nvlist_t *attrs = NULL; in alias_get_attributes() local
67 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in alias_get_attributes()
73 if (nvlist_add_uint32(attrs, DM_LUN, ap->lun) != 0) { in alias_get_attributes()
74 nvlist_free(attrs); in alias_get_attributes()
80 nvlist_free(attrs); in alias_get_attributes()
87 if (nvlist_add_string(attrs, DM_WWN, ap->wwn) != 0) { in alias_get_attributes()
88 nvlist_free(attrs); in alias_get_attributes()
101 nvlist_free(attrs); in alias_get_attributes()
102 attrs = NULL; in alias_get_attributes()
115 return (attrs); in alias_get_attributes()
[all …]
H A Dmedia.c122 nvlist_t *attrs = NULL; in media_get_attributes() local
130 if (nvlist_alloc(&attrs, NVATTRS, 0) != 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
410 if (nvlist_add_uint32(attrs, DM_MTYPE,
427 if (nvlist_add_uint64(attrs, DM_NACCESSIBLE,
444 if (nvlist_add_uint32(attrs, DM_NHEADS,
477 if (nvlist_add_uint64(attrs, DM_START,
[all …]
H A Dcontroller.c62 nvlist_t *attrs; in controller_get_attributes() local
64 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in controller_get_attributes()
72 nvlist_free(attrs); in controller_get_attributes()
79 nvlist_free(attrs); in controller_get_attributes()
88 nvlist_free(attrs); in controller_get_attributes()
95 nvlist_free(attrs); in controller_get_attributes()
102 nvlist_free(attrs); in controller_get_attributes()
109 nvlist_free(attrs); in controller_get_attributes()
116 nvlist_free(attrs); in controller_get_attributes()
125 nvlist_free(attrs); in controller_get_attributes()
[all …]
H A Dpath.c59 nvlist_t *attrs = NULL; in path_get_attributes() local
63 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in path_get_attributes()
69 nvlist_free(attrs); in path_get_attributes()
80 if (add_path_state(dp, attrs) != 0) { in path_get_attributes()
81 nvlist_free(attrs); in path_get_attributes()
85 if (add_wwn(dp, attrs) != 0) { in path_get_attributes()
86 nvlist_free(attrs); in path_get_attributes()
93 return (attrs); in path_get_attributes()
179 add_path_state(descriptor_t *dp, nvlist_t *attrs) in add_path_state() argument
197 if (nvlist_add_string(attrs, DM_PATH_STATE, in add_path_state()
[all …]
H A Dslice.c122 nvlist_t *attrs = NULL; in slice_get_attributes() local
141 nvlist_free(attrs); in slice_get_attributes()
142 attrs = NULL; in slice_get_attributes()
149 return (attrs); in slice_get_attributes()
273 add_inuse(char *name, nvlist_t *attrs) in add_inuse() argument
416 if (nvlist_add_uint64(attrs, DM_START, in get_attrs()
421 if (nvlist_add_uint64(attrs, DM_SIZE, in get_attrs()
426 if (nvlist_add_uint32(attrs, DM_TAG, in get_attrs()
431 if (nvlist_add_uint32(attrs, DM_FLAG, in get_attrs()
442 if (nvlist_add_uint64(attrs, DM_SIZE, in get_attrs()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpbkdf2.c63 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()
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()
82 attrs++; in krb5int_pbkdf2_hmac_sha1()
94 tmpl[attrs].type = CKA_VALUE_LEN; in krb5int_pbkdf2_hmac_sha1()
97 tmpl[attrs].pValue = &outlen; in krb5int_pbkdf2_hmac_sha1()
99 attrs++; in krb5int_pbkdf2_hmac_sha1()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dadd.c59 ldap_add( LDAP *ld, const char *dn, LDAPMod **attrs ) in ldap_add() argument
65 if ( ldap_add_ext( ld, dn, attrs, NULL, NULL, &msgid ) in ldap_add()
80 ldap_add_ext( LDAP *ld, const char *dn, LDAPMod **attrs, in ldap_add_ext() argument
108 if ( !NSLDAPI_VALID_NONEMPTY_LDAPMOD_ARRAY( attrs ) in ldap_add_ext()
127 attrs )) != 0 ) { in ldap_add_ext()
150 for ( i = 0; attrs[i] != NULL; i++ ) { in ldap_add_ext()
151 if ( ( attrs[i]->mod_op & LDAP_MOD_BVALUES) != 0 ) { in ldap_add_ext()
152 rc = ber_printf( ber, "{s[V]}", attrs[i]->mod_type, in ldap_add_ext()
153 attrs[i]->mod_bvalues ); in ldap_add_ext()
155 rc = ber_printf( ber, "{s[v]}", attrs[i]->mod_type, in ldap_add_ext()
[all …]
H A Durl.c275 attrs = NULL; in nsldapi_url_parse()
279 *attrs++ = '\0'; in nsldapi_url_parse()
282 if (( p = strchr( attrs, '?' )) != NULL ) { in nsldapi_url_parse()
334 if ( attrs != NULL && *attrs != '\0' ) { in nsldapi_url_parse()
335 nsldapi_hex_unescape( attrs ); in nsldapi_url_parse()
336 for ( nattrs = 1, p = attrs; *p != '\0'; ++p ) { in nsldapi_url_parse()
348 for ( i = 0, p = attrs; i < nattrs; ++i ) { in nsldapi_url_parse()
564 char *attrs, in ldap_dns_to_url() argument
597 if (attrs || scope || filter) { in ldap_dns_to_url()
599 if (attrs) in ldap_dns_to_url()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ads.c799 if (attrs[i] == NULL) { in smb_ads_alloc_attr()
821 free(attrs[i]); in smb_ads_free_attr()
1051 attrs[0] = "cn"; in smb_ads_lookup_share()
1053 attrs[2] = "uNCName"; in smb_ads_lookup_share()
1054 attrs[3] = NULL; in smb_ads_lookup_share()
1356 attrs[++j]->mod_op = op; in smb_ads_computer_op()
1611 attrs[1] = NULL; in smb_ads_lookup_computer_n_attr()
1612 attrs[2] = NULL; in smb_ads_lookup_computer_n_attr()
1635 "attrs[1]=%s", attrs[1] ? attrs[1] : ""); in smb_ads_lookup_computer_n_attr()
1701 LDAPMod *attrs[2]; in smb_ads_update_computer_cntrl_attr() local
[all …]
/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasGetVendorLibraryAttributes.c34 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()
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgettpent.c241 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()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dradius_auth.c163 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 …]
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_radiusauth.c162 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 …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dchkey_common.c478 ns_ldap_attr_t *attrs; in ldap_attr_mod() local
542 attrs->attrvalue = alist[0]; in ldap_attr_mod()
544 *pkeyattrs = attrs; in ldap_attr_mod()
552 *ckeyattrs = attrs; in ldap_attr_mod()
891 attrs[0]->value_count = 1; in ldap_update()
910 attrs[1]->value_count = 1; in ldap_update()
929 attrs[2]->value_count = 1; in ldap_update()
932 attrs[3] = NULL; in ldap_update()
954 attrs[0] = pattrs; in ldap_update()
955 attrs[1] = cattrs; in ldap_update()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_wrapper.c64 char *dn, LDAPMod **attrs, in _ns_ldap_add_ext() argument
69 return (ldap_add_ext(ld, dn, attrs, in _ns_ldap_add_ext()
75 char *dn, LDAPMod **attrs, in _ns_ldap_add_ext_s() argument
85 char *dn, LDAPMod **attrs) in _ns_ldap_add() argument
89 return (ldap_add(ld, dn, attrs)); in _ns_ldap_add()
94 char *dn, LDAPMod **attrs) in _ns_ldap_add_s() argument
322 attrs, attrsonly, serverctrls, in _ns_ldap_search_ext()
336 attrs, attrsonly, serverctrls, in _ns_ldap_search_ext_s()
343 char **attrs, int attrsonly) in _ns_ldap_search() argument
358 attrs, attrsonly, res)); in _ns_ldap_search_s()
[all …]
/illumos-gate/usr/src/cmd/fcinfo/
H A Dfcinfo-list.c139 if (portCtr >= attrs->NumberOfPorts) { in retrieveAttrs()
610 HBA_ADAPTERATTRIBUTES attrs; in fc_util_list_remoteport() local
680 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_remoteport()
731 HBA_ADAPTERATTRIBUTES attrs; in fc_util_list_hbaport() local
837 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_hbaport()
881 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_hbaport()
884 &attrs); in fc_util_list_hbaport()
891 &attrs); in fc_util_list_hbaport()
968 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_hbaport()
1265 HBA_ADAPTERATTRIBUTES attrs; in fc_util_list_logicalunit() local
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c195 attrs = calloc(1, in get_rsa_private_key()
204 cur_attr = attrs; in get_rsa_private_key()
328 attrs = calloc(1, in get_rsa_public_key()
339 cur_attr = attrs; in get_rsa_public_key()
403 attrs = calloc(1, in get_dsa_private_key()
414 cur_attr = attrs; in get_dsa_private_key()
465 attrs = calloc(1, in get_dsa_public_key()
476 cur_attr = attrs; in get_dsa_public_key()
539 cur_attr = attrs; in get_ec_private_key()
611 cur_attr = attrs; in get_ec_public_key()
[all …]

12345678910>>...12