Lines Matching refs:rxr

891 					     struct fbnic_ring *rxr)  in fbnic_aggregate_ring_rx_counters()  argument
893 struct fbnic_queue_stats *stats = &rxr->stats; in fbnic_aggregate_ring_rx_counters()
926 struct fbnic_ring *rxr) in fbnic_remove_rx_ring() argument
928 if (!(rxr->flags & FBNIC_RING_F_STATS)) in fbnic_remove_rx_ring()
931 fbnic_aggregate_ring_rx_counters(fbn, rxr); in fbnic_remove_rx_ring()
934 WARN_ON(fbn->rx[rxr->q_idx] && fbn->rx[rxr->q_idx] != rxr); in fbnic_remove_rx_ring()
935 fbn->rx[rxr->q_idx] = NULL; in fbnic_remove_rx_ring()
1282 struct fbnic_ring *rxr) in fbnic_alloc_rx_ring_desc() argument
1285 size_t desc_size = sizeof(*rxr->desc); in fbnic_alloc_rx_ring_desc()
1289 switch (rxr->doorbell - fbnic_ring_csr_base(rxr)) { in fbnic_alloc_rx_ring_desc()
1308 rxr->desc = dma_alloc_coherent(dev, size, &rxr->dma, in fbnic_alloc_rx_ring_desc()
1310 if (!rxr->desc) in fbnic_alloc_rx_ring_desc()
1314 rxr->size_mask = rxq_size - 1; in fbnic_alloc_rx_ring_desc()
1315 rxr->size = size; in fbnic_alloc_rx_ring_desc()
1320 static int fbnic_alloc_rx_ring_buffer(struct fbnic_ring *rxr) in fbnic_alloc_rx_ring_buffer() argument
1322 size_t size = array_size(sizeof(*rxr->rx_buf), rxr->size_mask + 1); in fbnic_alloc_rx_ring_buffer()
1324 if (rxr->flags & FBNIC_RING_F_CTX) in fbnic_alloc_rx_ring_buffer()
1325 size = sizeof(*rxr->rx_buf) * (rxr->size_mask + 1); in fbnic_alloc_rx_ring_buffer()
1327 size = sizeof(*rxr->pkt); in fbnic_alloc_rx_ring_buffer()
1329 rxr->rx_buf = kvzalloc(size, GFP_KERNEL | __GFP_NOWARN); in fbnic_alloc_rx_ring_buffer()
1331 return rxr->rx_buf ? 0 : -ENOMEM; in fbnic_alloc_rx_ring_buffer()
1335 struct fbnic_ring *rxr) in fbnic_alloc_rx_ring_resources() argument
1340 err = fbnic_alloc_rx_ring_desc(fbn, rxr); in fbnic_alloc_rx_ring_resources()
1344 err = fbnic_alloc_rx_ring_buffer(rxr); in fbnic_alloc_rx_ring_resources()
1351 fbnic_free_ring_resources(dev, rxr); in fbnic_alloc_rx_ring_resources()
1505 static void fbnic_disable_rcq(struct fbnic_ring *rxr) in fbnic_disable_rcq() argument
1507 fbnic_ring_wr32(rxr, FBNIC_QUEUE_RCQ_CTL, 0); in fbnic_disable_rcq()
1508 fbnic_ring_wr32(rxr, FBNIC_QUEUE_RIM_MASK, FBNIC_QUEUE_RIM_MASK_MASK); in fbnic_disable_rcq()