Searched refs:recv_ctx (Results 1 – 10 of 10) sorted by relevance
98 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_set_mtu() local100 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() local200 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()[all …]
109 struct netxen_recv_context *recv_ctx; in netxen_release_rx_buffers() local114 recv_ctx = &adapter->recv_ctx; in netxen_release_rx_buffers()116 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_release_rx_buffers()165 struct netxen_recv_context *recv_ctx; in netxen_free_sw_resources() local170 recv_ctx = &adapter->recv_ctx; in netxen_free_sw_resources()172 if (recv_ctx->rds_rings == NULL) in netxen_free_sw_resources()176 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources()180 kfree(recv_ctx->rds_rings); in netxen_free_sw_resources()194 struct netxen_recv_context *recv_ctx; in netxen_alloc_sw_resources() local225 recv_ctx = &adapter->recv_ctx; in netxen_alloc_sw_resources()[all …]
168 netxen_alloc_sds_rings(struct netxen_recv_context *recv_ctx, int count) in netxen_alloc_sds_rings() argument172 recv_ctx->sds_rings = kzalloc(size, GFP_KERNEL); in netxen_alloc_sds_rings()174 return recv_ctx->sds_rings == NULL; in netxen_alloc_sds_rings()178 netxen_free_sds_rings(struct netxen_recv_context *recv_ctx) in netxen_free_sds_rings() argument180 if (recv_ctx->sds_rings != NULL) in netxen_free_sds_rings()181 kfree(recv_ctx->sds_rings); in netxen_free_sds_rings()183 recv_ctx->sds_rings = NULL; in netxen_free_sds_rings()191 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in netxen_napi_add() local193 if (netxen_alloc_sds_rings(recv_ctx, adapter->max_sds_rings)) in netxen_napi_add()197 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_napi_add()[all …]
289 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in netxen_nic_get_regs() local342 recv_ctx->rds_rings[0].crb_rcv_producer); in netxen_nic_get_regs()344 recv_ctx->rds_rings[1].crb_rcv_producer); in netxen_nic_get_regs()349 sds_ring = &(recv_ctx->sds_rings[ring]); in netxen_nic_get_regs()
1217 struct netxen_recv_context recv_ctx; member
70 struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx; in qlcnic_fw_cmd_set_mtu() local72 if (recv_ctx->state == QLCNIC_HOST_CTX_STATE_ACTIVE) { in qlcnic_fw_cmd_set_mtu()76 recv_ctx->context_id, in qlcnic_fw_cmd_set_mtu()110 struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx; in qlcnic_fw_cmd_create_rx_ctx() local165 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()179 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()207 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()217 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()226 recv_ctx->state = le32_to_cpu(prsp->host_ctx_state); in qlcnic_fw_cmd_create_rx_ctx()227 recv_ctx->context_id = le16_to_cpu(prsp->context_id); in qlcnic_fw_cmd_create_rx_ctx()[all …]
92 struct qlcnic_recv_context *recv_ctx; in qlcnic_release_rx_buffers() local97 recv_ctx = &adapter->recv_ctx; in qlcnic_release_rx_buffers()99 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_release_rx_buffers()117 struct qlcnic_recv_context *recv_ctx; in qlcnic_reset_rx_buffers_list() local122 recv_ctx = &adapter->recv_ctx; in qlcnic_reset_rx_buffers_list()124 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_reset_rx_buffers_list()171 struct qlcnic_recv_context *recv_ctx; in qlcnic_free_sw_resources() local176 recv_ctx = &adapter->recv_ctx; in qlcnic_free_sw_resources()178 if (recv_ctx->rds_rings == NULL) in qlcnic_free_sw_resources()182 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_free_sw_resources()[all …]
149 qlcnic_alloc_sds_rings(struct qlcnic_recv_context *recv_ctx, int count) in qlcnic_alloc_sds_rings() argument153 recv_ctx->sds_rings = kzalloc(size, GFP_KERNEL); in qlcnic_alloc_sds_rings()155 return recv_ctx->sds_rings == NULL; in qlcnic_alloc_sds_rings()159 qlcnic_free_sds_rings(struct qlcnic_recv_context *recv_ctx) in qlcnic_free_sds_rings() argument161 if (recv_ctx->sds_rings != NULL) in qlcnic_free_sds_rings()162 kfree(recv_ctx->sds_rings); in qlcnic_free_sds_rings()164 recv_ctx->sds_rings = NULL; in qlcnic_free_sds_rings()172 struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx; in qlcnic_napi_add() local174 if (qlcnic_alloc_sds_rings(recv_ctx, adapter->max_sds_rings)) in qlcnic_napi_add()178 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_napi_add()[all …]
343 struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx; in qlcnic_get_regs() local368 regs_buff[i++] = readl(recv_ctx->rds_rings[0].crb_rcv_producer); in qlcnic_get_regs()369 regs_buff[i++] = readl(recv_ctx->rds_rings[1].crb_rcv_producer); in qlcnic_get_regs()374 sds_ring = &(recv_ctx->sds_rings[ring]); in qlcnic_get_regs()
1044 struct qlcnic_recv_context recv_ctx; member