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