Lines Matching refs:res_pem
306 struct resource *res_pem) in thunder_pem_init() argument
315 pem_pci->pem_reg_base = devm_ioremap(dev, res_pem->start, 0x10000); in thunder_pem_init()
325 bar4_start = res_pem->start + 0xf00000; in thunder_pem_init()
327 pem_pci->ea_entry[1] = lower_32_bits(res_pem->end - bar4_start) & ~3u; in thunder_pem_init()
364 struct resource *res_pem) in thunder_pem_legacy_fw() argument
374 res_pem->start = PEM_RES_BASE | FIELD_PREP(PEM_NODE_MASK, node) | in thunder_pem_legacy_fw()
376 res_pem->flags = IORESOURCE_MEM; in thunder_pem_legacy_fw()
384 struct resource *res_pem; in thunder_pem_acpi_init() local
387 res_pem = devm_kzalloc(&adev->dev, sizeof(*res_pem), GFP_KERNEL); in thunder_pem_acpi_init()
388 if (!res_pem) in thunder_pem_acpi_init()
391 ret = acpi_get_rc_resources(dev, "CAVA02B", root->segment, res_pem); in thunder_pem_acpi_init()
398 thunder_pem_legacy_fw(root, res_pem); in thunder_pem_acpi_init()
403 res_pem->end = res_pem->start + SZ_64K - 1; in thunder_pem_acpi_init()
404 thunder_pem_reserve_range(dev, root->segment, res_pem); in thunder_pem_acpi_init()
405 res_pem->end = res_pem->start + SZ_16M - 1; in thunder_pem_acpi_init()
411 return thunder_pem_init(dev, cfg, res_pem); in thunder_pem_acpi_init()
432 struct resource *res_pem; in thunder_pem_platform_init() local
442 res_pem = platform_get_resource(pdev, IORESOURCE_MEM, 1); in thunder_pem_platform_init()
443 if (!res_pem) { in thunder_pem_platform_init()
448 return thunder_pem_init(dev, cfg, res_pem); in thunder_pem_platform_init()