Home
last modified time | relevance | path

Searched refs:devres (Results 1 – 21 of 21) sorted by relevance

/drivers/clk/
Dclk-devres.c109 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 …]
Dclk.c4701 struct clk_notifier_devres *devres = res; in devm_clk_notifier_release() local
4703 clk_notifier_unregister(devres->clk, devres->nb); in devm_clk_notifier_release()
4709 struct clk_notifier_devres *devres; in devm_clk_notifier_register() local
4712 devres = devres_alloc(devm_clk_notifier_release, in devm_clk_notifier_register()
4713 sizeof(*devres), GFP_KERNEL); in devm_clk_notifier_register()
4715 if (!devres) in devm_clk_notifier_register()
4720 devres->clk = clk; in devm_clk_notifier_register()
4721 devres->nb = nb; in devm_clk_notifier_register()
4722 devres_add(dev, devres); in devm_clk_notifier_register()
4724 devres_free(devres); in devm_clk_notifier_register()
DMakefile3 obj-$(CONFIG_HAVE_CLK) += clk-devres.o clk-bulk.o clkdev.o
/drivers/base/
Ddevres.c26 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()
122 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr()
162 struct devres *dr; in __devres_alloc_node()
202 struct devres *dr = container_of(node, struct devres, node); in devres_for_each_res()
223 struct devres *dr = container_of(res, struct devres, data); in devres_free()
242 struct devres *dr = container_of(res, struct devres, data); in devres_add()
251 static struct devres *find_dr(struct device *dev, dr_release_t release, in find_dr()
[all …]
Dtrace.h19 DECLARE_EVENT_CLASS(devres,
41 DEFINE_EVENT(devres, devres_log,
Dcore.c2749 union device_attr_group_devres *devres = res; in devm_attr_group_remove() local
2750 const struct attribute_group *group = devres->group; in devm_attr_group_remove()
2758 union device_attr_group_devres *devres = res; in devm_attr_groups_remove() local
2759 const struct attribute_group **groups = devres->groups; in devm_attr_groups_remove()
2777 union device_attr_group_devres *devres; in devm_device_add_group() local
2780 devres = devres_alloc(devm_attr_group_remove, in devm_device_add_group()
2781 sizeof(*devres), GFP_KERNEL); in devm_device_add_group()
2782 if (!devres) in devm_device_add_group()
2787 devres_free(devres); in devm_device_add_group()
2791 devres->group = grp; in devm_device_add_group()
[all …]
DKconfig145 This option enables kernel parameter devres.log. If set to
146 non-zero, devres debug messages are printed. Select this if
147 you are having a problem with devres or want to debug
148 resource management for a managed device. devres.log can be
DMakefile6 cpu.o firmware.o init.o map.o devres.o \
/drivers/regulator/
Ddevres.c184 struct regulator_bulk_devres *devres = res; in devm_regulator_bulk_release() local
186 regulator_bulk_free(devres->num_consumers, devres->consumers); in devm_regulator_bulk_release()
207 struct regulator_bulk_devres *devres; in devm_regulator_bulk_get() local
210 devres = devres_alloc(devm_regulator_bulk_release, in devm_regulator_bulk_get()
211 sizeof(*devres), GFP_KERNEL); in devm_regulator_bulk_get()
212 if (!devres) in devm_regulator_bulk_get()
217 devres->consumers = consumers; in devm_regulator_bulk_get()
218 devres->num_consumers = num_consumers; in devm_regulator_bulk_get()
219 devres_add(dev, devres); in devm_regulator_bulk_get()
221 devres_free(devres); in devm_regulator_bulk_get()
[all …]
DMakefile7 obj-$(CONFIG_REGULATOR) += core.o dummy.o fixed-helper.o helpers.o devres.o irq_helpers.o
/drivers/interconnect/
Dbulk.c126 struct icc_bulk_devres *devres = res; in devm_icc_bulk_release() local
128 icc_bulk_put(devres->num_paths, devres->paths); in devm_icc_bulk_release()
141 struct icc_bulk_devres *devres; in devm_of_icc_bulk_get() local
144 devres = devres_alloc(devm_icc_bulk_release, sizeof(*devres), GFP_KERNEL); in devm_of_icc_bulk_get()
145 if (!devres) in devm_of_icc_bulk_get()
150 devres->paths = paths; in devm_of_icc_bulk_get()
151 devres->num_paths = num_paths; in devm_of_icc_bulk_get()
152 devres_add(dev, devres); in devm_of_icc_bulk_get()
154 devres_free(devres); in devm_of_icc_bulk_get()
/drivers/hwtracing/intel_th/
Dcore.c635 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()
Dintel_th.h231 struct resource *devres, unsigned int ndevres);
/drivers/input/
Dinput.c1968 struct input_devres *devres = res; in devm_input_device_match() local
1970 return devres->input == data; in devm_input_device_match()
1975 struct input_devres *devres = res; in devm_input_device_release() local
1976 struct input_dev *input = devres->input; in devm_input_device_release()
2004 struct input_devres *devres; in devm_input_allocate_device() local
2006 devres = devres_alloc(devm_input_device_release, in devm_input_allocate_device()
2007 sizeof(*devres), GFP_KERNEL); in devm_input_allocate_device()
2008 if (!devres) in devm_input_allocate_device()
2013 devres_free(devres); in devm_input_allocate_device()
2020 devres->input = input; in devm_input_allocate_device()
[all …]
/drivers/hid/
Dwacom_sys.c1226 struct wacom_sysfs_group_devres *devres = res; in wacom_devm_sysfs_group_release() local
1227 struct kobject *kobj = devres->root; in wacom_devm_sysfs_group_release()
1230 __func__, devres->group->name); in wacom_devm_sysfs_group_release()
1231 sysfs_remove_group(kobj, devres->group); in wacom_devm_sysfs_group_release()
1238 struct wacom_sysfs_group_devres *devres; in __wacom_devm_sysfs_create_group() local
1241 devres = devres_alloc(wacom_devm_sysfs_group_release, in __wacom_devm_sysfs_create_group()
1244 if (!devres) in __wacom_devm_sysfs_create_group()
1247 devres->group = group; in __wacom_devm_sysfs_create_group()
1248 devres->root = root; in __wacom_devm_sysfs_create_group()
1250 error = sysfs_create_group(devres->root, group); in __wacom_devm_sysfs_create_group()
[all …]
/drivers/gpio/
Dgpiolib-devres.c110 struct devres *dres; in devm_gpiod_get_index()
165 struct devres *dres; in devm_gpiod_get_from_of_node()
DMakefile7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o
/drivers/extcon/
DMakefile7 extcon-core-objs += extcon.o devres.o
/drivers/s390/crypto/
Dap_bus.c815 int rc, card, queue, devres, drvres; in __ap_revise_reserved() local
821 devres = test_bit_inv(card, ap_perms.apm) && in __ap_revise_reserved()
826 if (!!devres != !!drvres) { in __ap_revise_reserved()
903 int card, queue, devres, drvres, rc = -ENODEV; in ap_device_probe() local
918 devres = test_bit_inv(card, ap_perms.apm) && in ap_device_probe()
922 if (!!devres != !!drvres) in ap_device_probe()
/drivers/reset/
Dcore.c1065 struct reset_control_bulk_devres *devres = res; in devm_reset_control_bulk_release() local
1067 reset_control_bulk_put(devres->num_rstcs, devres->rstcs); in devm_reset_control_bulk_release()
/drivers/pci/
Dquirks.c667 u32 devres; in piix4_io_quirk() local
670 pci_read_config_dword(dev, port, &devres); in piix4_io_quirk()
671 if ((devres & enable) != enable) in piix4_io_quirk()
673 mask = (devres >> 16) & 15; in piix4_io_quirk()
674 base = devres & 0xffff; in piix4_io_quirk()
693 u32 devres; in piix4_mem_quirk() local
696 pci_read_config_dword(dev, port, &devres); in piix4_mem_quirk()
697 if ((devres & enable) != enable) in piix4_mem_quirk()
699 base = devres & 0xffff0000; in piix4_mem_quirk()
700 mask = (devres & 0x3f) << 16; in piix4_mem_quirk()