Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/base/
Ddevres.c25 struct devres { struct
84 static __always_inline struct devres * alloc_dr(dr_release_t release, in alloc_dr()
87 size_t tot_size = sizeof(struct devres) + size; in alloc_dr()
88 struct devres *dr; in alloc_dr()
94 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr()
112 struct devres *dr; in __devres_alloc_node()
138 struct devres *dr; in devres_alloc_node()
178 struct devres *dr = container_of(node, struct devres, node); in devres_for_each_res()
199 struct devres *dr = container_of(res, struct devres, data); in devres_free()
218 struct devres *dr = container_of(res, struct devres, data); in devres_add()
[all …]
DMakefile5 cpu.o firmware.o init.o map.o devres.o \
DKconfig207 This option enables kernel parameter devres.log. If set to
208 non-zero, devres debug messages are printed. Select this if
209 you are having a problem with devres or want to debug
210 resource management for a managed device. devres.log can be
/linux-4.4.14/drivers/input/
Dinput-polldev.c185 struct input_polled_devres *devres = res; in devm_input_polldev_match() local
187 return devres->polldev == data; in devm_input_polldev_match()
192 struct input_polled_devres *devres = res; in devm_input_polldev_release() local
193 struct input_polled_dev *polldev = devres->polldev; in devm_input_polldev_release()
204 struct input_polled_devres *devres = res; in devm_input_polldev_unregister() local
205 struct input_polled_dev *polldev = devres->polldev; in devm_input_polldev_unregister()
241 struct input_polled_devres *devres; in devm_input_allocate_polled_device() local
243 devres = devres_alloc(devm_input_polldev_release, sizeof(*devres), in devm_input_allocate_polled_device()
245 if (!devres) in devm_input_allocate_polled_device()
250 devres_free(devres); in devm_input_allocate_polled_device()
[all …]
Dinput.c1814 struct input_devres *devres = res; in devm_input_device_match() local
1816 return devres->input == data; in devm_input_device_match()
1821 struct input_devres *devres = res; in devm_input_device_release() local
1822 struct input_dev *input = devres->input; in devm_input_device_release()
1850 struct input_devres *devres; in devm_input_allocate_device() local
1852 devres = devres_alloc(devm_input_device_release, in devm_input_allocate_device()
1854 if (!devres) in devm_input_allocate_device()
1859 devres_free(devres); in devm_input_allocate_device()
1866 devres->input = input; in devm_input_allocate_device()
1867 devres_add(dev, devres); in devm_input_allocate_device()
[all …]
/linux-4.4.14/Documentation/driver-model/
Ddevres.txt11 3. Devres Group : Group devres'es and release them together
20 devres came up while trying to convert libata to use iomap. Each
48 devres is basically linked list of arbitrarily sized memory areas
49 associated with a struct device. Each devres entry is associated with
50 a release function. A devres can be released in several ways. No
51 matter what, all devres entries are released on driver detach. On
53 devres entry is freed.
56 drivers using devres. For example, coherent DMA memory is acquired
131 devres. Complexity is shifted from less maintained low level drivers
139 Devres entries can be grouped using devres group. When a group is
[all …]
/linux-4.4.14/drivers/hwtracing/intel_th/
Dcore.c422 static int intel_th_populate(struct intel_th *th, struct resource *devres, in intel_th_populate() argument
456 res[r].end = resource_size(&devres[bar]) - 1; in intel_th_populate()
460 res[r].start += devres[bar].start; in intel_th_populate()
461 res[r].end += devres[bar].start; in intel_th_populate()
558 intel_th_alloc(struct device *dev, struct resource *devres, in intel_th_alloc() argument
582 err = intel_th_populate(th, devres, ndevres, irq); in intel_th_alloc()
Dintel_th.h161 intel_th_alloc(struct device *dev, struct resource *devres,
/linux-4.4.14/kernel/irq/
DMakefile2 obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o
/linux-4.4.14/Documentation/
Dphy.txt86 devm_phy_get associates the device with the PHY using devres on
88 the the devres data and devres data is freed. phy_optional_get and
112 destroys the devres associated with this PHY.
122 Both these APIs destroy the PHY and devm_phy_destroy destroys the devres
Dremoteproc.txt37 handle. There are several ways to achieve that cleanly (devres, pdata,
/linux-4.4.14/sound/soc/
DMakefile2 snd-soc-core-objs += soc-pcm.o soc-io.o soc-devres.o soc-ops.o
/linux-4.4.14/Documentation/DocBook/
Ddevice-drivers.xml.db260 API-devres-alloc-node
261 API-devres-for-each-res
262 API-devres-free
263 API-devres-add
264 API-devres-find
265 API-devres-get
266 API-devres-remove
267 API-devres-destroy
268 API-devres-release
269 API-devres-open-group
[all …]
D.alsa-driver-api.xml.cmd2 …compress_driver.h include/sound/soc.h sound/soc/soc-core.c sound/soc/soc-devres.c sound/soc/soc-io…
D.device-drivers.xml.cmd2 …nel/rcu/tree.c kernel/rcu/tree_plugin.h kernel/rcu/update.c drivers/base/devres.c include/linux/de…
/linux-4.4.14/scripts/coccinelle/free/
Ddevm_free.cocci5 /// See Documentation/driver-model/devres.txt for more information.
/linux-4.4.14/Documentation/hwmon/
Dsubmitting-patches71 * Use devres functions whenever possible to allocate resources. For rationale
72 and supported functions, please see Documentation/driver-model/devres.txt.
/linux-4.4.14/drivers/clk/
DMakefile2 obj-$(CONFIG_HAVE_CLK) += clk-devres.o
/linux-4.4.14/drivers/pci/
Dquirks.c456 u32 devres; in piix4_io_quirk() local
459 pci_read_config_dword(dev, port, &devres); in piix4_io_quirk()
460 if ((devres & enable) != enable) in piix4_io_quirk()
462 mask = (devres >> 16) & 15; in piix4_io_quirk()
463 base = devres & 0xffff; in piix4_io_quirk()
483 u32 devres; in piix4_mem_quirk() local
486 pci_read_config_dword(dev, port, &devres); in piix4_mem_quirk()
487 if ((devres & enable) != enable) in piix4_mem_quirk()
489 base = devres & 0xffff0000; in piix4_mem_quirk()
490 mask = (devres & 0x3f) << 16; in piix4_mem_quirk()
/linux-4.4.14/drivers/regulator/
DMakefile6 obj-$(CONFIG_REGULATOR) += core.o dummy.o fixed-helper.o helpers.o devres.o
/linux-4.4.14/drivers/gpio/
DMakefile5 obj-$(CONFIG_GPIO_DEVRES) += devres.o
/linux-4.4.14/Documentation/nvmem/
Dnvmem.txt125 devm_nvmem_cell_put and devm_nvmem_device_put destroys the devres associated
/linux-4.4.14/lib/
DMakefile57 obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o