Lines Matching refs:recv_ctx
98 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_set_mtu() local
100 if (recv_ctx->state == NX_HOST_CTX_STATE_ACTIVE) in nx_fw_cmd_set_mtu()
104 recv_ctx->context_id, in nx_fw_cmd_set_mtu()
152 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_create_rx_ctx() local
200 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
213 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
239 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
250 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
261 recv_ctx->state = le32_to_cpu(prsp->host_ctx_state); in nx_fw_cmd_create_rx_ctx()
262 recv_ctx->context_id = le16_to_cpu(prsp->context_id); in nx_fw_cmd_create_rx_ctx()
263 recv_ctx->virt_port = prsp->virt_port; in nx_fw_cmd_create_rx_ctx()
275 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_destroy_rx_ctx() local
280 recv_ctx->context_id, in nx_fw_cmd_destroy_rx_ctx()
304 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_create_tx_ctx() local
339 offset = recv_ctx->phys_addr + sizeof(struct netxen_ring_ctx); in nx_fw_cmd_create_tx_ctx()
555 struct netxen_recv_context *recv_ctx; in netxen_init_old_ctx() local
565 recv_ctx = &adapter->recv_ctx; in netxen_init_old_ctx()
566 hwctx = recv_ctx->hwctx; in netxen_init_old_ctx()
573 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_init_old_ctx()
582 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_init_old_ctx()
598 lower32(recv_ctx->phys_addr)); in netxen_init_old_ctx()
600 upper32(recv_ctx->phys_addr)); in netxen_init_old_ctx()
611 struct netxen_recv_context *recv_ctx; in netxen_alloc_hw_resources() local
620 recv_ctx = &adapter->recv_ctx; in netxen_alloc_hw_resources()
625 &recv_ctx->phys_addr); in netxen_alloc_hw_resources()
632 recv_ctx->hwctx = (struct netxen_ring_ctx *)addr; in netxen_alloc_hw_resources()
633 recv_ctx->hwctx->ctx_id = cpu_to_le32(port); in netxen_alloc_hw_resources()
634 recv_ctx->hwctx->cmd_consumer_offset = in netxen_alloc_hw_resources()
635 cpu_to_le64(recv_ctx->phys_addr + in netxen_alloc_hw_resources()
654 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_alloc_hw_resources()
674 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_alloc_hw_resources()
725 struct netxen_recv_context *recv_ctx; in netxen_free_hw_resources() local
750 recv_ctx = &adapter->recv_ctx; in netxen_free_hw_resources()
752 if (recv_ctx->hwctx != NULL) { in netxen_free_hw_resources()
756 recv_ctx->hwctx, in netxen_free_hw_resources()
757 recv_ctx->phys_addr); in netxen_free_hw_resources()
758 recv_ctx->hwctx = NULL; in netxen_free_hw_resources()
770 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_hw_resources()
782 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_free_hw_resources()