Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ctx.c290 struct nx_host_sds_ring *sds_ring; in nx_fw_cmd_create_rx_ctx() local
363 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
365 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
366 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
399 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
402 sds_ring->crb_sts_consumer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
406 sds_ring->crb_intr_mask = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
709 struct nx_host_sds_ring *sds_ring; in netxen_init_old_ctx() local
734 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_init_old_ctx()
737 hwctx->sts_ring_addr = cpu_to_le64(sds_ring->phys_addr); in netxen_init_old_ctx()
[all …]
Dnetxen_nic_main.c151 static inline void netxen_nic_disable_int(struct nx_host_sds_ring *sds_ring) in netxen_nic_disable_int() argument
153 struct netxen_adapter *adapter = sds_ring->adapter; in netxen_nic_disable_int()
155 NXWRIO(adapter, sds_ring->crb_intr_mask, 0); in netxen_nic_disable_int()
158 static inline void netxen_nic_enable_int(struct nx_host_sds_ring *sds_ring) in netxen_nic_enable_int() argument
160 struct netxen_adapter *adapter = sds_ring->adapter; in netxen_nic_enable_int()
162 NXWRIO(adapter, sds_ring->crb_intr_mask, 0x1); in netxen_nic_enable_int()
191 struct nx_host_sds_ring *sds_ring; in netxen_napi_add() local
198 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_napi_add()
199 netif_napi_add(netdev, &sds_ring->napi, in netxen_napi_add()
210 struct nx_host_sds_ring *sds_ring; in netxen_napi_del() local
[all …]
Dnetxen_nic_init.c197 struct nx_host_sds_ring *sds_ring; in netxen_alloc_sw_resources() local
304 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_alloc_sw_resources()
305 sds_ring->irq = adapter->msix_entries[ring].vector; in netxen_alloc_sw_resources()
306 sds_ring->adapter = adapter; in netxen_alloc_sw_resources()
307 sds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
310 INIT_LIST_HEAD(&sds_ring->free_list[i]); in netxen_alloc_sw_resources()
1456 struct nx_host_sds_ring *sds_ring) in netxen_handle_fw_message() argument
1463 desc = &sds_ring->desc_head[index]; in netxen_handle_fw_message()
1467 index = get_next_index(index, sds_ring->num_desc); in netxen_handle_fw_message()
1474 netxen_handle_linkevent(sds_ring->adapter, &msg); in netxen_handle_fw_message()
[all …]
Dnetxen_nic_ethtool.c300 struct nx_host_sds_ring *sds_ring; in netxen_nic_get_regs() local
359 sds_ring = &(recv_ctx->sds_rings[ring]); in netxen_nic_get_regs()
361 sds_ring->crb_sts_consumer); in netxen_nic_get_regs()
Dnetxen_nic.h81 #define STATUS_DESC_RINGSIZE(sds_ring) \ argument
82 (sizeof(struct status_desc) * (sds_ring)->num_desc)
1778 int netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max);
/linux-3.4.99/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c203 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_alloc_sw_resources() local
282 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_alloc_sw_resources()
283 sds_ring->irq = adapter->msix_entries[ring].vector; in qlcnic_alloc_sw_resources()
284 sds_ring->adapter = adapter; in qlcnic_alloc_sw_resources()
285 sds_ring->num_desc = adapter->num_rxd; in qlcnic_alloc_sw_resources()
288 INIT_LIST_HEAD(&sds_ring->free_list[i]); in qlcnic_alloc_sw_resources()
1383 struct qlcnic_host_sds_ring *sds_ring) in qlcnic_handle_fw_message() argument
1392 desc = &sds_ring->desc_head[index]; in qlcnic_handle_fw_message()
1396 index = get_next_index(index, sds_ring->num_desc); in qlcnic_handle_fw_message()
1400 adapter = sds_ring->adapter; in qlcnic_handle_fw_message()
[all …]
Dqlcnic_ctx.c197 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_fw_cmd_create_rx_ctx() local
277 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
278 sds_ring->consumer = 0; in qlcnic_fw_cmd_create_rx_ctx()
279 memset(sds_ring->desc_head, 0, STATUS_DESC_RINGSIZE(sds_ring)); in qlcnic_fw_cmd_create_rx_ctx()
281 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in qlcnic_fw_cmd_create_rx_ctx()
282 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in qlcnic_fw_cmd_create_rx_ctx()
315 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
320 sds_ring->crb_sts_consumer = adapter->ahw->pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
321 sds_ring->crb_intr_mask = adapter->ahw->pci_base0 + reg2; in qlcnic_fw_cmd_create_rx_ctx()
479 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_alloc_hw_resources() local
[all …]
Dqlcnic_main.c135 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
[all …]
Dqlcnic_ethtool.c340 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_get_regs() local
370 sds_ring = &(recv_ctx->sds_rings[ring]); in qlcnic_get_regs()
371 regs_buff[i++] = readl(sds_ring->crb_sts_consumer); in qlcnic_get_regs()
717 struct qlcnic_host_sds_ring *sds_ring = &recv_ctx->sds_rings[0]; in qlcnic_do_lb_test() local
732 qlcnic_process_rcv_ring_diag(sds_ring); in qlcnic_do_lb_test()
761 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_loopback_test() local
785 sds_ring = &adapter->recv_ctx->sds_rings[0]; in qlcnic_loopback_test()
794 qlcnic_process_rcv_ring_diag(sds_ring); in qlcnic_loopback_test()
Dqlcnic.h68 #define STATUS_DESC_RINGSIZE(sds_ring) \ argument
69 (sizeof(struct status_desc) * (sds_ring)->num_desc)
1457 int qlcnic_process_rcv_ring(struct qlcnic_host_sds_ring *sds_ring, int max);
1478 void qlcnic_process_rcv_ring_diag(struct qlcnic_host_sds_ring *sds_ring);