Lines Matching refs:slot

660 		| IEEE80211_C_SHSLOT		/* short slot time supported */
1047 #define BWN_GET_TXHDRCACHE(slot) \
1048 &(txhdr_cache[(slot / BWN_TX_SLOTS_PER_FRAME) * BWN_HDRSIZE(mac)])
1056 int error, slot, backup[2] = { dr->dr_curslot, dr->dr_usedslot };
1064 slot = bwn_dma_getslot(dr);
1065 dr->getdesc(dr, slot, &desc, &mt);
1070 (struct bwn_txhdr *)BWN_GET_TXHDRCACHE(slot),
1071 BWN_DMA_COOKIE(dr, slot));
1075 BWN_GET_TXHDRCACHE(slot), BWN_HDRSIZE(mac), bwn_dma_ring_addr,
1088 slot = bwn_dma_getslot(dr);
1089 dr->getdesc(dr, slot, &desc, &mt);
1132 dr->start_transfer(dr, bwn_dma_nextslot(dr, slot));
1688 * Callback from the 802.11 layer to update the slot time
1691 * like slot time and preamble.
2844 bwn_dma_32_getdesc(struct bwn_dma_ring *dr, int slot,
2849 *meta = &(dr->dr_meta[slot]);
2851 desc = &(desc[slot]);
2864 int slot;
2866 slot = (int)(&(desc->dma.dma32) - descbase);
2867 KASSERT(slot >= 0 && slot < dr->dr_numslots,
2874 if (slot == dr->dr_numslots - 1)
2890 bwn_dma_32_start_transfer(struct bwn_dma_ring *dr, int slot)
2894 (uint32_t)(slot * sizeof(struct bwn_dmadesc32)));
2925 bwn_dma_32_set_curslot(struct bwn_dma_ring *dr, int slot)
2929 (uint32_t) (slot * sizeof(struct bwn_dmadesc32)));
2933 bwn_dma_64_getdesc(struct bwn_dma_ring *dr, int slot,
2938 *meta = &(dr->dr_meta[slot]);
2940 desc = &(desc[slot]);
2952 int slot;
2957 slot = (int)(&(desc->dma.dma64) - descbase);
2958 KASSERT(slot >= 0 && slot < dr->dr_numslots,
2966 if (slot == dr->dr_numslots - 1)
2985 bwn_dma_64_start_transfer(struct bwn_dma_ring *dr, int slot)
2989 (uint32_t)(slot * sizeof(struct bwn_dmadesc64)));
3020 bwn_dma_64_set_curslot(struct bwn_dma_ring *dr, int slot)
3024 (uint32_t)(slot * sizeof(struct bwn_dmadesc64)));
4411 int slot, tmp;
4414 slot = BWN_READ_2(mac, BWN_RNG) &
4428 params[BWN_WMEPARAM_BSLOTS] = slot;
4429 params[BWN_WMEPARAM_REGGAP] = slot + p->wmep_aifsn;
5172 int slot, curslot;
5179 slot = dr->dr_curslot;
5180 for (; slot != curslot; slot = bwn_dma_nextslot(dr, slot))
5181 bwn_dma_rxeof(dr, &slot);
5186 dr->set_curslot(dr, slot);
5187 dr->dr_curslot = slot;
5332 bwn_dma_nextslot(struct bwn_dma_ring *dr, int slot)
5336 KASSERT(slot >= -1 && slot <= dr->dr_numslots - 1,
5338 if (slot == dr->dr_numslots - 1)
5340 return (slot + 1);
5344 bwn_dma_rxeof(struct bwn_dma_ring *dr, int *slot)
5358 dr->getdesc(dr, *slot, &desc, &meta);
5384 dr->getdesc(dr, *slot, &desc, &meta);
5388 *slot = bwn_dma_nextslot(dr, *slot);
5900 int slot;
5905 dr = bwn_dma_parse_cookie(mac, status, status->cookie, &slot);
5913 KASSERT(slot >= 0 && slot < dr->dr_numslots,
5915 dr->getdesc(dr, slot, &desc, &meta);
5954 slot = bwn_dma_nextslot(dr, slot);
6702 int slot;
6710 slot = bwn_dma_nextslot(dr, dr->dr_curslot);
6711 KASSERT(!(slot & ~0x0fff), ("%s:%d: fail", __func__, __LINE__));
6712 dr->dr_curslot = slot;
6715 return (slot);
7050 uint16_t cookie, int *slot)
7079 *slot = (cookie & 0x0fff);
7080 if (*slot < 0 || *slot >= dr->dr_numslots) {
7089 "out of slot ranges (0 < %d < %d)\n", *slot,