• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/iwmc3200wifi/

Lines Matching refs:id

84 #define pool_id_to_queue(id)	 ((id < IWM_TX_CMD_QUEUE) ? id : id - 1)
88 static int iwm_tx_credit_get(struct iwm_tx_credit *tx_credit, int id)
90 struct pool_entry *pool = &tx_credit->pools[id];
101 static bool iwm_tx_credit_ok(struct iwm_priv *iwm, int id, int nb)
105 if (npages <= iwm_tx_credit_get(&iwm->tx_credit, id))
108 set_bit(id, &iwm->tx_credit.full_pools_map);
111 pool_id_to_queue(id),
112 iwm_tx_credit_get(&iwm->tx_credit, id));
117 void iwm_tx_credit_inc(struct iwm_priv *iwm, int id, int total_freed_pages)
124 BUG_ON(id >= IWM_MACS_OUT_GROUPS);
126 pool = &iwm->tx_credit.pools[id];
130 IWM_DBG_TX(iwm, DBG, "Free %d pages for pool[%d]\n", freed_pages, id);
148 "Spool[%d] pages alloc: %d\n", id, pool->alloc_pages,
151 if (test_bit(id, &iwm->tx_credit.full_pools_map) &&
153 clear_bit(id, &iwm->tx_credit.full_pools_map);
155 queue = pool_id_to_queue(id);
159 iwm_tx_credit_get(&iwm->tx_credit, id));
164 static void iwm_tx_credit_dec(struct iwm_priv *iwm, int id, int alloc_pages)
171 alloc_pages, id);
173 BUG_ON(id >= IWM_MACS_OUT_GROUPS);
175 pool = &iwm->tx_credit.pools[id];
188 "Spool[%d] pages alloc: %d\n", id, pool->alloc_pages,
192 int iwm_tx_credit_alloc(struct iwm_priv *iwm, int id, int nb)
199 if (!iwm_tx_credit_ok(iwm, id, nb)) {
200 IWM_DBG_TX(iwm, DBG, "No credit avaliable for pool[%d]\n", id);
205 iwm_tx_credit_dec(iwm, id, npages);
264 iwm->tx_credit.pools[i].id = GET_VAL32(page_grp_state,
279 iwm->tx_credit.spools[sid].id = sid;
288 IWM_DBG_TX(iwm, DBG, "Pool idx: %d, id: %d, sid: %d, capacity "
291 i, iwm->tx_credit.pools[i].id,
322 umac_cmd.id = REPLY_TX;
345 txq->id, txq->concat_count);
370 iwm = container_of(txq, struct iwm_priv, txq[txq->id]);
372 pool_id = queue_to_pool_id(txq->id);
414 "%d, color: %d\n", txq->id, skb, tx_info->sta,
423 "%d, Tx worker stopped\n", txq->id);
444 if (__netif_subqueue_stopped(iwm_to_ndev(iwm), txq->id) &&
447 IWM_DBG_TX(iwm, DBG, "LINK: start netif_subqueue[%d]", txq->id);
448 netif_wake_subqueue(iwm_to_ndev(iwm), txq->id);