Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c1883 static void fbnic_enable_twq0(struct fbnic_ring *twq) in fbnic_enable_twq0() argument
1885 u32 log_size = fls(twq->size_mask); in fbnic_enable_twq0()
1887 if (!twq->size_mask) in fbnic_enable_twq0()
1891 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_CTL, FBNIC_QUEUE_TWQ_CTL_RESET); in fbnic_enable_twq0()
1892 twq->tail = 0; in fbnic_enable_twq0()
1893 twq->head = 0; in fbnic_enable_twq0()
1896 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_BAL, lower_32_bits(twq->dma)); in fbnic_enable_twq0()
1897 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_BAH, upper_32_bits(twq->dma)); in fbnic_enable_twq0()
1900 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_SIZE, log_size & 0xf); in fbnic_enable_twq0()
1902 fbnic_ring_wr32(twq, FBNIC_QUEUE_TWQ0_CTL, FBNIC_QUEUE_TWQ_CTL_ENABLE); in fbnic_enable_twq0()