Lines Matching refs:desc_pool
1353 struct ksz_shared_mem desc_pool; member
4016 adapter->desc_pool.alloc_size = in ksz_alloc_desc()
4021 adapter->desc_pool.alloc_virt = in ksz_alloc_desc()
4023 adapter->desc_pool.alloc_size, in ksz_alloc_desc()
4024 &adapter->desc_pool.dma_addr, GFP_KERNEL); in ksz_alloc_desc()
4025 if (adapter->desc_pool.alloc_virt == NULL) { in ksz_alloc_desc()
4026 adapter->desc_pool.alloc_size = 0; in ksz_alloc_desc()
4031 offset = (((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT) ? in ksz_alloc_desc()
4033 ((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT)) : 0); in ksz_alloc_desc()
4034 adapter->desc_pool.virt = adapter->desc_pool.alloc_virt + offset; in ksz_alloc_desc()
4035 adapter->desc_pool.phys = adapter->desc_pool.dma_addr + offset; in ksz_alloc_desc()
4039 adapter->desc_pool.virt; in ksz_alloc_desc()
4040 hw->rx_desc_info.ring_phys = adapter->desc_pool.phys; in ksz_alloc_desc()
4043 (adapter->desc_pool.virt + offset); in ksz_alloc_desc()
4044 hw->tx_desc_info.ring_phys = adapter->desc_pool.phys + offset; in ksz_alloc_desc()
4176 if (adapter->desc_pool.alloc_virt) in ksz_free_desc()
4178 adapter->desc_pool.alloc_size, in ksz_free_desc()
4179 adapter->desc_pool.alloc_virt, in ksz_free_desc()
4180 adapter->desc_pool.dma_addr); in ksz_free_desc()
4183 adapter->desc_pool.alloc_size = 0; in ksz_free_desc()
4184 adapter->desc_pool.alloc_virt = NULL; in ksz_free_desc()