Searched refs:elements (Results 1 - 20 of 20) sorted by relevance

/darwin-on-arm/xnu/iokit/Kernel/
H A DIORangeAllocator.cpp81 elements = 0;
114 if( elements)
115 IODelete( elements, IORangeAllocatorElement, capacity );
143 || (!elements)) {
150 if( elements) {
151 bcopy( elements,
154 bcopy( elements + index,
158 IODelete( elements, IORangeAllocatorElement, capacity );
161 elements = newElements;
166 bcopy( elements
[all...]
/darwin-on-arm/xnu/security/
H A Dmac_socket.c182 mac_socket_label_externalize(struct label *label, char *elements, argument
187 error = MAC_EXTERNALIZE(socket, label, elements, outbuf, outbuflen);
193 mac_socketpeer_label_externalize(struct label *label, char *elements, argument
198 error = MAC_EXTERNALIZE(socketpeer, label, elements, outbuf, outbuflen);
391 char *buffer, *elements; local
400 MALLOC(elements, char *, mac->m_buflen, M_MACTEMP, M_WAITOK);
401 error = copyinstr(CAST_USER_ADDR_T(mac->m_string), elements,
404 FREE(elements, M_MACTEMP);
411 error = mac_socket_label_externalize(intlabel, elements, buffer,
419 FREE(elements, M_MACTEM
428 char *elements, *buffer; local
[all...]
H A Dmac_task.c118 mac_task_label_externalize(struct label *label, char *elements, argument
123 error = MAC_EXTERNALIZE(task, label, elements, outbuf, outbuflen);
H A Dmac_base.c290 * elements is added to the master list if not already present. When a
291 * policy is unloaded, the namespace elements are removed if no other
610 * to contain the potential new elements so we don't have to
670 /* Free up any unused label elements and listeners */
1139 * multiple label elements for some
1153 /* If there are dynamic policies present, check their elements too. */
1264 /* If there are dynamic policies present, check their elements too. */
1303 char *elements, *buffer; local
1335 MALLOC(elements, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1336 error = copyinstr(mac.m_string, elements, ma
1359 char *elements, *buffer; local
1493 char *elements, *buffer; local
1562 char *elements, *buffer; local
1704 char *elements, *buffer; local
1813 char *elements, *buffer; local
2164 char *elements, *buffer; local
[all...]
H A Dmac_net.c256 mac_ifnet_label_externalize(struct label *label, char *elements, argument
260 return (MAC_EXTERNALIZE(ifnet, label, elements, outbuf, outbuflen));
429 char *elements, *buffer; local
444 MALLOC(elements, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
445 error = copyinstr(CAST_USER_ADDR_T(mac.m_string), elements,
448 FREE(elements, M_MACTEMP);
451 AUDIT_ARG(mac_string, elements);
458 error = mac_ifnet_label_externalize(intlabel, elements,
461 FREE(elements, M_MACTEMP);
H A Dmac_file.c167 mac_file_check_get(struct ucred *cred, struct fileglob *fg, char *elements, argument
172 MAC_CHECK(file_check_get, cred, fg, elements, len);
H A Dmac_pipe.c118 mac_pipe_label_externalize(struct label *label, char *elements, argument
123 error = MAC_EXTERNALIZE(pipe, label, elements, outbuf, outbuflen);
H A Dmac_port.c142 mac_port_label_externalize(struct label *label, char *elements, argument
148 error = MAC_EXTERNALIZE(cred, label, elements, outbuf, outbuflen);
H A Dmac_process.c137 mac_cred_label_externalize(struct label *label, char *elements, argument
142 error = MAC_EXTERNALIZE(cred, label, elements, outbuf, outbuflen);
547 mac_lctx_label_externalize(struct label *label, char *elements, argument
552 error = MAC_EXTERNALIZE(lctx, label, elements, outbuf, outbuflen);
H A Dmac_internal.h268 int mac_pipe_label_externalize(struct label *label, char *elements,
H A Dmac_vfs.c237 mac_vnode_label_externalize(struct label *label, char *elements, argument
242 error = MAC_EXTERNALIZE(vnode, label, elements, outbuf, outbuflen);
268 mac_mount_label_externalize(struct label *label, char *elements, argument
273 error = MAC_EXTERNALIZE(mount, label, elements, outbuf, outbuflen);
H A Dmac_framework.h193 char *elements, int len);
273 int mac_mount_label_externalize(struct label *label, char *elements,
H A Dmac_policy.h736 @param elements Element buffer
748 char *elements,
895 @param elements Elements buffer
896 @param len Length of elements buffer
908 char *elements,
/darwin-on-arm/xnu/libkern/c++/
H A DOSUnserializeXML.y76 struct object *elements;
179 $$->elements = NULL;
182 $$->elements = $2;
208 $$->elements = NULL;
210 | '(' elements ')' { $$ = $1;
211 $$->elements = $2;
217 $$->elements = NULL;
219 | '[' elements ']' { $$ = $1;
220 $$->elements = $2;
225 elements label
[all...]
H A DOSUnserialize.y169 | '(' elements ')' { $$ = $2; }
173 | '[' elements ']' { $$ = $2; }
176 elements: object { $$ = newObject(); label
181 | elements ',' object { oo = newObject();
H A DOSUnserializeXML.cpp171 struct object *elements; member in struct:object
431 N elements. */
456 elements in the stack, and YYPTR gives the new location of the
567 "pairs", "pair", "key", "array", "set", "elements", "boolean", "data",
1309 The wasted elements are never initialized. */
1329 /* Get the current used size of the three stacks, in elements. */
1569 (yyval)->elements = NULL;
1576 (yyval)->elements = (yyvsp[(2) - (3)]);
1606 (yyval)->elements = NULL;
1613 (yyval)->elements
[all...]
/darwin-on-arm/xnu/iokit/IOKit/
H A DIORangeAllocator.h47 @discussion The IORangeAllocator class provides functions for allocating ranges, at a fixed or any offset, and freeing them back to a free list. It is useful for describing ranges of memory or address space without requiring storage in the memory - information describing the free elements is kept elsewhere. Ranges are described by a start offset and a size. IORangeAllocator is optionally protected against multithreaded access.
61 struct IORangeAllocatorElement * elements; member in class:IORangeAllocator
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_dummynet.c589 int son = h->elements ;
594 son = h->elements ;
596 if (heap_init(h, h->elements+1) )
600 h->elements++ ;
623 int child, father, maxelt = h->elements - 1 ;
634 if (father < 0 || father >= h->elements) {
636 father, h->elements);
650 h->elements-- ;
669 for (i = 0 ; i < h->elements ; i++ )
902 while ( p_numbytes >=0 && (sch->elements>
[all...]
H A Dip_dummynet.h129 * Current size is "size", with "elements" actually in use.
147 int elements ; member in struct:dn_heap
344 int rq_elements ; /* active elements */
436 int elements ; member in struct:dn_heap_32
498 int rq_elements ; /* active elements */
560 int elements ; member in struct:dn_heap_64
623 int rq_elements ; /* active elements */
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_subr.c311 hashinit(int elements, int type, u_long *hashmask) argument
317 if (elements <= 0)
319 for (hashsize = 1; hashsize <= elements; hashsize <<= 1)

Completed in 117 milliseconds