Lines Matching refs:child_res
669 struct resource *res, *child_res = NULL; in dwc3_qcom_acpi_register_core() local
685 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()
734 kfree(child_res); in dwc3_qcom_acpi_register_core()