Lines Matching refs:tcq
1746 struct fbnic_ring *tcq) in fbnic_enable_tcq() argument
1748 u32 log_size = fls(tcq->size_mask); in fbnic_enable_tcq()
1750 if (!tcq->size_mask) in fbnic_enable_tcq()
1754 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TCQ_CTL, FBNIC_QUEUE_TCQ_CTL_RESET); in fbnic_enable_tcq()
1755 tcq->tail = 0; in fbnic_enable_tcq()
1756 tcq->head = 0; in fbnic_enable_tcq()
1759 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TCQ_BAL, lower_32_bits(tcq->dma)); in fbnic_enable_tcq()
1760 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TCQ_BAH, upper_32_bits(tcq->dma)); in fbnic_enable_tcq()
1763 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TCQ_SIZE, log_size & 0xf); in fbnic_enable_tcq()
1766 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TIM_CTL, nv->v_idx); in fbnic_enable_tcq()
1767 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TIM_THRESHOLD, tcq->size_mask / 2); in fbnic_enable_tcq()
1768 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TIM_MASK, 0); in fbnic_enable_tcq()
1771 fbnic_ring_wr32(tcq, FBNIC_QUEUE_TCQ_CTL, FBNIC_QUEUE_TCQ_CTL_ENABLE); in fbnic_enable_tcq()