Searched refs:rds_ring (Results 1 – 10 of 10) sorted by relevance
/Linux-v6.1/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() 106 rds_ring->dma_size, DMA_FROM_DEVICE); in netxen_release_rx_buffers() 150 struct nx_host_rds_ring *rds_ring; in netxen_free_sw_resources() local 160 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_free_sw_resources() 161 vfree(rds_ring->rx_buf_arr); in netxen_free_sw_resources() 162 rds_ring->rx_buf_arr = NULL; in netxen_free_sw_resources() [all …]
|
D | netxen_nic_ctx.c | 262 struct nx_host_rds_ring *rds_ring; in nx_fw_cmd_create_rx_ctx() local 326 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx() 328 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 329 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx() 331 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in nx_fw_cmd_create_rx_ctx() 364 rds_ring = &recv_ctx->rds_rings[i]; in nx_fw_cmd_create_rx_ctx() 367 rds_ring->crb_rcv_producer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_rx_ctx() 684 struct nx_host_rds_ring *rds_ring; in netxen_init_old_ctx() local 701 rds_ring = &recv_ctx->rds_rings[ring]; in netxen_init_old_ctx() 704 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) 1764 struct nx_host_rds_ring *rds_ring);
|
D | netxen_nic_main.c | 1199 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local 1250 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach() 1251 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()
|
/Linux-v6.1/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() 829 dma = dma_map_single(&pdev->dev, skb->data, rds_ring->dma_size, 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 | 85 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_release_rx_buffers() local 91 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_release_rx_buffers() 92 for (i = 0; i < rds_ring->num_desc; ++i) { in qlcnic_release_rx_buffers() 93 rx_buf = &(rds_ring->rx_buf_arr[i]); in qlcnic_release_rx_buffers() 98 rds_ring->dma_size, DMA_FROM_DEVICE); in qlcnic_release_rx_buffers() 108 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_reset_rx_buffers_list() local 114 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_reset_rx_buffers_list() 116 INIT_LIST_HEAD(&rds_ring->free_list); in qlcnic_reset_rx_buffers_list() 118 rx_buf = rds_ring->rx_buf_arr; in qlcnic_reset_rx_buffers_list() 119 for (i = 0; i < rds_ring->num_desc; i++) { in qlcnic_reset_rx_buffers_list() [all …]
|
D | qlcnic_ctx.c | 244 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_82xx_fw_cmd_create_rx_ctx() local 312 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx() 313 rds_ring->producer = 0; in qlcnic_82xx_fw_cmd_create_rx_ctx() 314 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx() 315 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in qlcnic_82xx_fw_cmd_create_rx_ctx() 317 prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); in qlcnic_82xx_fw_cmd_create_rx_ctx() 355 rds_ring = &recv_ctx->rds_rings[i]; in qlcnic_82xx_fw_cmd_create_rx_ctx() 357 rds_ring->crb_rcv_producer = ahw->pci_base0 + reg; in qlcnic_82xx_fw_cmd_create_rx_ctx() 561 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_alloc_hw_resources() local 594 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_alloc_hw_resources() [all …]
|
D | qlcnic_main.c | 1860 struct qlcnic_host_rds_ring *rds_ring; in __qlcnic_up() local 1877 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in __qlcnic_up() 1878 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in __qlcnic_up() 2115 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_diag_alloc_res() local 2144 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_diag_alloc_res() 2145 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_diag_alloc_res() 2954 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_dump_rings() local 2963 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_dump_rings() 2964 if (!rds_ring) in qlcnic_dump_rings() 2968 ring, readl(rds_ring->crb_rcv_producer), in qlcnic_dump_rings() [all …]
|
D | qlcnic.h | 64 #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) 1613 struct qlcnic_host_rds_ring *rds_ring, u8 ring_id);
|
D | qlcnic_83xx_hw.c | 1402 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_83xx_diag_alloc_res() local 1436 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_83xx_diag_alloc_res() 1437 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_83xx_diag_alloc_res()
|