Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/net/netxen/
Dnetxen_nic_init.c49 struct nx_host_rds_ring *rds_ring);
110 struct nx_host_rds_ring *rds_ring; in netxen_release_rx_buffers() local
116 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_release_rx_buffers()
117 for (i = 0; i < rds_ring->num_desc; ++i) { in netxen_release_rx_buffers()
118 rx_buf = &(rds_ring->rx_buf_arr[i]); in netxen_release_rx_buffers()
123 rds_ring->dma_size, in netxen_release_rx_buffers()
166 struct nx_host_rds_ring *rds_ring; in netxen_free_sw_resources() local
176 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources()
177 vfree(rds_ring->rx_buf_arr); in netxen_free_sw_resources()
178 rds_ring->rx_buf_arr = NULL; in netxen_free_sw_resources()
[all …]
Dnetxen_nic_ctx.c140 struct nx_host_rds_ring *rds_ring; in nx_fw_cmd_create_rx_ctx() local
200 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
202 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
203 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
205 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in nx_fw_cmd_create_rx_ctx()
239 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx()
242 rds_ring->crb_rcv_producer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx()
556 struct nx_host_rds_ring *rds_ring; in netxen_init_old_ctx() local
573 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_init_old_ctx()
576 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)
1341 struct nx_host_rds_ring *rds_ring);
Dnetxen_nic_main.c1070 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local
1113 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach()
1114 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()
/linux-2.6.39/drivers/net/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.c99 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_fw_cmd_create_rx_ctx() local
165 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
166 rds_ring->producer = 0; in qlcnic_fw_cmd_create_rx_ctx()
168 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in qlcnic_fw_cmd_create_rx_ctx()
169 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in qlcnic_fw_cmd_create_rx_ctx()
171 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in qlcnic_fw_cmd_create_rx_ctx()
207 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_fw_cmd_create_rx_ctx()
210 rds_ring->crb_rcv_producer = adapter->ahw.pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
395 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_alloc_hw_resources() local
425 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_alloc_hw_resources()
[all …]
Dqlcnic.h62 #define RCV_DESC_RINGSIZE(rds_ring) \ argument
63 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
64 #define RCV_BUFF_RINGSIZE(rds_ring) \ argument
65 (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc)
1298 struct qlcnic_host_rds_ring *rds_ring);
Dqlcnic_main.c1104 struct qlcnic_host_rds_ring *rds_ring; in __qlcnic_up() local
1118 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in __qlcnic_up()
1119 qlcnic_post_rx_buffers(adapter, ring, rds_ring); in __qlcnic_up()
1300 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_diag_alloc_res() local
1328 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in qlcnic_diag_alloc_res()
1329 qlcnic_post_rx_buffers(adapter, ring, rds_ring); in qlcnic_diag_alloc_res()