Home
last modified time | relevance | path

Searched refs:twq (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/meta/fbnic/
Dfbnic_txrx.c1723 static void fbnic_enable_twq0(struct fbnic_ring *twq) in fbnic_enable_twq0() argument
1725 u32 log_size = fls(twq->size_mask); in fbnic_enable_twq0()
1727 if (!twq->size_mask) in fbnic_enable_twq0()
1731 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_CTL, FBNIC_QUEUE_TWQ_CTL_RESET); in fbnic_enable_twq0()
1732 twq->tail = 0; in fbnic_enable_twq0()
1733 twq->head = 0; in fbnic_enable_twq0()
1736 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_BAL, lower_32_bits(twq->dma)); in fbnic_enable_twq0()
1737 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_BAH, upper_32_bits(twq->dma)); in fbnic_enable_twq0()
1740 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_SIZE, log_size & 0xf); in fbnic_enable_twq0()
1742 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_CTL, FBNIC_QUEUE_TWQ_CTL_ENABLE); in fbnic_enable_twq0()