mem_device         75 drivers/acpi/acpi_memhotplug.c 	struct acpi_memory_device *mem_device = context;
mem_device         85 drivers/acpi/acpi_memhotplug.c 	list_for_each_entry(info, &mem_device->res_list, list) {
mem_device        104 drivers/acpi/acpi_memhotplug.c 	list_add_tail(&new->list, &mem_device->res_list);
mem_device        110 drivers/acpi/acpi_memhotplug.c acpi_memory_free_device_resources(struct acpi_memory_device *mem_device)
mem_device        114 drivers/acpi/acpi_memhotplug.c 	list_for_each_entry_safe(info, n, &mem_device->res_list, list)
mem_device        116 drivers/acpi/acpi_memhotplug.c 	INIT_LIST_HEAD(&mem_device->res_list);
mem_device        120 drivers/acpi/acpi_memhotplug.c acpi_memory_get_device_resources(struct acpi_memory_device *mem_device)
mem_device        124 drivers/acpi/acpi_memhotplug.c 	if (!list_empty(&mem_device->res_list))
mem_device        127 drivers/acpi/acpi_memhotplug.c 	status = acpi_walk_resources(mem_device->device->handle, METHOD_NAME__CRS,
mem_device        128 drivers/acpi/acpi_memhotplug.c 				     acpi_memory_get_resource, mem_device);
mem_device        130 drivers/acpi/acpi_memhotplug.c 		acpi_memory_free_device_resources(mem_device);
mem_device        137 drivers/acpi/acpi_memhotplug.c static int acpi_memory_check_device(struct acpi_memory_device *mem_device)
mem_device        142 drivers/acpi/acpi_memhotplug.c 	if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle,
mem_device        182 drivers/acpi/acpi_memhotplug.c static int acpi_memory_enable_device(struct acpi_memory_device *mem_device)
mem_device        184 drivers/acpi/acpi_memhotplug.c 	acpi_handle handle = mem_device->device->handle;
mem_device        196 drivers/acpi/acpi_memhotplug.c 	list_for_each_entry(info, &mem_device->res_list, list) {
mem_device        220 drivers/acpi/acpi_memhotplug.c 		result = acpi_bind_memory_blocks(info, mem_device->device);
mem_device        235 drivers/acpi/acpi_memhotplug.c 		dev_err(&mem_device->device->dev, "add_memory failed\n");
mem_device        236 drivers/acpi/acpi_memhotplug.c 		mem_device->state = MEMORY_INVALID_STATE;
mem_device        250 drivers/acpi/acpi_memhotplug.c static void acpi_memory_remove_memory(struct acpi_memory_device *mem_device)
mem_device        252 drivers/acpi/acpi_memhotplug.c 	acpi_handle handle = mem_device->device->handle;
mem_device        256 drivers/acpi/acpi_memhotplug.c 	list_for_each_entry_safe(info, n, &mem_device->res_list, list) {
mem_device        270 drivers/acpi/acpi_memhotplug.c static void acpi_memory_device_free(struct acpi_memory_device *mem_device)
mem_device        272 drivers/acpi/acpi_memhotplug.c 	if (!mem_device)
mem_device        275 drivers/acpi/acpi_memhotplug.c 	acpi_memory_free_device_resources(mem_device);
mem_device        276 drivers/acpi/acpi_memhotplug.c 	mem_device->device->driver_data = NULL;
mem_device        277 drivers/acpi/acpi_memhotplug.c 	kfree(mem_device);
mem_device        283 drivers/acpi/acpi_memhotplug.c 	struct acpi_memory_device *mem_device;
mem_device        289 drivers/acpi/acpi_memhotplug.c 	mem_device = kzalloc(sizeof(struct acpi_memory_device), GFP_KERNEL);
mem_device        290 drivers/acpi/acpi_memhotplug.c 	if (!mem_device)
mem_device        293 drivers/acpi/acpi_memhotplug.c 	INIT_LIST_HEAD(&mem_device->res_list);
mem_device        294 drivers/acpi/acpi_memhotplug.c 	mem_device->device = device;
mem_device        297 drivers/acpi/acpi_memhotplug.c 	device->driver_data = mem_device;
mem_device        300 drivers/acpi/acpi_memhotplug.c 	result = acpi_memory_get_device_resources(mem_device);
mem_device        303 drivers/acpi/acpi_memhotplug.c 		kfree(mem_device);
mem_device        308 drivers/acpi/acpi_memhotplug.c 	mem_device->state = MEMORY_POWER_ON_STATE;
mem_device        310 drivers/acpi/acpi_memhotplug.c 	result = acpi_memory_check_device(mem_device);
mem_device        312 drivers/acpi/acpi_memhotplug.c 		acpi_memory_device_free(mem_device);
mem_device        316 drivers/acpi/acpi_memhotplug.c 	result = acpi_memory_enable_device(mem_device);
mem_device        319 drivers/acpi/acpi_memhotplug.c 		acpi_memory_device_free(mem_device);
mem_device        329 drivers/acpi/acpi_memhotplug.c 	struct acpi_memory_device *mem_device;
mem_device        334 drivers/acpi/acpi_memhotplug.c 	mem_device = acpi_driver_data(device);
mem_device        335 drivers/acpi/acpi_memhotplug.c 	acpi_memory_remove_memory(mem_device);
mem_device        336 drivers/acpi/acpi_memhotplug.c 	acpi_memory_device_free(mem_device);
mem_device         59 drivers/xen/xen-acpi-memhotplug.c static int xen_acpi_memory_enable_device(struct acpi_memory_device *mem_device)
mem_device         65 drivers/xen/xen-acpi-memhotplug.c 	if (!mem_device)
mem_device         68 drivers/xen/xen-acpi-memhotplug.c 	pxm = xen_acpi_get_pxm(mem_device->device->handle);
mem_device         72 drivers/xen/xen-acpi-memhotplug.c 	list_for_each_entry(info, &mem_device->res_list, list) {
mem_device         97 drivers/xen/xen-acpi-memhotplug.c 	struct acpi_memory_device *mem_device = context;
mem_device        107 drivers/xen/xen-acpi-memhotplug.c 	list_for_each_entry(info, &mem_device->res_list, list) {
mem_device        125 drivers/xen/xen-acpi-memhotplug.c 	list_add_tail(&new->list, &mem_device->res_list);
mem_device        131 drivers/xen/xen-acpi-memhotplug.c acpi_memory_get_device_resources(struct acpi_memory_device *mem_device)
mem_device        136 drivers/xen/xen-acpi-memhotplug.c 	if (!list_empty(&mem_device->res_list))
mem_device        139 drivers/xen/xen-acpi-memhotplug.c 	status = acpi_walk_resources(mem_device->device->handle,
mem_device        140 drivers/xen/xen-acpi-memhotplug.c 		METHOD_NAME__CRS, acpi_memory_get_resource, mem_device);
mem_device        143 drivers/xen/xen-acpi-memhotplug.c 		list_for_each_entry_safe(info, n, &mem_device->res_list, list)
mem_device        145 drivers/xen/xen-acpi-memhotplug.c 		INIT_LIST_HEAD(&mem_device->res_list);
mem_device        153 drivers/xen/xen-acpi-memhotplug.c 				  struct acpi_memory_device **mem_device)
mem_device        183 drivers/xen/xen-acpi-memhotplug.c 	*mem_device = acpi_driver_data(device);
mem_device        184 drivers/xen/xen-acpi-memhotplug.c 	if (!(*mem_device)) {
mem_device        195 drivers/xen/xen-acpi-memhotplug.c static int acpi_memory_check_device(struct acpi_memory_device *mem_device)
mem_device        200 drivers/xen/xen-acpi-memhotplug.c 	if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle,
mem_device        215 drivers/xen/xen-acpi-memhotplug.c static int acpi_memory_disable_device(struct acpi_memory_device *mem_device)
mem_device        224 drivers/xen/xen-acpi-memhotplug.c 	struct acpi_memory_device *mem_device;
mem_device        238 drivers/xen/xen-acpi-memhotplug.c 		if (acpi_memory_get_device(handle, &mem_device)) {
mem_device        256 drivers/xen/xen-acpi-memhotplug.c 		mem_device = acpi_driver_data(device);
mem_device        257 drivers/xen/xen-acpi-memhotplug.c 		if (!mem_device) {
mem_device        267 drivers/xen/xen-acpi-memhotplug.c 		acpi_memory_disable_device(mem_device);
mem_device        285 drivers/xen/xen-acpi-memhotplug.c 	struct acpi_memory_device *mem_device = NULL;
mem_device        291 drivers/xen/xen-acpi-memhotplug.c 	mem_device = kzalloc(sizeof(struct acpi_memory_device), GFP_KERNEL);
mem_device        292 drivers/xen/xen-acpi-memhotplug.c 	if (!mem_device)
mem_device        295 drivers/xen/xen-acpi-memhotplug.c 	INIT_LIST_HEAD(&mem_device->res_list);
mem_device        296 drivers/xen/xen-acpi-memhotplug.c 	mem_device->device = device;
mem_device        299 drivers/xen/xen-acpi-memhotplug.c 	device->driver_data = mem_device;
mem_device        302 drivers/xen/xen-acpi-memhotplug.c 	result = acpi_memory_get_device_resources(mem_device);
mem_device        304 drivers/xen/xen-acpi-memhotplug.c 		kfree(mem_device);
mem_device        318 drivers/xen/xen-acpi-memhotplug.c 	if (!acpi_memory_check_device(mem_device))
mem_device        319 drivers/xen/xen-acpi-memhotplug.c 		result = xen_acpi_memory_enable_device(mem_device);
mem_device        326 drivers/xen/xen-acpi-memhotplug.c 	struct acpi_memory_device *mem_device = NULL;
mem_device        331 drivers/xen/xen-acpi-memhotplug.c 	mem_device = acpi_driver_data(device);
mem_device        332 drivers/xen/xen-acpi-memhotplug.c 	kfree(mem_device);