Searched refs:rds_ring (Results 1 – 10 of 10) sorted by relevance
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 33 struct nx_host_rds_ring *rds_ring); 94 struct nx_host_rds_ring *rds_ring; in netxen_release_rx_buffers() local 100 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_release_rx_buffers() 101 for (i = 0; i < rds_ring->num_desc; ++i) { in netxen_release_rx_buffers() 102 rx_buf = &(rds_ring->rx_buf_arr[i]); in netxen_release_rx_buffers() 107 rds_ring->dma_size, in netxen_release_rx_buffers() 152 struct nx_host_rds_ring *rds_ring; in netxen_free_sw_resources() local 162 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources() 163 vfree(rds_ring->rx_buf_arr); in netxen_free_sw_resources() 164 rds_ring->rx_buf_arr = NULL; in netxen_free_sw_resources() [all …]
|
D | netxen_nic_ctx.c | 261 struct nx_host_rds_ring *rds_ring; in nx_fw_cmd_create_rx_ctx() local 325 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx() 327 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 328 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx() 330 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in nx_fw_cmd_create_rx_ctx() 363 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx() 366 rds_ring->crb_rcv_producer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx() 681 struct nx_host_rds_ring *rds_ring; in netxen_init_old_ctx() local 698 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_init_old_ctx() 701 cpu_to_le64(rds_ring->phys_addr); in netxen_init_old_ctx() [all …]
|
D | netxen_nic.h | 59 #define RCV_DESC_RINGSIZE(rds_ring) \ argument 60 (sizeof(struct rcv_desc) * (rds_ring)->num_desc) 61 #define RCV_BUFF_RINGSIZE(rds_ring) \ argument 62 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc) 1767 struct nx_host_rds_ring *rds_ring);
|
D | netxen_nic_main.c | 1203 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local 1254 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach() 1255 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 815 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_alloc_rx_skb() argument 822 skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); in qlcnic_alloc_rx_skb() 830 rds_ring->dma_size, PCI_DMA_FROMDEVICE); in qlcnic_alloc_rx_skb() 845 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_post_rx_buffers_nodb() argument 854 if (!spin_trylock(&rds_ring->lock)) in qlcnic_post_rx_buffers_nodb() 857 producer = rds_ring->producer; in qlcnic_post_rx_buffers_nodb() 858 head = &rds_ring->free_list; in qlcnic_post_rx_buffers_nodb() 863 if (qlcnic_alloc_rx_skb(adapter, rds_ring, buffer)) in qlcnic_post_rx_buffers_nodb() 870 pdesc = &rds_ring->desc_head[producer]; in qlcnic_post_rx_buffers_nodb() 874 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 595 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() 3010 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_dump_rings() local 3019 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_dump_rings() 3020 if (!rds_ring) in qlcnic_dump_rings() 3024 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 | 1398 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_83xx_diag_alloc_res() local 1432 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_83xx_diag_alloc_res() 1433 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_83xx_diag_alloc_res()
|