Searched refs:child_res (Results 1 – 2 of 2) sorted by relevance
669 struct resource *res, *child_res = NULL; in dwc3_qcom_acpi_register_core() local685 child_res = kcalloc(2, sizeof(*child_res), GFP_KERNEL); in dwc3_qcom_acpi_register_core()686 if (!child_res) { in dwc3_qcom_acpi_register_core()698 child_res[0].flags = res->flags; in dwc3_qcom_acpi_register_core()699 child_res[0].start = res->start; in dwc3_qcom_acpi_register_core()700 child_res[0].end = child_res[0].start + in dwc3_qcom_acpi_register_core()708 child_res[1].flags = IORESOURCE_IRQ; in dwc3_qcom_acpi_register_core()709 child_res[1].start = child_res[1].end = irq; in dwc3_qcom_acpi_register_core()711 ret = platform_device_add_resources(qcom->dwc3, child_res, 2); in dwc3_qcom_acpi_register_core()729 kfree(child_res); in dwc3_qcom_acpi_register_core()[all …]
198 struct resource child_res; in sram_reserve_regions() local200 ret = of_address_to_resource(child, 0, &child_res); in sram_reserve_regions()208 if (child_res.start < res->start || child_res.end > res->end) { in sram_reserve_regions()216 block->start = child_res.start - res->start; in sram_reserve_regions()217 block->size = resource_size(&child_res); in sram_reserve_regions()218 block->res = child_res; in sram_reserve_regions()