Searched refs:child_res (Results 1 – 2 of 2) sorted by relevance
459 struct resource *res, *child_res = NULL; in dwc3_qcom_acpi_register_core() local473 child_res = kcalloc(2, sizeof(*child_res), GFP_KERNEL); in dwc3_qcom_acpi_register_core()474 if (!child_res) in dwc3_qcom_acpi_register_core()484 child_res[0].flags = res->flags; in dwc3_qcom_acpi_register_core()485 child_res[0].start = res->start; in dwc3_qcom_acpi_register_core()486 child_res[0].end = child_res[0].start + in dwc3_qcom_acpi_register_core()490 child_res[1].flags = IORESOURCE_IRQ; in dwc3_qcom_acpi_register_core()491 child_res[1].start = child_res[1].end = irq; in dwc3_qcom_acpi_register_core()493 ret = platform_device_add_resources(qcom->dwc3, child_res, 2); in dwc3_qcom_acpi_register_core()511 kfree(child_res); in dwc3_qcom_acpi_register_core()
181 struct resource child_res; in sram_reserve_regions() local183 ret = of_address_to_resource(child, 0, &child_res); in sram_reserve_regions()191 if (child_res.start < res->start || child_res.end > res->end) { in sram_reserve_regions()199 block->start = child_res.start - res->start; in sram_reserve_regions()200 block->size = resource_size(&child_res); in sram_reserve_regions()