Lines Matching refs:desc_pool
1353 struct ksz_shared_mem desc_pool; member
4314 adapter->desc_pool.alloc_size = in ksz_alloc_desc()
4319 adapter->desc_pool.alloc_virt = in ksz_alloc_desc()
4321 adapter->desc_pool.alloc_size, in ksz_alloc_desc()
4322 &adapter->desc_pool.dma_addr, GFP_KERNEL); in ksz_alloc_desc()
4323 if (adapter->desc_pool.alloc_virt == NULL) { in ksz_alloc_desc()
4324 adapter->desc_pool.alloc_size = 0; in ksz_alloc_desc()
4329 offset = (((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT) ? in ksz_alloc_desc()
4331 ((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT)) : 0); in ksz_alloc_desc()
4332 adapter->desc_pool.virt = adapter->desc_pool.alloc_virt + offset; in ksz_alloc_desc()
4333 adapter->desc_pool.phys = adapter->desc_pool.dma_addr + offset; in ksz_alloc_desc()
4337 adapter->desc_pool.virt; in ksz_alloc_desc()
4338 hw->rx_desc_info.ring_phys = adapter->desc_pool.phys; in ksz_alloc_desc()
4341 (adapter->desc_pool.virt + offset); in ksz_alloc_desc()
4342 hw->tx_desc_info.ring_phys = adapter->desc_pool.phys + offset; in ksz_alloc_desc()
4474 if (adapter->desc_pool.alloc_virt) in ksz_free_desc()
4476 adapter->desc_pool.alloc_size, in ksz_free_desc()
4477 adapter->desc_pool.alloc_virt, in ksz_free_desc()
4478 adapter->desc_pool.dma_addr); in ksz_free_desc()
4481 adapter->desc_pool.alloc_size = 0; in ksz_free_desc()
4482 adapter->desc_pool.alloc_virt = NULL; in ksz_free_desc()