Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/freebsd/contrib/netbsd-tests/include/sys/
H A Dt_pslist.c53 } elements[] = { in ATF_TC_BODY() local
71 PSLIST_ENTRY_DESTROY(&elements[0], entry); in ATF_TC_BODY()
73 for (i = 0; i < __arraycount(elements); i++) in ATF_TC_BODY()
74 PSLIST_ENTRY_INIT(&elements[i], entry); in ATF_TC_BODY()
76 PSLIST_WRITER_INSERT_HEAD(&h, &elements[4], entry); in ATF_TC_BODY()
77 PSLIST_WRITER_INSERT_BEFORE(&elements[4], &elements[2], entry); in ATF_TC_BODY()
78 PSLIST_WRITER_INSERT_BEFORE(&elements[4], &elements[3], entry); in ATF_TC_BODY()
79 PSLIST_WRITER_INSERT_BEFORE(&elements[2], &elements[1], entry); in ATF_TC_BODY()
80 PSLIST_WRITER_INSERT_HEAD(&h, &elements[0], entry); in ATF_TC_BODY()
81 PSLIST_WRITER_INSERT_AFTER(&elements[4], &elements[5], entry); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/isci/scil/
H A Dsci_abstract_list.c133 pool->elements = list_elements; in sci_abstract_element_pool_construct()
161 return (list_p)->elements.front_p; in sci_abstract_list_get_front()
173 ( ( (list_p)->elements.front_p ) ? ((list_p)->elements.front_p->object_p) : NULL ); in sci_abstract_list_front()
185 ( ( (list_p)->elements.back_p ) ? ((list_p)->elements.back_p->object_p) : NULL ); in sci_abstract_list_back()
195 return ( (list_p)->elements.front_p == NULL ); in sci_abstract_list_is_empty()
206 return ( (list_p)->elements.size ); in sci_abstract_list_size()
229 SCI_ABSTRACT_ELEMENT_T * alElement_p = list_p->elements.front_p; in sci_abstract_list_print()
257 sci_abstract_list_get_object(private_find(&(list_p)->elements, (obj_p))); in sci_abstract_list_find()
270 SCI_ABSTRACT_ELEMENT_LIST_T * elem_list = &(list_p)->elements; in sci_abstract_list_popback()
303 private_pop_front(&(list_p)->elements); in sci_abstract_list_popfront()
[all …]
H A Dsci_abstract_list.h173 SCI_ABSTRACT_ELEMENT_T * elements; member
201 SCI_ABSTRACT_ELEMENT_LIST_T elements; member
471 ((list_p)->elements.front_p)
480 ( ( (list_p)->elements.front_p ) ? ((list_p)->elements.front_p->object_p) : NULL )
489 ( ( (list_p)->elements.back_p ) ? ((list_p)->elements.back_p->object_p) : NULL )
497 ( (list_p)->elements.front_p == NULL )
505 ( (list_p)->elements.size )
522 SCI_ABSTRACT_ELEMENT_T * alElement_p = list_p->elements.front_p; \
546 sci_abstract_list_get_object(private_find(&(list_p)->elements, (obj_p))); \
558 SCI_ABSTRACT_ELEMENT_LIST_T * elem_list = &(list_p)->elements; \
[all …]
/freebsd/lib/libgssapi/
H A Dgss_utils.c46 if (memcmp(oid1->elements, oid2->elements, oid1->length)) in gss_oid_equal()
58 to_oid->elements = malloc(len); in _gss_copy_oid()
59 if (!to_oid->elements) { in _gss_copy_oid()
65 memcpy(to_oid->elements, from_oid->elements, len); in _gss_copy_oid()
74 if (oid->elements) { in _gss_free_oid()
75 free(oid->elements); in _gss_free_oid()
76 oid->elements = NULL; in _gss_free_oid()
H A Dgss_add_oid_set_member.c61 new_oid->elements = malloc(member_oid->length); in gss_add_oid_set_member()
62 if (!new_oid->elements) { in gss_add_oid_set_member()
67 memcpy(new_oid->elements, member_oid->elements, member_oid->length); in gss_add_oid_set_member()
69 if (set->elements) { in gss_add_oid_set_member()
70 memcpy(new_elements, set->elements, in gss_add_oid_set_member()
72 free(set->elements); in gss_add_oid_set_member()
74 set->elements = new_elements; in gss_add_oid_set_member()
H A Dgss_buffer_set.c55 set->elements = NULL; in gss_create_empty_buffer_set()
80 set->elements = reallocarray(set->elements, set->count + 1, in gss_add_buffer_set_member()
81 sizeof(set->elements[0])); in gss_add_buffer_set_member()
82 if (set->elements == NULL) { in gss_add_buffer_set_member()
87 p = &set->elements[set->count]; in gss_add_buffer_set_member()
115 gss_release_buffer(&minor, &((*buffer_set)->elements[i])); in gss_release_buffer_set()
117 free((*buffer_set)->elements); in gss_release_buffer_set()
119 (*buffer_set)->elements = NULL; in gss_release_buffer_set()
H A Dgss_release_oid_set.c46 o = &set->elements[i]; in gss_release_oid_set()
47 if (o->elements) in gss_release_oid_set()
48 free(o->elements); in gss_release_oid_set()
50 free(set->elements); in gss_release_oid_set()
H A Dgss_duplicate_oid.c52 dest_oid->elements = malloc(src_oid->length); in gss_duplicate_oid()
53 if (!dest_oid->elements) { in gss_duplicate_oid()
59 memcpy(dest_oid->elements, src_oid->elements, src_oid->length); in gss_duplicate_oid()
/freebsd/sys/kern/
H A Dsubr_hash.c52 hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask, in hashinit_flags() argument
58 KASSERT(elements > 0, ("%s: bad elements", __func__)); in hashinit_flags()
63 for (hashsize = 1; hashsize <= elements; hashsize <<= 1) in hashinit_flags()
81 hashinit(int elements, struct malloc_type *type, u_long *hashmask) in hashinit() argument
84 return (hashinit_flags(elements, type, hashmask, HASH_WAITOK)); in hashinit()
109 phashinit_flags(int elements, struct malloc_type *type, u_long *nentries, int flags) in phashinit_flags() argument
114 KASSERT(elements > 0, ("%s: bad elements", __func__)); in phashinit_flags()
119 for (i = 1, hashsize = primes[1]; hashsize <= elements;) { in phashinit_flags()
143 phashinit(int elements, struct malloc_type *type, u_long *nentries) in phashinit() argument
146 return (phashinit_flags(elements, type, nentries, HASH_WAITOK)); in phashinit()
/freebsd/crypto/heimdal/lib/gssapi/mech/
H A Dgss_buffer_set.c49 set->elements = NULL; in gss_create_empty_buffer_set()
76 set->elements = realloc(set->elements, in gss_add_buffer_set_member()
77 (set->count + 1) * sizeof(set->elements[0])); in gss_add_buffer_set_member()
78 if (set->elements == NULL) { in gss_add_buffer_set_member()
83 p = &set->elements[set->count]; in gss_add_buffer_set_member()
112 gss_release_buffer(&minor, &((*buffer_set)->elements[i])); in gss_release_buffer_set()
114 free((*buffer_set)->elements); in gss_release_buffer_set()
116 (*buffer_set)->elements = NULL; in gss_release_buffer_set()
H A Dgss_utils.c38 to_oid->elements = malloc(len); in _gss_copy_oid()
39 if (!to_oid->elements) { in _gss_copy_oid()
45 memcpy(to_oid->elements, from_oid->elements, len); in _gss_copy_oid()
53 if (oid->elements) { in _gss_free_oid()
54 free(oid->elements); in _gss_free_oid()
55 oid->elements = NULL; in _gss_free_oid()
H A Dgss_duplicate_oid.c56 (*dest_oid)->elements = malloc(src_oid->length); in gss_duplicate_oid()
57 if ((*dest_oid)->elements == NULL) { in gss_duplicate_oid()
63 memcpy((*dest_oid)->elements, src_oid->elements, src_oid->length); in gss_duplicate_oid()
H A Dgss_krb5.c67 kret = asprintf(&str, "%.*s", (int)data_set->elements[0].length, in gss_krb5_copy_ccache()
68 (char *)data_set->elements[0].value); in gss_krb5_copy_ccache()
306 sp = krb5_storage_from_mem(data_set->elements[0].value, in gss_krb5_export_lucid_sec_context()
307 data_set->elements[0].length); in gss_krb5_export_lucid_sec_context()
581 if (data_set->elements[0].length != 4) { in gsskrb5_extract_authtime_from_sec_context()
588 unsigned char *buf = data_set->elements[0].value; in gsskrb5_extract_authtime_from_sec_context()
622 if (der_get_oid(GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X->elements, in gsskrb5_extract_authz_data_from_sec_context()
646 oid_flat.elements = malloc(oid_flat.length); in gsskrb5_extract_authz_data_from_sec_context()
647 if (oid_flat.elements == NULL) { in gsskrb5_extract_authz_data_from_sec_context()
653 if (der_put_oid((unsigned char *)oid_flat.elements + oid_flat.length - 1, in gsskrb5_extract_authz_data_from_sec_context()
[all …]
/freebsd/sys/kgssapi/
H A Dgss_add_oid_set_member.c62 new_oid->elements = malloc(member_oid->length, M_GSSAPI, M_WAITOK); in gss_add_oid_set_member()
64 memcpy(new_oid->elements, member_oid->elements, member_oid->length); in gss_add_oid_set_member()
66 if (set->elements) { in gss_add_oid_set_member()
67 memcpy(new_elements, set->elements, in gss_add_oid_set_member()
69 free(set->elements, M_GSSAPI); in gss_add_oid_set_member()
71 set->elements = new_elements; in gss_add_oid_set_member()
/freebsd/sys/security/mac/
H A Dmac_syscalls.c84 char *elements, *buffer; in sys___mac_get_pid() local
110 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_pid()
111 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_pid()
113 free(elements, M_MACTEMP); in sys___mac_get_pid()
119 error = mac_cred_externalize_label(tcred->cr_label, elements, in sys___mac_get_pid()
125 free(elements, M_MACTEMP); in sys___mac_get_pid()
133 char *elements, *buffer; in sys___mac_get_proc() local
145 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_proc()
146 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_proc()
148 free(elements, M_MACTEMP); in sys___mac_get_proc()
[all …]
H A Dmac_socket.c203 mac_socket_externalize_label(struct label *label, char *elements, in mac_socket_externalize_label() argument
208 MAC_POLICY_EXTERNALIZE(socket, label, elements, outbuf, outbuflen); in mac_socket_externalize_label()
214 mac_socketpeer_externalize_label(struct label *label, char *elements, in mac_socketpeer_externalize_label() argument
219 MAC_POLICY_EXTERNALIZE(socketpeer, label, elements, outbuf, in mac_socketpeer_externalize_label()
563 char *buffer, *elements; in mac_getsockopt_label() local
574 elements = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK); in mac_getsockopt_label()
575 error = copyinstr(mac->m_string, elements, mac->m_buflen, NULL); in mac_getsockopt_label()
577 free(elements, M_MACTEMP); in mac_getsockopt_label()
586 error = mac_socket_externalize_label(intlabel, elements, buffer, in mac_getsockopt_label()
593 free(elements, M_MACTEMP); in mac_getsockopt_label()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dacpi.c218 data->package.elements[0].type != ACPI_TYPE_INTEGER) {
223 *tbl_rev = data->package.elements[0].integer.value; in iwl_acpi_get_dsm_u32()
229 wifi_pkg = &data->package.elements[i]; in iwl_acpi_get_dsm_u32()
237 domain = &wifi_pkg->package.elements[0];
277 if (tbl_rev == 1 && wifi_pkg->package.elements[1].type == in iwl_acpi_get_wifi_pkg_range()
280 (u32)wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_wifi_pkg_range()
286 wifi_pkg->package.elements[1].type == ACPI_TYPE_INTEGER) { in iwl_acpi_get_wifi_pkg_range()
287 enabled = !!wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_wifi_pkg_range()
300 if (wifi_pkg->package.elements[2].type != ACPI_TYPE_INTEGER || in iwl_acpi_get_wifi_pkg()
301 wifi_pkg->package.elements[ in iwl_acpi_get_wifi_pkg()
[all...]
/freebsd/contrib/libxo/xohtml/external/
H A Djquery.qtip.js104 this.elements = elements = { target: target };
134 elements = this.elements,
146 this.tooltip = elements.tooltip = tooltip = $('<div/>', {
166 elements.content = $('<div />', {
280 this.options = this.elements = this.cache = this.timers =
404 this.elements.content[0].id = this._id + '-content';
405 this.elements.title[0].id = this._id + '-title';
428 v && !this.elements.title && this._createTitle();
590 content = content.call(this.elements.target, cache.event, this) || '';
631 this._update(content, this.elements.content, reposition);
[all …]
/freebsd/kerberos5/lib/libgssapi_krb5/
H A Dgss_krb5.c70 kret = asprintf(&str, "%.*s", (int)data_set->elements[0].length, in gss_krb5_copy_ccache()
71 (char *)data_set->elements[0].value); in gss_krb5_copy_ccache()
290 sp = krb5_storage_from_mem(data_set->elements[0].value, in gss_krb5_export_lucid_sec_context()
291 data_set->elements[0].length); in gss_krb5_export_lucid_sec_context()
551 if (data_set->elements[0].length != 4) { in gsskrb5_extract_authtime_from_sec_context()
558 unsigned char *buf = data_set->elements[0].value; in gsskrb5_extract_authtime_from_sec_context()
592 if (der_get_oid(GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X->elements, in gsskrb5_extract_authz_data_from_sec_context()
616 oid_flat.elements = malloc(oid_flat.length); in gsskrb5_extract_authz_data_from_sec_context()
617 if (oid_flat.elements == NULL) { in gsskrb5_extract_authz_data_from_sec_context()
623 if (der_put_oid((unsigned char *)oid_flat.elements + oid_flat.length - 1, in gsskrb5_extract_authz_data_from_sec_context()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Ddn_heap.c112 h->elements = 0; in heap_init()
143 int son = h->elements; in heap_insert()
149 son = h->elements; in heap_insert()
152 if (heap_resize(h, h->elements+16) ) in heap_insert()
156 h->elements++; in heap_insert()
180 int child, father, max = h->elements - 1; in heap_extract()
192 if (father < 0 || father >= h->elements) in heap_extract()
215 h->elements--; in heap_extract()
236 int temp, i, max = h->elements-1;
281 for (i = 0; i < h->elements; i++ ) in heapify()
[all …]
H A Ddn_sched_wf2q.c119 while (n-- > 0 && h->elements > 0 && in idle_check()
166 if (si->ne_heap.elements == 0 && si->sch_heap.elements == 0) in wf2qp_enqueue()
182 if (si->sch_heap.elements == 0) in wf2qp_enqueue()
203 if (sch->elements == 0 && neh->elements == 0) { in wf2qp_dequeue()
230 if (sch->elements == 0 && neh->elements > 0) { in wf2qp_dequeue()
233 while (neh->elements > 0 && in wf2qp_dequeue()
/freebsd/contrib/ntp/sntp/unity/
H A Dunity.c498 _UU32 elements = num_elements; in UnityAssertEqualIntArray() local
504 if (elements == 0) in UnityAssertEqualIntArray()
523 while (elements--) in UnityAssertEqualIntArray()
529 … UnityPrintNumberByStyle((num_elements - elements - 1), UNITY_DISPLAY_STYLE_UINT); in UnityAssertEqualIntArray()
544 while (elements--) in UnityAssertEqualIntArray()
550 … UnityPrintNumberByStyle((num_elements - elements - 1), UNITY_DISPLAY_STYLE_UINT); in UnityAssertEqualIntArray()
566 while (elements--) in UnityAssertEqualIntArray()
572 … UnityPrintNumberByStyle((num_elements - elements - 1), UNITY_DISPLAY_STYLE_UINT); in UnityAssertEqualIntArray()
586 while (elements--) in UnityAssertEqualIntArray()
592 … UnityPrintNumberByStyle((num_elements - elements - 1), UNITY_DISPLAY_STYLE_UINT); in UnityAssertEqualIntArray()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_get/
H A Dzfs_get_common.kshlib40 typeset elements=""
48 elements[i]="$e"
72 comb_str=${elements[item]}
74 comb_str=$comb_str$separator${elements[item]}
/freebsd/crypto/heimdal/lib/asn1/
H A Dtemplate.c155 size_t elements = A1_HEADER_LEN(t); in _asn1_decode()
167 while (elements) { in _asn1_decode()
351 size_t elements = A1_HEADER_LEN(bmember); in _asn1_decode()
362 while (elements && len) { in _asn1_decode()
371 elements--; bmember++; in _asn1_decode()
414 elements--; in _asn1_decode()
446 size_t elements = A1_HEADER_LEN(t); in _asn1_encode()
452 while (elements) { in _asn1_encode()
619 size_t elements = A1_HEADER_LEN(bmember); in _asn1_encode()
625 bmember += elements; in _asn1_encode()
153 size_t elements = A1_HEADER_LEN(t); _asn1_decode() local
349 size_t elements = A1_HEADER_LEN(bmember); _asn1_decode() local
444 size_t elements = A1_HEADER_LEN(t); _asn1_encode() local
617 size_t elements = A1_HEADER_LEN(bmember); _asn1_encode() local
700 size_t elements = A1_HEADER_LEN(t); _asn1_length() local
774 size_t elements = A1_HEADER_LEN(bmember); _asn1_length() local
823 size_t elements = A1_HEADER_LEN(t); _asn1_free() local
928 size_t elements = A1_HEADER_LEN(t); _asn1_copy() local
[all...]
/freebsd/crypto/heimdal/lib/gssapi/spnego/
H A Dcred_stubs.c92 actual_desired_mechs.elements = malloc(actual_desired_mechs.count * in _gss_spnego_acquire_cred()
94 if (actual_desired_mechs.elements == NULL) { in _gss_spnego_acquire_cred()
101 if (gss_oid_equal(&mechs->elements[i], GSS_SPNEGO_MECHANISM)) in _gss_spnego_acquire_cred()
104 actual_desired_mechs.elements[j] = mechs->elements[i]; in _gss_spnego_acquire_cred()
120 if (actual_desired_mechs.elements != NULL) { in _gss_spnego_acquire_cred()
121 free(actual_desired_mechs.elements); in _gss_spnego_acquire_cred()

12345678910>>...18