Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/net/netxen/
Dnetxen_nic_ctx.c141 struct nx_host_sds_ring *sds_ring; in nx_fw_cmd_create_rx_ctx() local
213 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
215 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
216 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
250 sds_ring = &recv_ctx->sds_rings[i]; in nx_fw_cmd_create_rx_ctx()
253 sds_ring->crb_sts_consumer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
257 sds_ring->crb_intr_mask = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
557 struct nx_host_sds_ring *sds_ring; in netxen_init_old_ctx() local
582 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_init_old_ctx()
585 hwctx->sts_ring_addr = cpu_to_le64(sds_ring->phys_addr); in netxen_init_old_ctx()
[all …]
Dnetxen_nic_main.c150 static inline void netxen_nic_disable_int(struct nx_host_sds_ring *sds_ring) in netxen_nic_disable_int() argument
152 struct netxen_adapter *adapter = sds_ring->adapter; in netxen_nic_disable_int()
154 NXWRIO(adapter, sds_ring->crb_intr_mask, 0); in netxen_nic_disable_int()
157 static inline void netxen_nic_enable_int(struct nx_host_sds_ring *sds_ring) in netxen_nic_enable_int() argument
159 struct netxen_adapter *adapter = sds_ring->adapter; in netxen_nic_enable_int()
161 NXWRIO(adapter, sds_ring->crb_intr_mask, 0x1); in netxen_nic_enable_int()
190 struct nx_host_sds_ring *sds_ring; in netxen_napi_add() local
197 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_napi_add()
198 netif_napi_add(netdev, &sds_ring->napi, in netxen_napi_add()
209 struct nx_host_sds_ring *sds_ring; in netxen_napi_del() local
[all …]
Dnetxen_nic_init.c196 struct nx_host_sds_ring *sds_ring; in netxen_alloc_sw_resources() local
306 sds_ring = &recv_ctx->sds_rings[ring]; in netxen_alloc_sw_resources()
307 sds_ring->irq = adapter->msix_entries[ring].vector; in netxen_alloc_sw_resources()
308 sds_ring->adapter = adapter; in netxen_alloc_sw_resources()
309 sds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
312 INIT_LIST_HEAD(&sds_ring->free_list[i]); in netxen_alloc_sw_resources()
1412 struct nx_host_sds_ring *sds_ring) in netxen_handle_fw_message() argument
1419 desc = &sds_ring->desc_head[index]; in netxen_handle_fw_message()
1423 index = get_next_index(index, sds_ring->num_desc); in netxen_handle_fw_message()
1430 netxen_handle_linkevent(sds_ring->adapter, &msg); in netxen_handle_fw_message()
[all …]
Dnetxen_nic_ethtool.c290 struct nx_host_sds_ring *sds_ring; in netxen_nic_get_regs() local
349 sds_ring = &(recv_ctx->sds_rings[ring]); in netxen_nic_get_regs()
351 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)
1343 int netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max);
/linux-2.6.39/drivers/net/qlcnic/
Dqlcnic_ctx.c100 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_fw_cmd_create_rx_ctx() local
179 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
180 sds_ring->consumer = 0; in qlcnic_fw_cmd_create_rx_ctx()
181 memset(sds_ring->desc_head, 0, STATUS_DESC_RINGSIZE(sds_ring)); in qlcnic_fw_cmd_create_rx_ctx()
183 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in qlcnic_fw_cmd_create_rx_ctx()
184 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in qlcnic_fw_cmd_create_rx_ctx()
217 sds_ring = &recv_ctx->sds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
222 sds_ring->crb_sts_consumer = adapter->ahw.pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
223 sds_ring->crb_intr_mask = adapter->ahw.pci_base0 + reg2; in qlcnic_fw_cmd_create_rx_ctx()
396 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_alloc_hw_resources() local
[all …]
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()
1307 struct qlcnic_host_sds_ring *sds_ring) in qlcnic_handle_fw_message() argument
1314 desc = &sds_ring->desc_head[index]; in qlcnic_handle_fw_message()
1318 index = get_next_index(index, sds_ring->num_desc); in qlcnic_handle_fw_message()
1325 qlcnic_handle_linkevent(sds_ring->adapter, &msg); in qlcnic_handle_fw_message()
[all …]
Dqlcnic_main.c133 static inline void qlcnic_disable_int(struct qlcnic_host_sds_ring *sds_ring) in qlcnic_disable_int() argument
135 writel(0, sds_ring->crb_intr_mask); in qlcnic_disable_int()
138 static inline void qlcnic_enable_int(struct qlcnic_host_sds_ring *sds_ring) in qlcnic_enable_int() argument
140 struct qlcnic_adapter *adapter = sds_ring->adapter; in qlcnic_enable_int()
142 writel(0x1, sds_ring->crb_intr_mask); in qlcnic_enable_int()
171 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_napi_add() local
178 sds_ring = &recv_ctx->sds_rings[ring]; in qlcnic_napi_add()
181 netif_napi_add(netdev, &sds_ring->napi, qlcnic_poll, in qlcnic_napi_add()
184 netif_napi_add(netdev, &sds_ring->napi, in qlcnic_napi_add()
195 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_napi_del() local
[all …]
Dqlcnic.h66 #define STATUS_DESC_RINGSIZE(sds_ring) \ argument
67 (sizeof(struct status_desc) * (sds_ring)->num_desc)
1299 int qlcnic_process_rcv_ring(struct qlcnic_host_sds_ring *sds_ring, int max);
Dqlcnic_ethtool.c344 struct qlcnic_host_sds_ring *sds_ring; in qlcnic_get_regs() local
374 sds_ring = &(recv_ctx->sds_rings[ring]); in qlcnic_get_regs()
375 regs_buff[i++] = readl(sds_ring->crb_sts_consumer); in qlcnic_get_regs()