Lines Matching refs:slot

46 					  int slot,  in op32_idx2desc()  argument
51 *meta = &(ring->meta[slot]); in op32_idx2desc()
53 desc = &(desc[slot]); in op32_idx2desc()
64 int slot; in op32_fill_descriptor() local
69 slot = (int)(desc - descbase); in op32_fill_descriptor()
70 B43legacy_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in op32_fill_descriptor()
78 if (slot == ring->nr_slots - 1) in op32_fill_descriptor()
93 static void op32_poke_tx(struct b43legacy_dmaring *ring, int slot) in op32_poke_tx() argument
96 (u32)(slot * sizeof(struct b43legacy_dmadesc32))); in op32_poke_tx()
124 int slot) in op32_set_current_rxslot() argument
127 (u32)(slot * sizeof(struct b43legacy_dmadesc32))); in op32_set_current_rxslot()
135 static inline int next_slot(struct b43legacy_dmaring *ring, int slot) in next_slot() argument
137 B43legacy_WARN_ON(!(slot >= -1 && slot <= ring->nr_slots - 1)); in next_slot()
138 if (slot == ring->nr_slots - 1) in next_slot()
140 return slot + 1; in next_slot()
143 static inline int prev_slot(struct b43legacy_dmaring *ring, int slot) in prev_slot() argument
145 B43legacy_WARN_ON(!(slot >= 0 && slot <= ring->nr_slots - 1)); in prev_slot()
146 if (slot == 0) in prev_slot()
148 return slot - 1; in prev_slot()
176 int slot; in request_slot() local
182 slot = next_slot(ring, ring->current_slot); in request_slot()
183 ring->current_slot = slot; in request_slot()
188 return slot; in request_slot()
938 int slot) in generate_cookie() argument
968 B43legacy_WARN_ON(!(((u16)slot & 0xF000) == 0x0000)); in generate_cookie()
969 cookie |= (u16)slot; in generate_cookie()
977 u16 cookie, int *slot) in parse_cookie() argument
1004 *slot = (cookie & 0x0FFF); in parse_cookie()
1005 B43legacy_WARN_ON(!(ring && *slot >= 0 && *slot < ring->nr_slots)); in parse_cookie()
1016 int slot, old_top_slot, old_used_slots; in dma_tx_fragment() local
1030 slot = request_slot(ring); in dma_tx_fragment()
1031 desc = op32_idx2desc(ring, slot, &meta_hdr); in dma_tx_fragment()
1034 header = &(ring->txhdr_cache[slot * sizeof( in dma_tx_fragment()
1038 generate_cookie(ring, slot)); in dma_tx_fragment()
1057 slot = request_slot(ring); in dma_tx_fragment()
1058 desc = op32_idx2desc(ring, slot, &meta); in dma_tx_fragment()
1099 op32_poke_tx(ring, next_slot(ring, slot)); in dma_tx_fragment()
1192 int slot; in b43legacy_dma_handle_txstatus() local
1195 ring = parse_cookie(dev, status->cookie, &slot); in b43legacy_dma_handle_txstatus()
1206 if (unlikely(slot != firstused)) { in b43legacy_dma_handle_txstatus()
1212 ring->index, firstused, slot); in b43legacy_dma_handle_txstatus()
1217 B43legacy_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in b43legacy_dma_handle_txstatus()
1218 op32_idx2desc(ring, slot, &meta); in b43legacy_dma_handle_txstatus()
1283 slot = next_slot(ring, slot); in b43legacy_dma_handle_txstatus()
1306 int *slot) in dma_rx() argument
1316 desc = op32_idx2desc(ring, *slot, &meta); in dma_rx()
1368 desc = op32_idx2desc(ring, *slot, &meta); in dma_rx()
1372 *slot = next_slot(ring, *slot); in dma_rx()
1405 int slot; in b43legacy_dma_rx() local
1414 slot = ring->current_slot; in b43legacy_dma_rx()
1415 for (; slot != current_slot; slot = next_slot(ring, slot)) { in b43legacy_dma_rx()
1416 dma_rx(ring, &slot); in b43legacy_dma_rx()
1419 op32_set_current_rxslot(ring, slot); in b43legacy_dma_rx()
1420 ring->current_slot = slot; in b43legacy_dma_rx()