/illumos-gate/usr/src/uts/common/io/bnx/include/ |
H A D | listq.h | 87 s_list_entry_t *tail; member 105 s_list->tail = tail_entry; in s_list_init() 116 s_list->tail = (s_list_entry_t *) 0; in s_list_clear() 129 if(s_list->tail == (s_list_entry_t *) 0) in s_list_push_head() 131 s_list->tail = s_entry; in s_list_push_head() 152 s_list->tail = (s_list_entry_t *) 0; in s_list_pop_head() 170 if(s_list->tail) in s_list_push_tail() 172 s_list->tail->next = s_entry; in s_list_push_tail() 178 s_list->tail = s_entry; in s_list_push_tail() 198 return s_list->tail; in s_list_peek_tail() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/include/ |
H A D | listq.h | 79 s_list_entry_t *tail; member 97 s_list->tail = tail_entry; in s_list_init() 108 s_list->tail = (s_list_entry_t *) 0; in s_list_clear() 121 if(s_list->tail == (s_list_entry_t *) 0) in s_list_push_head() 123 s_list->tail = s_entry; in s_list_push_head() 144 s_list->tail = (s_list_entry_t *) 0; in s_list_pop_head() 162 if(s_list->tail) in s_list_push_tail() 164 s_list->tail->next = s_entry; in s_list_push_tail() 170 s_list->tail = s_entry; in s_list_push_tail() 190 return s_list->tail; in s_list_peek_tail() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_zip.c | 49 uint8_t *tail = (uint8_t *)zip + len; in interpret_ddp_zip() local 70 if ((p+6 > tail) || (p+7+p[6] > tail)) in interpret_ddp_zip() 108 if (p+2 > tail) in interpret_ddp_zip() 124 if (p+2 > tail) in interpret_ddp_zip() 128 if (p+1 > tail || (&p[1] + p[0]) > tail) in interpret_ddp_zip() 139 if (p+1 > tail || (&p[1] + p[0]) > tail) in interpret_ddp_zip() 146 if (p+5 > tail) in interpret_ddp_zip() 152 if (p+7 > tail || (&p[7] + p[6]) > tail) in interpret_ddp_zip() 159 if (p+1 > tail || (&p[1] + p[0]) > tail) in interpret_ddp_zip() 168 if (p+1 > tail || (&p[1] + p[0]) > tail) in interpret_ddp_zip() [all …]
|
H A D | snoop_atp.c | 100 char *tail = &buf[sizeof (buf)]; in atp_ci() local 104 p += snprintf(p, tail-p, "TReq"); in atp_ci() 108 p += snprintf(p, tail-p, "TResp"); in atp_ci() 111 p += snprintf(p, tail-p, "TRel"); in atp_ci() 115 p += snprintf(p, tail-p, ci & ATP_FLG_XO ? " XO" : " ALO"); in atp_ci() 118 p += snprintf(p, tail-p, " EOM"); in atp_ci() 121 p += snprintf(p, tail-p, " STS"); in atp_ci() 124 (void) snprintf(p, tail-p, " %s", to); in atp_ci()
|
H A D | snoop_nbp.c | 98 show_nbp_tuples(uint8_t *p, int tuples, uint8_t *tail) in show_nbp_tuples() argument 110 if ((p + 5) > tail) in show_nbp_tuples() 118 if (p > tail || &p[1]+p[0] > tail) in show_nbp_tuples() 123 if (p > tail || &p[1]+p[0] > tail) in show_nbp_tuples() 128 if (p > tail || &p[1]+p[0] > tail) in show_nbp_tuples()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_queue.c | 31 static void iscsi_enqueue_cmd_tail(iscsi_cmd_t **head, iscsi_cmd_t **tail, 60 queue->tail = NULL; in iscsi_init_queue() 90 &isp->sess_queue_pending.tail, icmdp); in iscsi_enqueue_pending_cmd() 95 &isp->sess_queue_pending.tail, icmdp); in iscsi_enqueue_pending_cmd() 116 &isp->sess_queue_pending.tail, icmdp); in iscsi_dequeue_pending_cmd() 172 &icp->conn_queue_active.tail, icmdp); in iscsi_enqueue_active_cmd() 177 &icp->conn_queue_active.tail, icmdp); in iscsi_enqueue_active_cmd() 180 &icp->conn_queue_active.tail, icmdp); in iscsi_enqueue_active_cmd() 205 &icp->conn_queue_active.tail, icmdp); in iscsi_dequeue_active_cmd() 245 &icp->conn_queue_idm_aborting.tail, icmdp); in iscsi_enqueue_idm_aborting_cmd() [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_cmds.c | 198 tail("abbreviate"); 205 tail("args"); 215 tail("append"); 233 tail("copy"); 240 tail("crypt"); 263 tail("cd"); 304 tail("change"); 343 tail("delete"); 363 tail(peekchar() == 'x' ? "ex" : "edit"); 402 tail("file"); [all …]
|
/illumos-gate/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_rfd.c | 60 static rfd_t *tail; /* tail of global list */ variable 96 if (tail == NULL) { in rfd_revoke_next() 108 rfd = rfd_find_prev_class(tail, RFD_RESERVED); in rfd_revoke_next() 115 rfd = rfd_find_prev_class(tail, RFD_PSINFO); in rfd_revoke_next() 126 rfd = tail; in rfd_revoke_next() 179 if (tail != NULL) in rfd_open() 180 rfd->rfd_prev_class = rfd_find_prev_class(tail, class); in rfd_open() 182 rfd->rfd_prev_class = tail; in rfd_open() 183 rfd->rfd_prev = tail; in rfd_open() 184 if (tail != NULL) in rfd_open() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | mknames.awk | 58 function tail(file) { function 94 tail("boolname.c"); 95 tail("boolcode.c"); 96 tail("boolfnam.c"); 97 tail("numname.c"); 98 tail("numcode.c"); 99 tail("numfnam.c"); 100 tail("strname.c"); 101 tail("strcode.c"); 102 tail("strfnam.c");
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | mknames.awk | 55 function tail(file) { function 98 tail("boolname.c"); 99 tail("boolcode.c"); 100 tail("boolfnam.c"); 101 tail("numname.c"); 102 tail("numcode.c"); 103 tail("numfnam.c"); 104 tail("strname.c"); 105 tail("strcode.c"); 106 tail("strfnam.c");
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | pathdup.c | 55 static struct dup *head, *tail, *new; variable 75 tail = head->next; in pathinit() 76 while (tail) { in pathinit() 77 new = tail->next; in pathinit() 78 free(tail); in pathinit() 79 tail = new; in pathinit() 81 tail = head; in pathinit() 101 tail->next = new; in growstore() 102 tail = new; in growstore() 124 pt = &tail->mem[MEMSIZ-size]; in pathalloc() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ring_buffer_util.c | 86 rbuf->tail = 0; in dapls_rbuf_alloc() 127 if (rbuf->head != rbuf->tail) { in dapls_rbuf_realloc() 209 if (((pos + 1) & rbuf->lim) != rbuf->tail) { in dapls_rbuf_add() 242 if (rbuf->head != rbuf->tail) { in dapls_rbuf_remove() 243 pos = rbuf->tail; in dapls_rbuf_remove() 244 rbuf->tail = (pos + 1) & rbuf->lim; in dapls_rbuf_remove() 274 int tail; in dapls_rbuf_count() local 278 tail = rbuf->tail; in dapls_rbuf_count() 280 if (head == tail) in dapls_rbuf_count() 282 if (head > tail) in dapls_rbuf_count() [all …]
|
H A D | dapl_provider.c | 185 g_dapl_provider_list.tail = dapl_os_alloc( in dapl_provider_list_create() 187 if (NULL == g_dapl_provider_list.tail) { in dapl_provider_list_create() 193 (void) dapl_os_memzero(g_dapl_provider_list.tail, in dapl_provider_list_create() 196 g_dapl_provider_list.head->next = g_dapl_provider_list.tail; in dapl_provider_list_create() 197 g_dapl_provider_list.tail->prev = g_dapl_provider_list.head; in dapl_provider_list_create() 207 if (NULL != g_dapl_provider_list.tail) { in dapl_provider_list_create() 208 dapl_os_free(g_dapl_provider_list.tail, in dapl_provider_list_create() 269 prev_node = g_dapl_provider_list.tail->prev; in dapl_provider_list_insert() 270 next_node = g_dapl_provider_list.tail; in dapl_provider_list_insert() 311 g_dapl_provider_list.tail != cur_node; in dapl_provider_list_search() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | gendeliv.c | 53 hdrlines[H_DAFWDFROM].tail = hdrlines[H_AFWDFROM].tail; 55 hdrlines[H_AFWDFROM].tail = (struct hdrs *)NULL; 57 hdrlines[H_DRECEIVED].tail = hdrlines[H_RECEIVED].tail; 59 hdrlines[H_RECEIVED].tail = (struct hdrs *)NULL; 61 hdrlines[H_DTCOPY].tail = hdrlines[H_TCOPY].tail; 63 hdrlines[H_TCOPY].tail = (struct hdrs *)NULL; 118 if ((hptr = hdrlines[H_FROM1].tail) == (struct hdrs *)NULL) { 119 hptr = hdrlines[H_FROM].tail; 257 hdrlines[H_AFWDFROM].tail = hdrlines[H_DAFWDFROM].tail; 259 hdrlines[H_DAFWDFROM].tail = (struct hdrs *)NULL; [all …]
|
H A D | goback.c | 136 hdrlines[H_DAFWDFROM].tail = hdrlines[H_AFWDFROM].tail; 138 hdrlines[H_AFWDFROM].tail = (struct hdrs *)NULL; 140 hdrlines[H_DRECEIVED].tail = hdrlines[H_RECEIVED].tail; 142 hdrlines[H_RECEIVED].tail = (struct hdrs *)NULL; 144 hdrlines[H_DTCOPY].tail = hdrlines[H_TCOPY].tail; 146 hdrlines[H_TCOPY].tail = (struct hdrs *)NULL;
|
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/ |
H A D | illumos_4149_builtin_head.sh | 34 builtin head tail 70 [[ $(tail -1 $t1) == 'test04' ]] || \ 73 [[ $(tail -2 $t1) == $'test03\ntest04' ]] || \ 76 [[ $(tail -10 $t1) == $'test00\ntest01\ntest02\ntest03\ntest04' ]] || \ 87 [[ $(tail -1 $t3) == 'nonewline' ]] || \ 90 [[ $(tail -2 $t3) == 'nonewline' ]] || \ 113 [[ $(tail -1 $t2) == 'nonewline' ]] || \ 116 [[ $(tail -2 $t2) == $'test04\nnonewline' ]] || \ 119 [[ $(tail -10 $t2) == $'test00\ntest01\ntest02\ntest03\ntest04\nnonewline' ]] \
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | history.c | 40 HISTORY *head, *tail, *current; variable 49 if (tail) { in addcmd() 50 tail->next = h; in addcmd() 52 h->previous = tail; in addcmd() 53 tail = h; in addcmd() 55 head = tail = h; in addcmd() 73 } else if (tail) in prevcmd() 74 return (current = tail); in prevcmd()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_ofs_gen_util.c | 62 new_entry->prev = list->tail; in add_genlist() 65 list->tail = new_entry; in add_genlist() 68 list->tail->next = new_entry; in add_genlist() 69 list->tail = new_entry; in add_genlist() 92 list->tail = entry->prev; in delete_genlist() 113 list->tail = list->head; in remove_genlist_head() 149 entry->prev = list->tail; in insert_genlist_tail() 152 list->tail = entry; in insert_genlist_tail() 155 list->tail->next = entry; in insert_genlist_tail() 156 list->tail = entry; in insert_genlist_tail()
|
/illumos-gate/usr/src/ucbcmd/ln/ |
H A D | ln.c | 77 char *tail; in linkit() local 88 tail = strrchr(from, '/'); in linkit() 89 if (tail == 0) in linkit() 90 tail = from; in linkit() 92 tail++; in linkit() 93 if (strlen(to) + strlen(tail) >= sizeof (destname) - 1) { in linkit() 95 to, tail); in linkit() 98 (void) sprintf(destname, "%s/%s", to, tail); in linkit()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_sched.c | 1148 #define MAC_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz) { \ argument 1154 (mac_srs)->srs_last = (tail); \ 1158 #define MAC_RX_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz) { \ argument 1161 MAC_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz); \ 1172 #define MAC_TX_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz) { \ argument 1174 MAC_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz); \ 1314 #define MAC_TX_SRS_TEST_HIWAT(srs, mp, tail, cnt, sz, cookie) { \ argument 1339 MAC_TX_SRS_ENQUEUE_CHAIN(srs, mp, tail, cnt, sz); \ 1439 #define FANOUT_ENQUEUE_MP(head, tail, cnt, bw_ctl, sz, sz0, mp) { \ argument 1440 if ((tail) != NULL) { \ [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vio_util.c | 88 vmplp->tail = 0; in vio_create_mblks() 102 vmplp->tail = vmplp->head; in vio_create_mblks() 119 vmplp->quep[vmplp->tail] = vmp; in vio_create_mblks() 120 vmplp->tail = (vmplp->tail + 1) & vmplp->quemask; in vio_create_mblks() 156 if (vmplp->head == vmplp->tail) { in vio_destroy_mblks() 164 if (vmplp->head != vmplp->tail) { in vio_destroy_mblks() 218 if (head != vmplp->tail) { in vio_allocb() 256 vmplp->quep[vmplp->tail] = vmp; in vio_freeb() 257 vmplp->tail = (vmplp->tail + 1) & vmplp->quemask; in vio_freeb() 284 ASSERT(vmplp->tail != vmplp->head); in vio_clobber_pool() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | strproc.c | 69 char *tail; in conv_strproc_trim() local 76 tail = str + strlen(str); in conv_strproc_trim() 77 while ((tail > str) && conv_strproc_isspace(*(tail - 1))) in conv_strproc_trim() 78 tail--; in conv_strproc_trim() 79 *tail = '\0'; in conv_strproc_trim()
|
/illumos-gate/usr/src/lib/libresolv2/include/isc/ |
H A D | list.h | 22 #define LIST(type) struct { type *head, *tail; } 24 do { (list).head = NULL; (list).tail = NULL; } while (0) 38 #define TAIL(list) ((list).tail) 47 (list).tail = (elt); \ 56 if ((list).tail != NULL) \ 57 (list).tail->link.next = (elt); \ 60 (elt)->link.prev = (list).tail; \ 62 (list).tail = (elt); \ 71 INSIST((list).tail == (elt)); \ 72 (list).tail = (elt)->link.prev; \
|
/illumos-gate/usr/src/lib/udapl/libdat/common/ |
H A D | dat_dictionary.c | 66 DAT_DICTIONARY_NODE *tail; member 131 p_dictionary->tail = dat_os_alloc(sizeof (DAT_DICTIONARY_NODE)); in dat_dictionary_create() 132 if (NULL == p_dictionary->tail) { in dat_dictionary_create() 138 (void) dat_os_memset(p_dictionary->tail, '\0', in dat_dictionary_create() 141 p_dictionary->head->next = p_dictionary->tail; in dat_dictionary_create() 142 p_dictionary->tail->prev = p_dictionary->head; in dat_dictionary_create() 154 if (NULL != p_dictionary->tail) { in dat_dictionary_create() 155 dat_os_free(p_dictionary->tail, in dat_dictionary_create() 283 prev_node = p_dictionary->tail->prev; in dat_dictionary_insert() 284 next_node = p_dictionary->tail; in dat_dictionary_insert() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | exportlist.c | 71 struct exportnode **tail; in export() local 89 tail = &exportlist; in export() 154 tail = newexport(sh->sh_path, groups, tail); in export() 190 newgroup(char *grname, struct groupnode **tail) in newgroup() argument 201 *tail = new; in newgroup() 207 newexport(char *grname, struct groupnode *grplist, struct exportnode **tail) in newexport() argument 219 *tail = new; in newexport()
|