Searched refs:n_bd (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/ |
D | common.c | 2752 if (q->n_bd == 0) in il_tx_queue_unmap() 2757 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_tx_queue_unmap() 2786 if (txq->q.n_bd) in il_tx_queue_free() 2787 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd, in il_tx_queue_free() 2815 if (q->n_bd == 0) in il_cmd_queue_unmap() 2829 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd); in il_cmd_queue_unmap() 2866 if (txq->q.n_bd) in il_cmd_queue_free() 2867 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd, in il_cmd_queue_free() 2910 s -= q->n_bd; in il_queue_space() 2935 q->n_bd = TFD_QUEUE_SIZE_MAX; in il_queue_init() [all …]
|
D | common.h | 119 int n_bd; /* number of BDs in this queue */ member 2194 il_queue_inc_wrap(int idx, int n_bd) in il_queue_inc_wrap() argument 2196 return ++idx & (n_bd - 1); in il_queue_inc_wrap() 2205 il_queue_dec_wrap(int idx, int n_bd) in il_queue_dec_wrap() argument 2207 return --idx & (n_bd - 1); in il_queue_dec_wrap()
|
D | 3945.c | 280 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il3945_tx_queue_reclaim() 281 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il3945_tx_queue_reclaim() 311 if (idx >= txq->q.n_bd || il_queue_used(&txq->q, idx) == 0) { in il3945_hdl_tx() 314 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il3945_hdl_tx()
|
D | 4965-mac.c | 1875 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il4965_tx_skb() 2460 if (idx >= q->n_bd || il_queue_used(q, idx) == 0) { in il4965_tx_queue_reclaim() 2462 "is out of range [0-%d] %d %d.\n", txq_id, idx, q->n_bd, in il4965_tx_queue_reclaim() 2467 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il4965_tx_queue_reclaim() 2468 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il4965_tx_queue_reclaim() 2773 if (idx >= txq->q.n_bd || il_queue_used(&txq->q, idx) == 0) { in il4965_hdl_tx() 2776 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr); in il4965_hdl_tx() 2829 idx = il_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd); in il4965_hdl_tx() 2943 idx = il_queue_dec_wrap(ba_resp_scd_ssn & 0xff, txq->q.n_bd); in il4965_hdl_compressed_ba()
|
D | 3945-mac.c | 614 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il3945_tx_skb()
|
/linux-6.1.9/drivers/net/wireless/intel/ipw2x00/ |
D | ipw2200.c | 3712 s += q->n_bd; in ipw_tx_queue_space() 3719 static inline int ipw_queue_inc_wrap(int index, int n_bd) in ipw_queue_inc_wrap() argument 3721 return (++index == n_bd) ? 0 : index; in ipw_queue_inc_wrap() 3741 q->n_bd = count; in ipw_queue_init() 3743 q->low_mark = q->n_bd / 4; in ipw_queue_init() 3747 q->high_mark = q->n_bd / 8; in ipw_queue_init() 3842 if (q->n_bd == 0) in ipw_queue_tx_free() 3847 q->last_used = ipw_queue_inc_wrap(q->last_used, q->n_bd)) { in ipw_queue_tx_free() 3852 dma_free_coherent(&dev->dev, sizeof(txq->bd[0]) * q->n_bd, txq->bd, in ipw_queue_tx_free() 5011 if (hw_tail >= q->n_bd) { in ipw_queue_tx_reclaim() [all …]
|
D | ipw2200.h | 367 int n_bd; /**< number of BDs in this queue */ member
|