Home
last modified time | relevance | path

Searched refs:child_res (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/usb/dwc3/
Ddwc3-qcom.c654 struct resource *res, *child_res = NULL; in dwc3_qcom_acpi_register_core() local
670 child_res = kcalloc(2, sizeof(*child_res), GFP_KERNEL); in dwc3_qcom_acpi_register_core()
671 if (!child_res) { in dwc3_qcom_acpi_register_core()
683 child_res[0].flags = res->flags; in dwc3_qcom_acpi_register_core()
684 child_res[0].start = res->start; in dwc3_qcom_acpi_register_core()
685 child_res[0].end = child_res[0].start + in dwc3_qcom_acpi_register_core()
693 child_res[1].flags = IORESOURCE_IRQ; in dwc3_qcom_acpi_register_core()
694 child_res[1].start = child_res[1].end = irq; in dwc3_qcom_acpi_register_core()
696 ret = platform_device_add_resources(qcom->dwc3, child_res, 2); in dwc3_qcom_acpi_register_core()
714 kfree(child_res); in dwc3_qcom_acpi_register_core()
[all …]
/Linux-v6.1/drivers/misc/
Dsram.c198 struct resource child_res; in sram_reserve_regions() local
200 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()