/linux-6.12.1/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 …]
|
/linux-6.12.1/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> 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-6.12.1/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 …]
|
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-6.12.1/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 …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 (c) 2009-2024 Broadcom. All Rights Reserved. The term 21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 39 * vmw_resource_mob_attach - Mark a resource as attached to its backing mob 40 * @res: The resource 44 struct vmw_bo *gbo = res->guest_memory_bo; in vmw_resource_mob_attach() 45 struct rb_node **new = &gbo->res_tree.rb_node, *parent = NULL; in vmw_resource_mob_attach() 47 dma_resv_assert_held(gbo->tbo.base.resv); in vmw_resource_mob_attach() 48 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach() 49 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 …]
|
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 …]
|
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-6.12.1/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 …]
|
/linux-6.12.1/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, 150 static struct resource mcf_fec1_resources[] = { [all …]
|
/linux-6.12.1/Documentation/netlink/specs/ |
D | devlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 - 12 name: sb-pool-type 14 - 16 - 18 - 20 name: port-type 22 - 24 - [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/drivers/base/ |
D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/devres.c - device resource management 31 * the alignment of a 64-bit integer. 40 void *id; member 42 /* -- 8 pointers */ 48 node->name = name; in set_node_dbginfo() 49 node->size = size; in set_node_dbginfo() 61 op, node, node->name, node->size); in devres_dbg() 70 trace_devres_log(dev, op, node, node->name, node->size); in devres_log() 90 if (node->release == &group_open_release) in node_to_group() [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/arch/sh/kernel/cpu/sh4a/ |
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 …]
|
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 …]
|
/linux-6.12.1/drivers/extcon/ |
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-6.12.1/arch/mips/loongson32/common/ |
D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2011-2016 Zhang, Keguang <keguang.zhang@gmail.com> 7 #include <linux/dma-mapping.h> 39 .id = PLAT8250_DEV_PLATFORM, 50 clk = clk_get(&pdev->dev, pdev->name); in ls1x_serial_set_uartclk() 53 pdev->name, PTR_ERR(clk)); in ls1x_serial_set_uartclk() 58 for (p = pdev->dev.platform_data; p->flags != 0; ++p) in ls1x_serial_set_uartclk() 59 p->uartclk = clk_get_rate(clk); in ls1x_serial_set_uartclk() 79 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init() 80 if (plat_dat->bus_id) { in ls1x_eth_mux_init() [all …]
|
/linux-6.12.1/drivers/misc/vmw_vmci/ |
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-6.12.1/include/rdma/ |
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) 66 * struct rdma_restrack_entry - metadata per-entry 87 * @kref: Protect destroy of the resource 91 * @comp: Signal that all consumers of resource are completed their work 95 * @task: owner of resource tracking entity 113 * @user: user resource 117 * @id: ID to expose to users [all …]
|
/linux-6.12.1/include/linux/ |
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-6.12.1/include/linux/fsl/ |
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 …]
|