Lines Matching defs:index
368 static void tsnep_tx_activate(struct tsnep_tx *tx, int index, int length,
371 struct tsnep_tx_entry *entry = &tx->entry[index];
404 if (index == tx->increment_owner_counter) {
476 static int tsnep_tx_unmap(struct tsnep_tx *tx, int index, int count)
484 entry = &tx->entry[(index + i) & TSNEP_RING_MASK];
1060 static int tsnep_rx_alloc_buffer(struct tsnep_rx *rx, int index)
1062 struct tsnep_rx_entry *entry = &rx->entry[index];
1073 static void tsnep_rx_reuse_buffer(struct tsnep_rx *rx, int index)
1075 struct tsnep_rx_entry *entry = &rx->entry[index];
1082 static void tsnep_rx_activate(struct tsnep_rx *rx, int index)
1084 struct tsnep_rx_entry *entry = &rx->entry[index];
1089 if (index == rx->increment_owner_counter) {
1112 int i, index;
1115 index = (rx->write + i) & TSNEP_RING_MASK;
1117 if (unlikely(tsnep_rx_alloc_buffer(rx, index))) {
1123 tsnep_rx_reuse_buffer(rx, index);
1128 tsnep_rx_activate(rx, index);
1157 static void tsnep_rx_reuse_buffer_zc(struct tsnep_rx *rx, int index)
1159 struct tsnep_rx_entry *entry = &rx->entry[index];
1173 int index = (rx->write + i) & TSNEP_RING_MASK;
1174 struct tsnep_rx_entry *entry = &rx->entry[index];
1177 tsnep_rx_activate(rx, index);