Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c130 static int qlcnic_process_rcv_ring(struct qlcnic_host_sds_ring *sds_ring,
963 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_poll() local
967 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_poll()
968 adapter = sds_ring->adapter; in qlcnic_poll()
969 tx_ring = sds_ring->tx_ring; in qlcnic_poll()
973 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll()
980 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll()
982 qlcnic_enable_sds_intr(adapter, sds_ring); in qlcnic_poll()
1014 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_rx_poll() local
1018 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_rx_poll()
[all …]
Dqlcnic_ctx.c245 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_82xx_fw_cmd_create_rx_ctx() local
324 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx()
325 sds_ring->consumer = 0; in qlcnic_82xx_fw_cmd_create_rx_ctx()
326 memset(sds_ring->desc_head, 0, STATUS_DESC_RINGSIZE(sds_ring)); in qlcnic_82xx_fw_cmd_create_rx_ctx()
327 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx()
328 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in qlcnic_82xx_fw_cmd_create_rx_ctx()
364 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx()
371 sds_ring->crb_intr_mask = ahw->pci_base0 + reg2; in qlcnic_82xx_fw_cmd_create_rx_ctx()
372 sds_ring->crb_sts_consumer = ahw->pci_base0 + reg; in qlcnic_82xx_fw_cmd_create_rx_ctx()
562 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_alloc_hw_resources() local
[all …]
Dqlcnic_main.c1699 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_request_irq() local
1736 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_request_irq()
1742 snprintf(sds_ring->name, in qlcnic_request_irq()
1743 sizeof(sds_ring->name), in qlcnic_request_irq()
1746 snprintf(sds_ring->name, in qlcnic_request_irq()
1747 sizeof(sds_ring->name), in qlcnic_request_irq()
1751 snprintf(sds_ring->name, in qlcnic_request_irq()
1752 sizeof(sds_ring->name), in qlcnic_request_irq()
1756 err = request_irq(sds_ring->irq, handler, flags, in qlcnic_request_irq()
1757 sds_ring->name, sds_ring); in qlcnic_request_irq()
[all …]
Dqlcnic.h68 #define STATUS_DESC_RINGSIZE(sds_ring) \ argument
69 (sizeof(struct status_desc) * (sds_ring)->num_desc)
1933 qlcnic_process_rcv_ring_diag(struct qlcnic_host_sds_ring *sds_ring) in qlcnic_process_rcv_ring_diag() argument
1935 sds_ring->adapter->ahw->hw_ops->process_lb_rcv_ring_diag(sds_ring); in qlcnic_process_rcv_ring_diag()
2198 struct qlcnic_host_sds_ring *sds_ring) in qlcnic_83xx_enable_sds_intr() argument
2200 writel(0, sds_ring->crb_intr_mask); in qlcnic_83xx_enable_sds_intr()
2206 struct qlcnic_host_sds_ring *sds_ring) in qlcnic_83xx_disable_sds_intr() argument
2208 writel(1, sds_ring->crb_intr_mask); in qlcnic_83xx_disable_sds_intr()
2222 struct qlcnic_host_sds_ring *sds_ring) in qlcnic_82xx_disable_sds_intr() argument
2227 writel(0x1, sds_ring->crb_intr_mask); in qlcnic_82xx_disable_sds_intr()
[all …]
Dqlcnic_init.c186 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_alloc_sw_resources() local
241 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_alloc_sw_resources()
242 sds_ring->irq = adapter->msix_entries[ring].vector; in qlcnic_alloc_sw_resources()
243 sds_ring->adapter = adapter; in qlcnic_alloc_sw_resources()
244 sds_ring->num_desc = adapter->num_rxd; in qlcnic_alloc_sw_resources()
248 sds_ring->tx_ring = &adapter->tx_ring[ring]; in qlcnic_alloc_sw_resources()
250 sds_ring->tx_ring = &adapter->tx_ring[0]; in qlcnic_alloc_sw_resources()
253 INIT_LIST_HEAD(&sds_ring->free_list[i]); in qlcnic_alloc_sw_resources()
Dqlcnic_ethtool.c533 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_get_regs() local
583 sds_ring = &(recv_ctx->sds_rings[ring]); in qlcnic_get_regs()
584 regs_buff[i++] = readl(sds_ring->crb_sts_consumer); in qlcnic_get_regs()
585 regs_buff[i++] = sds_ring->consumer; in qlcnic_get_regs()
586 regs_buff[i++] = readl(sds_ring->crb_intr_mask); in qlcnic_get_regs()
1048 struct qlcnic_host_sds_ring *sds_ring = &recv_ctx->sds_rings[0]; in qlcnic_do_lb_test() local
1064 qlcnic_process_rcv_ring_diag(sds_ring); in qlcnic_do_lb_test()
1095 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_loopback_test() local
1124 sds_ring = &adapter->recv_ctx->sds_rings[0]; in qlcnic_loopback_test()
1132 qlcnic_process_rcv_ring_diag(sds_ring); in qlcnic_loopback_test()
Dqlcnic_hw.h184 void qlcnic_82xx_process_rcv_ring_diag(struct qlcnic_host_sds_ring *sds_ring);
Dqlcnic_83xx_hw.c526 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_83xx_intr() local
544 sds_ring = &adapter->recv_ctx->sds_rings[0]; in qlcnic_83xx_intr()
545 napi_schedule(&sds_ring->napi); in qlcnic_83xx_intr()
553 struct qlcnic_host_sds_ring *sds_ring = data; in qlcnic_83xx_tmp_intr() local
554 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_83xx_tmp_intr()
564 qlcnic_enable_sds_intr(adapter, sds_ring); in qlcnic_83xx_tmp_intr()
1401 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_83xx_diag_alloc_res() local
1442 sds_ring = &adapter->recv_ctx->sds_rings[ring]; in qlcnic_83xx_diag_alloc_res()
1443 qlcnic_enable_sds_intr(adapter, sds_ring); in qlcnic_83xx_diag_alloc_res()
1460 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_83xx_diag_free_res() local
[all …]
/Linux-v6.1/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ctx.c263 struct nx_host_sds_ring *sds_ring; in nx_fw_cmd_create_rx_ctx() local
339 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
341 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
342 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
375 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
378 sds_ring->crb_sts_consumer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
382 sds_ring->crb_intr_mask = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
685 struct nx_host_sds_ring *sds_ring; in netxen_init_old_ctx() local
710 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_init_old_ctx()
713 hwctx->sts_ring_addr = cpu_to_le64(sds_ring->phys_addr); in netxen_init_old_ctx()
[all …]
Dnetxen_nic_init.c180 struct nx_host_sds_ring *sds_ring; in netxen_alloc_sw_resources() local
279 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_alloc_sw_resources()
280 sds_ring->irq = adapter->msix_entries[ring].vector; in netxen_alloc_sw_resources()
281 sds_ring->adapter = adapter; in netxen_alloc_sw_resources()
282 sds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
285 INIT_LIST_HEAD(&sds_ring->free_list[i]); in netxen_alloc_sw_resources()
1426 struct nx_host_sds_ring *sds_ring) in netxen_handle_fw_message() argument
1433 desc = &sds_ring->desc_head[index]; in netxen_handle_fw_message()
1437 index = get_next_index(index, sds_ring->num_desc); in netxen_handle_fw_message()
1444 netxen_handle_linkevent(sds_ring->adapter, &msg); in netxen_handle_fw_message()
[all …]
Dnetxen_nic_main.c130 static inline void netxen_nic_disable_int(struct nx_host_sds_ring *sds_ring) in netxen_nic_disable_int() argument
132 struct netxen_adapter *adapter = sds_ring->adapter; in netxen_nic_disable_int()
134 NXWRIO(adapter, sds_ring->crb_intr_mask, 0); in netxen_nic_disable_int()
137 static inline void netxen_nic_enable_int(struct nx_host_sds_ring *sds_ring) in netxen_nic_enable_int() argument
139 struct netxen_adapter *adapter = sds_ring->adapter; in netxen_nic_enable_int()
141 NXWRIO(adapter, sds_ring->crb_intr_mask, 0x1); in netxen_nic_enable_int()
168 struct nx_host_sds_ring *sds_ring; in netxen_napi_add() local
175 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_napi_add()
176 netif_napi_add(netdev, &sds_ring->napi, netxen_nic_poll); in netxen_napi_add()
186 struct nx_host_sds_ring *sds_ring; in netxen_napi_del() local
[all …]
Dnetxen_nic_ethtool.c288 struct nx_host_sds_ring *sds_ring; in netxen_nic_get_regs() local
347 sds_ring = &(recv_ctx->sds_rings[ring]); in netxen_nic_get_regs()
349 sds_ring->crb_sts_consumer); in netxen_nic_get_regs()
Dnetxen_nic.h63 #define STATUS_DESC_RINGSIZE(sds_ring) \ argument
64 (sizeof(struct status_desc) * (sds_ring)->num_desc)
1766 int netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max);