Lines Matching defs:index

976 	uint32_t index, tcb_index, desc_num;
992 * Get the index of the first tx descriptor that will be filled,
993 * and the index of the first work list item that will be attached
997 index = tx_ring->tbd_tail;
1009 tbd = &tx_ring->tbd_ring[index];
1018 index = NEXT_INDEX(index, 1, tx_ring->ring_size);
1029 first_tbd = &tx_ring->tbd_ring[index];
1048 tbd = &tx_ring->tbd_ring[index];
1058 index = NEXT_INDEX(index, 1, tx_ring->ring_size);
1068 tcb_index = index;
1079 first_tcb->last_index = PREV_INDEX(index, 1, tx_ring->ring_size);
1158 tx_ring->tbd_tail = index;
1163 IXGBE_WRITE_REG(hw, IXGBE_TDT(tx_ring->index), index);
1207 uint32_t index, last_index, prev_index;
1244 index = tx_ring->tbd_head; /* Index of next tbd/tcb to recycle */
1246 tcb = tx_ring->work_list[index];
1263 * the index is a valid value or not.
1283 tx_ring->work_list[index] = NULL;
1292 index = NEXT_INDEX(index, tcb->desc_num,
1295 tcb = tx_ring->work_list[index];
1297 prev_index = PREV_INDEX(index, 1,
1320 * Update the head index of the tx descriptor ring
1322 tx_ring->tbd_head = index;
1369 uint32_t index;
1417 index = tx_ring->tbd_head; /* Next index to clean */
1423 while (index != head_wb) {
1424 tcb = tx_ring->work_list[index];
1427 if (OFFSET(index, head_wb, tx_ring->ring_size) <
1440 tx_ring->work_list[index] = NULL;
1444 * Advance the index of the tx descriptor ring
1446 index = NEXT_INDEX(index, tcb->desc_num, tx_ring->ring_size);
1467 * Update the head index of the tx descriptor ring
1469 tx_ring->tbd_head = index;
1593 uint32_t index;
1599 index = tx_ring->tcb_tail;
1604 ASSERT(tx_ring->free_list[index] == NULL);
1605 tx_ring->free_list[index] = tcb;
1609 index = NEXT_INDEX(index, 1, tx_ring->free_list_size);
1614 tx_ring->tcb_tail = index;