Home
last modified time | relevance | path

Searched +full:platform +full:- +full:name (Results 1 – 25 of 1035) sorted by relevance

12345678910>>...42

/linux/drivers/base/
H A Dplatform.c1 // 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>
43 .init_name = "platform",
48 * platform_get_resource - get a resource for a device
[all …]
/linux/arch/sh/drivers/
H A Dplatform_early.c1 // SPDX--License-Identifier: GPL-2.0
14 while (id->name[0]) { in platform_match_id()
15 if (strcmp(pdev->name, id->name) == 0) { in platform_match_id()
16 pdev->id_entry = id; in platform_match_id()
30 if (pdev->driver_override) in platform_match()
31 return !strcmp(pdev->driver_override, drv->name); in platform_match()
34 if (pdrv->id_table) in platform_match()
35 return platform_match_id(pdrv->id_table, pdev) != NULL; in platform_match()
37 /* fall-back to driver name match */ in platform_match()
38 return (strcmp(pdev->name, drv->name) == 0); in platform_match()
[all …]
/linux/lib/kunit/
H A Dplatform-test.c1 // SPDX-License-Identifier: GPL-2.0
3 * KUnit test for KUnit platform driver infrastructure.
12 * Test that kunit_platform_device_alloc() creates a platform device.
17 kunit_platform_device_alloc(test, "kunit-platform", 1)); in kunit_platform_device_alloc_test()
21 * Test that kunit_platform_device_add() registers a platform device on the
22 * platform bus with the proper name and id.
27 const char *name = "kunit-platform-add"; in kunit_platform_device_add_test() local
28 const int id = -1; in kunit_platform_device_add_test()
30 pdev = kunit_platform_device_alloc(test, name, id); in kunit_platform_device_add_test()
34 KUNIT_EXPECT_TRUE(test, dev_is_platform(&pdev->dev)); in kunit_platform_device_add_test()
[all …]
H A Dplatform.c1 // SPDX-License-Identifier: GPL-2.0
3 * Test managed platform driver
15 const char *name; member
24 pdev = platform_device_alloc(params->name, params->id); in kunit_platform_device_alloc_init()
26 return -ENOMEM; in kunit_platform_device_alloc_init()
28 res->data = pdev; in kunit_platform_device_alloc_init()
35 struct platform_device *pdev = res->data; in kunit_platform_device_alloc_exit()
41 * kunit_platform_device_alloc() - Allocate a KUnit test managed platform device
43 * @name: device name of platform device to alloc
44 * @id: identifier of platform device to alloc.
[all …]
/linux/arch/arm/mach-s3c/
H A Dsdhci.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * S3C Platform - SDHCI (HSMMC) platform data definitions
17 #include <linux/platform_data/mmc-sdhci-s3c.h>
20 /* s3c_sdhci_set_platdata() - common helper for setting SDHCI platform data
21 * @pd: The default platform data for this device.
22 * @set: Pointer to the platform data to fill in.
28 * s3c_sdhci0_set_platdata - Set platform data for S3C SDHCI device.
29 * @pd: Platform data to register to device.
31 * Register the given platform data for use withe S3C SDHCI device.
32 * The call will copy the platform data, so the board definitions can
[all …]
/linux/Documentation/driver-api/driver-model/
H A Dplatform.rst2 Platform Devices and Drivers
6 platform bus: platform_device, and platform_driver. This pseudo-bus
8 like those used to integrate peripherals on many system-on-chip
13 Platform devices
15 Platform devices are devices that typically appear as autonomous
16 entities in the system. This includes legacy port-based devices and
18 into system-on-chip platforms. What they usually have in common
23 Platform devices are given a name, used in driver binding, and a
27 const char *name;
35 Platform drivers
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-platform1 What: /sys/bus/platform/devices/.../driver_override
6 will override standard OF, ACPI, ID table, and name matching.
7 When specified, only a driver with a name matching the value
10 to the driver_override file (echo vfio-platform > \
16 driver with a matching name is currently loaded in the kernel,
18 devices to opt-out of driver binding using a driver_override
19 name such as "none". Only a single driver may be specified in
22 What: /sys/bus/platform/devices/.../numa_node
26 This file contains the NUMA node to which the platform device
32 What: /sys/bus/platform/devices/.../msi_irqs/
[all …]
H A Dsysfs-platform-dfl-fme1 What: /sys/bus/platform/devices/dfl-fme.0/ports_num
5 Description: Read-only. One DFL FPGA device may have more than 1
9 What: /sys/bus/platform/devices/dfl-fme.0/bitstream_id
13 Description: Read-only. It returns Bitstream (static FPGA region)
17 What: /sys/bus/platform/devices/dfl-fme.0/bitstream_metadata
21 Description: Read-only. It returns Bitstream (static FPGA region) meta
25 What: /sys/bus/platform/devices/dfl-fme.0/cache_size
29 Description: Read-only. It returns cache size of this FPGA device.
31 What: /sys/bus/platform/devices/dfl-fme.0/fabric_version
35 Description: Read-only. It returns fabric version of this FPGA device.
[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)
24 const char *name; member
35 * Driver name to force a match. Do not set directly, because core
47 #define platform_get_device_id(pdev) ((pdev)->id_entry)
49 #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type)
[all …]
/linux/sound/soc/qcom/
H A Dcommon.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <dt-bindings/sound/qcom,q6afe.h>
8 #include <linux/input-event-codes.h>
30 struct device_node *platform = NULL; in qcom_snd_parse_of() local
32 struct device *dev = card->dev; in qcom_snd_parse_of()
39 if (ret == 0 && !card->name) in qcom_snd_parse_of()
43 dev_err(dev, "Error parsing card name: %d\n", ret); in qcom_snd_parse_of()
47 if (of_property_read_bool(dev->of_node, "widgets")) { in qcom_snd_parse_of()
54 if (of_property_read_bool(dev->of_node, "audio-routing")) { in qcom_snd_parse_of()
55 ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); in qcom_snd_parse_of()
[all …]
/linux/sound/soc/intel/boards/
H A Dcht_bsw_rt5672.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms
21 #include <sound/soc-acpi.h>
23 #include "../atom/sst-atom-controls.h"
24 #include "../common/soc-intel-quirks.h"
27 /* The platform clock #3 outputs 19.2Mhz clock to codec as I2S MCLK */
29 #define CHT_CODEC_DAI "rt5670-aif1"
53 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
54 struct snd_soc_card *card = dapm->card; in platform_clock_control()
61 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
[all …]
H A Dcht_bsw_rt5645.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-rt5645.c - ASoc Machine driver for Intel Cherryview-based platforms
25 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
28 #include "../common/soc-intel-quirks.h"
31 #define CHT_CODEC_DAI1 "rt5645-aif1"
32 #define CHT_CODEC_DAI2 "rt5645-aif2"
69 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
70 struct snd_soc_card *card = dapm->card; in platform_clock_control()
80 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
[all …]
H A Dehl_rt5660.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * ehl_rt5660 - ASOC Machine driver for Elkhart Lake platforms
21 #include <sound/soc-acpi.h>
76 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in hdmi_init()
80 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in hdmi_init()
82 return -ENOMEM; in hdmi_init()
85 pcm->device = rtd->dai_link->id; in hdmi_init()
86 pcm->codec_dai = dai; in hdmi_init()
88 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in hdmi_init()
98 if (list_empty(&ctx->hdmi_pcm_list)) in card_late_probe()
[all …]
H A Dbytcht_cx2072x.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <sound/soc-acpi.h>
19 #include "../atom/sst-atom-controls.h"
66 { "headset-gpios", &byt_cht_cx2072x_headset_gpios, 1 },
72 struct snd_soc_card *card = rtd->card; in byt_cht_cx2072x_init()
73 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in byt_cht_cx2072x_init()
76 if (devm_acpi_dev_add_driver_gpios(codec->dev, in byt_cht_cx2072x_init()
78 dev_warn(rtd->dev, "Unable to add GPIO mapping table\n"); in byt_cht_cx2072x_init()
80 card->dapm.idle_bias_off = true; in byt_cht_cx2072x_init()
86 dev_err(rtd->dev, "Could not set sysclk\n"); in byt_cht_cx2072x_init()
[all …]
H A Dcht_bsw_max98090_ti.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht-bsw-max98090.c - ASoc Machine driver for Intel Cherryview-based
24 #include <sound/soc-acpi.h>
27 #include "../atom/sst-atom-controls.h"
45 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control()
46 struct snd_soc_card *card = dapm->card; in platform_clock_control()
52 if (ctx->quirks & QUIRK_PMC_PLT_CLK_0) in platform_clock_control()
57 dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); in platform_clock_control()
58 return -EIO; in platform_clock_control()
62 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
[all …]
H A Dbytcht_da7213.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * bytcht-da7213.c - ASoc Machine driver for Intel Baytrail and
4 * Cherrytrail-based platforms, with Dialog DA7213 codec
7 * Author: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
21 #include <sound/soc-acpi.h>
23 #include "../atom/sst-atom-controls.h"
46 /* Assume Mic1 is linked to Headset and Mic2 to on-board mic */
50 /* SOC-codec link */
70 rate->min = rate->max = 48000; in codec_fixup()
71 channels->min = channels->max = 2; in codec_fixup()
[all …]
/linux/Documentation/firmware-guide/acpi/
H A Denumeration.rst1 .. SPDX-License-Identifier: GPL-2.0
13 that are accessed through memory-mapped registers.
15 In order to support this and re-use the existing drivers as much as
18 - Devices that have no bus connector resource are represented as
19 platform devices.
21 - Devices behind real busses where there is a connector resource
30 The ACPI implementation enumerates devices behind busses (platform, SPI,
34 This means that when ACPI_HANDLE(dev) returns non-NULL the device was
36 device-specific configuration. There is an example of this below.
38 Platform bus support
[all …]
/linux/Documentation/driver-api/backlight/
H A Dlp855x-driver.rst15 -----------
36 Platform data for lp855x
37 ------------------------
39 For supporting platform specific data, the lp855x platform data can be used.
41 * name:
42 Backlight driver name. If it is not defined, default name is set.
48 Platform specific PWM period value. unit is nano.
58 1) lp8552 platform data: i2c register mode with new eeprom data::
68 .name = "lcd-bl",
75 2) lp8556 platform data: pwm input mode with default rom data::
/linux/arch/powerpc/include/asm/
H A Dpmac_pfunc.h1 /* SPDX-License-Identifier: GPL-2.0 */
20 * Arguments to a platform function call.
43 * locking policy or per-function instance data.
116 * Drivers who expose platform functions register at init time, this
117 * causes the platform functions for that device node to be parsed in
119 * partially public so a driver can walk the list of platform functions
135 /* The name is the "xxx" in "platform-do-xxx", this is how
136 * platform functions are identified by this code. Some functions
140 const char *name; member
144 * with the same name and different flag
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-devices-system-cpu2 Date: 13-May-2014
9 all per-CPU defaults at the same time.
12 What: /sys/devices/system/cpu/cpu[0-9]+/dscr
13 Date: 13-May-2014
29 socket number, but the actual value is architecture and platform
34 Description: the CPU die ID of cpuX. Typically it is the hardware platform's
36 architecture and platform dependent.
40 Description: the CPU core ID of cpuX. Typically it is the hardware platform's
42 architecture and platform dependent.
46 Description: the cluster ID of cpuX. Typically it is the hardware platform's
[all …]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_wa_test.c1 // SPDX-License-Identifier: GPL-2.0
19 const char *name; member
20 enum xe_platform platform; member
29 .name = #platform__ " (" #graphics_step__ ")", \
30 .platform = XE_ ## platform__, \
38 .name = #platform__ "_" #subplatform__ " (" #graphics_step__ ")", \
39 .platform = XE_ ## platform__, \
47 .name = #platform__ " (g:" #graphics_step__ ", m:" #media_step__ ")",\
48 .platform = XE_ ## platform__, \
82 strscpy(desc, t->name, KUNIT_PARAM_DESC_SIZE); in platform_desc()
[all …]
/linux/Documentation/leds/
H A Dleds-lp5523.rst9 Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com)
12 -----------
15 The name of each channel is configurable in the platform data - name and label.
16 There are three options to make the channel name.
18 a) Define the 'name' in the platform data
20 To make specific channel name, then use 'name' platform data.
22 - /sys/class/leds/R1 (name: 'R1')
23 - /sys/class/leds/B1 (name: 'B1')
25 b) Use the 'label' with no 'name' field
27 For one device name with channel number, then use 'label'.
[all …]
/linux/sound/soc/intel/avs/boards/
H A Dprobe.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright(c) 2021-2022 Intel Corporation
12 #include <sound/soc-acpi.h>
16 SND_SOC_DAILINK_DEF(platform, DAILINK_COMP_ARRAY(COMP_PLATFORM("probe-platform")));
20 .name = "Compress Probe Capture",
22 SND_SOC_DAILINK_REG(probe_cp, dummy, platform),
28 struct device *dev = &pdev->dev; in avs_probe_mb_probe()
37 return -ENOMEM; in avs_probe_mb_probe()
39 card->name = "avs_probe_mb"; in avs_probe_mb_probe()
40 card->dev = dev; in avs_probe_mb_probe()
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dmt8195-mt6359.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/mt8195-mt6359.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Trevor Wu <trevor.wu@mediatek.com>
16 - $ref: sound-card-common.yaml#
21 - mediatek,mt8195_mt6359_rt1019_rt5682
22 - mediatek,mt8195_mt6359_rt1011_rt5682
23 - mediatek,mt8195_mt6359_max98390_rt5682
27 description: User specified audio sound card name
[all …]
/linux/drivers/firmware/
H A Dsysfb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com>
8 * Simple-Framebuffer support
9 * Create a platform-device for any available boot framebuffer. The
10 * simple-framebuffer platform device is already available on DT systems, so
12 * platform device compatible with the "simple-framebuffer" DT object. If
14 * "vesa-framebuffer", "efi-framebuffer" or "platform-framebuffer" device and
16 * to pick these devices up without messing with simple-framebuffer drivers.
19 * If CONFIG_SYSFB_SIMPLEFB is not selected, never register "simple-framebuffer"
20 * platform devices, but only use legacy framebuffer devices for
[all …]

12345678910>>...42