Lines Matching refs:sh_memory
692 struct stratix10_svc_sh_memory *sh_memory) in svc_get_sh_memory() argument
698 init_completion(&sh_memory->sync_complete); in svc_get_sh_memory()
702 (void *)sh_memory, in svc_get_sh_memory()
712 if (!wait_for_completion_timeout(&sh_memory->sync_complete, 10 * HZ)) { in svc_get_sh_memory()
718 if (!sh_memory->addr || !sh_memory->size) { in svc_get_sh_memory()
725 (unsigned int)sh_memory->addr, in svc_get_sh_memory()
726 (unsigned int)sh_memory->size); in svc_get_sh_memory()
740 struct stratix10_svc_sh_memory *sh_memory) in svc_create_memory_pool() argument
754 begin = roundup(sh_memory->addr, PAGE_SIZE); in svc_create_memory_pool()
755 end = rounddown(sh_memory->addr + sh_memory->size, PAGE_SIZE); in svc_create_memory_pool()
1114 struct stratix10_svc_sh_memory *sh_memory; in stratix10_svc_drv_probe() local
1126 sh_memory = devm_kzalloc(dev, sizeof(*sh_memory), GFP_KERNEL); in stratix10_svc_drv_probe()
1127 if (!sh_memory) in stratix10_svc_drv_probe()
1130 sh_memory->invoke_fn = invoke_fn; in stratix10_svc_drv_probe()
1131 ret = svc_get_sh_memory(pdev, sh_memory); in stratix10_svc_drv_probe()
1135 genpool = svc_create_memory_pool(pdev, sh_memory); in stratix10_svc_drv_probe()