Home
last modified time | relevance | path

Searched +full:resource +full:- +full:id (Results 1 – 25 of 1144) sorted by relevance

12345678910>>...46

/linux/arch/arm/mach-pxa/
H A Ddevices.c1 // 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 Dtwl4030-audio.c1 // 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 Dmax8925-core.c1 // 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 Dcmd-db.c1 /* 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 Ddevs.c1 // 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/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cotable.c1 // 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 …]
H A Dvmwgfx_resource.c1 // 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 …]
H A Dvmwgfx_shader.c1 // 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 …]
H A Dvmwgfx_so.c1 // 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 Dvmwgfx_streamoutput.c1 // 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/arch/arm/mach-sa1100/
H A Dgeneric.c1 // 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/Documentation/netlink/specs/
H A Ddevlink.yaml1 # 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/drivers/infiniband/core/
H A Drestrack.c1 // 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/arch/sh/kernel/cpu/sh4a/
H A Dsetup-sh7723.c1 // 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 Dsetup-sh7343.c1 // 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 Dsetup-sh7770.c1 // 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 …]
/linux/drivers/extcon/
H A Ddevres.c1 // 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/arch/mips/loongson32/common/
H A Dplatform.c1 // 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/drivers/misc/vmw_vmci/
H A Dvmci_resource.c1 // 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 Dmc.h1 /* 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/linux/
H A Dplatform_device.h1 /* 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/include/rdma/
H A Drestrack.h1 /* 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/arch/sh/kernel/cpu/sh2a/
H A Dsetup-sh7201.c1 // 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/arch/arm/mach-omap1/
H A Dgpio16xx.c1 // 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 Dcommon.c2 * 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 …]

12345678910>>...46