| /freebsd/sys/contrib/ck/include/ |
| H A D | ck_hp_fifo.h | 55 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 D | ck_fifo.h | 50 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 D | fifo_defs.h | 45 #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 D | operator.c | 74 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 D | find.c | 71 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/usr.bin/tail/tests/ |
| H A D | tail_test.sh | 35 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/stand/efi/libefi/ |
| H A D | devpath.c | 82 char *tail; in efi_make_tail() local 84 tail = NULL; in efi_make_tail() 86 (void)asprintf(&tail, "/%s", suffix); in efi_make_tail() 88 tail = strdup(""); in efi_make_tail() 89 return (tail); in efi_make_tail() 103 char *name, *tail, *head; in efi_vendor_path() local 111 tail = efi_make_tail(suffix); in efi_vendor_path() 122 free(tail); in efi_vendor_path() 131 if (asprintf(&name, "%s]%s", head, tail) < 0) in efi_vendor_path() 134 free(tail); in efi_vendor_path() [all …]
|
| /freebsd/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | hash.h | 100 /* tail */ in hash_x86_32() 102 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() 171 /* tail */ in hash_x86_128() 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[1 in hash_x86_128() 259 const uint8_t *tail = (const uint8_t*)(data + nblocks*16); hash_x64_128() local [all...] |
| /freebsd/sys/kern/ |
| H A D | subr_memdesc.c | 426 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/crypto/openssl/util/ |
| H A D | add-depends.pl | 231 (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 …]
|
| /freebsd/contrib/bmake/unit-tests/ |
| H A D | varmod-tail.exp | 1 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 D | bitmap.h | 42 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 …]
|
| /freebsd/contrib/ofed/libbnxtre/ |
| H A D | memory.h | 41 uint32_t tail; member 73 uint32_t tail; member 112 idx += que->tail; in bnxt_re_get_hwqe() 120 return (void *)(que->va + ((que->tail) << 4)); in bnxt_re_get_hwqe_hdr() 126 int32_t avail, head, tail; in bnxt_re_is_que_full() local 129 tail = que->tail; in bnxt_re_is_que_full() 130 avail = head - tail; in bnxt_re_is_que_full() 131 if (head <= tail) in bnxt_re_is_que_full() 138 return que->tail == que->head; in bnxt_re_is_que_empty() 143 que->tail += cnt; in bnxt_re_incr_tail() [all …]
|
| /freebsd/sys/dev/syscons/ |
| H A D | sctermvar.h | 35 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 D | list.h | 31 #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/ssl/quic/ |
| H A D | quic_sf_list.c | 71 new_frame->prev = fl->tail; in append_frame() 72 if (fl->tail != NULL) in append_frame() 73 fl->tail->next = new_frame; in append_frame() 74 fl->tail = new_frame; in append_frame() 85 uint64_t curr_end = fl->tail != NULL ? fl->tail->range.end in ossl_sframe_list_insert() 97 if (fl->tail == NULL) { in ossl_sframe_list_insert() 98 fl->tail = fl->head = stream_frame_new(range, pkt, data); in ossl_sframe_list_insert() 99 if (fl->tail == NULL) in ossl_sframe_list_insert() 107 if (fl->tail->range.start < range->start) { in ossl_sframe_list_insert() 108 if (fl->tail->range.end >= range->end) in ossl_sframe_list_insert() [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | modes_internal_test.c | 157 size_t tail; in last_blocks_correction() local 160 if ((tail = len % 16) == 0) in last_blocks_correction() 161 tail = 16; in last_blocks_correction() 162 tail += 16; in last_blocks_correction() 164 return tail; in last_blocks_correction() 170 size_t tail; in last_blocks_correction_nist() local 172 if ((tail = len % 16) == 0) in last_blocks_correction_nist() 173 tail = 16; in last_blocks_correction_nist() 174 len -= 16 + tail; in last_blocks_correction_nist() 177 memcpy(out + len, in + len + 16, tail); in last_blocks_correction_nist() [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zfs_crrd.c | 90 const rrd_data_t *tail; in rrd_tail() local 92 tail = rrd_tail_entry(rrd); in rrd_tail() 94 return (tail == NULL ? 0 : tail->rrdd_time); in rrd_tail() 133 rrd_data_t *tail; in rrd_add() local 135 tail = rrd_tail_entry(rrd); in rrd_add() 136 if (tail != NULL && tail->rrdd_time == time) { in rrd_add() 137 if (tail->rrdd_txg < txg) { in rrd_add() 138 tail->rrdd_txg = txg; in rrd_add()
|
| /freebsd/lib/libc/include/isc/ |
| H A D | list.h | 30 #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/dev/tws/ |
| H A D | tws_user.c | 226 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 D | tws_services.c | 89 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/sys/netpfil/ipfw/ |
| H A D | dn_sched_rr.c | 78 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/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_symbolize.cpp | 58 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 D | ng_bluetooth.h | 68 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 D | netmap_mbq.c | 50 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()
|