Lines Matching refs:rds_ring
99 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_fw_cmd_create_rx_ctx() local
165 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
166 rds_ring->producer = 0; in qlcnic_fw_cmd_create_rx_ctx()
168 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in qlcnic_fw_cmd_create_rx_ctx()
169 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in qlcnic_fw_cmd_create_rx_ctx()
171 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in qlcnic_fw_cmd_create_rx_ctx()
207 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
210 rds_ring->crb_rcv_producer = adapter->ahw.pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
395 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_alloc_hw_resources() local
425 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_alloc_hw_resources()
427 RCV_DESC_RINGSIZE(rds_ring), in qlcnic_alloc_hw_resources()
428 &rds_ring->phys_addr); in qlcnic_alloc_hw_resources()
435 rds_ring->desc_head = (struct rcv_desc *)addr; in qlcnic_alloc_hw_resources()
499 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_free_hw_resources() local
523 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_free_hw_resources()
525 if (rds_ring->desc_head != NULL) { in qlcnic_free_hw_resources()
527 RCV_DESC_RINGSIZE(rds_ring), in qlcnic_free_hw_resources()
528 rds_ring->desc_head, in qlcnic_free_hw_resources()
529 rds_ring->phys_addr); in qlcnic_free_hw_resources()
530 rds_ring->desc_head = NULL; in qlcnic_free_hw_resources()