Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 25 of 688) sorted by relevance

12345678910>>...28

/freebsd/sys/contrib/ck/include/
H A Dck_hp_fifo.h55 struct ck_hp_fifo_entry *tail; member
63 fifo->head = fifo->tail = stub; in ck_hp_fifo_init()
73 fifo->head = fifo->tail = NULL; in ck_hp_fifo_deinit()
83 struct ck_hp_fifo_entry *tail, *next; in ck_hp_fifo_enqueue_mpmc() local
90 tail = ck_pr_load_ptr(&fifo->tail); in ck_hp_fifo_enqueue_mpmc()
91 ck_hp_set_fence(record, 0, tail); in ck_hp_fifo_enqueue_mpmc()
92 if (tail != ck_pr_load_ptr(&fifo->tail)) in ck_hp_fifo_enqueue_mpmc()
95 next = ck_pr_load_ptr(&tail->next); in ck_hp_fifo_enqueue_mpmc()
97 ck_pr_cas_ptr(&fifo->tail, tail, next); in ck_hp_fifo_enqueue_mpmc()
99 } else if (ck_pr_cas_ptr(&fifo->tail->next, next, entry) == true) in ck_hp_fifo_enqueue_mpmc()
[all …]
H A Dck_fifo.h50 struct ck_fifo_spsc_entry *tail; member
110 fifo->head = fifo->tail = fifo->head_snapshot = fifo->garbage = stub; in ck_fifo_spsc_init()
119 fifo->head = fifo->tail = NULL; in ck_fifo_spsc_deinit()
134 ck_pr_store_ptr(&fifo->tail->next, entry); in ck_fifo_spsc_enqueue()
135 fifo->tail = entry; in ck_fifo_spsc_enqueue()
220 struct ck_fifo_mpmc_pointer tail; member
230 fifo->head.pointer = fifo->tail.pointer = stub; in ck_fifo_mpmc_init()
231 fifo->head.generation = fifo->tail.generation = NULL; in ck_fifo_mpmc_init()
240 fifo->head.pointer = fifo->tail.pointer = NULL; in ck_fifo_mpmc_deinit()
249 struct ck_fifo_mpmc_pointer tail, next, update; in ck_fifo_mpmc_enqueue() local
[all …]
/freebsd/contrib/ncurses/ncurses/
H A Dfifo_defs.h45 #define tail sp->_fifotail macro
53 if (head == tail) \
54 head = -1, tail = 0; \
60 if (head == tail) \
61 tail = -1; \
64 (tail >= FIFO_SIZE-1) \
65 ? tail = 0 \
66 : tail++; \
67 if (tail == head) \
68 tail = -1; \
[all …]
/freebsd/usr.bin/find/
H A Doperator.c74 PLAN *tail; /* pointer to tail of subplan */ in yankexpr() local
88 for (tail = subplan = NULL;;) { in yankexpr()
106 tail = subplan = next; in yankexpr()
108 tail->next = next; in yankexpr()
109 tail = next; in yankexpr()
111 tail->next = NULL; in yankexpr()
125 PLAN *tail; /* pointer to tail of result plan */ in paren_squish() local
128 result = tail = NULL; in paren_squish()
144 tail = result = expr; in paren_squish()
146 tail->next = expr; in paren_squish()
[all …]
H A Dfind.c71 PLAN *plan, *tail, *new; in find_formplan() local
89 for (plan = tail = NULL; *argv;) { in find_formplan()
93 tail = plan = new; in find_formplan()
95 tail->next = new; in find_formplan()
96 tail = new; in find_formplan()
112 tail = plan = new; in find_formplan()
120 tail->next = new; in find_formplan()
121 tail = new; in find_formplan()
124 tail->next = new; in find_formplan()
125 tail = new; in find_formplan()
/freebsd/stand/efi/libefi/
H A Ddevpath.c80 char *tail; in efi_make_tail() local
82 tail = NULL; in efi_make_tail()
84 (void)asprintf(&tail, "/%s", suffix); in efi_make_tail()
86 tail = strdup(""); in efi_make_tail()
87 return (tail); in efi_make_tail()
101 char *name, *tail, *head; in efi_vendor_path() local
109 tail = efi_make_tail(suffix); in efi_vendor_path()
120 free(tail); in efi_vendor_path()
129 if (asprintf(&name, "%s]%s", head, tail) < 0) in efi_vendor_path()
132 free(tail); in efi_vendor_path()
[all …]
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dhash.h102 const uint8_t *tail = (const uint8_t *) (data + nblocks*4); in hash_x86_32() local
107 case 3: k1 ^= tail[2] << 16; JEMALLOC_FALLTHROUGH in hash_x86_32()
108 case 2: k1 ^= tail[1] << 8; JEMALLOC_FALLTHROUGH in hash_x86_32()
109 case 1: k1 ^= tail[0]; k1 *= c1; k1 = hash_rotl_32(k1, 15); in hash_x86_32()
173 const uint8_t *tail = (const uint8_t *) (data + nblocks*16); in hash_x86_128() local
180 case 15: k4 ^= tail[14] << 16; JEMALLOC_FALLTHROUGH in hash_x86_128()
181 case 14: k4 ^= tail[13] << 8; JEMALLOC_FALLTHROUGH in hash_x86_128()
182 case 13: k4 ^= tail[12] << 0; in hash_x86_128()
185 case 12: k3 ^= tail[11] << 24; JEMALLOC_FALLTHROUGH in hash_x86_128()
186 case 11: k3 ^= tail[10] << 16; JEMALLOC_FALLTHROUGH in hash_x86_128()
[all …]
/freebsd/sys/kern/
H A Dsubr_memdesc.c426 struct mbuf *m, *tail; in paddr_ext_mbuf() local
442 m = tail = extpg_alloc(cb_arg, how); in paddr_ext_mbuf()
446 if (!can_append_paddr(tail, pa)) { in paddr_ext_mbuf()
447 MBUF_EXT_PGS_ASSERT_SANITY(tail); in paddr_ext_mbuf()
448 tail->m_next = extpg_alloc(cb_arg, how); in paddr_ext_mbuf()
449 if (tail->m_next == NULL) in paddr_ext_mbuf()
451 tail = tail->m_next; in paddr_ext_mbuf()
454 appended = append_paddr_range(tail, pa, len); in paddr_ext_mbuf()
462 MBUF_EXT_PGS_ASSERT_SANITY(tail); in paddr_ext_mbuf()
474 struct mbuf *m, *n, *tail; in vlist_ext_mbuf() local
[all …]
/freebsd/usr.bin/tail/tests/
H A Dtail_test.sh35 tail -r infile > outfile
36 tail -r < infile > outpipe
58 tail -r infile > outfile
59 tail -r < infile > outpipe
80 tail -rn2 infile > outfile
81 tail -rn2 < infile > outpipe
101 printf '\n1\n2\n3\n' | tail -r > outfile
102 printf '\n1\n2\n3\n' | tail -r > outpipe
123 tail -rc28 infile > outfile
124 tail -rc28 < infile > outpipe
[all …]
/freebsd/crypto/openssl/util/
H A Dadd-depends.pl231 (my $tail = $') =~ s/\s*\R$//;
236 $tail = canonpath($tail);
238 unless (defined $depconv_cache{$tail}) {
239 my $dep = $tail;
246 $depconv_cache{$tail} = $dep;
250 return ($objfile, '"'.$depconv_cache{$tail}.'"')
251 if defined $depconv_cache{$tail};
252 print STDERR "DEBUG[$producer]: ignoring $objfile <- $tail\n"
279 (my $tail = $') =~ s/\s*\R$//;
285 $tail = rel2abs($tail);
[all …]
H A Dcheck-format.pl452 my ($head, $tail) = (substr($str, 0, $i).$1, $3);
471 $tail =~ m/^([\s@]*)([^\s\@])/;
514 … if $tail =~ m/^([^{]*)/ && $1 =~ m/[^\s\@;]/; # non-space non-';' before any '{'
608 if ((my ($head, $tail) = m|^(.*?)\*/(.*)$|) && $1 ne '/') { # ending comment: '*/'
610 …report("missing space (or ',', ';', ')', '}', ']') after '*/'") if $tail =~ m/^[^\s,;)}\]]/; # no …
614 $_ = "$head@@".$tail; # blind the "*/"
625 $_ = blind_nonspace($cmt_text)."@@".$tail;
632 if (my ($head, $opt_minus, $tail) = m|^(.*?)/\*(-?)(.*)$|) { # begin of comment: '/*'
635 …report("missing space, '*', or '!' after '/*$opt_minus'") if $tail =~ m/^[^\s*!$self_test_exceptio…
636 my $cmt_text = $opt_minus.$tail; # preliminary
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-tail.exp1 tail (basename) of 'a/b/c' is 'c'
2 tail (basename) of 'def' is 'def'
3 tail (basename) of 'a.b.c' is 'a.b.c'
4 tail (basename) of 'a.b/c' is 'c'
5 tail (basename) of 'a' is 'a'
6 tail (basename) of 'a.a' is 'a.a'
7 tail (basename) of '.gitignore' is '.gitignore'
8 tail (basename) of 'a' is 'a'
9 tail (basename) of 'a.a' is 'a.a'
10 tail (basename) of 'trailing/' is ''
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dbitmap.h42 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_fill() local
46 if (tail) in bitmap_fill()
47 addr[BIT_WORD(size)] = BITMAP_LAST_WORD_MASK(tail); in bitmap_fill()
54 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_full() local
62 if (tail) { in bitmap_full()
63 const unsigned long mask = BITMAP_LAST_WORD_MASK(tail); in bitmap_full()
75 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_empty() local
83 if (tail) { in bitmap_empty()
84 const unsigned long mask = BITMAP_LAST_WORD_MASK(tail); in bitmap_empty()
208 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_weight() local
[all …]
H A Dcirc_buf.h30 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size) - 1)) argument
31 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head) + 1),(size)) argument
/freebsd/sys/dev/syscons/
H A Dsctermvar.h35 int attr, int tail);
37 int attr, int tail);
45 static __inline void sc_term_down(scr_stat *scp, int n, int tail);
49 int attr, int head, int tail);
51 int attr, int head, int tail);
62 sc_term_ins_line(scr_stat *scp, int y, int n, int ch, int attr, int tail) in sc_term_ins_line() argument
64 if (tail <= 0) in sc_term_ins_line()
65 tail = scp->ysize; in sc_term_ins_line()
68 if (n > tail - y) in sc_term_ins_line()
69 n = tail - y; in sc_term_ins_line()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/
H A Dlist.h31 #define ISC_LIST(type) struct { type *head, *tail; }
33 do { (list).head = NULL; (list).tail = NULL; } while (0)
46 #define ISC_LIST_TAIL(list) ((list).tail)
54 (list).tail = (elt); \
71 if ((list).tail != NULL) \
72 (list).tail->link.next = (elt); \
75 (elt)->link.prev = (list).tail; \
77 (list).tail = (elt); \
94 ISC_INSIST((list).tail == (elt)); \
95 (list).tail = (elt)->link.prev; \
[all …]
/freebsd/crypto/openssl/test/
H A Dmodes_internal_test.c155 size_t tail; in last_blocks_correction() local
158 if ((tail = len % 16) == 0) in last_blocks_correction()
159 tail = 16; in last_blocks_correction()
160 tail += 16; in last_blocks_correction()
162 return tail; in last_blocks_correction()
168 size_t tail; in last_blocks_correction_nist() local
170 if ((tail = len % 16) == 0) in last_blocks_correction_nist()
171 tail = 16; in last_blocks_correction_nist()
172 len -= 16 + tail; in last_blocks_correction_nist()
175 memcpy(out + len, in + len + 16, tail); in last_blocks_correction_nist()
[all …]
/freebsd/lib/libc/include/isc/
H A Dlist.h30 #define LIST(type) struct { type *head, *tail; }
32 do { (list).head = NULL; (list).tail = NULL; } while (0)
46 #define TAIL(list) ((list).tail)
55 (list).tail = (elt); \
64 if ((list).tail != NULL) \
65 (list).tail->link.next = (elt); \
68 (elt)->link.prev = (list).tail; \
70 (list).tail = (elt); \
79 INSIST((list).tail == (elt)); \
80 (list).tail = (elt)->link.prev; \
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_rr.c78 struct rr_queue *head, *tail; /* Pointer to current queue */ member
92 si->tail->qnext = q; in rr_append()
93 si->tail = q; /* advance the tail pointer */ in rr_append()
105 if (si->head == si->tail) { in rr_remove_head()
106 si->head = si->tail = NULL; in rr_remove_head()
111 si->tail->qnext = si->head; in rr_remove_head()
133 if (q == si->tail) in remove_queue_q()
134 si->tail = prev; in remove_queue_q()
147 si->tail = si->tail->qnext; in next_pointer()
228 si->head = si->tail = NULL; in rr_new_sched()
/freebsd/sys/dev/tws/
H A Dtws_user.c226 if ( sc->aen_q.head == sc->aen_q.tail ) { in tws_retrive_aen()
250 index = (sc->aen_q.depth + sc->aen_q.tail - 1) % sc->aen_q.depth; in tws_retrive_aen()
260 }while ( index != sc->aen_q.tail ); in tws_retrive_aen()
261 if ( index == sc->aen_q.tail ) { in tws_retrive_aen()
274 }while ( index != sc->aen_q.tail ); in tws_retrive_aen()
275 if ( index == sc->aen_q.tail ) { in tws_retrive_aen()
375 volatile u_int16_t head, tail; in tws_circular_aenq_insert() local
380 tail = cq->tail; in tws_circular_aenq_insert()
381 retr = q[tail].retrieved; in tws_circular_aenq_insert()
383 memcpy(&q[tail], aen, sizeof(struct tws_event_packet)); in tws_circular_aenq_insert()
[all …]
H A Dtws_services.c89 volatile u_int16_t head, tail; in tws_trace() local
93 tail = sc->trace_q.tail; in tws_trace()
97 strncpy(rec[tail].fname, file, TWS_TRACE_FNAME_LEN); in tws_trace()
98 strncpy(rec[tail].func, fun, TWS_TRACE_FUNC_LEN); in tws_trace()
99 rec[tail].linenum = linenum; in tws_trace()
100 strncpy(rec[tail].desc, desc, TWS_TRACE_DESC_LEN); in tws_trace()
101 rec[tail].val1 = val1; in tws_trace()
102 rec[tail].val2 = val2; in tws_trace()
104 tail = (tail+1) % sc->trace_q.depth; in tws_trace()
106 if ( head == tail ) { in tws_trace()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_symbolize.cpp58 SymbolizedStack *tail; member
65 if (ssb->tail) { in AddFrame()
66 ssb->tail->next = SymbolizedStack::New(ssb->addr); in AddFrame()
67 ssb->tail = ssb->tail->next; in AddFrame()
69 ssb->head = ssb->tail = SymbolizedStack::New(ssb->addr); in AddFrame()
71 AddressInfo *info = &ssb->tail->info; in AddFrame()
/freebsd/sys/netgraph/bluetooth/include/
H A Dng_bluetooth.h68 struct mbuf *tail; /* last item in the queue */ member
79 (q)->tail = NULL; \
102 if ((q)->tail == NULL) \
105 (q)->tail->m_nextpkt = (i); \
107 (q)->tail = (i); \
117 (q)->tail = NULL; \
127 if ((q)->tail == NULL) \
128 (q)->tail = (i); \
/freebsd/sys/dev/netmap/
H A Dnetmap_mbq.c50 q->head = q->tail = NULL; in __mbq_init()
71 if (q->tail) { in __mbq_enqueue()
72 q->tail->m_nextpkt = m; in __mbq_enqueue()
73 q->tail = m; in __mbq_enqueue()
75 q->head = q->tail = m; in __mbq_enqueue()
103 q->tail = NULL; in __mbq_dequeue()
/freebsd/sys/dev/qat/qat_api/qat_kernel/src/
H A Dqat_transport.c309 *pCurrentQatMsg = (void *)((uintptr_t)ring->base_addr + ring->tail); in icp_adf_getQueueMemory()
336 *pCurrentQatMsg = (void *)((uintptr_t)ring->base_addr + ring->tail); in icp_adf_getSingleQueueAddr()
339 ring->tail = in icp_adf_getSingleQueueAddr()
340 adf_modulo(ring->tail + ADF_MSG_SIZE_TO_BYTES(ring->msg_size), in icp_adf_getSingleQueueAddr()
358 ring->tail = in icp_adf_getQueueNext()
359 adf_modulo(ring->tail + ADF_MSG_SIZE_TO_BYTES(ring->msg_size), in icp_adf_getQueueNext()
363 *pCurrentQatMsg = (void *)((uintptr_t)ring->base_addr + ring->tail); in icp_adf_getQueueNext()
387 ring->tail); in icp_adf_updateQueueTail()
388 ring->csr_tail_offset = ring->tail; in icp_adf_updateQueueTail()
422 if (ring->tail != ring->csr_tail_offset) in icp_adf_queueDataToSend()

12345678910>>...28