Lines Matching refs:n_bd
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()
5014 hw_tail, q->n_bd); in ipw_queue_tx_reclaim()
5018 q->last_used = ipw_queue_inc_wrap(q->last_used, q->n_bd)) { in ipw_queue_tx_reclaim()
5028 used += q->n_bd; in ipw_queue_tx_reclaim()
5055 q->first_empty = ipw_queue_inc_wrap(q->first_empty, q->n_bd); in ipw_queue_tx_hcmd()
10262 q->first_empty = ipw_queue_inc_wrap(q->first_empty, q->n_bd); in ipw_tx_skb()