Lines Matching defs:index

861 	uint32_t index, tcb_index, desc_num;
878 * Get the index of the first tx descriptor that will be filled,
879 * and the index of the first work list item that will be attached
883 index = tx_ring->tbd_tail;
894 tbd = &tx_ring->tbd_ring[index];
902 ctx, tx_ring->index);
904 index = NEXT_INDEX(index, 1, tx_ring->ring_size);
915 first_tbd = &tx_ring->tbd_ring[index];
934 tbd = &tx_ring->tbd_ring[index];
945 index = NEXT_INDEX(index, 1, tx_ring->ring_size);
955 tcb_index = index;
966 first_tcb->last_index = PREV_INDEX(index, 1, tx_ring->ring_size);
995 first_tbd->read.olinfo_status |= tx_ring->index << 4;
1028 tx_ring->tbd_tail = index;
1033 E1000_WRITE_REG(hw, E1000_TDT(tx_ring->index), index);
1075 uint32_t index, last_index, next_index;
1113 index = tx_ring->tbd_head; /* Index of next tbd/tcb to recycle */
1115 tcb = tx_ring->work_list[index];
1132 * the index is a valid value or not.
1150 tx_ring->work_list[index] = NULL;
1160 * Advance the index of the tx descriptor ring
1162 index = NEXT_INDEX(index, tcb->desc_num,
1165 tcb = tx_ring->work_list[index];
1166 if (index == next_index)
1187 * Update the head index of the tx descriptor ring
1189 tx_ring->tbd_head = index;
1230 uint32_t index;
1278 index = tx_ring->tbd_head; /* Next index to clean */
1284 while (index != head_wb) {
1285 tcb = tx_ring->work_list[index];
1288 if (OFFSET(index, head_wb, tx_ring->ring_size) <
1301 tx_ring->work_list[index] = NULL;
1305 * Advance the index of the tx descriptor ring
1307 index = NEXT_INDEX(index, tcb->desc_num, tx_ring->ring_size);
1328 * Update the head index of the tx descriptor ring
1330 tx_ring->tbd_head = index;
1448 uint32_t index;
1454 index = tx_ring->tcb_tail;
1459 ASSERT(tx_ring->free_list[index] == NULL);
1460 tx_ring->free_list[index] = tcb;
1464 index = NEXT_INDEX(index, 1, tx_ring->free_list_size);
1469 tx_ring->tcb_tail = index;