Lines Matching refs:cookie
194 int cookie = -1;
205 cookie = bitmap_find_free_region(ar->mem_bitmap, ar->fw.mem_blocks, 0);
208 if (unlikely(cookie < 0)) {
222 super->s.cookie = (u8) cookie + 1;
229 int cookie;
231 /* make a local copy of the cookie */
232 cookie = super->s.cookie;
233 /* invalidate cookie */
234 super->s.cookie = 0;
237 * Do a out-of-bounds check on the cookie:
239 * * cookie "0" is reserved and won't be assigned to any
245 * * obviously, cookie number is limited by the amount
249 if (WARN_ON_ONCE(cookie == 0) ||
250 WARN_ON_ONCE(cookie > ar->fw.mem_blocks))
257 bitmap_release_region(ar->mem_bitmap, cookie - 1, 0);
513 static struct sk_buff *carl9170_get_queued_skb(struct ar9170 *ar, u8 cookie,
522 if (txc->s.cookie != cookie)
659 const uint8_t cookie, const uint8_t info)
668 skb = carl9170_get_queued_skb(ar, cookie, &ar->tx_status[q]);
701 __carl9170_tx_process_status(ar, cmd->_tx_status[i].cookie,
1285 __carl9170_tx_process_status(ar, super->s.cookie, q);