rds_ring 59 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define RCV_DESC_RINGSIZE(rds_ring) \ rds_ring 60 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct rcv_desc) * (rds_ring)->num_desc) rds_ring 61 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define RCV_BUFF_RINGSIZE(rds_ring) \ rds_ring 62 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc) rds_ring 1767 drivers/net/ethernet/qlogic/netxen/netxen_nic.h struct nx_host_rds_ring *rds_ring); rds_ring 261 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c struct nx_host_rds_ring *rds_ring; rds_ring 325 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring = &recv_ctx->rds_rings[i]; rds_ring 327 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); rds_ring 328 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); rds_ring 330 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); rds_ring 363 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring = &recv_ctx->rds_rings[i]; rds_ring 366 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring->crb_rcv_producer = netxen_get_ioaddr(adapter, rds_ring 681 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c struct nx_host_rds_ring *rds_ring; rds_ring 698 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 701 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cpu_to_le64(rds_ring->phys_addr); rds_ring 703 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cpu_to_le32(rds_ring->num_desc); rds_ring 737 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c struct nx_host_rds_ring *rds_ring; rds_ring 778 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 780 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c RCV_DESC_RINGSIZE(rds_ring), rds_ring 781 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c &rds_ring->phys_addr); rds_ring 789 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring->desc_head = addr; rds_ring 792 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring->crb_rcv_producer = rds_ring 850 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c struct nx_host_rds_ring *rds_ring; rds_ring 894 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 896 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c if (rds_ring->desc_head != NULL) { rds_ring 898 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c RCV_DESC_RINGSIZE(rds_ring), rds_ring 899 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring->desc_head, rds_ring 900 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring->phys_addr); rds_ring 901 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c rds_ring->desc_head = NULL; rds_ring 33 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring); rds_ring 94 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring; rds_ring 100 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 101 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c for (i = 0; i < rds_ring->num_desc; ++i) { rds_ring 102 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rx_buf = &(rds_ring->rx_buf_arr[i]); rds_ring 107 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size, rds_ring 152 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring; rds_ring 162 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 163 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c vfree(rds_ring->rx_buf_arr); rds_ring 164 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->rx_buf_arr = NULL; rds_ring 181 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring; rds_ring 207 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring = kcalloc(adapter->max_rds_rings, rds_ring 209 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (rds_ring == NULL) rds_ring 212 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c recv_ctx->rds_rings = rds_ring; rds_ring 215 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 218 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->num_desc = adapter->num_rxd; rds_ring 220 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size = rds_ring 222 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->skb_size = rds_ring 226 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size = rds_ring 229 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size = rds_ring 231 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->skb_size = rds_ring 232 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size + NET_IP_ALIGN; rds_ring 237 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->num_desc = adapter->num_jumbo_rxd; rds_ring 239 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size = rds_ring 242 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size = rds_ring 246 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size += NX_LRO_BUFFER_EXTRA; rds_ring 248 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->skb_size = rds_ring 249 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size + NET_IP_ALIGN; rds_ring 253 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->num_desc = adapter->num_lro_rxd; rds_ring 254 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size = NX_RX_LRO_BUFFER_LENGTH; rds_ring 255 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; rds_ring 259 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->rx_buf_arr = vzalloc(RCV_BUFF_RINGSIZE(rds_ring)); rds_ring 260 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (rds_ring->rx_buf_arr == NULL) rds_ring 264 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c INIT_LIST_HEAD(&rds_ring->free_list); rds_ring 269 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rx_buf = rds_ring->rx_buf_arr; rds_ring 270 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c for (i = 0; i < rds_ring->num_desc; i++) { rds_ring 272 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c &rds_ring->free_list); rds_ring 277 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c spin_lock_init(&rds_ring->lock); rds_ring 1454 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring, rds_ring 1461 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c buffer->skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); rds_ring 1471 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->dma_size, PCI_DMA_FROMDEVICE); rds_ring 1487 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring, u16 index, u16 cksum) rds_ring 1492 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1494 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pci_unmap_single(adapter->pdev, buffer->dma, rds_ring->dma_size, rds_ring 1523 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring; rds_ring 1529 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1532 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1535 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1541 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c skb = netxen_process_rxbuf(adapter, rds_ring, index, cksum); rds_ring 1545 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (length > rds_ring->skb_size) rds_ring 1546 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c skb_put(skb, rds_ring->skb_size); rds_ring 1577 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring; rds_ring 1590 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1593 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1596 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1605 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c skb = netxen_process_rxbuf(adapter, rds_ring, index, STATUS_CKSUM_OK); rds_ring 1709 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring = rds_ring 1716 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_alloc_rx_skb(adapter, rds_ring, rxbuf); rds_ring 1718 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c spin_lock(&rds_ring->lock); rds_ring 1720 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c &rds_ring->free_list); rds_ring 1721 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c spin_unlock(&rds_ring->lock); rds_ring 1724 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_post_rx_buffers_nodb(adapter, rds_ring); rds_ring 1809 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring) rds_ring 1817 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c producer = rds_ring->producer; rds_ring 1819 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c head = &rds_ring->free_list; rds_ring 1825 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (netxen_alloc_rx_skb(adapter, rds_ring, buffer)) rds_ring 1833 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pdesc = &rds_ring->desc_head[producer]; rds_ring 1836 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); rds_ring 1838 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c producer = get_next_index(producer, rds_ring->num_desc); rds_ring 1842 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->producer = producer; rds_ring 1843 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c NXWRIO(adapter, rds_ring->crb_rcv_producer, rds_ring 1844 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c (producer-1) & (rds_ring->num_desc-1)); rds_ring 1856 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c (rds_ring->num_desc - 1))); rds_ring 1867 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct nx_host_rds_ring *rds_ring) rds_ring 1874 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (!spin_trylock(&rds_ring->lock)) rds_ring 1877 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c producer = rds_ring->producer; rds_ring 1879 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c head = &rds_ring->free_list; rds_ring 1885 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (netxen_alloc_rx_skb(adapter, rds_ring, buffer)) rds_ring 1893 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pdesc = &rds_ring->desc_head[producer]; rds_ring 1895 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); rds_ring 1898 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c producer = get_next_index(producer, rds_ring->num_desc); rds_ring 1902 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->producer = producer; rds_ring 1903 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c NXWRIO(adapter, rds_ring->crb_rcv_producer, rds_ring 1904 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c (producer - 1) & (rds_ring->num_desc - 1)); rds_ring 1906 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c spin_unlock(&rds_ring->lock); rds_ring 1203 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct nx_host_rds_ring *rds_ring; rds_ring 1254 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c rds_ring = &adapter->recv_ctx.rds_rings[ring]; rds_ring 1255 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_post_rx_buffers(adapter, ring, rds_ring); rds_ring 65 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h #define RCV_DESC_RINGSIZE(rds_ring) \ rds_ring 66 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct rcv_desc) * (rds_ring)->num_desc) rds_ring 67 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h #define RCV_BUFF_RINGSIZE(rds_ring) \ rds_ring 68 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc) rds_ring 1619 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h struct qlcnic_host_rds_ring *rds_ring, u8 ring_id); rds_ring 1398 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1432 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c rds_ring = &adapter->recv_ctx->rds_rings[ring]; rds_ring 1433 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c qlcnic_post_rx_buffers(adapter, rds_ring, ring); rds_ring 245 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring = &recv_ctx->rds_rings[i]; rds_ring 314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring->producer = 0; rds_ring 315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); rds_ring 316 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); rds_ring 318 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_rds[i].buff_size = cpu_to_le64(rds_ring->dma_size); rds_ring 356 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring = &recv_ctx->rds_rings[i]; rds_ring 358 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring->crb_rcv_producer = ahw->pci_base0 + reg; rds_ring 562 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 595 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 597 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c RCV_DESC_RINGSIZE(rds_ring), rds_ring 598 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c &rds_ring->phys_addr, GFP_KERNEL); rds_ring 603 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring->desc_head = addr; rds_ring 717 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 744 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c if (rds_ring->desc_head != NULL) { rds_ring 748 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c RCV_DESC_RINGSIZE(rds_ring), rds_ring 749 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring->desc_head, rds_ring 750 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring->phys_addr); rds_ring 751 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c rds_ring->desc_head = NULL; rds_ring 86 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 92 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 93 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < rds_ring->num_desc; ++i) { rds_ring 94 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rx_buf = &(rds_ring->rx_buf_arr[i]); rds_ring 100 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->dma_size, rds_ring 111 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 117 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 119 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c INIT_LIST_HEAD(&rds_ring->free_list); rds_ring 121 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rx_buf = rds_ring->rx_buf_arr; rds_ring 122 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < rds_ring->num_desc; i++) { rds_ring 124 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c &rds_ring->free_list); rds_ring 169 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 178 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 179 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c vfree(rds_ring->rx_buf_arr); rds_ring 180 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->rx_buf_arr = NULL; rds_ring 188 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 195 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring = kcalloc(adapter->max_rds_rings, rds_ring 197 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (rds_ring == NULL) rds_ring 200 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c recv_ctx->rds_rings = rds_ring; rds_ring 203 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 206 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->num_desc = adapter->num_rxd; rds_ring 207 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->dma_size = QLCNIC_P3P_RX_BUF_MAX_LEN; rds_ring 208 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->skb_size = rds_ring->dma_size + NET_IP_ALIGN; rds_ring 212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->num_desc = adapter->num_jumbo_rxd; rds_ring 213 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->dma_size = rds_ring 218 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->dma_size += QLCNIC_LRO_BUFFER_EXTRA; rds_ring 220 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->skb_size = rds_ring 221 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->dma_size + NET_IP_ALIGN; rds_ring 224 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->rx_buf_arr = vzalloc(RCV_BUFF_RINGSIZE(rds_ring)); rds_ring 225 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (rds_ring->rx_buf_arr == NULL) rds_ring 228 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c INIT_LIST_HEAD(&rds_ring->free_list); rds_ring 233 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rx_buf = rds_ring->rx_buf_arr; rds_ring 234 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < rds_ring->num_desc; i++) { rds_ring 236 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c &rds_ring->free_list); rds_ring 240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c spin_lock_init(&rds_ring->lock); rds_ring 815 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring, rds_ring 822 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = netdev_alloc_skb(adapter->netdev, rds_ring->skb_size); rds_ring 830 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring->dma_size, PCI_DMA_FROMDEVICE); rds_ring 845 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring, rds_ring 854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (!spin_trylock(&rds_ring->lock)) rds_ring 857 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = rds_ring->producer; rds_ring 858 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c head = &rds_ring->free_list; rds_ring 863 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (qlcnic_alloc_rx_skb(adapter, rds_ring, buffer)) rds_ring 870 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c pdesc = &rds_ring->desc_head[producer]; rds_ring 874 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); rds_ring 876 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, rds_ring->num_desc); rds_ring 879 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring->producer = producer; rds_ring 880 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c writel((producer - 1) & (rds_ring->num_desc - 1), rds_ring 881 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring->crb_rcv_producer); rds_ring 883 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c spin_unlock(&rds_ring->lock); rds_ring 1202 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1209 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1215 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1220 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); rds_ring 1230 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (length > rds_ring->skb_size) rds_ring 1231 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb_put(skb, rds_ring->skb_size); rds_ring 1269 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1281 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1284 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1287 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1296 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, STATUS_CKSUM_OK); rds_ring 1359 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1413 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &adapter->recv_ctx->rds_rings[ring]; rds_ring 1418 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_alloc_rx_skb(adapter, rds_ring, rxbuf); rds_ring 1420 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c spin_lock(&rds_ring->lock); rds_ring 1422 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c &rds_ring->free_list); rds_ring 1423 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c spin_unlock(&rds_ring->lock); rds_ring 1426 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_post_rx_buffers_nodb(adapter, rds_ring, ring); rds_ring 1438 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring, u8 ring_id) rds_ring 1446 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = rds_ring->producer; rds_ring 1447 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c head = &rds_ring->free_list; rds_ring 1454 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (qlcnic_alloc_rx_skb(adapter, rds_ring, buffer)) rds_ring 1462 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c pdesc = &rds_ring->desc_head[producer]; rds_ring 1467 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size); rds_ring 1468 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, rds_ring->num_desc); rds_ring 1472 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring->producer = producer; rds_ring 1473 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c writel((producer-1) & (rds_ring->num_desc-1), rds_ring 1474 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring->crb_rcv_producer); rds_ring 1496 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1502 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1506 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1512 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); rds_ring 1516 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (length > rds_ring->skb_size) rds_ring 1517 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb_put(skb, rds_ring->skb_size); rds_ring 1725 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1733 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1736 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1739 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1742 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, cksum); rds_ring 1746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (length > rds_ring->skb_size) rds_ring 1747 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb_put(skb, rds_ring->skb_size); rds_ring 1791 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1805 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 1808 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 1811 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c buffer = &rds_ring->rx_buf_arr[index]; rds_ring 1818 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, STATUS_CKSUM_OK); rds_ring 1883 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1929 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &adapter->recv_ctx->rds_rings[ring]; rds_ring 1934 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_alloc_rx_skb(adapter, rds_ring, rxbuf); rds_ring 1936 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c spin_lock(&rds_ring->lock); rds_ring 1938 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c &rds_ring->free_list); rds_ring 1939 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c spin_unlock(&rds_ring->lock); rds_ring 1941 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_post_rx_buffers_nodb(adapter, rds_ring, ring); rds_ring 2179 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 2185 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 2187 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) rds_ring 2192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb = qlcnic_process_rxbuf(adapter, rds_ring, index, STATUS_CKSUM_OK); rds_ring 2196 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (length > rds_ring->skb_size) rds_ring 2197 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb_put(skb, rds_ring->skb_size); rds_ring 1883 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 1900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c rds_ring = &adapter->recv_ctx->rds_rings[ring]; rds_ring 1901 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_post_rx_buffers(adapter, rds_ring, ring); rds_ring 2138 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 2167 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c rds_ring = &adapter->recv_ctx->rds_rings[ring]; rds_ring 2168 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_post_rx_buffers(adapter, rds_ring, ring); rds_ring 3010 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c struct qlcnic_host_rds_ring *rds_ring; rds_ring 3019 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c rds_ring = &recv_ctx->rds_rings[ring]; rds_ring 3020 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c if (!rds_ring) rds_ring 3024 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c ring, readl(rds_ring->crb_rcv_producer), rds_ring 3025 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c rds_ring->producer, rds_ring->num_desc);