Lines Matching refs:hostdev
365 static void hisi_lpc_acpi_fixup_child_resource(struct device *hostdev, in hisi_lpc_acpi_fixup_child_resource() argument
376 dev_warn(hostdev, "unrecognised resource %pR to fixup, ignoring\n", in hisi_lpc_acpi_fixup_child_resource()
394 struct device *hostdev, in hisi_lpc_acpi_set_io_res() argument
425 resources = devm_kcalloc(hostdev, count, sizeof(*resources), in hisi_lpc_acpi_set_io_res()
428 dev_warn(hostdev, "could not allocate memory for %d resources\n", in hisi_lpc_acpi_set_io_res()
436 hisi_lpc_acpi_fixup_child_resource(hostdev, &resources[count]); in hisi_lpc_acpi_set_io_res()
478 static void hisi_lpc_acpi_remove(struct device *hostdev) in hisi_lpc_acpi_remove() argument
480 device_for_each_child(hostdev, NULL, hisi_lpc_acpi_remove_subdev); in hisi_lpc_acpi_remove()
481 acpi_dev_for_each_child(ACPI_COMPANION(hostdev), in hisi_lpc_acpi_remove()
488 struct device *hostdev = data; in hisi_lpc_acpi_add_child() local
496 ret = hisi_lpc_acpi_set_io_res(child, hostdev, &res, &num_res); in hisi_lpc_acpi_add_child()
498 dev_warn(hostdev, "set resource fail (%d)\n", ret); in hisi_lpc_acpi_add_child()
508 .parent = hostdev, in hisi_lpc_acpi_add_child()
522 .parent = hostdev, in hisi_lpc_acpi_add_child()
552 dev_warn(hostdev, in hisi_lpc_acpi_add_child()
576 static int hisi_lpc_acpi_probe(struct device *hostdev) in hisi_lpc_acpi_probe() argument
581 ret = acpi_dev_for_each_child(ACPI_COMPANION(hostdev), in hisi_lpc_acpi_probe()
582 hisi_lpc_acpi_add_child, hostdev); in hisi_lpc_acpi_probe()
584 hisi_lpc_acpi_remove(hostdev); in hisi_lpc_acpi_probe()
594 static void hisi_lpc_acpi_remove(struct device *hostdev) in hisi_lpc_acpi_remove() argument