Searched refs:n_bd (Results 1 – 7 of 7) sorted by relevance
/drivers/net/wireless/iwlegacy/ |
D | common.c | 2769 if (q->n_bd == 0) in il_tx_queue_unmap() 2774 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_tx_queue_unmap() 2801 if (txq->q.n_bd) in il_tx_queue_free() 2802 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd, in il_tx_queue_free() 2830 if (q->n_bd == 0) in il_cmd_queue_unmap() 2844 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_cmd_queue_unmap() 2880 if (txq->q.n_bd) in il_cmd_queue_free() 2881 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd, in il_cmd_queue_free() 2924 s -= q->n_bd; in il_queue_space() 2949 q->n_bd = TFD_QUEUE_SIZE_MAX; in il_queue_init() [all …]
|
D | common.h | 133 int n_bd; /* number of BDs in this queue */ member 2217 il_queue_inc_wrap(int idx, int n_bd) in il_queue_inc_wrap() argument 2219 return ++idx & (n_bd - 1); in il_queue_inc_wrap() 2228 il_queue_dec_wrap(int idx, int n_bd) in il_queue_dec_wrap() argument 2230 return --idx & (n_bd - 1); in il_queue_dec_wrap()
|
D | 3945.c | 295 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il3945_tx_queue_reclaim() 296 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il3945_tx_queue_reclaim() 326 if (idx >= txq->q.n_bd || il_queue_used(&txq->q, idx) == 0) { in il3945_hdl_tx() 329 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il3945_hdl_tx()
|
D | 4965-mac.c | 1892 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il4965_tx_skb() 2480 if (idx >= q->n_bd || il_queue_used(q, idx) == 0) { in il4965_tx_queue_reclaim() 2482 "is out of range [0-%d] %d %d.\n", txq_id, idx, q->n_bd, in il4965_tx_queue_reclaim() 2487 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il4965_tx_queue_reclaim() 2488 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il4965_tx_queue_reclaim() 2794 if (idx >= txq->q.n_bd || il_queue_used(&txq->q, idx) == 0) { in il4965_hdl_tx() 2797 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il4965_hdl_tx() 2848 idx = il_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd); in il4965_hdl_tx() 2963 idx = il_queue_dec_wrap(ba_resp_scd_ssn & 0xff, txq->q.n_bd); in il4965_hdl_compressed_ba()
|
D | 3945-mac.c | 639 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il3945_tx_skb()
|
/drivers/net/wireless/ipw2x00/ |
D | ipw2200.c | 3740 s += q->n_bd; in ipw_tx_queue_space() 3747 static inline int ipw_queue_inc_wrap(int index, int n_bd) in ipw_queue_inc_wrap() argument 3749 return (++index == n_bd) ? 0 : index; in ipw_queue_inc_wrap() 3769 q->n_bd = count; in ipw_queue_init() 3771 q->low_mark = q->n_bd / 4; in ipw_queue_init() 3775 q->high_mark = q->n_bd / 8; in ipw_queue_init() 3870 if (q->n_bd == 0) in ipw_queue_tx_free() 3875 q->last_used = ipw_queue_inc_wrap(q->last_used, q->n_bd)) { in ipw_queue_tx_free() 3880 pci_free_consistent(dev, sizeof(txq->bd[0]) * q->n_bd, txq->bd, in ipw_queue_tx_free() 5039 if (hw_tail >= q->n_bd) { in ipw_queue_tx_reclaim() [all …]
|
D | ipw2200.h | 381 int n_bd; /**< number of BDs in this queue */ member
|