Lines Matching defs:slot

33 					  int slot,
38 *meta = &(ring->meta[slot]);
40 desc = &(desc[slot]);
51 int slot;
56 slot = (int)(desc - descbase);
57 B43legacy_WARN_ON(!(slot >= 0 && slot < ring->nr_slots));
65 if (slot == ring->nr_slots - 1)
80 static void op32_poke_tx(struct b43legacy_dmaring *ring, int slot)
83 (u32)(slot * sizeof(struct b43legacy_dmadesc32)));
111 int slot)
114 (u32)(slot * sizeof(struct b43legacy_dmadesc32)));
122 static inline int next_slot(struct b43legacy_dmaring *ring, int slot)
124 B43legacy_WARN_ON(!(slot >= -1 && slot <= ring->nr_slots - 1));
125 if (slot == ring->nr_slots - 1)
127 return slot + 1;
130 static inline int prev_slot(struct b43legacy_dmaring *ring, int slot)
132 B43legacy_WARN_ON(!(slot >= 0 && slot <= ring->nr_slots - 1));
133 if (slot == 0)
135 return slot - 1;
159 /* Request a slot for usage. */
163 int slot;
169 slot = next_slot(ring, ring->current_slot);
170 ring->current_slot = slot;
175 return slot;
874 int slot)
879 * DMA controller ID and store the slot number
904 B43legacy_WARN_ON(!(((u16)slot & 0xF000) == 0x0000));
905 cookie |= (u16)slot;
910 /* Inspect a cookie and find out to which controller/slot it belongs. */
913 u16 cookie, int *slot)
940 *slot = (cookie & 0x0FFF);
941 B43legacy_WARN_ON(!(ring && *slot >= 0 && *slot < ring->nr_slots));
952 int slot, old_top_slot, old_used_slots;
965 /* Get a slot for the header. */
966 slot = request_slot(ring);
967 desc = op32_idx2desc(ring, slot, &meta_hdr);
970 header = &(ring->txhdr_cache[slot * sizeof(
974 generate_cookie(ring, slot));
992 /* Get a slot for the payload. */
993 slot = request_slot(ring);
994 desc = op32_idx2desc(ring, slot, &meta);
1035 op32_poke_tx(ring, next_slot(ring, slot));
1128 int slot;
1131 ring = parse_cookie(dev, status->cookie, &slot);
1137 * Check if the slot deduced from the cookie really is the first
1138 * used slot. */
1142 if (unlikely(slot != firstused)) {
1148 ring->index, firstused, slot);
1153 B43legacy_WARN_ON(!(slot >= 0 && slot < ring->nr_slots));
1154 op32_idx2desc(ring, slot, &meta);
1219 slot = next_slot(ring, slot);
1242 int *slot)
1252 desc = op32_idx2desc(ring, *slot, &meta);
1304 desc = op32_idx2desc(ring, *slot, &meta);
1308 *slot = next_slot(ring, *slot);
1341 int slot;
1350 slot = ring->current_slot;
1351 for (; slot != current_slot; slot = next_slot(ring, slot)) {
1352 dma_rx(ring, &slot);
1355 op32_set_current_rxslot(ring, slot);
1356 ring->current_slot = slot;