Lines Matching refs:tail

1147 #define	MAC_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz) {		\  argument
1153 (mac_srs)->srs_last = (tail); \
1157 #define MAC_RX_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz) { \ argument
1160 MAC_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz); \
1171 #define MAC_TX_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz) { \ argument
1173 MAC_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, count, sz); \
1313 #define MAC_TX_SRS_TEST_HIWAT(srs, mp, tail, cnt, sz, cookie) { \ argument
1338 MAC_TX_SRS_ENQUEUE_CHAIN(srs, mp, tail, cnt, sz); \
1438 #define FANOUT_ENQUEUE_MP(head, tail, cnt, bw_ctl, sz, sz0, mp) { \ argument
1439 if ((tail) != NULL) { \
1440 ASSERT((tail)->b_next == NULL); \
1441 (tail)->b_next = (mp); \
1446 (tail) = (mp); \
2215 mblk_t *head, *tail, *mp; in mac_rx_srs_poll_ring() local
2292 mp = tail = head; in mac_rx_srs_poll_ring()
2296 tail = mp; in mac_rx_srs_poll_ring()
2303 tail->b_next = NULL; in mac_rx_srs_poll_ring()
2327 MAC_RX_SRS_ENQUEUE_CHAIN(mac_srs, head, tail, in mac_rx_srs_poll_ring()
2486 mblk_t *tail = NULL; in mac_srs_pick_chain() local
2533 if (tail != NULL) in mac_srs_pick_chain()
2534 tail->b_next = mp; in mac_srs_pick_chain()
2537 tail = mp; in mac_srs_pick_chain()
2544 if (tail != NULL) in mac_srs_pick_chain()
2545 tail->b_next = NULL; in mac_srs_pick_chain()
2546 *chain_tail = tail; in mac_srs_pick_chain()
2572 mblk_t *tail; in mac_rx_srs_drain() local
2613 tail = mac_srs->srs_last; in mac_rx_srs_drain()
2619 ASSERT(tail != NULL); in mac_rx_srs_drain()
2809 mblk_t *tail; in mac_rx_srs_drain_bw() local
2848 if ((head = mac_srs_pick_chain(mac_srs, &tail, &sz, &cnt)) == NULL) { in mac_rx_srs_drain_bw()
2880 ASSERT(tail != NULL); in mac_rx_srs_drain_bw()
3207 mblk_t *tail = NULL; in mac_rx_srs_subflow_process() local
3219 mp = tail = mp_chain; in mac_rx_srs_subflow_process()
3235 tail = mp; in mac_rx_srs_subflow_process()
3239 tail->b_next = NULL; in mac_rx_srs_subflow_process()
3256 tail = mp; in mac_rx_srs_subflow_process()
3286 mblk_t *mp, *tail, *head; in mac_rx_srs_process() local
3299 mp = tail = mp_chain; in mac_rx_srs_process()
3301 tail = mp; in mac_rx_srs_process()
3342 tail, count, sz); in mac_rx_srs_process()
3347 tail = NULL; in mac_rx_srs_process()
3356 tail = mp; in mac_rx_srs_process()
3360 if (tail != NULL) { in mac_rx_srs_process()
3361 head = tail->b_next; in mac_rx_srs_process()
3362 tail->b_next = NULL; in mac_rx_srs_process()
3364 mp_chain, tail, count1, chain_sz); in mac_rx_srs_process()
3404 MAC_RX_SRS_ENQUEUE_CHAIN(mac_srs, mp_chain, tail, count, sz); in mac_rx_srs_process()
3457 mblk_t *tail; in mac_tx_srs_no_desc() local
3466 MAC_COUNT_CHAIN(mac_srs, mp_chain, tail, cnt, sz); in mac_tx_srs_no_desc()
3477 mp_chain, tail, cnt, sz); in mac_tx_srs_no_desc()
3484 tail, cnt, sz, cookie); in mac_tx_srs_no_desc()
3511 mblk_t *tail; in mac_tx_srs_enqueue() local
3522 MAC_COUNT_CHAIN(mac_srs, mp_chain, tail, cnt, sz); in mac_tx_srs_enqueue()
3529 mp_chain, tail, cnt, sz); in mac_tx_srs_enqueue()
3539 mp_chain, tail, cnt, sz); in mac_tx_srs_enqueue()
3550 tail, cnt, sz, cookie); in mac_tx_srs_enqueue()
3881 mblk_t *tail; in mac_tx_bw_mode() local
3911 MAC_COUNT_CHAIN(mac_srs, mp_chain, tail, cnt, sz); in mac_tx_bw_mode()
3920 mp_chain, tail, cnt, sz); in mac_tx_bw_mode()
3961 MAC_COUNT_CHAIN(mac_srs, mp_chain, tail, cnt, sz); in mac_tx_bw_mode()
4037 mblk_t *head, *tail; in mac_tx_srs_drain() local
4055 tail = mac_srs->srs_last; in mac_tx_srs_drain()
4069 VERIFY(head == tail); in mac_tx_srs_drain()
4070 tail->b_next = mac_srs->srs_first; in mac_tx_srs_drain()
4075 mac_srs->srs_last = tail; in mac_tx_srs_drain()
4089 head = tail = mac_srs->srs_first; in mac_tx_srs_drain()
4091 tail = mac_srs->srs_first; in mac_tx_srs_drain()
4092 tail->b_prev = NULL; in mac_tx_srs_drain()
4093 mac_srs->srs_first = tail->b_next; in mac_tx_srs_drain()
4097 sz = msgdsize(tail); in mac_tx_srs_drain()
4116 ASSERT((head == NULL && tail == NULL) || in mac_tx_srs_drain()
4117 (head != NULL && tail != NULL)); in mac_tx_srs_drain()
4118 if (tail != NULL) { in mac_tx_srs_drain()
4119 tail->b_next = NULL; in mac_tx_srs_drain()
4131 VERIFY(head == tail); in mac_tx_srs_drain()
4132 tail->b_next = mac_srs->srs_first; in mac_tx_srs_drain()
4137 mac_srs->srs_last = tail; in mac_tx_srs_drain()
4162 head = tail = mac_srs->srs_first; in mac_tx_srs_drain()
4164 tail = mac_srs->srs_first; in mac_tx_srs_drain()
4165 mac_srs->srs_first = tail->b_next; in mac_tx_srs_drain()
4169 sz = msgdsize(tail); in mac_tx_srs_drain()
4173 hint = (ulong_t)tail->b_prev; in mac_tx_srs_drain()
4174 if (hint != (ulong_t)tail->b_prev) { in mac_tx_srs_drain()
4178 head = tail; in mac_tx_srs_drain()
4179 hint = (ulong_t)tail->b_prev; in mac_tx_srs_drain()
4183 prev = tail; in mac_tx_srs_drain()
4184 tail->b_prev = NULL; in mac_tx_srs_drain()
4198 ASSERT((head == NULL && tail == NULL) || in mac_tx_srs_drain()
4199 (head != NULL && tail != NULL)); in mac_tx_srs_drain()
4200 if (tail != NULL) { in mac_tx_srs_drain()
4201 tail->b_next = NULL; in mac_tx_srs_drain()
4597 #define SOFT_RING_ENQUEUE_CHAIN(ringp, mp, tail, cnt, sz) { \ argument
4607 (ringp)->s_ring_last = (tail); \
4661 mblk_t *mp_chain, mblk_t *tail, int cnt, size_t sz) in mac_rx_soft_ring_process() argument
4670 ASSERT(tail != NULL); in mac_rx_soft_ring_process()
4681 SOFT_RING_ENQUEUE_CHAIN(ringp, mp_chain, tail, cnt, sz); in mac_rx_soft_ring_process()
4744 mp_chain, tail, cnt, sz); in mac_rx_soft_ring_process()
4762 SOFT_RING_ENQUEUE_CHAIN(ringp, mp_chain, tail, cnt, sz); in mac_rx_soft_ring_process()
4775 #define TX_SOFT_RING_ENQUEUE_CHAIN(ringp, mp, tail, cnt, sz) { \ argument
4778 SOFT_RING_ENQUEUE_CHAIN(ringp, mp_chain, tail, cnt, sz); \
4796 mblk_t *tail; in mac_tx_sring_enqueue() local
4802 MAC_COUNT_CHAIN(mac_srs, mp_chain, tail, cnt, sz); in mac_tx_sring_enqueue()
4822 mp_chain, tail, cnt, sz); in mac_tx_sring_enqueue()
4857 tail, cnt, sz); in mac_tx_sring_enqueue()
4881 mblk_t *tail; in mac_tx_soft_ring_process() local
4907 MAC_COUNT_CHAIN(mac_srs, mp_chain, tail, cnt, sz); in mac_tx_soft_ring_process()
4908 TX_SOFT_RING_ENQUEUE_CHAIN(ringp, mp_chain, tail, cnt, sz); in mac_tx_soft_ring_process()