Searched refs:head (Results 376 - 400 of 923) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/kern/
H A Duipc_syscalls.c353 struct socket *head, *so; local
368 head = headfp->f_data;
369 if ((head->so_options & SO_ACCEPTCONN) == 0) {
374 error = mac_socket_check_accept(td->td_ucred, head);
383 if ((head->so_state & SS_NBIO) && TAILQ_EMPTY(&head->so_comp)) {
388 while (TAILQ_EMPTY(&head->so_comp) && head->so_error == 0) {
389 if (head->so_rcv.sb_state & SBS_CANTRCVMORE) {
390 head
[all...]
/freebsd-11-stable/usr.bin/fstat/
H A Dfstat.c211 struct filestat_list *head; local
218 head = procstat_getfiles(procstat, kp, mflg);
219 if (head == NULL)
221 STAILQ_FOREACH(fst, head, next)
223 procstat_freefiles(procstat, head);
/freebsd-11-stable/contrib/apr-util/misc/
H A Dapr_thread_pool.c783 struct apr_thread_list_elt *head, *tail, *elt; local
801 head = APR_RING_FIRST(thds);
803 head = APR_RING_NEXT(head, link);
807 APR_RING_UNSPLICE(head, tail, link);
812 for (elt = head; elt != tail; elt = APR_RING_NEXT(elt, link)) {
823 APR_RING_PREV(head, link) = NULL;
825 return head;
831 struct apr_thread_list_elt *elt, *head, *tail; local
841 if (NULL != (head
[all...]
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dqp.c86 qp->sq.head = 0;
88 qp->rq.head = 0;
110 cur = wq->head - wq->tail;
115 cur = wq->head - wq->tail;
231 ind = qp->sq.head;
472 ctrl->owner_opcode |= htobe32((qp->sq.head & 0xffff) << 8);
475 ++qp->sq.head;
491 qp->sq.head += nreq;
526 ind = qp->rq.head & (qp->rq.wqe_cnt - 1);
559 qp->rq.head
[all...]
/freebsd-11-stable/sys/dev/liquidio/base/
H A Dlio_request_manager.c451 head, &sc->node, entries);
734 STAILQ_INIT(&oct->sc_buf_pool.head);
749 STAILQ_INSERT_TAIL(&oct->sc_buf_pool.head, &sc->node, entries);
763 STAILQ_FOREACH_SAFE(tmp, &oct->sc_buf_pool.head, entries, tmp2) {
764 sc = LIO_STAILQ_FIRST_ENTRY(&oct->sc_buf_pool.head,
767 STAILQ_REMOVE_HEAD(&oct->sc_buf_pool.head, entries);
772 STAILQ_INIT(&oct->sc_buf_pool.head);
796 if (STAILQ_EMPTY(&oct->sc_buf_pool.head)) {
800 tmp = STAILQ_LAST(&oct->sc_buf_pool.head, lio_stailq_node, entries);
802 STAILQ_REMOVE(&oct->sc_buf_pool.head, tm
[all...]
/freebsd-11-stable/sys/dev/netmap/
H A Dnetmap_kloop.c78 * behind head).
93 /* Read kring pointers (head, cur, sync_flags) from the CSB.
101 * We place a memory barrier to make sure that the update of head never
105 CSB_READ(ptr, head, shadow_ring->head);
110 /* Make sure that loads from atok->head and atok->cur are not delayed
185 batch = shadow_ring.head - kring->nr_hwcur;
197 nm_prdis(1, "batch: %d head: %d head_lim: %d", batch, shadow_ring.head,
199 shadow_ring.head
[all...]
/freebsd-11-stable/sys/dev/vkbd/
H A Dvkbd.c102 int head; /* index of the first code */ member in struct:vkbd_queue
273 state->ks_inq.head = state->ks_inq.tail = state->ks_inq.cc = 0;
381 if (q->head == q->tail) {
383 avail = nitems(q->q) - q->head;
386 } else if (q->head < q->tail)
389 avail = q->head - q->tail;
526 c = q->q[q->head ++];
527 if (q->head == nitems(q->q))
528 q->head = 0;
628 state->ks_inq.head
[all...]
/freebsd-11-stable/stand/libsa/zfs/
H A Dzfs.c366 size_t res, head, tail, total_size, full_sec_size; local
388 * |<--head-->|<--------------bytes------------>|<--tail-->|
402 * |<-head->|<---bytes--->|<-tail->|
409 head = offset % secsz;
410 total_size = roundup2(head + bytes, secsz);
411 tail = total_size - (head + bytes);
412 do_tail_read = ((tail > 0) && (head + bytes > secsz));
414 if (head > 0)
420 if ((head > 0) || do_tail_read || bytes < secsz) {
434 if (head >
[all...]
/freebsd-11-stable/contrib/binutils/gas/
H A Dlisting.c189 static struct list_info_struct * head; variable in typeref:struct:list_info_struct
386 head = new;
429 if (head == (list_info_type *) NULL
430 || head == listing_tail)
435 for (l = head; l->next != listing_tail; l = l->next)
938 list_info_type *list = head;
949 list = head->next;
/freebsd-11-stable/sys/dev/ixgbe/
H A Dif_bypass.c565 u32 cmd, base, head; local
582 /* Find Current head of the log eeprom offset */
601 head = (status & BYPASS_CTL2_HEAD_M) >> BYPASS_CTL2_HEAD_SHIFT;
604 log_off = base + (head * 5);
640 head = head ? head - 1 : BYPASS_MAX_LOGS;
641 log_off = base + (head * 5);
/freebsd-11-stable/contrib/unbound/util/
H A Dconfig_file.c1739 struct config_strlist** head, char* item)
1742 if(!item || !head)
1749 s->next = *head;
1750 *head = s;
1755 cfg_strlist_find(struct config_strlist* head, const char *item) argument
1757 struct config_strlist *s = head;
1758 if(!head){
1771 cfg_strlist_insert(struct config_strlist** head, char* item) argument
1774 if(!item || !head) {
1784 s->next = *head;
1738 cfg_region_strlist_insert(struct regional* region, struct config_strlist** head, char* item) argument
1790 cfg_strlist_append_ex(struct config_strlist** head, char* item) argument
1815 cfg_str2list_insert(struct config_str2list** head, char* item, char* i2) argument
1837 cfg_str3list_insert(struct config_str3list** head, char* item, char* i2, char* i3) argument
1855 cfg_strbytelist_insert(struct config_strbytelist** head, char* item, uint8_t* i2, size_t i2len) argument
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Ddeflate.c179 * Insert string str in the dictionary and set match_head to the previous head
191 match_head = s->head[s->ins_h], \
192 s->head[s->ins_h] = (Pos)(str))
196 match_head = s->prev[(str) & s->w_mask] = s->head[s->ins_h], \
197 s->head[s->ins_h] = (Pos)(str))
205 s->head[s->hash_size-1] = NIL; \
206 (void) zmemzero((Bytef *)s->head, \
207 (unsigned)(s->hash_size-1)*sizeof(*s->head));
295 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
303 if (s->window == Z_NULL || s->prev == Z_NULL || s->head
[all...]
/freebsd-11-stable/sys/dev/drm2/
H A Ddrm_crtc.h126 struct list_head head; member in struct:drm_display_mode
254 struct list_head head; member in struct:drm_framebuffer
273 struct list_head head; member in struct:drm_property_blob
280 struct list_head head; member in struct:drm_property_enum
285 struct list_head head; member in struct:drm_property
364 * @head: list management
388 struct list_head head; member in struct:drm_crtc
480 * @head: list management
494 struct list_head head; member in struct:drm_encoder
529 * @head
568 struct list_head head; member in struct:drm_connector
653 struct list_head head; member in struct:drm_plane
[all...]
/freebsd-11-stable/sys/rpc/
H A Dsvc_vc.c97 static int svc_vc_accept(struct socket *head, struct socket **sop);
317 svc_vc_accept(struct socket *head, struct socket **sop) argument
322 if ((head->so_options & SO_ACCEPTCONN) == 0) {
327 error = mac_socket_check_accept(curthread->td_ucred, head);
332 if (TAILQ_EMPTY(&head->so_comp)) {
337 so = TAILQ_FIRST(&head->so_comp);
350 TAILQ_REMOVE(&head->so_comp, so, so_list);
351 head->so_qlen--;
352 so->so_state |= (head->so_state & SS_NBIO);
362 KNOTE_UNLOCKED(&head
[all...]
/freebsd-11-stable/sys/dev/atkbdc/
H A Datkbdc.c73 #define availq(q) ((q)->head != (q)->tail)
75 #define emptyq(q) ((q)->tail = (q)->head = (q)->qcount = 0)
77 #define emptyq(q) ((q)->tail = (q)->head = 0)
295 sc->kbd.head = sc->kbd.tail = 0;
296 sc->aux.head = sc->aux.tail = 0;
416 if (nextq(q->tail) != q->head) {
435 if (q->tail != q->head) {
436 c = q->q[q->head];
437 q->head = nextq(q->head);
[all...]
/freebsd-11-stable/contrib/binutils/gas/config/
H A Dobj-elf.c1875 asection **head; /* Section lists. */ member in struct:group_list
1882 pointer to a struct group_list, which is where we store the head of
1895 /* If this group already has a list, add the section to the head of
1899 if (strcmp (group_name, elf_group_name (list->head[i])) == 0)
1901 elf_next_in_group (sec) = list->head[i];
1902 list->head[i] = sec;
1914 list->head = xrealloc (list->head, newsize * sizeof (*list->head));
1918 list->head[
[all...]
/freebsd-11-stable/lib/libprocstat/
H A Dlibprocstat.c362 procstat_freefiles(struct procstat *procstat, struct filestat_list *head) argument
366 STAILQ_FOREACH_SAFE(fst, head, next, tmp) {
371 free(head);
457 struct filestat_list *head; local
477 * Allocate list head.
479 head = malloc(sizeof(*head));
480 if (head == NULL)
482 STAILQ_INIT(head);
489 STAILQ_INSERT_TAIL(head, entr
820 struct filestat_list *head; local
[all...]
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dbeacon.c1054 struct ieee80211_mgmt *head = NULL; local
1065 head = os_zalloc(BEACON_HEAD_BUF_SIZE);
1102 if (head == NULL || tail == NULL) {
1104 os_free(head);
1109 head->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
1111 head->duration = host_to_le16(0);
1112 os_memset(head->da, 0xff, ETH_ALEN);
1114 os_memcpy(head->sa, hapd->own_addr, ETH_ALEN);
1115 os_memcpy(head->bssid, hapd->own_addr, ETH_ALEN);
1116 head
[all...]
/freebsd-11-stable/sys/compat/ndis/
H A Dsubr_ntoskrnl.c2076 ntoskrnl_pushsl(head, entry)
2077 slist_header *head;
2082 oldhead = head->slh_list.slh_next;
2083 entry->sl_next = head->slh_list.slh_next;
2084 head->slh_list.slh_next = entry;
2085 head->slh_list.slh_depth++;
2086 head->slh_list.slh_seq++;
2092 InitializeSListHead(head)
2093 slist_header *head;
2095 memset(head,
[all...]
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dmaster.c592 if (!newhost_hash->head) {
594 * scratch pointers in case the new head is
607 ret->head = 1;
613 ret->head = 0;
622 ret->head = 1;
666 if (htp->head && hnxt != htp) {
670 /* Use scratch pointers in case the new head is pointing to
681 hnxt->head = 1;
/freebsd-11-stable/sys/dev/evdev/
H A Duinput.c182 size_t head, tail; local
186 head = state->ucs_buffer_head;
196 if (tail == head) {
199 head = (head + 1) % UINPUT_BUFFER_SIZE;
200 state->ucs_buffer_head = head;
/freebsd-11-stable/contrib/mdocml/
H A Dmdoc_man.c287 char *head; member in struct:__anon3584
340 if (fontqueue.head + fontqueue.size <= ++fontqueue.tail) {
342 fontqueue.head = mandoc_realloc(fontqueue.head,
356 if (fontqueue.tail > fontqueue.head)
624 fontqueue.head = fontqueue.tail = mandoc_malloc(8);
1156 n->parent->head->child == NULL &&
1161 n->parent->head->child != NULL && (n->child != NULL ||
1177 body = n->child != NULL || n->parent->head->child != NULL;
/freebsd-11-stable/sys/netinet/
H A Dip_fw.h835 ipfw_obj_tlv head; member in struct:_ipfw_obj_data
841 ipfw_obj_tlv head; /* TLV header */ member in struct:_ipfw_obj_ntlv
888 ipfw_obj_tlv head; /* TLV header */ member in struct:_ipfw_obj_tentry
922 ipfw_obj_tlv head; member in struct:_ipfw_obj_dyntlv
929 ipfw_obj_tlv head; /* TLV header */ member in struct:_ipfw_obj_ctlv
938 ipfw_obj_tlv head; /* TLV header */ member in struct:_ipfw_range_tlv
/freebsd-11-stable/sys/fs/nfs/
H A Dnfs.h564 * Queue head for nfsreq's
682 * assign a doubly linked list to a new head
691 #define LIST_PREPEND(head, phead, lelm, field) do { \
692 if ((head)->lh_first != NULL) { \
693 (lelm)->field.le_next = (head)->lh_first; \
697 (head)->lh_first = (phead)->lh_first; \
698 (head)->lh_first->field.le_prev = &(head)->lh_first; \
/freebsd-11-stable/contrib/groff/src/devices/grohtml/
H A Dpost-html.cpp91 /* into <head> </head> */
173 file *head; member in class:files
183 : head(NULL), tail(NULL), ptr(NULL)
205 ptr = head;
224 if (head == NULL) {
225 head = new file(f);
226 tail = head;
383 char_block *head; member in class:char_buffer
388 : head(NUL
988 element_list *head; member in class:list
[all...]

Completed in 266 milliseconds

<<11121314151617181920>>