Lines Matching refs:sds_ring
135 static inline void qlcnic_disable_int(struct qlcnic_host_sds_ring *sds_ring) in qlcnic_disable_int() argument
137 writel(0, sds_ring->crb_intr_mask); in qlcnic_disable_int()
140 static inline void qlcnic_enable_int(struct qlcnic_host_sds_ring *sds_ring) in qlcnic_enable_int() argument
142 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_enable_int()
144 writel(0x1, sds_ring->crb_intr_mask); in qlcnic_enable_int()
173 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_napi_add() local
180 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_napi_add()
183 netif_napi_add(netdev, &sds_ring->napi, qlcnic_poll, in qlcnic_napi_add()
186 netif_napi_add(netdev, &sds_ring->napi, in qlcnic_napi_add()
197 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_napi_del() local
201 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_napi_del()
202 netif_napi_del(&sds_ring->napi); in qlcnic_napi_del()
212 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_napi_enable() local
219 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_napi_enable()
220 napi_enable(&sds_ring->napi); in qlcnic_napi_enable()
221 qlcnic_enable_int(sds_ring); in qlcnic_napi_enable()
229 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_napi_disable() local
236 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_napi_disable()
237 qlcnic_disable_int(sds_ring); in qlcnic_napi_disable()
238 napi_synchronize(&sds_ring->napi); in qlcnic_napi_disable()
239 napi_disable(&sds_ring->napi); in qlcnic_napi_disable()
1081 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_request_irq() local
1106 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_request_irq()
1107 sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); in qlcnic_request_irq()
1108 err = request_irq(sds_ring->irq, handler, in qlcnic_request_irq()
1109 flags, sds_ring->name, sds_ring); in qlcnic_request_irq()
1121 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_free_irq() local
1126 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_free_irq()
1127 free_irq(sds_ring->irq, sds_ring); in qlcnic_free_irq()
1298 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_diag_free_res() local
1304 sds_ring = &adapter->recv_ctx->sds_rings[ring]; in qlcnic_diag_free_res()
1305 qlcnic_disable_int(sds_ring); in qlcnic_diag_free_res()
1370 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_diag_alloc_res() local
1405 sds_ring = &adapter->recv_ctx->sds_rings[ring]; in qlcnic_diag_alloc_res()
1406 qlcnic_enable_int(sds_ring); in qlcnic_diag_alloc_res()
2430 struct qlcnic_host_sds_ring *sds_ring = data; in qlcnic_tmp_intr() local
2431 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_tmp_intr()
2445 qlcnic_enable_int(sds_ring); in qlcnic_tmp_intr()
2451 struct qlcnic_host_sds_ring *sds_ring = data; in qlcnic_intr() local
2452 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_intr()
2457 napi_schedule(&sds_ring->napi); in qlcnic_intr()
2464 struct qlcnic_host_sds_ring *sds_ring = data; in qlcnic_msi_intr() local
2465 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_msi_intr()
2470 napi_schedule(&sds_ring->napi); in qlcnic_msi_intr()
2476 struct qlcnic_host_sds_ring *sds_ring = data; in qlcnic_msix_intr() local
2478 napi_schedule(&sds_ring->napi); in qlcnic_msix_intr()
2558 struct qlcnic_host_sds_ring *sds_ring = in qlcnic_poll() local
2561 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_poll()
2568 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll()
2571 napi_complete(&sds_ring->napi); in qlcnic_poll()
2573 qlcnic_enable_int(sds_ring); in qlcnic_poll()
2581 struct qlcnic_host_sds_ring *sds_ring = in qlcnic_rx_poll() local
2584 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_rx_poll()
2587 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_rx_poll()
2590 napi_complete(&sds_ring->napi); in qlcnic_rx_poll()
2592 qlcnic_enable_int(sds_ring); in qlcnic_rx_poll()
2602 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_poll_controller() local
2608 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_poll_controller()
2609 qlcnic_intr(adapter->irq, sds_ring); in qlcnic_poll_controller()