Lines Matching refs:sds_ring
141 struct nx_host_sds_ring *sds_ring; in nx_fw_cmd_create_rx_ctx() local
213 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
215 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
216 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
250 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
253 sds_ring->crb_sts_consumer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
257 sds_ring->crb_intr_mask = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
557 struct nx_host_sds_ring *sds_ring; in netxen_init_old_ctx() local
582 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_init_old_ctx()
585 hwctx->sts_ring_addr = cpu_to_le64(sds_ring->phys_addr); in netxen_init_old_ctx()
586 hwctx->sts_ring_size = cpu_to_le32(sds_ring->num_desc); in netxen_init_old_ctx()
588 hwctx->sts_rings[ring].addr = cpu_to_le64(sds_ring->phys_addr); in netxen_init_old_ctx()
589 hwctx->sts_rings[ring].size = cpu_to_le32(sds_ring->num_desc); in netxen_init_old_ctx()
613 struct nx_host_sds_ring *sds_ring; in netxen_alloc_hw_resources() local
674 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_alloc_hw_resources()
677 STATUS_DESC_RINGSIZE(sds_ring), in netxen_alloc_hw_resources()
678 &sds_ring->phys_addr); in netxen_alloc_hw_resources()
686 sds_ring->desc_head = (struct status_desc *)addr; in netxen_alloc_hw_resources()
689 sds_ring->crb_sts_consumer = in netxen_alloc_hw_resources()
693 sds_ring->crb_intr_mask = in netxen_alloc_hw_resources()
727 struct nx_host_sds_ring *sds_ring; in netxen_free_hw_resources() local
782 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_free_hw_resources()
784 if (sds_ring->desc_head != NULL) { in netxen_free_hw_resources()
786 STATUS_DESC_RINGSIZE(sds_ring), in netxen_free_hw_resources()
787 sds_ring->desc_head, in netxen_free_hw_resources()
788 sds_ring->phys_addr); in netxen_free_hw_resources()
789 sds_ring->desc_head = NULL; in netxen_free_hw_resources()