Lines Matching refs:res_pem
297 struct resource *res_pem) in thunder_pem_init() argument
306 pem_pci->pem_reg_base = devm_ioremap(dev, res_pem->start, 0x10000); in thunder_pem_init()
316 bar4_start = res_pem->start + 0xf00000; in thunder_pem_init()
318 pem_pci->ea_entry[1] = (u32)(res_pem->end - bar4_start) & ~3u; in thunder_pem_init()
355 struct resource *res_pem) in thunder_pem_legacy_fw() argument
365 res_pem->start = PEM_RES_BASE | FIELD_PREP(PEM_NODE_MASK, node) | in thunder_pem_legacy_fw()
367 res_pem->flags = IORESOURCE_MEM; in thunder_pem_legacy_fw()
375 struct resource *res_pem; in thunder_pem_acpi_init() local
378 res_pem = devm_kzalloc(&adev->dev, sizeof(*res_pem), GFP_KERNEL); in thunder_pem_acpi_init()
379 if (!res_pem) in thunder_pem_acpi_init()
382 ret = acpi_get_rc_resources(dev, "CAVA02B", root->segment, res_pem); in thunder_pem_acpi_init()
389 thunder_pem_legacy_fw(root, res_pem); in thunder_pem_acpi_init()
394 res_pem->end = res_pem->start + SZ_64K - 1; in thunder_pem_acpi_init()
395 thunder_pem_reserve_range(dev, root->segment, res_pem); in thunder_pem_acpi_init()
396 res_pem->end = res_pem->start + SZ_16M - 1; in thunder_pem_acpi_init()
402 return thunder_pem_init(dev, cfg, res_pem); in thunder_pem_acpi_init()
423 struct resource *res_pem; in thunder_pem_platform_init() local
433 res_pem = platform_get_resource(pdev, IORESOURCE_MEM, 1); in thunder_pem_platform_init()
434 if (!res_pem) { in thunder_pem_platform_init()
439 return thunder_pem_init(dev, cfg, res_pem); in thunder_pem_platform_init()