/linux-4.19.296/drivers/base/ |
D | devres.c | 25 struct devres { struct 90 static __always_inline struct devres * alloc_dr(dr_release_t release, in alloc_dr() 94 struct devres *dr; in alloc_dr() 97 if (unlikely(check_add_overflow(sizeof(struct devres), size, in alloc_dr() 105 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr() 123 struct devres *dr; in __devres_alloc_node() 149 struct devres *dr; in devres_alloc_node() 189 struct devres *dr = container_of(node, struct devres, node); in devres_for_each_res() 210 struct devres *dr = container_of(res, struct devres, data); in devres_free() 229 struct devres *dr = container_of(res, struct devres, data); in devres_add() [all …]
|
D | core.c | 1324 union device_attr_group_devres *devres = res; in devm_attr_group_remove() local 1325 const struct attribute_group *group = devres->group; in devm_attr_group_remove() 1333 union device_attr_group_devres *devres = res; in devm_attr_groups_remove() local 1334 const struct attribute_group **groups = devres->groups; in devm_attr_groups_remove() 1352 union device_attr_group_devres *devres; in devm_device_add_group() local 1355 devres = devres_alloc(devm_attr_group_remove, in devm_device_add_group() 1356 sizeof(*devres), GFP_KERNEL); in devm_device_add_group() 1357 if (!devres) in devm_device_add_group() 1362 devres_free(devres); in devm_device_add_group() 1366 devres->group = grp; in devm_device_add_group() [all …]
|
D | Makefile | 6 cpu.o firmware.o init.o map.o devres.o \
|
D | Kconfig | 132 This option enables kernel parameter devres.log. If set to 133 non-zero, devres debug messages are printed. Select this if 134 you are having a problem with devres or want to debug 135 resource management for a managed device. devres.log can be
|
/linux-4.19.296/drivers/clk/ |
D | clk-devres.c | 44 struct clk_bulk_devres *devres = res; in devm_clk_bulk_release() local 46 clk_bulk_put(devres->num_clks, devres->clks); in devm_clk_bulk_release() 52 struct clk_bulk_devres *devres; in devm_clk_bulk_get() local 55 devres = devres_alloc(devm_clk_bulk_release, in devm_clk_bulk_get() 56 sizeof(*devres), GFP_KERNEL); in devm_clk_bulk_get() 57 if (!devres) in devm_clk_bulk_get() 62 devres->clks = clks; in devm_clk_bulk_get() 63 devres->num_clks = num_clks; in devm_clk_bulk_get() 64 devres_add(dev, devres); in devm_clk_bulk_get() 66 devres_free(devres); in devm_clk_bulk_get()
|
D | Makefile | 3 obj-$(CONFIG_HAVE_CLK) += clk-devres.o clk-bulk.o
|
/linux-4.19.296/drivers/regulator/ |
D | devres.c | 130 struct regulator_bulk_devres *devres = res; in devm_regulator_bulk_release() local 132 regulator_bulk_free(devres->num_consumers, devres->consumers); in devm_regulator_bulk_release() 153 struct regulator_bulk_devres *devres; in devm_regulator_bulk_get() local 156 devres = devres_alloc(devm_regulator_bulk_release, in devm_regulator_bulk_get() 157 sizeof(*devres), GFP_KERNEL); in devm_regulator_bulk_get() 158 if (!devres) in devm_regulator_bulk_get() 163 devres->consumers = consumers; in devm_regulator_bulk_get() 164 devres->num_consumers = num_consumers; in devm_regulator_bulk_get() 165 devres_add(dev, devres); in devm_regulator_bulk_get() 167 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
|
/linux-4.19.296/drivers/reset/ |
D | core.c | 782 struct reset_control **devres; in devm_reset_control_array_get() local 785 devres = devres_alloc(devm_reset_control_release, sizeof(*devres), in devm_reset_control_array_get() 787 if (!devres) in devm_reset_control_array_get() 792 devres_free(devres); in devm_reset_control_array_get() 796 *devres = rstc; in devm_reset_control_array_get() 797 devres_add(dev, devres); in devm_reset_control_array_get()
|
/linux-4.19.296/drivers/extcon/ |
D | Makefile | 7 extcon-core-objs += extcon.o devres.o
|
/linux-4.19.296/drivers/s390/crypto/ |
D | ap_bus.c | 692 int rc, card, queue, devres, drvres; in __ap_revise_reserved() local 698 devres = test_bit_inv(card, ap_perms.apm) in __ap_revise_reserved() 703 if (!!devres != !!drvres) { in __ap_revise_reserved() 762 int card, queue, devres, drvres, rc; in ap_device_probe() local 774 devres = test_bit_inv(card, ap_perms.apm) in ap_device_probe() 778 if (!!devres != !!drvres) in ap_device_probe()
|
/linux-4.19.296/drivers/hid/ |
D | wacom_sys.c | 1205 struct wacom_sysfs_group_devres *devres = res; in wacom_devm_sysfs_group_release() local 1206 struct kobject *kobj = devres->root; in wacom_devm_sysfs_group_release() 1209 __func__, devres->group->name); in wacom_devm_sysfs_group_release() 1210 sysfs_remove_group(kobj, devres->group); in wacom_devm_sysfs_group_release() 1217 struct wacom_sysfs_group_devres *devres; in __wacom_devm_sysfs_create_group() local 1220 devres = devres_alloc(wacom_devm_sysfs_group_release, in __wacom_devm_sysfs_create_group() 1223 if (!devres) in __wacom_devm_sysfs_create_group() 1226 devres->group = group; in __wacom_devm_sysfs_create_group() 1227 devres->root = root; in __wacom_devm_sysfs_create_group() 1229 error = sysfs_create_group(devres->root, group); in __wacom_devm_sysfs_create_group() [all …]
|
/linux-4.19.296/drivers/pci/ |
D | quirks.c | 641 u32 devres; in piix4_io_quirk() local 644 pci_read_config_dword(dev, port, &devres); in piix4_io_quirk() 645 if ((devres & enable) != enable) in piix4_io_quirk() 647 mask = (devres >> 16) & 15; in piix4_io_quirk() 648 base = devres & 0xffff; in piix4_io_quirk() 667 u32 devres; in piix4_mem_quirk() local 670 pci_read_config_dword(dev, port, &devres); in piix4_mem_quirk() 671 if ((devres & enable) != enable) in piix4_mem_quirk() 673 base = devres & 0xffff0000; in piix4_mem_quirk() 674 mask = (devres & 0x3f) << 16; in piix4_mem_quirk()
|
/linux-4.19.296/drivers/gpio/ |
D | Makefile | 6 obj-$(CONFIG_GPIOLIB) += devres.o
|
/linux-4.19.296/lib/ |
D | Makefile | 96 obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
|