Lines Matching refs:n_bd
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()
3219 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd); in il_enqueue_hcmd()
3241 if (idx >= q->n_bd || il_queue_used(q, idx) == 0) { in il_hcmd_queue_reclaim()
3243 "is out of range [0-%d] %d %d.\n", txq_id, idx, q->n_bd, in il_hcmd_queue_reclaim()
3248 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; in il_hcmd_queue_reclaim()
3249 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) { in il_hcmd_queue_reclaim()