Home
last modified time | relevance | path

Searched refs:recv_ctx (Results 1 – 10 of 10) sorted by relevance

/linux-2.6.39/drivers/net/netxen/
Dnetxen_nic_ctx.c98 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()
[all …]
Dnetxen_nic_init.c109 struct netxen_recv_context *recv_ctx; in netxen_release_rx_buffers() local
114 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() local
170 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() local
225 recv_ctx = &adapter->recv_ctx; in netxen_alloc_sw_resources()
[all …]
Dnetxen_nic_main.c168 netxen_alloc_sds_rings(struct netxen_recv_context *recv_ctx, int count) in netxen_alloc_sds_rings() argument
172 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() argument
180 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() local
193 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 …]
Dnetxen_nic_ethtool.c289 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in netxen_nic_get_regs() local
342 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()
Dnetxen_nic.h1217 struct netxen_recv_context recv_ctx; member
/linux-2.6.39/drivers/net/qlcnic/
Dqlcnic_ctx.c70 struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx; in qlcnic_fw_cmd_set_mtu() local
72 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() local
165 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 …]
Dqlcnic_init.c92 struct qlcnic_recv_context *recv_ctx; in qlcnic_release_rx_buffers() local
97 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() local
122 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() local
176 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 …]
Dqlcnic_main.c149 qlcnic_alloc_sds_rings(struct qlcnic_recv_context *recv_ctx, int count) in qlcnic_alloc_sds_rings() argument
153 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() argument
161 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() local
174 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 …]
Dqlcnic_ethtool.c343 struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx; in qlcnic_get_regs() local
368 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()
Dqlcnic.h1044 struct qlcnic_recv_context recv_ctx; member