Home
last modified time | relevance | path

Searched refs:memory_pool (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/
Damdgpu_smu.c828 struct smu_table *memory_pool = &smu_table->memory_pool; in smu_alloc_memory_pool() local
835 memory_pool->size = pool_size; in smu_alloc_memory_pool()
836 memory_pool->align = PAGE_SIZE; in smu_alloc_memory_pool()
837 memory_pool->domain = AMDGPU_GEM_DOMAIN_GTT; in smu_alloc_memory_pool()
845 memory_pool->size, in smu_alloc_memory_pool()
846 memory_pool->align, in smu_alloc_memory_pool()
847 memory_pool->domain, in smu_alloc_memory_pool()
848 &memory_pool->bo, in smu_alloc_memory_pool()
849 &memory_pool->mc_address, in smu_alloc_memory_pool()
850 &memory_pool->cpu_addr); in smu_alloc_memory_pool()
[all …]
/Linux-v5.15/drivers/usb/isp1760/
Disp1760-hcd.h63 struct isp1760_memory_chunk memory_pool[ISP176x_BLOCK_MAX]; member
Disp1760-hcd.c592 priv->memory_pool[curr + j].start = payload_addr; in init_memory()
593 priv->memory_pool[curr + j].size = mem->blocks_size[i]; in init_memory()
594 priv->memory_pool[curr + j].free = 1; in init_memory()
595 payload_addr += priv->memory_pool[curr + j].size; in init_memory()
599 WARN_ON(payload_addr - priv->memory_pool[0].start > in init_memory()
615 if (priv->memory_pool[i].size >= qtd->length && in alloc_mem()
616 priv->memory_pool[i].free) { in alloc_mem()
617 priv->memory_pool[i].free = 0; in alloc_mem()
618 qtd->payload_addr = priv->memory_pool[i].start; in alloc_mem()
634 if (priv->memory_pool[i].start == qtd->payload_addr) { in free_mem()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0.c618 struct smu_table *memory_pool = &smu_table->memory_pool; in smu_v13_0_notify_memory_pool_location() local
623 if (memory_pool->size == 0 || memory_pool->cpu_addr == NULL) in smu_v13_0_notify_memory_pool_location()
626 address = memory_pool->mc_address; in smu_v13_0_notify_memory_pool_location()
639 (uint32_t)memory_pool->size, NULL); in smu_v13_0_notify_memory_pool_location()
/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c649 struct smu_table *memory_pool = &smu_table->memory_pool; in smu_v11_0_notify_memory_pool_location() local
654 if (memory_pool->size == 0 || memory_pool->cpu_addr == NULL) in smu_v11_0_notify_memory_pool_location()
657 address = (uintptr_t)memory_pool->cpu_addr; in smu_v11_0_notify_memory_pool_location()
674 address = memory_pool->mc_address; in smu_v11_0_notify_memory_pool_location()
687 (uint32_t)memory_pool->size, NULL); in smu_v11_0_notify_memory_pool_location()
/Linux-v5.15/drivers/gpu/drm/amd/pm/inc/
Damdgpu_smu.h353 struct smu_table memory_pool; member