Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ctx.c220 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_set_mtu() local
225 cmd.req.arg1 = recv_ctx->context_id; in nx_fw_cmd_set_mtu()
229 if (recv_ctx->state == NX_HOST_CTX_STATE_ACTIVE) in nx_fw_cmd_set_mtu()
275 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in nx_fw_cmd_create_rx_ctx() local
326 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
339 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
364 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
375 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
386 recv_ctx->state = le32_to_cpu(prsp->host_ctx_state); in nx_fw_cmd_create_rx_ctx()
387 recv_ctx->context_id = le16_to_cpu(prsp->context_id); in nx_fw_cmd_create_rx_ctx()
[all …]
Dnetxen_nic_init.c93 struct netxen_recv_context *recv_ctx; in netxen_release_rx_buffers() local
98 recv_ctx = &adapter->recv_ctx; in netxen_release_rx_buffers()
100 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_release_rx_buffers()
149 struct netxen_recv_context *recv_ctx; in netxen_free_sw_resources() local
154 recv_ctx = &adapter->recv_ctx; in netxen_free_sw_resources()
156 if (recv_ctx->rds_rings == NULL) in netxen_free_sw_resources()
160 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources()
164 kfree(recv_ctx->rds_rings); in netxen_free_sw_resources()
178 struct netxen_recv_context *recv_ctx; in netxen_alloc_sw_resources() local
203 recv_ctx = &adapter->recv_ctx; in netxen_alloc_sw_resources()
[all …]
Dnetxen_nic_main.c148 netxen_alloc_sds_rings(struct netxen_recv_context *recv_ctx, int count) in netxen_alloc_sds_rings() argument
152 recv_ctx->sds_rings = kzalloc(size, GFP_KERNEL); in netxen_alloc_sds_rings()
154 return recv_ctx->sds_rings == NULL; in netxen_alloc_sds_rings()
158 netxen_free_sds_rings(struct netxen_recv_context *recv_ctx) in netxen_free_sds_rings() argument
160 kfree(recv_ctx->sds_rings); in netxen_free_sds_rings()
161 recv_ctx->sds_rings = NULL; in netxen_free_sds_rings()
169 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in netxen_napi_add() local
171 if (netxen_alloc_sds_rings(recv_ctx, adapter->max_sds_rings)) in netxen_napi_add()
175 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_napi_add()
187 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in netxen_napi_del() local
[all …]
Dnetxen_nic_ethtool.c287 struct netxen_recv_context *recv_ctx = &adapter->recv_ctx; in netxen_nic_get_regs() local
340 recv_ctx->rds_rings[0].crb_rcv_producer); in netxen_nic_get_regs()
342 recv_ctx->rds_rings[1].crb_rcv_producer); in netxen_nic_get_regs()
347 sds_ring = &(recv_ctx->sds_rings[ring]); in netxen_nic_get_regs()
Dnetxen_nic.h1637 struct netxen_recv_context recv_ctx; member
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1199 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_process_rcv() local
1209 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_process_rcv()
1266 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_process_lro() local
1281 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_process_lro()
1414 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_process_rcv_ring()
1495 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_process_rcv_diag() local
1503 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_process_rcv_diag()
1579 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_82xx_napi_add() local
1582 if (qlcnic_alloc_sds_rings(recv_ctx, adapter->drv_sds_rings)) in qlcnic_82xx_napi_add()
1586 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_82xx_napi_add()
[all …]
Dqlcnic_ctx.c213 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_fw_cmd_set_mtu() local
215 if (recv_ctx->state != QLCNIC_HOST_CTX_STATE_ACTIVE) in qlcnic_fw_cmd_set_mtu()
221 cmd.req.arg[1] = recv_ctx->context_id; in qlcnic_fw_cmd_set_mtu()
235 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_82xx_fw_cmd_create_rx_ctx() local
312 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx()
324 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx()
355 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx()
364 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx()
375 recv_ctx->state = le32_to_cpu(prsp->host_ctx_state); in qlcnic_82xx_fw_cmd_create_rx_ctx()
376 recv_ctx->context_id = le16_to_cpu(prsp->context_id); in qlcnic_82xx_fw_cmd_create_rx_ctx()
[all …]
Dqlcnic_init.c84 struct qlcnic_recv_context *recv_ctx; in qlcnic_release_rx_buffers() local
89 recv_ctx = adapter->recv_ctx; in qlcnic_release_rx_buffers()
91 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_release_rx_buffers()
107 struct qlcnic_recv_context *recv_ctx; in qlcnic_reset_rx_buffers_list() local
112 recv_ctx = adapter->recv_ctx; in qlcnic_reset_rx_buffers_list()
114 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_reset_rx_buffers_list()
165 struct qlcnic_recv_context *recv_ctx; in qlcnic_free_sw_resources() local
169 recv_ctx = adapter->recv_ctx; in qlcnic_free_sw_resources()
171 if (recv_ctx->rds_rings == NULL) in qlcnic_free_sw_resources()
175 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_free_sw_resources()
[all …]
Dqlcnic_83xx_hw.c544 sds_ring = &adapter->recv_ctx->sds_rings[0]; in qlcnic_83xx_intr()
1074 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_83xx_add_rings() local
1078 context_id = recv_ctx->context_id; in qlcnic_83xx_add_rings()
1094 sds = &recv_ctx->sds_rings[i]; in qlcnic_83xx_add_rings()
1128 sds = &recv_ctx->sds_rings[i]; in qlcnic_83xx_add_rings()
1149 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_83xx_del_rx_ctx() local
1160 cmd.req.arg[1] = recv_ctx->context_id | temp; in qlcnic_83xx_del_rx_ctx()
1166 recv_ctx->state = QLCNIC_HOST_CTX_STATE_FREED; in qlcnic_83xx_del_rx_ctx()
1181 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_83xx_create_rx_ctx() local
1217 sds = &recv_ctx->sds_rings[i]; in qlcnic_83xx_create_rx_ctx()
[all …]
Dqlcnic_main.c280 int qlcnic_alloc_sds_rings(struct qlcnic_recv_context *recv_ctx, int count) in qlcnic_alloc_sds_rings() argument
284 recv_ctx->sds_rings = kzalloc(size, GFP_KERNEL); in qlcnic_alloc_sds_rings()
286 return recv_ctx->sds_rings == NULL; in qlcnic_alloc_sds_rings()
289 void qlcnic_free_sds_rings(struct qlcnic_recv_context *recv_ctx) in qlcnic_free_sds_rings() argument
291 kfree(recv_ctx->sds_rings); in qlcnic_free_sds_rings()
292 recv_ctx->sds_rings = NULL; in qlcnic_free_sds_rings()
1705 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_request_irq() local
1736 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_request_irq()
1790 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_free_irq() local
1797 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_free_irq()
[all …]
Dqlcnic_ethtool.c532 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_get_regs() local
576 rds_rings = &recv_ctx->rds_rings[ring]; in qlcnic_get_regs()
583 sds_ring = &(recv_ctx->sds_rings[ring]); in qlcnic_get_regs()
1047 struct qlcnic_recv_context *recv_ctx = adapter->recv_ctx; in qlcnic_do_lb_test() local
1048 struct qlcnic_host_sds_ring *sds_ring = &recv_ctx->sds_rings[0]; in qlcnic_do_lb_test()
1124 sds_ring = &adapter->recv_ctx->sds_rings[0]; in qlcnic_loopback_test()
Dqlcnic.h1101 struct qlcnic_recv_context *recv_ctx; member