Home
last modified time | relevance | path

Searched refs:rds_ring (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_init.c33 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 in netxen_free_sw_resources()
181 struct nx_host_rds_ring *rds_ring; netxen_alloc_sw_resources() local
1453 netxen_alloc_rx_skb(struct netxen_adapter *adapter, struct nx_host_rds_ring *rds_ring, struct netxen_rx_buffer *buffer) netxen_alloc_rx_skb() argument
1486 netxen_process_rxbuf(struct netxen_adapter *adapter, struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) netxen_process_rxbuf() argument
1523 struct nx_host_rds_ring *rds_ring; netxen_process_rcv() local
1577 struct nx_host_rds_ring *rds_ring; netxen_process_lro() local
1709 struct nx_host_rds_ring *rds_ring = netxen_process_rcv_ring() local
1808 netxen_post_rx_buffers(struct netxen_adapter *adapter, u32 ringid, struct nx_host_rds_ring *rds_ring) netxen_post_rx_buffers() argument
1866 netxen_post_rx_buffers_nodb(struct netxen_adapter *adapter, struct nx_host_rds_ring *rds_ring) netxen_post_rx_buffers_nodb() argument
[all...]
H A Dnetxen_nic_ctx.c261 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 in netxen_init_old_ctx()
737 struct nx_host_rds_ring *rds_ring; netxen_alloc_hw_resources() local
850 struct nx_host_rds_ring *rds_ring; netxen_free_hw_resources() local
[all...]
H A Dnetxen_nic.h59 #define RCV_DESC_RINGSIZE(rds_ring) \
60 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
61 #define RCV_BUFF_RINGSIZE(rds_ring) \
62 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc)
1764 struct nx_host_rds_ring *rds_ring);
H A Dnetxen_nic_main.c1198 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local
1249 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach()
1250 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_init.c33 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 in netxen_free_sw_resources()
179 struct nx_host_rds_ring *rds_ring; netxen_alloc_sw_resources() local
1452 netxen_alloc_rx_skb(struct netxen_adapter *adapter, struct nx_host_rds_ring *rds_ring, struct netxen_rx_buffer *buffer) netxen_alloc_rx_skb() argument
1485 netxen_process_rxbuf(struct netxen_adapter *adapter, struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) netxen_process_rxbuf() argument
1522 struct nx_host_rds_ring *rds_ring; netxen_process_rcv() local
1576 struct nx_host_rds_ring *rds_ring; netxen_process_lro() local
1709 struct nx_host_rds_ring *rds_ring = netxen_process_rcv_ring() local
1808 netxen_post_rx_buffers(struct netxen_adapter *adapter, u32 ringid, struct nx_host_rds_ring *rds_ring) netxen_post_rx_buffers() argument
1866 netxen_post_rx_buffers_nodb(struct netxen_adapter *adapter, struct nx_host_rds_ring *rds_ring) netxen_post_rx_buffers_nodb() argument
[all...]
H A Dnetxen_nic_ctx.c262 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 in netxen_init_old_ctx()
740 struct nx_host_rds_ring *rds_ring; netxen_alloc_hw_resources() local
853 struct nx_host_rds_ring *rds_ring; netxen_free_hw_resources() local
[all...]
H A Dnetxen_nic.h59 #define RCV_DESC_RINGSIZE(rds_ring) \
60 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
61 #define RCV_BUFF_RINGSIZE(rds_ring) \
62 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc)
1764 struct nx_host_rds_ring *rds_ring);
H A Dnetxen_nic_main.c1198 struct nx_host_rds_ring *rds_ring; in netxen_nic_attach() local
1249 rds_ring = &adapter->recv_ctx.rds_rings[ring]; in netxen_nic_attach()
1250 netxen_post_rx_buffers(adapter, ring, rds_ring); in netxen_nic_attach()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c814 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_alloc_rx_skb()
821 skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); in qlcnic_alloc_rx_skb()
829 rds_ring->dma_size, PCI_DMA_FROMDEVICE); in qlcnic_alloc_rx_skb()
844 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_post_rx_buffers_nodb()
853 if (!spin_trylock(&rds_ring->lock)) in qlcnic_post_rx_buffers_nodb()
856 producer = rds_ring->producer; in qlcnic_post_rx_buffers_nodb()
857 head = &rds_ring->free_list; in qlcnic_post_rx_buffers_nodb()
862 if (qlcnic_alloc_rx_skb(adapter, rds_ring, buffer)) in qlcnic_post_rx_buffers_nodb()
869 pdesc = &rds_ring->desc_head[producer]; in qlcnic_post_rx_buffers_nodb()
873 pdesc->buffer_length = cpu_to_le32(rds_ring in qlcnic_post_rx_buffers_nodb()
813 qlcnic_alloc_rx_skb(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, struct qlcnic_rx_buffer *buffer) qlcnic_alloc_rx_skb() argument
843 qlcnic_post_rx_buffers_nodb(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, u8 ring_id) qlcnic_post_rx_buffers_nodb() argument
1201 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_rcv() local
1268 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_lro() local
1358 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_rcv_ring() local
1436 qlcnic_post_rx_buffers(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, u8 ring_id) qlcnic_post_rx_buffers() argument
1495 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_rcv_diag() local
1724 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_rcv() local
1790 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_lro() local
1882 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_rcv_ring() local
2178 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_rcv_diag() local
[all...]
H A Dqlcnic_init.c85 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()
99 rds_ring->dma_size, in qlcnic_release_rx_buffers()
110 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_reset_rx_buffers_list() local
116 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_reset_rx_buffers_list()
118 INIT_LIST_HEAD(&rds_ring->free_list); in qlcnic_reset_rx_buffers_list()
120 rx_buf = rds_ring->rx_buf_arr; in qlcnic_reset_rx_buffers_list()
121 for (i = 0; i < rds_ring in qlcnic_reset_rx_buffers_list()
168 struct qlcnic_host_rds_ring *rds_ring; qlcnic_free_sw_resources() local
187 struct qlcnic_host_rds_ring *rds_ring; qlcnic_alloc_sw_resources() local
[all...]
H A Dqlcnic_ctx.c244 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 in qlcnic_alloc_hw_resources()
722 struct qlcnic_host_rds_ring *rds_ring; qlcnic_free_hw_resources() local
[all...]
H A Dqlcnic_main.c1863 struct qlcnic_host_rds_ring *rds_ring; in __qlcnic_up() local
1880 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in __qlcnic_up()
1881 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in __qlcnic_up()
2118 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_diag_alloc_res() local
2147 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_diag_alloc_res()
2148 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_diag_alloc_res()
2983 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_dump_rings() local
2992 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_dump_rings()
2993 if (!rds_ring) in qlcnic_dump_rings()
2996 "rds_ring in qlcnic_dump_rings()
[all...]
H A Dqlcnic.h64 #define RCV_DESC_RINGSIZE(rds_ring) \
65 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
66 #define RCV_BUFF_RINGSIZE(rds_ring) \
67 (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc)
1613 struct qlcnic_host_rds_ring *rds_ring, u8 ring_id);
H A Dqlcnic_83xx_hw.c1402 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c815 struct qlcnic_host_rds_ring *rds_ring, in qlcnic_alloc_rx_skb()
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()
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 in qlcnic_post_rx_buffers_nodb()
814 qlcnic_alloc_rx_skb(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, struct qlcnic_rx_buffer *buffer) qlcnic_alloc_rx_skb() argument
844 qlcnic_post_rx_buffers_nodb(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, u8 ring_id) qlcnic_post_rx_buffers_nodb() argument
1202 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_rcv() local
1269 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_lro() local
1359 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_rcv_ring() local
1438 qlcnic_post_rx_buffers(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, u8 ring_id) qlcnic_post_rx_buffers() argument
1497 struct qlcnic_host_rds_ring *rds_ring; qlcnic_process_rcv_diag() local
1724 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_rcv() local
1790 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_lro() local
1882 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_rcv_ring() local
2174 struct qlcnic_host_rds_ring *rds_ring; qlcnic_83xx_process_rcv_diag() local
[all...]
H A Dqlcnic_init.c85 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 in qlcnic_reset_rx_buffers_list()
166 struct qlcnic_host_rds_ring *rds_ring; qlcnic_free_sw_resources() local
185 struct qlcnic_host_rds_ring *rds_ring; qlcnic_alloc_sw_resources() local
[all...]
H A Dqlcnic_ctx.c244 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 in qlcnic_alloc_hw_resources()
722 struct qlcnic_host_rds_ring *rds_ring; qlcnic_free_hw_resources() local
[all...]
H A Dqlcnic_main.c1859 struct qlcnic_host_rds_ring *rds_ring; in __qlcnic_up() local
1876 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in __qlcnic_up()
1877 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in __qlcnic_up()
2114 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_diag_alloc_res() local
2143 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_diag_alloc_res()
2144 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_diag_alloc_res()
2956 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_dump_rings() local
2965 rds_ring = &recv_ctx->rds_rings[ring]; in qlcnic_dump_rings()
2966 if (!rds_ring) in qlcnic_dump_rings()
2969 "rds_ring in qlcnic_dump_rings()
[all...]
H A Dqlcnic.h64 #define RCV_DESC_RINGSIZE(rds_ring) \
65 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
66 #define RCV_BUFF_RINGSIZE(rds_ring) \
67 (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc)
1613 struct qlcnic_host_rds_ring *rds_ring, u8 ring_id);
H A Dqlcnic_83xx_hw.c1401 struct qlcnic_host_rds_ring *rds_ring; in qlcnic_83xx_diag_alloc_res() local
1435 rds_ring = &adapter->recv_ctx->rds_rings[ring]; in qlcnic_83xx_diag_alloc_res()
1436 qlcnic_post_rx_buffers(adapter, rds_ring, ring); in qlcnic_83xx_diag_alloc_res()

Completed in 55 milliseconds