Lines Matching refs:pmem
184 struct stratix10_svc_data_mem *pmem; in svc_pa_to_va() local
187 list_for_each_entry(pmem, &svc_data_mem, node) in svc_pa_to_va()
188 if (pmem->paddr == addr) in svc_pa_to_va()
189 return pmem->vaddr; in svc_pa_to_va()
1068 struct stratix10_svc_data_mem *pmem; in stratix10_svc_allocate_memory() local
1074 pmem = devm_kzalloc(chan->ctrl->dev, sizeof(*pmem), GFP_KERNEL); in stratix10_svc_allocate_memory()
1075 if (!pmem) in stratix10_svc_allocate_memory()
1085 pmem->vaddr = (void *)va; in stratix10_svc_allocate_memory()
1086 pmem->paddr = pa; in stratix10_svc_allocate_memory()
1087 pmem->size = s; in stratix10_svc_allocate_memory()
1088 list_add_tail(&pmem->node, &svc_data_mem); in stratix10_svc_allocate_memory()
1090 pmem->vaddr, (unsigned int)pmem->paddr); in stratix10_svc_allocate_memory()
1105 struct stratix10_svc_data_mem *pmem; in stratix10_svc_free_memory() local
1107 list_for_each_entry(pmem, &svc_data_mem, node) in stratix10_svc_free_memory()
1108 if (pmem->vaddr == kaddr) { in stratix10_svc_free_memory()
1110 (unsigned long)kaddr, pmem->size); in stratix10_svc_free_memory()
1111 pmem->vaddr = NULL; in stratix10_svc_free_memory()
1112 list_del(&pmem->node); in stratix10_svc_free_memory()