| /linux/drivers/interconnect/ |
| H A D | bulk.c | 126 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()
|
| /linux/Documentation/translations/zh_CN/driver-api/phy/ |
| H A D | phy.rst | 120 获取 PHY 后使用 devres 将设备与 PHY 关联。在驱动程序分离时,将在 121 devres 数据上调用 release 函数并释放 devres 数据。当 phy 是可选 177 联的 devres。
|
| /linux/drivers/hwtracing/intel_th/ |
| H A 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() 889 struct resource *devres, unsigned int ndevres) in intel_th_alloc() argument 915 switch (devres[r].flags & IORESOURCE_TYPE_BITS) { in intel_th_alloc() 917 th->resource[nr_mmios++] = devres[r]; in intel_th_alloc() 920 err = devm_request_irq(dev, devres[r].start, in intel_th_alloc() 927 th->irq = devres[r].start; in intel_th_alloc() 932 devres[r].flags); in intel_th_alloc()
|
| H A D | intel_th.h | 231 struct resource *devres, unsigned int ndevres);
|
| /linux/Documentation/driver-api/firmware/ |
| H A D | firmware_cache.rst | 26 * The firmware cache is setup by adding a devres entry for each device that 36 criteria the firmware cache is setup by adding a devres entry for the 39 * The firmware devres entry is maintained throughout the lifetime of the
|
| /linux/drivers/reset/ |
| H A D | core.c | 1374 struct reset_control_bulk_devres *devres = res; in devm_reset_control_bulk_release() local 1376 reset_control_bulk_put(devres->num_rstcs, devres->rstcs); in devm_reset_control_bulk_release() 1381 struct reset_control_bulk_devres *devres = res; in devm_reset_control_bulk_release_deasserted() local 1383 reset_control_bulk_assert(devres->num_rstcs, devres->rstcs); in devm_reset_control_bulk_release_deasserted() 1384 reset_control_bulk_put(devres->num_rstcs, devres->rstcs); in devm_reset_control_bulk_release_deasserted()
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 10 devres, 159 devres::register(dev.as_ref(), irq_vecs, GFP_KERNEL)?; in register()
|
| H A D | io.rs | 9 devres::Devres,
|
| /linux/drivers/spmi/ |
| H A D | Makefile | 5 obj-$(CONFIG_SPMI) += spmi.o spmi-devres.o
|
| /linux/Documentation/translations/zh_CN/driver-api/gpio/ |
| H A D | index.rst | 59 drivers/gpio/gpiolib-devres.c
|
| /linux/drivers/hid/ |
| H A D | wacom_sys.c | 1252 struct wacom_sysfs_group_devres *devres = res; in wacom_devm_sysfs_group_release() local 1253 struct kobject *kobj = devres->root; in wacom_devm_sysfs_group_release() 1256 __func__, devres->group->name); in wacom_devm_sysfs_group_release() 1257 sysfs_remove_group(kobj, devres->group); in wacom_devm_sysfs_group_release() 1264 struct wacom_sysfs_group_devres *devres; in __wacom_devm_sysfs_create_group() local 1267 devres = devres_alloc(wacom_devm_sysfs_group_release, in __wacom_devm_sysfs_create_group() 1270 if (!devres) in __wacom_devm_sysfs_create_group() 1273 devres->group = group; in __wacom_devm_sysfs_create_group() 1274 devres->root = root; in __wacom_devm_sysfs_create_group() 1276 error = sysfs_create_group(devres->root, group); in __wacom_devm_sysfs_create_group() [all …]
|
| /linux/drivers/base/ |
| H A D | Makefile | 6 cpu.o firmware.o init.o map.o devres.o \
|
| H A D | core.c | 2855 union device_attr_group_devres *devres = res; in devm_attr_group_remove() local 2856 const struct attribute_group *group = devres->group; in devm_attr_group_remove() 2874 union device_attr_group_devres *devres; in devm_device_add_group() local 2877 devres = devres_alloc(devm_attr_group_remove, in devm_device_add_group() 2878 sizeof(*devres), GFP_KERNEL); in devm_device_add_group() 2879 if (!devres) in devm_device_add_group() 2884 devres_free(devres); in devm_device_add_group() 2888 devres->group = grp; in devm_device_add_group() 2889 devres_add(dev, devres); in devm_device_add_group()
|
| /linux/samples/rust/ |
| H A D | rust_i2c_client.rs | 73 devres::Devres,
|
| H A D | rust_driver_auxiliary.rs | 13 devres::Devres,
|
| H A D | rust_driver_pci.rs | 12 devres::Devres,
|
| /linux/net/ |
| H A D | Makefile | 9 obj-y := devres.o socket.o core/
|
| /linux/sound/soc/ |
| H A D | Makefile | 3 snd-soc-core-y += soc-pcm.o soc-devres.o soc-ops.o soc-link.o soc-card.o
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 12 devres::Devres,
|
| /linux/scripts/coccinelle/free/ |
| H A D | devm_free.cocci | 6 /// See Documentation/driver-api/driver-model/devres.rst for more information.
|
| /linux/rust/kernel/ |
| H A D | lib.rs | 64 pub mod devres; module
|
| H A D | scatterlist.rs | 36 devres::Devres,
|
| H A D | auxiliary.rs | 15 devres::Devres,
|
| /linux/Documentation/sound/kernel-api/ |
| H A D | alsa-driver-api.rst | 101 .. kernel-doc:: sound/soc/soc-devres.c
|
| /linux/rust/kernel/irq/ |
| H A D | request.rs | 12 use crate::devres::Devres;
|