/linux/arch/arm/mach-pxa/ |
H A D | devices.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/clk-provider.h> 8 #include <linux/dma-mapping.h> 10 #include <linux/gpio-pxa.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 "mfp-pxa2xx.h" 22 #include "regs-ost.h" [all …]
|
/linux/drivers/mfd/ |
H A 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 …]
|
H A D | max8925-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Marvell International Ltd. 21 static const struct resource bk_resources[] = { 28 .name = "max8925-backlight", 31 .id = -1, 35 static const struct resource touch_resources[] = { 37 .name = "max8925-tsc", 46 .name = "max8925-touch", 49 .id = -1, 53 static const struct resource power_supply_resources[] = { [all …]
|
/linux/drivers/soc/qcom/ |
H A 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 …]
|
/linux/arch/arm/mach-s3c/ |
H A D | devs.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <linux/dma-mapping.h> 26 #include <linux/platform_data/s3c-hsotg.h> 35 #include "gpio-samsung.h" 36 #include "gpio-cfg.h" 41 #include <linux/platform_data/i2c-s3c2410.h> 43 #include "pwm-core.h" 45 #include "usb-phy.h" 46 #include <linux/platform_data/asoc-s3c.h> 47 #include <linux/platform_data/spi-s3c64xx.h> [all …]
|
/linux/include/linux/ |
H A D | resctrl.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #define RESCTRL_PICK_ANY_CPU -1 36 (_r) && (_r)->rid < RDT_NUM_RESOURCES; \ 37 (_r) = resctrl_arch_get_resource((_r)->rid + 1)) 41 if ((r)->alloc_capable || (r)->mon_capable) 45 if ((r)->alloc_capable) 49 if ((r)->mon_capable) 62 * enum resctrl_conf_type - The type of configuration. 76 * struct pseudo_lock_region - pseudo-lock region information 77 * @s: Resctrl schema for the resource to which this [all …]
|
H A D | platform_device.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * platform_device.h - generic, centralized driver model 5 * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> 7 * See Documentation/driver-api/driver-model/ for more information. 15 #define PLATFORM_DEVID_NONE (-1) 16 #define PLATFORM_DEVID_AUTO (-2) 25 int id; member 31 struct resource *resource; member 47 #define platform_get_device_id(pdev) ((pdev)->id_entry) 49 #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type) [all …]
|
/linux/arch/arm/mach-sa1100/ |
H A 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 …]
|
/linux/arch/sh/kernel/cpu/sh4a/ |
H A D | setup-sh7723.c | 1 // SPDX-License-Identifier: GPL-2.0 32 static struct resource scif0_resources[] = { 38 .name = "sh-sci", 39 .id = 0, 40 .resource = scif0_resources, 53 static struct resource scif1_resources[] = { 59 .name = "sh-sci", 60 .id = 1, 61 .resource = scif1_resources, 74 static struct resource scif2_resources[] = { [all …]
|
H A D | setup-sh7343.c | 1 // SPDX-License-Identifier: GPL-2.0 23 static struct resource scif0_resources[] = { 29 .name = "sh-sci", 30 .id = 0, 31 .resource = scif0_resources, 43 static struct resource scif1_resources[] = { 49 .name = "sh-sci", 50 .id = 1, 51 .resource = scif1_resources, 63 static struct resource scif2_resources[] = { [all …]
|
H A D | setup-sh7770.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2006 - 2008 Paul Mundt 21 static struct resource scif0_resources[] = { 27 .name = "sh-sci", 28 .id = 0, 29 .resource = scif0_resources, 41 static struct resource scif1_resources[] = { 47 .name = "sh-sci", 48 .id = 1, 49 .resource = scif1_resources, [all …]
|
H A D | setup-sh7724.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #include <cpu/dma-register.h> 202 /* Resource order important! */ 203 static struct resource sh7724_dmae0_resources[] = { 223 /* IRQ for channels 0-3 */ 229 /* IRQ for channels 4-5 */ 236 /* Resource order important! */ 237 static struct resource sh7724_dmae1_resources[] = { 257 /* IRQ for channels 0-3 */ 263 /* IRQ for channels 4-5 */ [all …]
|
H A D | setup-sh7722.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2006 - 2008 Paul Mundt 23 #include <cpu/dma-register.h> 135 static struct resource sh7722_dmae_resources[] = { 155 /* IRQ for channels 0-3 */ 161 /* IRQ for channels 4-5 */ 169 .name = "sh-dma-engine", 170 .id = -1, 171 .resource = sh7722_dmae_resources, 186 static struct resource scif0_resources[] = { [all …]
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_so.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright 2014-2015 VMware, Inc., Palo Alto, CA., USA 19 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 44 * struct vmw_view - view metadata 48 * @ctx: Non-refcounted pointer to the context this view belongs to. 51 * @srf_head: List head for the surface-to-view list. 52 * @cotable_head: List head for the cotable-to_view list. 54 * @view_id: User-space per context view id. Currently used also as per 55 * context device view id. 95 * struct vmw_view_define - view define command body stub [all …]
|
H A D | vmwgfx_streamoutput.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright © 2018-2023 VMware, Inc., Palo Alto, CA., USA 21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 37 * struct vmw_dx_streamoutput - Streamoutput resource metadata. 38 * @res: Base resource struct. 39 * @ctx: Non-refcounted context to which @res belong. 41 * @cotable_head: List head for cotable-so_res list. 42 * @id: User-space provided identifier. 43 * @size: User-space provided mob size. 51 u32 id; member [all …]
|
/linux/drivers/extcon/ |
H A D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/extcon/devres.c - EXTCON device's resource management 34 unsigned int id; member 42 extcon_unregister_notifier(this->edev, this->id, this->nb); in devm_extcon_dev_notifier_unreg() 49 extcon_unregister_notifier_all(this->edev, this->nb); in devm_extcon_dev_notifier_all_unreg() 53 * devm_extcon_dev_allocate - Allocate managed extcon device 59 * resource management and simplify the control of freeing the memory of extcon 72 return ERR_PTR(-ENOMEM); in devm_extcon_dev_allocate() 80 edev->dev.parent = dev; in devm_extcon_dev_allocate() 90 * devm_extcon_dev_free() - Resource-managed extcon_dev_unregister() [all …]
|
/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 36 * Gets a resource (if one exists) matching given handle from the hash table. 41 struct vmci_resource *r, *resource = NULL; in vmci_resource_lookup() local 47 u32 cid = r->handle.context; in vmci_resource_lookup() 48 u32 rid = r->handle.resource; in vmci_resource_lookup() 50 if (r->type == type && in vmci_resource_lookup() 51 rid == handle.resource && in vmci_resource_lookup() 54 resource = r; in vmci_resource_lookup() 60 return resource; in vmci_resource_lookup() [all …]
|
/linux/include/linux/fsl/ |
H A D | mc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. 6 * Copyright 2019-2020 NXP 27 * struct fsl_mc_driver - MC object device driver object 44 * with a DPRC bus. This structure is to be embedded in each device-specific 62 * enum fsl_mc_pool_type - Types of allocatable MC bus resources 64 * Entries in these enum are used as indices in the array of resource 74 * NOTE: New resource pool types must be added before this entry 80 * struct fsl_mc_resource - MC generic resource 81 * @type: type of resource [all …]
|
/linux/include/rdma/ |
H A D | restrack.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 3 * Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved. 24 * enum rdma_restrack_type - HW objects to track 40 * @RDMA_RESTRACK_CM_ID: Connection Manager ID (CM_ID) 70 * struct rdma_restrack_entry - metadata per-entry 91 * @kref: Protect destroy of the resource 119 u32 id; global() member [all...] |
/linux/arch/sh/kernel/cpu/sh2a/ |
H A D | setup-sh7201.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2008 Peter Griffin pgriffin@mpc-data.co.uk 183 static struct resource scif0_resources[] = { 189 .name = "sh-sci", 190 .id = 0, 191 .resource = scif0_resources, 203 static struct resource scif1_resources[] = { 209 .name = "sh-sci", 210 .id = 1, 211 .resource = scif1_resources, [all …]
|
/linux/fs/resctrl/ |
H A D | internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * cpumask_any_housekeeping() - Choose any CPU in @mask, preferring those that 49 struct kernfs_fs_context *kfc = fc->fs_private; in rdt_fc2context() 55 * struct mon_evt - Properties of a monitor event 56 * @evtid: event id 57 * @rid: resource id for this event 81 * struct mon_data - Monitoring details for each event file. 83 * @rid: Resource id associated with the event file. 84 * @evtid: Event id associated with the event file. 89 * is the id of the L3 cache that all domains to be [all …]
|
/linux/arch/arm/mach-omap1/ |
H A D | gpio16xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/ 11 #include <linux/platform_data/gpio-omap.h> 12 #include <linux/soc/ti/omap1-io.h> 28 static struct resource omap16xx_mpu_gpio_resources[] = { 31 .end = OMAP1_MPUIO_VBASE + SZ_2K - 1, 60 .id = 0, 65 .resource = omap16xx_mpu_gpio_resources, 69 static struct resource omap16xx_gpio1_resources[] = { 72 .end = OMAP1610_GPIO1_BASE + SZ_2K - 1, [all …]
|
/linux/arch/arm/plat-orion/ |
H A D | common.c | 2 * arch/arm/plat-orion/common.c 4 * Marvell Orion SoC common setup code used by multiple mach-/common.c 14 #include <linux/dma-mapping.h> 21 #include <linux/platform_data/dma-mv_xor.h> 22 #include <linux/platform_data/usb-ehci-orion.h> 53 struct resource *resources, in fill_resources() 57 device->resource = resources; in fill_resources() 58 device->num_resources = 1; in fill_resources() 65 struct resource *resources, in fill_resources_irq() 72 device->num_resources++; in fill_resources_irq() [all …]
|
/linux/drivers/base/ |
H A D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * platform.c - platform 'pseudo' bus for legacy devices 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 8 * Please see Documentation/driver-api/driver-model/platform.rst for more 20 #include <linux/dma-mapping.h> 28 #include <linux/clk/clk-conf.h> 34 #include <linux/dma-map-ops.h> 48 * platform_get_resource - get a resource for a device 50 * @type: resource type [all …]
|
/linux/drivers/zorro/ |
H A D | zorro.c | 4 * Copyright (C) 1995-2003 Geert Uytterhoeven 19 #include <linux/dma-mapping.h> 53 struct zorro_dev *zorro_find_device(zorro_id id, struct zorro_dev *from) in zorro_find_device() argument 63 if (id == ZORRO_WILDCARD || id == z->id) in zorro_find_device() 73 * (128 chunks, physical 0x00200000-0x009fffff). 79 * - z2ram device 80 * - SCSI DMA bounce buffers 82 * FIXME: use the normal resource management 101 start = start < Z2RAM_START ? 0x00000000 : start-Z2RAM_START; in mark_region() 102 end = end > Z2RAM_END ? Z2RAM_SIZE : end-Z2RAM_START; in mark_region() [all …]
|