Searched refs:rds_ring (Results 1 – 10 of 10) sorted by relevance
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 49 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() 168 struct nx_host_rds_ring *rds_ring; in netxen_free_sw_resources() local 178 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources() 179 vfree(rds_ring->rx_buf_arr); in netxen_free_sw_resources() 180 rds_ring->rx_buf_arr = NULL; in netxen_free_sw_resources() [all …]
|
D | netxen_nic_ctx.c | 282 struct nx_host_rds_ring *rds_ring; in nx_fw_cmd_create_rx_ctx() local 346 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx() 348 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 349 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx() 351 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in nx_fw_cmd_create_rx_ctx() 384 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx() 387 rds_ring->crb_rcv_producer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx() 704 struct nx_host_rds_ring *rds_ring; in netxen_init_old_ctx() local 721 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_init_old_ctx() 724 cpu_to_le64(rds_ring->phys_addr); in netxen_init_old_ctx() [all …]
|
D | netxen_nic.h | 75 #define RCV_DESC_RINGSIZE(rds_ring) \ argument 76 (sizeof(struct rcv_desc) * (rds_ring)->num_desc) 77 #define RCV_BUFF_RINGSIZE(rds_ring) \ argument 78 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc) 1783 struct nx_host_rds_ring *rds_ring);
|
D | netxen_nic_main.c | 1225 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local 1276 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach() 1277 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 813 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_alloc_rx_skb() argument 820 skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); in qlcnic_alloc_rx_skb() 828 rds_ring->dma_size, PCI_DMA_FROMDEVICE); in qlcnic_alloc_rx_skb() 843 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_post_rx_buffers_nodb() argument 852 if (!spin_trylock(&rds_ring->lock)) in qlcnic_post_rx_buffers_nodb() 855 producer = rds_ring->producer; in qlcnic_post_rx_buffers_nodb() 856 head = &rds_ring->free_list; in qlcnic_post_rx_buffers_nodb() 861 if (qlcnic_alloc_rx_skb(adapter, rds_ring, buffer)) in qlcnic_post_rx_buffers_nodb() 868 pdesc = &rds_ring->desc_head[producer]; in qlcnic_post_rx_buffers_nodb() 872 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); in qlcnic_post_rx_buffers_nodb() [all …]
|
D | qlcnic_init.c | 86 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_release_rx_buffers() local 92 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_release_rx_buffers() 93 for (i = 0; i < rds_ring->num_desc; ++i) { in qlcnic_release_rx_buffers() 94 rx_buf = &(rds_ring->rx_buf_arr[i]); in qlcnic_release_rx_buffers() 100 rds_ring->dma_size, in qlcnic_release_rx_buffers() 111 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_reset_rx_buffers_list() local 117 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_reset_rx_buffers_list() 119 INIT_LIST_HEAD(&rds_ring->free_list); in qlcnic_reset_rx_buffers_list() 121 rx_buf = rds_ring->rx_buf_arr; in qlcnic_reset_rx_buffers_list() 122 for (i = 0; i < rds_ring->num_desc; i++) { in qlcnic_reset_rx_buffers_list() [all …]
|
D | qlcnic_ctx.c | 245 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_82xx_fw_cmd_create_rx_ctx() local 313 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx() 314 rds_ring->producer = 0; in qlcnic_82xx_fw_cmd_create_rx_ctx() 315 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx() 316 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in qlcnic_82xx_fw_cmd_create_rx_ctx() 318 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in qlcnic_82xx_fw_cmd_create_rx_ctx() 356 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx() 358 rds_ring->crb_rcv_producer = ahw->pci_base0 + reg; in qlcnic_82xx_fw_cmd_create_rx_ctx() 562 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_alloc_hw_resources() local 593 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_alloc_hw_resources() [all …]
|
D | qlcnic_main.c | 1883 struct qlcnic_host_rds_ring *rds_ring; in __qlcnic_up() local 1900 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in __qlcnic_up() 1901 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in __qlcnic_up() 2138 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_diag_alloc_res() local 2167 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_diag_alloc_res() 2168 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_diag_alloc_res() 3008 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_dump_rings() local 3017 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_dump_rings() 3018 if (!rds_ring) in qlcnic_dump_rings() 3022 ring, readl(rds_ring->crb_rcv_producer), in qlcnic_dump_rings() [all …]
|
D | qlcnic.h | 65 #define RCV_DESC_RINGSIZE(rds_ring) \ argument 66 (sizeof(struct rcv_desc) * (rds_ring)->num_desc) 67 #define RCV_BUFF_RINGSIZE(rds_ring) \ argument 68 (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc) 1619 struct qlcnic_host_rds_ring *rds_ring, u8 ring_id);
|
D | qlcnic_83xx_hw.c | 1395 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_83xx_diag_alloc_res() local 1429 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_83xx_diag_alloc_res() 1430 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_83xx_diag_alloc_res()
|