| /kernel/linux/linux-6.6/arch/arm/mach-pxa/ |
| D | devices.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/clk-provider.h> 8 #include <linux/dma-mapping.h> 11 #include <linux/platform_data/i2c-pxa.h> 15 #include <linux/platform_data/video-pxafb.h> 16 #include <linux/platform_data/mmc-pxamci.h> 18 #include <linux/platform_data/usb-ohci-pxa27x.h> 21 #include "regs-ost.h" 30 dev->dev.platform_data = data; in pxa_register_device() 34 dev_err(&dev->dev, "unable to register device: %d\n", ret); in pxa_register_device() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
| D | devices.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/dma-mapping.h> 10 #include <linux/platform_data/i2c-pxa.h> 13 #include <linux/platform_data/usb-pxa3xx-ulpi.h> 14 #include <linux/platform_data/video-pxafb.h> 15 #include <linux/platform_data/mmc-pxamci.h> 16 #include <linux/platform_data/irda-pxaficp.h> 18 #include <linux/platform_data/usb-ohci-pxa27x.h> 19 #include <linux/platform_data/keypad-pxa27x.h> 20 #include <linux/platform_data/media/camera-pxa.h> [all …]
|
| /kernel/linux/linux-6.6/net/devlink/ |
| D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * struct devlink_resource - devlink resource 11 * @name: name of the resource 12 * @id: id, per devlink instance 13 * @size: size of the resource 14 * @size_new: updated size of the resource, reload is needed 15 * @size_valid: valid in case the total size of the resource is valid 17 * @parent: parent resource 26 u64 id; member 40 struct devlink_resource *resource, u64 resource_id) in devlink_resource_find() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | twl4030-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <linux/mfd/twl4030-audio.h> 36 struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX]; member 41 * Modify the resource, the function returns the content of the register 44 static int twl4030_audio_set_resource(enum twl4030_audio_res id, int enable) in twl4030_audio_set_resource() argument 50 audio->resource[id].reg); in twl4030_audio_set_resource() 53 val |= audio->resource[id].mask; in twl4030_audio_set_resource() 55 val &= ~audio->resource[id].mask; in twl4030_audio_set_resource() 58 val, audio->resource[id].reg); in twl4030_audio_set_resource() 63 static inline int twl4030_audio_get_resource(enum twl4030_audio_res id) in twl4030_audio_get_resource() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | twl4030-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <linux/mfd/twl4030-audio.h> 36 struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX]; member 41 * Modify the resource, the function returns the content of the register 44 static int twl4030_audio_set_resource(enum twl4030_audio_res id, int enable) in twl4030_audio_set_resource() argument 50 audio->resource[id].reg); in twl4030_audio_set_resource() 53 val |= audio->resource[id].mask; in twl4030_audio_set_resource() 55 val &= ~audio->resource[id].mask; in twl4030_audio_set_resource() 58 val, audio->resource[id].reg); in twl4030_audio_set_resource() 63 static inline int twl4030_audio_get_resource(enum twl4030_audio_res id) in twl4030_audio_get_resource() argument [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
| D | devs.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <linux/dma-mapping.h> 30 #include <linux/platform_data/s3c-hsudc.h> 31 #include <linux/platform_data/s3c-hsotg.h> 32 #include <linux/platform_data/dma-s3c24xx.h> 43 #include "gpio-samsung.h" 44 #include "gpio-cfg.h" 47 #include "regs-s3c2443-clock.h" 52 #include <linux/soc/samsung/s3c-adc.h> 53 #include <linux/platform_data/ata-samsung_cf.h> [all …]
|
| D | dev-audio-s3c64xx.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/dma-mapping.h> 17 #include <linux/platform_data/asoc-s3c.h> 18 #include "gpio-cfg.h" 19 #include "gpio-samsung.h" 25 switch (pdev->id) { in s3c64xx_i2s_cfg_gpio() 40 pdev->id); in s3c64xx_i2s_cfg_gpio() 41 return -EINVAL; in s3c64xx_i2s_cfg_gpio() 49 static struct resource s3c64xx_iis0_resource[] = { 58 .name = "samsung-i2s", [all …]
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * devres.c -- Voltage/Current Regulator framework devres implementation. 22 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get() argument 29 return ERR_PTR(-ENOMEM); in _devm_regulator_get() 31 regulator = _regulator_get(dev, id, get_type); in _devm_regulator_get() 43 * devm_regulator_get - Resource managed regulator_get() 45 * @id: supply name or regulator ID. 51 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get() argument 53 return _devm_regulator_get(dev, id, NORMAL_GET); in devm_regulator_get() 58 * devm_regulator_get_exclusive - Resource managed regulator_get_exclusive() [all …]
|
| /kernel/linux/linux-6.6/drivers/soc/qcom/ |
| D | cmd-db.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved. 18 #include <soc/qcom/cmd-db.h> 30 * @id: resource's identifier 32 * @addr: the address of the resource 37 u8 id[8]; member 45 * struct rsc_hdr: resource header information 47 * @slv_id: id for the resource 88 * based accelerator is a 'slave' (shared resource) and has slave id indicating 95 * Drivers have a stringified key to a slave/resource. They can query the slave [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-s3c/ |
| D | devs.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <linux/dma-mapping.h> 27 #include <linux/platform_data/s3c-hsotg.h> 36 #include "gpio-samsung.h" 37 #include "gpio-cfg.h" 42 #include <linux/platform_data/i2c-s3c2410.h> 44 #include "pwm-core.h" 46 #include "usb-phy.h" 47 #include <linux/platform_data/asoc-s3c.h> 48 #include <linux/platform_data/spi-s3c64xx.h> [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/qcom/ |
| D | cmd-db.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. */ 13 #include <soc/qcom/cmd-db.h> 23 * @id: resource's identifier 25 * @addr: the address of the resource 30 u8 id[8]; member 38 * struct rsc_hdr: resource header information 40 * @slv_id: id for the resource 81 * based accelerator is a 'slave' (shared resource) and has slave id indicating 88 * Drivers have a stringified key to a slave/resource. They can query the slave [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-sa1100/ |
| D | generic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-sa1100/generic.c 15 #include <linux/dma-mapping.h> 23 #include <linux/irqchip/irq-sa11x0.h> 78 * Default power-off for SA1100 86 /* enable wake-up on GPIO0 (Assabet...) */ in sa1100_power_off() 105 /* Use on-chip reset capability */ in sa11x0_restart() 113 dev->dev.platform_data = data; in sa11x0_register_device() 117 dev->name, err); in sa11x0_register_device() 121 static struct resource sa11x0udc_resources[] = { [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_cotable.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2014-2023 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 28 * Treat context OTables as resources to make use of the resource 42 * struct vmw_cotable - Context Object Table resource 45 * @ctx: non-refcounted pointer to the owning context. 63 * struct vmw_cotable_info - Static info about cotable types 68 * @unbind_func: Unbind call-back function. 148 * vmw_cotable - Convert a struct vmw_resource pointer to a struct 151 * @res: Pointer to the resource. [all …]
|
| D | vmwgfx_resource.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2009-2023 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 38 * vmw_resource_mob_attach - Mark a resource as attached to its backing mob 39 * @res: The resource 43 struct vmw_bo *gbo = res->guest_memory_bo; in vmw_resource_mob_attach() 44 struct rb_node **new = &gbo->res_tree.rb_node, *parent = NULL; in vmw_resource_mob_attach() 46 dma_resv_assert_held(gbo->tbo.base.resv); in vmw_resource_mob_attach() 47 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach() 48 res->func->prio; in vmw_resource_mob_attach() [all …]
|
| D | vmwgfx_shader.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2009-2023 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 52 u32 id; member 116 * The destroy callback is only called with a committed resource on 137 * vmw_res_to_dx_shader - typecast a struct vmw_resource to a 150 if (likely(res->func->destroy)) in vmw_hw_shader_destroy() 151 (void) res->func->destroy(res); in vmw_hw_shader_destroy() 153 res->id = -1; in vmw_hw_shader_destroy() 181 res->guest_memory_size = size; in vmw_gb_shader_init() [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-sa1100/ |
| D | generic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-sa1100/generic.c 15 #include <linux/dma-mapping.h> 23 #include <linux/irqchip/irq-sa11x0.h> 75 * Default power-off for SA1100 83 /* enable wake-up on GPIO0 (Assabet...) */ in sa1100_power_off() 102 /* Use on-chip reset capability */ in sa11x0_restart() 110 dev->dev.platform_data = data; in sa11x0_register_device() 114 dev->name, err); in sa11x0_register_device() 118 static struct resource sa11x0udc_resources[] = { [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_resource.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2009-2015 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 37 * vmw_resource_mob_attach - Mark a resource as attached to its backing mob 38 * @res: The resource 42 struct vmw_buffer_object *backup = res->backup; in vmw_resource_mob_attach() 43 struct rb_node **new = &backup->res_tree.rb_node, *parent = NULL; in vmw_resource_mob_attach() 45 dma_resv_assert_held(res->backup->base.base.resv); in vmw_resource_mob_attach() 46 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach() 47 res->func->prio; in vmw_resource_mob_attach() [all …]
|
| D | vmwgfx_cotable.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2014-2015 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 28 * Treat context OTables as resources to make use of the resource 40 * struct vmw_cotable - Context Object Table resource 43 * @ctx: non-refcounted pointer to the owning context. 61 * struct vmw_cotable_info - Static info about cotable types 132 * vmw_cotable - Convert a struct vmw_resource pointer to a struct 135 * @res: Pointer to the resource. 143 * vmw_cotable_destroy - Cotable resource destroy callback [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
| D | devices-da8xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2007-2009, MontaVista Software, Inc. <source@mvista.com> 10 #include <linux/clk-provider.h> 13 #include <linux/dma-map-ops.h> 104 .id = PLAT8250_DEV_PLATFORM, 111 .id = PLAT8250_DEV_PLATFORM1, 118 .id = PLAT8250_DEV_PLATFORM2, 131 {-1, -1} 137 {-1, -1} 150 static struct resource da8xx_edma0_resources[] = { [all …]
|
| /kernel/linux/linux-5.10/drivers/sh/superhyway/ |
| D | superhyway.c | 6 * Copyright (C) 2004, 2005 Paul Mundt <lethal@linux-sh.org> 32 kfree(sdev->resource); in superhyway_device_release() 37 * superhyway_add_device - Add a SuperHyway module 46 * top-down of the memory map), and are assigned an ID based on the order that 47 * they are added. Any manual addition of a module will thus get the ID after 61 return -ENOMEM; in superhyway_add_device() 65 dev->bus = bus; in superhyway_add_device() 66 superhyway_read_vcr(dev, base, &dev->vcr); in superhyway_add_device() 68 if (!dev->resource) { in superhyway_add_device() 69 dev->resource = kzalloc(sizeof(struct resource), GFP_KERNEL); in superhyway_add_device() [all …]
|
| /kernel/linux/linux-6.6/drivers/sh/superhyway/ |
| D | superhyway.c | 6 * Copyright (C) 2004, 2005 Paul Mundt <lethal@linux-sh.org> 32 kfree(sdev->resource); in superhyway_device_release() 37 * superhyway_add_device - Add a SuperHyway module 46 * top-down of the memory map), and are assigned an ID based on the order that 47 * they are added. Any manual addition of a module will thus get the ID after 61 return -ENOMEM; in superhyway_add_device() 65 dev->bus = bus; in superhyway_add_device() 66 superhyway_read_vcr(dev, base, &dev->vcr); in superhyway_add_device() 68 if (!dev->resource) { in superhyway_add_device() 69 dev->resource = kzalloc(sizeof(struct resource), GFP_KERNEL); in superhyway_add_device() [all …]
|
| /kernel/linux/linux-6.6/drivers/regulator/ |
| D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * devres.c -- Voltage/Current Regulator framework devres implementation. 22 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get() argument 29 return ERR_PTR(-ENOMEM); in _devm_regulator_get() 31 regulator = _regulator_get(dev, id, get_type); in _devm_regulator_get() 43 * devm_regulator_get - Resource managed regulator_get() 45 * @id: supply name or regulator ID. 51 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get() argument 53 return _devm_regulator_get(dev, id, NORMAL_GET); in devm_regulator_get() 58 * devm_regulator_get_exclusive - Resource managed regulator_get_exclusive() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
| D | gpio7xx.c | 4 * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/ 20 #include <linux/platform_data/gpio-omap.h> 35 static struct resource omap7xx_mpu_gpio_resources[] = { 38 .end = OMAP1_MPUIO_VBASE + SZ_2K - 1, 67 .id = 0, 72 .resource = omap7xx_mpu_gpio_resources, 76 static struct resource omap7xx_gpio1_resources[] = { 79 .end = OMAP7XX_GPIO1_BASE + SZ_2K - 1, 106 .id = 1, 111 .resource = omap7xx_gpio1_resources, [all …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/core/ |
| D | restrack.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 3 * Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved. 18 * rdma_restrack_init() - initialize and allocate resource tracking 28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init() 29 if (!dev->res) in rdma_restrack_init() 30 return -ENOMEM; in rdma_restrack_init() 32 rt = dev->res; in rdma_restrack_init() 41 * rdma_restrack_clean() - clean resource tracking 46 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean() 50 struct xarray *xa = &dev->res[i].xa; in rdma_restrack_clean() [all …]
|
| /kernel/linux/linux-6.6/arch/m68k/coldfire/ |
| D | device.c | 2 * device.c -- common ColdFire SoC device support 24 #include <linux/platform_data/dma-mcf-edma.h> 25 #include <linux/platform_data/mmc-esdhc-mcf.h> 92 .id = 0, 99 #define FEC_NAME "enet-fec" 114 static struct resource mcf_fec0_resources[] = { 117 .end = MCFFEC_BASE0 + MCFFEC_SIZE0 - 1, 139 .id = 0, 141 .resource = mcf_fec0_resources, 151 static struct resource mcf_fec1_resources[] = { [all …]
|