/drivers/clk/ |
D | clk-devres.c | 109 struct clk_bulk_devres *devres = res; in devm_clk_bulk_release() local 111 clk_bulk_put(devres->num_clks, devres->clks); in devm_clk_bulk_release() 117 struct clk_bulk_devres *devres; in __devm_clk_bulk_get() local 120 devres = devres_alloc(devm_clk_bulk_release, in __devm_clk_bulk_get() 121 sizeof(*devres), GFP_KERNEL); in __devm_clk_bulk_get() 122 if (!devres) in __devm_clk_bulk_get() 130 devres->clks = clks; in __devm_clk_bulk_get() 131 devres->num_clks = num_clks; in __devm_clk_bulk_get() 132 devres_add(dev, devres); in __devm_clk_bulk_get() 134 devres_free(devres); in __devm_clk_bulk_get() [all …]
|
D | clk.c | 4554 struct clk_notifier_devres *devres = res; in devm_clk_notifier_release() local 4556 clk_notifier_unregister(devres->clk, devres->nb); in devm_clk_notifier_release() 4562 struct clk_notifier_devres *devres; in devm_clk_notifier_register() local 4565 devres = devres_alloc(devm_clk_notifier_release, in devm_clk_notifier_register() 4566 sizeof(*devres), GFP_KERNEL); in devm_clk_notifier_register() 4568 if (!devres) in devm_clk_notifier_register() 4573 devres->clk = clk; in devm_clk_notifier_register() 4574 devres->nb = nb; in devm_clk_notifier_register() 4575 devres_add(dev, devres); in devm_clk_notifier_register() 4577 devres_free(devres); in devm_clk_notifier_register()
|
D | Makefile | 3 obj-$(CONFIG_HAVE_CLK) += clk-devres.o clk-bulk.o clkdev.o
|
/drivers/base/ |
D | devres.c | 26 struct devres { struct 100 if (unlikely(check_add_overflow(sizeof(struct devres), in check_dr_size() 107 static __always_inline struct devres * alloc_dr(dr_release_t release, in alloc_dr() 111 struct devres *dr; in alloc_dr() 120 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 160 struct devres *dr; in __devres_alloc_node() 200 struct devres *dr = container_of(node, struct devres, node); in devres_for_each_res() 221 struct devres *dr = container_of(res, struct devres, data); in devres_free() 240 struct devres *dr = container_of(res, struct devres, data); in devres_add() 249 static struct devres *find_dr(struct device *dev, dr_release_t release, in find_dr() [all …]
|
D | trace.h | 19 DECLARE_EVENT_CLASS(devres, 41 DEFINE_EVENT(devres, devres_log,
|
D | core.c | 2506 union device_attr_group_devres *devres = res; in devm_attr_group_remove() local 2507 const struct attribute_group *group = devres->group; in devm_attr_group_remove() 2515 union device_attr_group_devres *devres = res; in devm_attr_groups_remove() local 2516 const struct attribute_group **groups = devres->groups; in devm_attr_groups_remove() 2534 union device_attr_group_devres *devres; in devm_device_add_group() local 2537 devres = devres_alloc(devm_attr_group_remove, in devm_device_add_group() 2538 sizeof(*devres), GFP_KERNEL); in devm_device_add_group() 2539 if (!devres) in devm_device_add_group() 2544 devres_free(devres); in devm_device_add_group() 2548 devres->group = grp; in devm_device_add_group() [all …]
|
D | Kconfig | 134 This option enables kernel parameter devres.log. If set to 135 non-zero, devres debug messages are printed. Select this if 136 you are having a problem with devres or want to debug 137 resource management for a managed device. devres.log can be
|
D | Makefile | 6 cpu.o firmware.o init.o map.o devres.o \
|
/drivers/regulator/ |
D | devres.c | 125 struct regulator_bulk_devres *devres = res; in devm_regulator_bulk_release() local 127 regulator_bulk_free(devres->num_consumers, devres->consumers); in devm_regulator_bulk_release() 148 struct regulator_bulk_devres *devres; in devm_regulator_bulk_get() local 151 devres = devres_alloc(devm_regulator_bulk_release, in devm_regulator_bulk_get() 152 sizeof(*devres), GFP_KERNEL); in devm_regulator_bulk_get() 153 if (!devres) in devm_regulator_bulk_get() 158 devres->consumers = consumers; in devm_regulator_bulk_get() 159 devres->num_consumers = num_consumers; in devm_regulator_bulk_get() 160 devres_add(dev, devres); in devm_regulator_bulk_get() 162 devres_free(devres); in devm_regulator_bulk_get()
|
D | Makefile | 7 obj-$(CONFIG_REGULATOR) += core.o dummy.o fixed-helper.o helpers.o devres.o irq_helpers.o
|
/drivers/hwtracing/intel_th/ |
D | core.c | 635 struct resource *devres = th->resource; in intel_th_subdevice_alloc() local 649 res[r].end = resource_size(&devres[bar]) - 1; in intel_th_subdevice_alloc() 653 res[r].start += devres[bar].start; in intel_th_subdevice_alloc() 654 res[r].end += devres[bar].start; in intel_th_subdevice_alloc() 865 struct resource *devres, unsigned int ndevres) in intel_th_alloc() argument 891 switch (devres[r].flags & IORESOURCE_TYPE_BITS) { in intel_th_alloc() 893 th->resource[nr_mmios++] = devres[r]; in intel_th_alloc() 896 err = devm_request_irq(dev, devres[r].start, in intel_th_alloc() 903 th->irq = devres[r].start; in intel_th_alloc() 908 devres[r].flags); in intel_th_alloc()
|
D | intel_th.h | 231 struct resource *devres, unsigned int ndevres);
|
/drivers/input/ |
D | input.c | 1951 struct input_devres *devres = res; in devm_input_device_match() local 1953 return devres->input == data; in devm_input_device_match() 1958 struct input_devres *devres = res; in devm_input_device_release() local 1959 struct input_dev *input = devres->input; in devm_input_device_release() 1987 struct input_devres *devres; in devm_input_allocate_device() local 1989 devres = devres_alloc(devm_input_device_release, in devm_input_allocate_device() 1990 sizeof(*devres), GFP_KERNEL); in devm_input_allocate_device() 1991 if (!devres) in devm_input_allocate_device() 1996 devres_free(devres); in devm_input_allocate_device() 2003 devres->input = input; in devm_input_allocate_device() [all …]
|
/drivers/hid/ |
D | wacom_sys.c | 1234 struct wacom_sysfs_group_devres *devres = res; in wacom_devm_sysfs_group_release() local 1235 struct kobject *kobj = devres->root; in wacom_devm_sysfs_group_release() 1238 __func__, devres->group->name); in wacom_devm_sysfs_group_release() 1239 sysfs_remove_group(kobj, devres->group); in wacom_devm_sysfs_group_release() 1246 struct wacom_sysfs_group_devres *devres; in __wacom_devm_sysfs_create_group() local 1249 devres = devres_alloc(wacom_devm_sysfs_group_release, in __wacom_devm_sysfs_create_group() 1252 if (!devres) in __wacom_devm_sysfs_create_group() 1255 devres->group = group; in __wacom_devm_sysfs_create_group() 1256 devres->root = root; in __wacom_devm_sysfs_create_group() 1258 error = sysfs_create_group(devres->root, group); in __wacom_devm_sysfs_create_group() [all …]
|
/drivers/gpio/ |
D | gpiolib-devres.c | 110 struct devres *dres; in devm_gpiod_get_index() 165 struct devres *dres; in devm_gpiod_get_from_of_node()
|
D | Makefile | 7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o
|
/drivers/extcon/ |
D | Makefile | 7 extcon-core-objs += extcon.o devres.o
|
/drivers/s390/crypto/ |
D | ap_bus.c | 777 int rc, card, queue, devres, drvres; in __ap_revise_reserved() local 783 devres = test_bit_inv(card, ap_perms.apm) in __ap_revise_reserved() 788 if (!!devres != !!drvres) { in __ap_revise_reserved() 847 int card, queue, devres, drvres, rc = -ENODEV; in ap_device_probe() local 862 devres = test_bit_inv(card, ap_perms.apm) in ap_device_probe() 866 if (!!devres != !!drvres) in ap_device_probe()
|
/drivers/reset/ |
D | core.c | 1064 struct reset_control_bulk_devres *devres = res; in devm_reset_control_bulk_release() local 1066 reset_control_bulk_put(devres->num_rstcs, devres->rstcs); in devm_reset_control_bulk_release()
|
/drivers/pci/ |
D | quirks.c | 664 u32 devres; in piix4_io_quirk() local 667 pci_read_config_dword(dev, port, &devres); in piix4_io_quirk() 668 if ((devres & enable) != enable) in piix4_io_quirk() 670 mask = (devres >> 16) & 15; in piix4_io_quirk() 671 base = devres & 0xffff; in piix4_io_quirk() 690 u32 devres; in piix4_mem_quirk() local 693 pci_read_config_dword(dev, port, &devres); in piix4_mem_quirk() 694 if ((devres & enable) != enable) in piix4_mem_quirk() 696 base = devres & 0xffff0000; in piix4_mem_quirk() 697 mask = (devres & 0x3f) << 16; in piix4_mem_quirk()
|