Home
last modified time | relevance | path

Searched refs:rds_ring (Results 1 – 8 of 8) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_init.c30 struct qlcnic_host_rds_ring *rds_ring);
93 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_release_rx_buffers() local
99 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_release_rx_buffers()
100 for (i = 0; i < rds_ring->num_desc; ++i) { in qlcnic_release_rx_buffers()
101 rx_buf = &(rds_ring->rx_buf_arr[i]); in qlcnic_release_rx_buffers()
107 rds_ring->dma_size, in qlcnic_release_rx_buffers()
118 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_reset_rx_buffers_list() local
124 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_reset_rx_buffers_list()
126 INIT_LIST_HEAD(&rds_ring->free_list); in qlcnic_reset_rx_buffers_list()
128 rx_buf = rds_ring->rx_buf_arr; in qlcnic_reset_rx_buffers_list()
[all …]
Dqlcnic_ctx.c196 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_fw_cmd_create_rx_ctx() local
263 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
264 rds_ring->producer = 0; in qlcnic_fw_cmd_create_rx_ctx()
266 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in qlcnic_fw_cmd_create_rx_ctx()
267 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in qlcnic_fw_cmd_create_rx_ctx()
269 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in qlcnic_fw_cmd_create_rx_ctx()
305 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
308 rds_ring->crb_rcv_producer = adapter->ahw->pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
478 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_alloc_hw_resources() local
507 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_alloc_hw_resources()
[all …]
Dqlcnic.h64 #define RCV_DESC_RINGSIZE(rds_ring) \ argument
65 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
66 #define RCV_BUFF_RINGSIZE(rds_ring) \ argument
67 (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc)
1456 struct qlcnic_host_rds_ring *rds_ring);
Dqlcnic_main.c1135 struct qlcnic_host_rds_ring *rds_ring; in __qlcnic_up() local
1149 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in __qlcnic_up()
1150 qlcnic_post_rx_buffers(adapter, rds_ring); in __qlcnic_up()
1371 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_diag_alloc_res() local
1399 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_diag_alloc_res()
1400 qlcnic_post_rx_buffers(adapter, rds_ring); in qlcnic_diag_alloc_res()
/linux-3.4.99/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c50 struct nx_host_rds_ring *rds_ring);
111 struct nx_host_rds_ring *rds_ring; in netxen_release_rx_buffers() local
117 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_release_rx_buffers()
118 for (i = 0; i < rds_ring->num_desc; ++i) { in netxen_release_rx_buffers()
119 rx_buf = &(rds_ring->rx_buf_arr[i]); in netxen_release_rx_buffers()
124 rds_ring->dma_size, in netxen_release_rx_buffers()
167 struct nx_host_rds_ring *rds_ring; in netxen_free_sw_resources() local
177 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources()
178 vfree(rds_ring->rx_buf_arr); in netxen_free_sw_resources()
179 rds_ring->rx_buf_arr = NULL; in netxen_free_sw_resources()
[all …]
Dnetxen_nic_ctx.c289 struct nx_host_rds_ring *rds_ring; in nx_fw_cmd_create_rx_ctx() local
350 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
352 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
353 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
355 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in nx_fw_cmd_create_rx_ctx()
388 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
391 rds_ring->crb_rcv_producer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
708 struct nx_host_rds_ring *rds_ring; in netxen_init_old_ctx() local
725 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_init_old_ctx()
728 cpu_to_le64(rds_ring->phys_addr); in netxen_init_old_ctx()
[all …]
Dnetxen_nic.h77 #define RCV_DESC_RINGSIZE(rds_ring) \ argument
78 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
79 #define RCV_BUFF_RINGSIZE(rds_ring) \ argument
80 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc)
1776 struct nx_host_rds_ring *rds_ring);
Dnetxen_nic_main.c1185 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local
1228 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach()
1229 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()