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.cc232 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 DFCHBA.cc62 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 DFCHBAPort.cc464 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 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()
149 memcpy(attributes.Manufacturer, attrs.Manufacturer, 64); in getHBAAttributes()
150 memcpy(attributes.SerialNumber, attrs.SerialNumber, 64); in getHBAAttributes()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c233 fca_port_attrs_t *attrs = &port_info->pi_attrs; in ql_populate_hba_fru_details() local
242 attrs = &port_info->pi_attrs; in ql_populate_hba_fru_details()
245 (void) snprintf(attrs->manufacturer, FCHBA_MANUFACTURER_LEN, in ql_populate_hba_fru_details()
247 (void) snprintf(attrs->driver_name, FCHBA_DRIVER_NAME_LEN, in ql_populate_hba_fru_details()
249 (void) snprintf(attrs->driver_version, FCHBA_DRIVER_VERSION_LEN, in ql_populate_hba_fru_details()
253 attrs->serial_number, FCHBA_SERIAL_NUMBER_LEN)) == -1) { 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()
259 (void) snprintf(attrs->firmware_version, FCHBA_FIRMWARE_VERSION_LEN, in ql_populate_hba_fru_details()
267 int8_t *orv = &*attrs->option_rom_version; in ql_populate_hba_fru_details()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_ldap.c157 static NSL_RESULT _addLDAPmodValue(LDAPMod ***attrs, char *type, char *value);
158 static NSL_RESULT _modLDAPmodValue(LDAPMod ***attrs, char *type, char *value);
160 char **attrList, LDAPMod ***attrs);
162 char **attrList, char ***oldKVPList, LDAPMod ***attrs);
172 static NSL_RESULT _attrAddKVP(LDAPMod ***attrs, char **kvpList, int kvpExists);
863 LDAPMod **attrs = NULL; in _addNewPrinterObject() local
887 attrList, &attrs); in _addNewPrinterObject()
891 (char *)printerDN, attrs); in _addNewPrinterObject()
904 (void) ldap_mods_free(attrs, 1); in _addNewPrinterObject()
960 LDAPMod **attrs = NULL; in _modifyPrinterObject() local
[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()
167 } else if (strcmp((*attrs)->key, NS_KEY_LIST) == 0) { 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()
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpstat.c146 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 …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dalias.c39 static int get_status(disk_t *diskp, int fd, nvlist_t *attrs);
58 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()
79 if (nvlist_add_uint32(attrs, DM_TARGET, ap->target) != 0) { 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()
100 if ((*errp = get_status(dp->p.disk, fd, attrs)) != 0) { in alias_get_attributes()
[all …]
H A Dmedia.c49 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 Dcontroller.c62 nvlist_t *attrs; in controller_get_attributes() local
64 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in controller_get_attributes()
71 if (nvlist_add_string(attrs, DM_CTYPE, cp->ctype) != 0) { in controller_get_attributes()
72 nvlist_free(attrs); in controller_get_attributes()
78 if (nvlist_add_boolean(attrs, DM_MULTIPLEX) != 0) { in controller_get_attributes()
79 nvlist_free(attrs); in controller_get_attributes()
87 if (nvlist_add_boolean(attrs, DM_FAST) != 0) { in controller_get_attributes()
88 nvlist_free(attrs); in controller_get_attributes()
94 if (nvlist_add_boolean(attrs, DM_WIDE) != 0) { in controller_get_attributes()
95 nvlist_free(attrs); in controller_get_attributes()
[all …]
H A Dpath.c35 static int add_path_state(descriptor_t *dp, nvlist_t *attrs);
36 static int add_wwn(descriptor_t *dp, nvlist_t *attrs);
59 nvlist_t *attrs = NULL; in path_get_attributes() local
63 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in path_get_attributes()
68 if (nvlist_add_string(attrs, DM_CTYPE, pp->ctype) != 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()
[all …]
H A Dslice.c72 static int add_inuse(char *name, nvlist_t *attrs);
75 static int get_attrs(descriptor_t *dp, int fd, nvlist_t *attrs);
122 nvlist_t *attrs = NULL; in slice_get_attributes() local
131 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) { in slice_get_attributes()
140 if ((*errp = get_attrs(dp, fd, attrs)) != 0) { in slice_get_attributes()
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
279 if (detectors[i](name, attrs, &error) || error != 0) { in add_inuse()
[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()
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 …]
/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.c182 char *urlcopy, *attrs, *scope, *extensions = NULL, *p, *q; in nsldapi_url_parse() local
275 attrs = NULL; in nsldapi_url_parse()
277 ( attrs = strchr( ludp->lud_dn, '?' )) != 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
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ads.c792 smb_ads_alloc_attr(LDAPMod *attrs[], int num) in smb_ads_alloc_attr() argument
796 bzero(attrs, num * sizeof (LDAPMod *)); in smb_ads_alloc_attr()
798 attrs[i] = (LDAPMod *)malloc(sizeof (LDAPMod)); in smb_ads_alloc_attr()
799 if (attrs[i] == NULL) { in smb_ads_alloc_attr()
800 smb_ads_free_attr(attrs); in smb_ads_alloc_attr()
817 smb_ads_free_attr(LDAPMod *attrs[]) in smb_ads_free_attr() argument
820 for (i = 0; attrs[i]; i++) { in smb_ads_free_attr()
821 free(attrs[i]); in smb_ads_free_attr()
887 LDAPMod *attrs[SMB_ADS_SHARE_NUM_ATTR]; in smb_ads_add_share() local
897 if (smb_ads_alloc_attr(attrs, SMB_ADS_SHARE_NUM_ATTR) != 0) { in smb_ads_add_share()
[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/cmd/keyserv/
H A Dchkey_common.c478 ns_ldap_attr_t *attrs; in ldap_attr_mod() local
538 if ((attrs = (ns_ldap_attr_t *)calloc(1, in ldap_attr_mod()
541 attrs->attrname = "nisPublicKey"; in ldap_attr_mod()
542 attrs->attrvalue = alist[0]; in ldap_attr_mod()
543 attrs->value_count = keycount[0]; in ldap_attr_mod()
544 *pkeyattrs = attrs; in ldap_attr_mod()
546 if ((attrs = (ns_ldap_attr_t *)calloc(1, in ldap_attr_mod()
549 attrs->attrname = "nisSecretKey"; in ldap_attr_mod()
550 attrs->attrvalue = alist[1]; in ldap_attr_mod()
551 attrs->value_count = keycount[1]; in ldap_attr_mod()
[all …]
/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/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
80 return (ldap_add_ext_s(ld, dn, attrs, serverctrls, clientctrls)); in _ns_ldap_add_ext_s()
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
98 return (ldap_add_s(ld, dn, attrs)); in _ns_ldap_add_s()
315 char **attrs, int attrsonly, LDAPControl **serverctrls, in _ns_ldap_search_ext() argument
322 attrs, attrsonly, serverctrls, in _ns_ldap_search_ext()
[all …]
/illumos-gate/usr/src/cmd/fcinfo/
H A Dfcinfo-list.c48 static int processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs,
60 HBA_ADAPTERATTRIBUTES *attrs, HBA_PORTATTRIBUTES *port, int *portIndex);
85 HBA_ADAPTERATTRIBUTES *attrs, HBA_PORTATTRIBUTES *port, int *portIndex) in retrieveAttrs() argument
92 if (attrs == NULL || port == NULL || portIndex == NULL) { in retrieveAttrs()
99 memset(attrs, 0, sizeof (HBA_ADAPTERATTRIBUTES)); in retrieveAttrs()
100 status = HBA_GetAdapterAttributes(handle, attrs); in retrieveAttrs()
106 status = HBA_GetAdapterAttributes(handle, attrs); in retrieveAttrs()
124 for (portCtr = 0; portCtr < attrs->NumberOfPorts; portCtr++) { in retrieveAttrs()
139 if (portCtr >= attrs->NumberOfPorts) { in retrieveAttrs()
371 processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs, int portIndex, in processHBA() argument
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c184 crypto_object_attribute_t *attrs, *cur_attr; in get_rsa_private_key() local
195 attrs = calloc(1, in get_rsa_private_key()
197 if (attrs == NULL) { in get_rsa_private_key()
203 key->ck_attrs = attrs; in get_rsa_private_key()
204 cur_attr = attrs; in get_rsa_private_key()
318 crypto_object_attribute_t *attrs, *cur_attr; in get_rsa_public_key() local
328 attrs = calloc(1, in get_rsa_public_key()
330 if (attrs == NULL) { in get_rsa_public_key()
337 key->ck_attrs = attrs; in get_rsa_public_key()
339 cur_attr = attrs; in get_rsa_public_key()
[all …]

12345678910>>...12