devres           1348 drivers/base/core.c 	union device_attr_group_devres *devres = res;
devres           1349 drivers/base/core.c 	const struct attribute_group *group = devres->group;
devres           1357 drivers/base/core.c 	union device_attr_group_devres *devres = res;
devres           1358 drivers/base/core.c 	const struct attribute_group **groups = devres->groups;
devres           1376 drivers/base/core.c 	union device_attr_group_devres *devres;
devres           1379 drivers/base/core.c 	devres = devres_alloc(devm_attr_group_remove,
devres           1380 drivers/base/core.c 			      sizeof(*devres), GFP_KERNEL);
devres           1381 drivers/base/core.c 	if (!devres)
devres           1386 drivers/base/core.c 		devres_free(devres);
devres           1390 drivers/base/core.c 	devres->group = grp;
devres           1391 drivers/base/core.c 	devres_add(dev, devres);
devres           1429 drivers/base/core.c 	union device_attr_group_devres *devres;
devres           1432 drivers/base/core.c 	devres = devres_alloc(devm_attr_groups_remove,
devres           1433 drivers/base/core.c 			      sizeof(*devres), GFP_KERNEL);
devres           1434 drivers/base/core.c 	if (!devres)
devres           1439 drivers/base/core.c 		devres_free(devres);
devres           1443 drivers/base/core.c 	devres->groups = groups;
devres           1444 drivers/base/core.c 	devres_add(dev, devres);
devres             92 drivers/base/devres.c static __always_inline struct devres * alloc_dr(dr_release_t release,
devres             96 drivers/base/devres.c 	struct devres *dr;
devres             99 drivers/base/devres.c 	if (unlikely(check_add_overflow(sizeof(struct devres), size,
devres            107 drivers/base/devres.c 	memset(dr, 0, offsetof(struct devres, data));
devres            125 drivers/base/devres.c 	struct devres *dr;
devres            151 drivers/base/devres.c 	struct devres *dr;
devres            191 drivers/base/devres.c 		struct devres *dr = container_of(node, struct devres, node);
devres            212 drivers/base/devres.c 		struct devres *dr = container_of(res, struct devres, data);
devres            231 drivers/base/devres.c 	struct devres *dr = container_of(res, struct devres, data);
devres            240 drivers/base/devres.c static struct devres *find_dr(struct device *dev, dr_release_t release,
devres            246 drivers/base/devres.c 		struct devres *dr = container_of(node, struct devres, node);
devres            275 drivers/base/devres.c 	struct devres *dr;
devres            305 drivers/base/devres.c 	struct devres *new_dr = container_of(new_res, struct devres, data);
devres            306 drivers/base/devres.c 	struct devres *dr;
devres            341 drivers/base/devres.c 	struct devres *dr;
devres            496 drivers/base/devres.c 	struct devres *dr, *tmp;
devres            700 drivers/base/devres.c 	struct action_devres *devres = res;
devres            703 drivers/base/devres.c 	return devres->action == target->action &&
devres            704 drivers/base/devres.c 	       devres->data == target->data;
devres            709 drivers/base/devres.c 	struct action_devres *devres = res;
devres            711 drivers/base/devres.c 	devres->action(devres->data);
devres            725 drivers/base/devres.c 	struct action_devres *devres;
devres            727 drivers/base/devres.c 	devres = devres_alloc(devm_action_release,
devres            729 drivers/base/devres.c 	if (!devres)
devres            732 drivers/base/devres.c 	devres->data = data;
devres            733 drivers/base/devres.c 	devres->action = action;
devres            735 drivers/base/devres.c 	devres_add(dev, devres);
devres            751 drivers/base/devres.c 	struct action_devres devres = {
devres            757 drivers/base/devres.c 			       &devres));
devres            773 drivers/base/devres.c 	struct action_devres devres = {
devres            779 drivers/base/devres.c 			       &devres));
devres            812 drivers/base/devres.c 	struct devres *dr;
devres            985 drivers/base/devres.c 	struct pages_devres *devres = res;
devres            988 drivers/base/devres.c 	return devres->addr == target->addr;
devres            993 drivers/base/devres.c 	struct pages_devres *devres = res;
devres            995 drivers/base/devres.c 	free_pages(devres->addr, devres->order);
devres           1014 drivers/base/devres.c 	struct pages_devres *devres;
devres           1022 drivers/base/devres.c 	devres = devres_alloc(devm_pages_release,
devres           1024 drivers/base/devres.c 	if (unlikely(!devres)) {
devres           1029 drivers/base/devres.c 	devres->addr = addr;
devres           1030 drivers/base/devres.c 	devres->order = order;
devres           1032 drivers/base/devres.c 	devres_add(dev, devres);
devres           1047 drivers/base/devres.c 	struct pages_devres devres = { .addr = addr };
devres           1050 drivers/base/devres.c 			       &devres));
devres           1064 drivers/base/devres.c 	struct devres *devr = container_of(data, struct devres, data);
devres             50 drivers/clk/clk-devres.c 	struct clk_bulk_devres *devres = res;
devres             52 drivers/clk/clk-devres.c 	clk_bulk_put(devres->num_clks, devres->clks);
devres             58 drivers/clk/clk-devres.c 	struct clk_bulk_devres *devres;
devres             61 drivers/clk/clk-devres.c 	devres = devres_alloc(devm_clk_bulk_release,
devres             62 drivers/clk/clk-devres.c 			      sizeof(*devres), GFP_KERNEL);
devres             63 drivers/clk/clk-devres.c 	if (!devres)
devres             71 drivers/clk/clk-devres.c 		devres->clks = clks;
devres             72 drivers/clk/clk-devres.c 		devres->num_clks = num_clks;
devres             73 drivers/clk/clk-devres.c 		devres_add(dev, devres);
devres             75 drivers/clk/clk-devres.c 		devres_free(devres);
devres             98 drivers/clk/clk-devres.c 	struct clk_bulk_devres *devres;
devres            101 drivers/clk/clk-devres.c 	devres = devres_alloc(devm_clk_bulk_release,
devres            102 drivers/clk/clk-devres.c 			      sizeof(*devres), GFP_KERNEL);
devres            103 drivers/clk/clk-devres.c 	if (!devres)
devres            106 drivers/clk/clk-devres.c 	ret = clk_bulk_get_all(dev, &devres->clks);
devres            108 drivers/clk/clk-devres.c 		*clks = devres->clks;
devres            109 drivers/clk/clk-devres.c 		devres->num_clks = ret;
devres            110 drivers/clk/clk-devres.c 		devres_add(dev, devres);
devres            112 drivers/clk/clk-devres.c 		devres_free(devres);
devres            110 drivers/gpio/gpiolib-devres.c 		struct devres *dres;
devres            165 drivers/gpio/gpiolib-devres.c 		struct devres *dres;
devres           1231 drivers/hid/wacom_sys.c 	struct wacom_sysfs_group_devres *devres = res;
devres           1232 drivers/hid/wacom_sys.c 	struct kobject *kobj = devres->root;
devres           1235 drivers/hid/wacom_sys.c 		__func__, devres->group->name);
devres           1236 drivers/hid/wacom_sys.c 	sysfs_remove_group(kobj, devres->group);
devres           1243 drivers/hid/wacom_sys.c 	struct wacom_sysfs_group_devres *devres;
devres           1246 drivers/hid/wacom_sys.c 	devres = devres_alloc(wacom_devm_sysfs_group_release,
devres           1249 drivers/hid/wacom_sys.c 	if (!devres)
devres           1252 drivers/hid/wacom_sys.c 	devres->group = group;
devres           1253 drivers/hid/wacom_sys.c 	devres->root = root;
devres           1255 drivers/hid/wacom_sys.c 	error = sysfs_create_group(devres->root, group);
devres           1257 drivers/hid/wacom_sys.c 		devres_free(devres);
devres           1261 drivers/hid/wacom_sys.c 	devres_add(&wacom->hdev->dev, devres);
devres            618 drivers/hwtracing/intel_th/core.c 		struct resource *devres = th->resource;
devres            632 drivers/hwtracing/intel_th/core.c 			res[r].end = resource_size(&devres[bar]) - 1;
devres            636 drivers/hwtracing/intel_th/core.c 			res[r].start	+= devres[bar].start;
devres            637 drivers/hwtracing/intel_th/core.c 			res[r].end	+= devres[bar].start;
devres            848 drivers/hwtracing/intel_th/core.c 	       struct resource *devres, unsigned int ndevres)
devres            874 drivers/hwtracing/intel_th/core.c 		switch (devres[r].flags & IORESOURCE_TYPE_BITS) {
devres            876 drivers/hwtracing/intel_th/core.c 			th->resource[nr_mmios++] = devres[r];
devres            879 drivers/hwtracing/intel_th/core.c 			err = devm_request_irq(dev, devres[r].start,
devres            886 drivers/hwtracing/intel_th/core.c 				th->irq = devres[r].start;
devres            891 drivers/hwtracing/intel_th/core.c 				 devres[r].flags);
devres            226 drivers/hwtracing/intel_th/intel_th.h 	       struct resource *devres, unsigned int ndevres);
devres            181 drivers/input/input-polldev.c 	struct input_polled_devres *devres = res;
devres            183 drivers/input/input-polldev.c 	return devres->polldev == data;
devres            188 drivers/input/input-polldev.c 	struct input_polled_devres *devres = res;
devres            189 drivers/input/input-polldev.c 	struct input_polled_dev *polldev = devres->polldev;
devres            200 drivers/input/input-polldev.c 	struct input_polled_devres *devres = res;
devres            201 drivers/input/input-polldev.c 	struct input_polled_dev *polldev = devres->polldev;
devres            237 drivers/input/input-polldev.c 	struct input_polled_devres *devres;
devres            239 drivers/input/input-polldev.c 	devres = devres_alloc(devm_input_polldev_release, sizeof(*devres),
devres            241 drivers/input/input-polldev.c 	if (!devres)
devres            246 drivers/input/input-polldev.c 		devres_free(devres);
devres            253 drivers/input/input-polldev.c 	devres->polldev = polldev;
devres            254 drivers/input/input-polldev.c 	devres_add(dev, devres);
devres            293 drivers/input/input-polldev.c 	struct input_polled_devres *devres = NULL;
devres            298 drivers/input/input-polldev.c 		devres = devres_alloc(devm_input_polldev_unregister,
devres            299 drivers/input/input-polldev.c 				      sizeof(*devres), GFP_KERNEL);
devres            300 drivers/input/input-polldev.c 		if (!devres)
devres            303 drivers/input/input-polldev.c 		devres->polldev = dev;
devres            321 drivers/input/input-polldev.c 		devres_free(devres);
devres            337 drivers/input/input-polldev.c 		devres_add(input->dev.parent, devres);
devres           1844 drivers/input/input.c 	struct input_devres *devres = res;
devres           1846 drivers/input/input.c 	return devres->input == data;
devres           1851 drivers/input/input.c 	struct input_devres *devres = res;
devres           1852 drivers/input/input.c 	struct input_dev *input = devres->input;
devres           1880 drivers/input/input.c 	struct input_devres *devres;
devres           1882 drivers/input/input.c 	devres = devres_alloc(devm_input_device_release,
devres           1883 drivers/input/input.c 			      sizeof(*devres), GFP_KERNEL);
devres           1884 drivers/input/input.c 	if (!devres)
devres           1889 drivers/input/input.c 		devres_free(devres);
devres           1896 drivers/input/input.c 	devres->input = input;
devres           1897 drivers/input/input.c 	devres_add(dev, devres);
devres           2108 drivers/input/input.c 	struct input_devres *devres = res;
devres           2109 drivers/input/input.c 	struct input_dev *input = devres->input;
devres           2157 drivers/input/input.c 	struct input_devres *devres = NULL;
devres           2170 drivers/input/input.c 		devres = devres_alloc(devm_input_device_unregister,
devres           2171 drivers/input/input.c 				      sizeof(*devres), GFP_KERNEL);
devres           2172 drivers/input/input.c 		if (!devres)
devres           2175 drivers/input/input.c 		devres->input = dev;
devres           2240 drivers/input/input.c 		devres_add(dev->dev.parent, devres);
devres           2250 drivers/input/input.c 	devres_free(devres);
devres            663 drivers/pci/quirks.c 	u32 devres;
devres            666 drivers/pci/quirks.c 	pci_read_config_dword(dev, port, &devres);
devres            667 drivers/pci/quirks.c 	if ((devres & enable) != enable)
devres            669 drivers/pci/quirks.c 	mask = (devres >> 16) & 15;
devres            670 drivers/pci/quirks.c 	base = devres & 0xffff;
devres            689 drivers/pci/quirks.c 	u32 devres;
devres            692 drivers/pci/quirks.c 	pci_read_config_dword(dev, port, &devres);
devres            693 drivers/pci/quirks.c 	if ((devres & enable) != enable)
devres            695 drivers/pci/quirks.c 	base = devres & 0xffff0000;
devres            696 drivers/pci/quirks.c 	mask = (devres & 0x3f) << 16;
devres            125 drivers/regulator/devres.c 	struct regulator_bulk_devres *devres = res;
devres            127 drivers/regulator/devres.c 	regulator_bulk_free(devres->num_consumers, devres->consumers);
devres            148 drivers/regulator/devres.c 	struct regulator_bulk_devres *devres;
devres            151 drivers/regulator/devres.c 	devres = devres_alloc(devm_regulator_bulk_release,
devres            152 drivers/regulator/devres.c 			      sizeof(*devres), GFP_KERNEL);
devres            153 drivers/regulator/devres.c 	if (!devres)
devres            158 drivers/regulator/devres.c 		devres->consumers = consumers;
devres            159 drivers/regulator/devres.c 		devres->num_consumers = num_consumers;
devres            160 drivers/regulator/devres.c 		devres_add(dev, devres);
devres            162 drivers/regulator/devres.c 		devres_free(devres);
devres            922 drivers/reset/core.c 	struct reset_control **devres;
devres            925 drivers/reset/core.c 	devres = devres_alloc(devm_reset_control_release, sizeof(*devres),
devres            927 drivers/reset/core.c 	if (!devres)
devres            932 drivers/reset/core.c 		devres_free(devres);
devres            936 drivers/reset/core.c 	*devres = rstc;
devres            937 drivers/reset/core.c 	devres_add(dev, devres);
devres            708 drivers/s390/crypto/ap_bus.c 	int rc, card, queue, devres, drvres;
devres            714 drivers/s390/crypto/ap_bus.c 		devres = test_bit_inv(card, ap_perms.apm)
devres            719 drivers/s390/crypto/ap_bus.c 		if (!!devres != !!drvres) {
devres            778 drivers/s390/crypto/ap_bus.c 	int card, queue, devres, drvres, rc;
devres            790 drivers/s390/crypto/ap_bus.c 		devres = test_bit_inv(card, ap_perms.apm)
devres            794 drivers/s390/crypto/ap_bus.c 		if (!!devres != !!drvres)