Home
last modified time | relevance | path

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

12345678910>>...47

/linux/lib/kunit/
H A Dplatform.c1 // SPDX-License-Identifier: GPL-2.0
3 * Test managed platform driver
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.
46 * Allocate a test managed platform device. The device is put when the test completes.
[all …]
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()
28 const int id = -1; in kunit_platform_device_add_test()
34 KUNIT_EXPECT_TRUE(test, dev_is_platform(&pdev->dev)); in kunit_platform_device_add_test()
35 KUNIT_EXPECT_STREQ(test, pdev->name, name); in kunit_platform_device_add_test()
[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 …]
H A Dkeypad.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Samsung Platform - Keypad platform data definitions
12 #include <linux/input/samsung-keypad.h>
15 * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
16 * @pd: Platform data to register to device.
18 * Register the given platform data for use with Samsung Keypad device.
19 * The call will copy the platform data, so the board definitions can
H A Ddevs.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 * Header file for s3c2410 standard platform devices
46 * s3c_set_platdata() - helper for setting platform data
47 * @pd: The default platform data for this device.
48 * @pdsize: The size of the platform data.
52 * platform data of the device.
/linux/drivers/fpga/
H A Ddfl-fme-pr.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2017-2018 Intel Corporation, Inc.
24 * struct dfl_fme_region - FME fpga region data structure
26 * @region: platform device of the FPGA region.
37 * struct dfl_fme_region_pdata - platform data for FME region platform device.
39 * @mgr: platform device of the FPGA manager.
40 * @br: platform device of the FPGA bridge.
50 * struct dfl_fme_bridge - FME fpga bridge data structure
52 * @br: platform device of the FPGA bridge.
61 * struct dfl_fme_br_pdata - platform data for FME bridge platform device.
[all …]
/linux/drivers/media/platform/mediatek/vpu/
H A Dmtk_vpu.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Author: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
20 typedef void (*ipi_handler_t) (void *data,
25 * enum ipi_id - the id of inter-processor interrupt
51 * handle MDP (Media Data Path) job, and vice versa.
67 * enum rst_id - reset id to register reset function for VPU watchdog timeout
71 * @VPU_RST_MDP: MDP (Media Data Path) reset id
82 * vpu_ipi_register - register an ipi function
84 * @pdev: VPU platform device
88 * @priv: private data for IPI handler
[all …]
/linux/Documentation/networking/device_drivers/ethernet/davicom/
H A Ddm9000.rst1 .. SPDX-License-Identifier: GPL-2.0
9 Ben Dooks <ben@simtec.co.uk> <ben-linux@fluff.org>
13 ------------
15 This file describes how to use the DM9000 platform-device based network driver
24 Defining the platform device
25 ----------------------------
27 The minimum set of resources attached to the platform device are as follows:
30 2) The physical address of the data register
35 and then data).
37 An example from arch/arm/mach-s3c/mach-bast.c is::
[all …]
/linux/drivers/platform/mellanox/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
3 # Platform support for Mellanox hardware
7 bool "Platform support for Mellanox hardware"
10 Say Y here to get to see options for platform support for
18 tristate "Mellanox Technologies platform support"
23 platform. The Mellanox systems provide data center networking
31 tristate "Nvidia Data Processor Unit platform driver support"
35 This driver provides support for the Nvidia BF3 Data Processor Units,
37 providing a high performance switching solution for Enterprise Data
38 Centers (EDC) for building Ethernet based clusters, High-Performance
[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)
47 #define platform_get_device_id(pdev) ((pdev)->id_entry)
49 #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type)
83 return ERR_PTR(-EINVAL); in devm_platform_get_and_ioremap_resource()
91 return ERR_PTR(-EINVAL); in devm_platform_ioremap_resource()
[all …]
/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/include/linux/platform_data/
H A Dbrcmfmac.h12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
27 * Platform specific driver functions and data. Through the platform specific
28 * device data functions and data can be provided to help the brcmfmac driver to
29 * operate with the device in combination with the used platform.
34 * Note: the brcmfmac can be loaded as module or be statically built-in into
35 * the kernel. If built-in then do note that it uses module_init (and
37 * create a module with the platform specific data for the brcmfmac and have
38 * it built-in to the kernel then use a higher initcall then device_initcall
40 * but will not pickup the platform data.
42 * When the driver does not "detect" platform driver data then it will continue
[all …]
H A Di2c-s3c2410.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright 2004-2009 Simtec Electronics
6 * S3C - I2C Controller platform_device info
17 * struct s3c2410_platform_i2c - Platform data for s3c I2C.
39 * s3c_i2c0_set_platdata - set platform data for i2c0 device
40 * @i2c: The platform data to set, or NULL for default data.
42 * Register the given platform data for use with the i2c0 device. This
43 * call copies the platform data, so the caller can use __initdata for
46 * This call will set cfg_gpio if is null to the default platform
50 * NULL to ensure that the device is given the default platform data
H A Dmlxreg.h1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
3 * Copyright (C) 2017-2020 Mellanox Technologies Ltd.
14 * enum mlxreg_wdt_type - type of HW watchdog
28 * enum mlxreg_hotplug_kind - kind of hotplug entry
36 * after hardware-firmware synchronization handshake;
57 * enum mlxreg_hotplug_device_action - hotplug device action required for
62 * @MLXREG_HOTPLUG_DEVICE_PLATFORM_ACTION: probe platform device for 'on'
73 * struct mlxreg_core_hotplug_notifier - hotplug notifier block:
86 * struct mlxreg_hotplug_device - I2C device data:
92 * @pdev: platform device, if device is instantiated as a platform device;
[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.
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/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-i2s-audio.c1 // SPDX-License-Identifier: GPL-2.0
3 * dw-hdmi-i2s-audio.c
9 #include <linux/dma-mapping.h>
15 #include <sound/hdmi-codec.h>
17 #include "dw-hdmi.h"
18 #include "dw-hdmi-audio.h"
20 #define DRIVER_NAME "dw-hdmi-i2s-audio"
25 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_write()
27 audio->write(hdmi, val, offset); in hdmi_write()
32 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_read()
[all …]
/linux/arch/powerpc/include/asm/
H A Dpmac_pfunc.h1 /* SPDX-License-Identifier: GPL-2.0 */
20 * Arguments to a platform function call.
41 * returns an instance data to be passed around subsequent calls, and
43 * locking policy or per-function instance data.
81 int (*write_i2c)(PMF_STD_ARGS, u32 len, const u8 *data);
86 int (*write_cfg)(PMF_STD_ARGS, u32 offset, u32 len, const u8 *data);
91 int (*write_i2c_sub)(PMF_STD_ARGS, u8 subaddr, u32 len, const u8 *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
118 * advance and associated with the device. The data structures are
[all …]
/linux/security/integrity/platform_certs/
H A Dplatform_keyring.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Platform keyring for firmware/platform keys
18 * add_to_platform_keyring - Add to platform keyring without validation.
20 * @data: The blob holding the key
21 * @len: The length of the data blob
23 * Add a key to the platform keyring without checking its trust chain. This
26 void __init add_to_platform_keyring(const char *source, const void *data, in add_to_platform_keyring() argument
34 rc = integrity_load_cert(INTEGRITY_KEYRING_PLATFORM, source, data, len, in add_to_platform_keyring()
37 pr_info("Error adding keys to platform keyring %s\n", source); in add_to_platform_keyring()
51 pr_notice("Platform Keyring initialized\n"); in platform_keyring_init()
/linux/Documentation/arch/powerpc/
H A Dbootwrapper.rst17 others. U-Boot is typically found on embedded PowerPC hardware, but there
28 U-Boot (for versions that don't understand the device
31 are all embedded inside the U-Boot uImage file format
32 with boot wrapper code that extracts data from the old
33 bd_info structure and loads the data into the device
37 bd_info structure used in the old U-Boot interfaces,
38 cuImages are platform specific. Each specific
39 U-Boot platform has a different platform init file
40 which populates the embedded device tree with data
41 from the platform specific bd_info file. The platform
[all …]
/linux/drivers/platform/x86/
H A Dsamsung-galaxybook.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Implementation inspired by existing x86 platform drivers.
33 #define DRIVER_NAME "samsung-galaxybook"
36 struct platform_device *platform; member
81 #define GB_ATTR_LANGUAGE_CODE "en_US.UTF-8"
173 /* guid 8246028d-8bca-4a55-ba0f-6f1e6b921b8f */
236 status = acpi_evaluate_object_typed(galaxybook->acpi->handle, method, &input, &output, in galaxybook_acpi_method()
240 dev_err(&galaxybook->acpi->dev, "failed to execute method %s; got %s\n", in galaxybook_acpi_method()
242 return -EIO; in galaxybook_acpi_method()
247 if (out_obj->buffer.length != len || out_obj->buffer.length < GB_SAWB_GB_GUNM_POS + 1) { in galaxybook_acpi_method()
[all …]
/linux/drivers/usb/musb/
H A Dmusb_io.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Copyright (C) 2005-2006 by Texas Instruments
7 * Copyright (C) 2006-2007 Nokia Corporation
15 #define musb_ep_select(_mbase, _epnum) musb->io.ep_select((_mbase), (_epnum))
18 * struct musb_io - IO functions for MUSB
19 * @ep_offset: platform specific function to get end point offset
20 * @ep_select: platform specific function to select end point
21 * @fifo_offset: platform specific function to get fifo offset
22 * @read_fifo: platform specific function to read fifo
23 * @write_fifo: platform specific function to write fifo
[all …]
/linux/include/uapi/linux/
H A Dpfrut.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Platform Firmware Runtime Update header
16 * PFRU_IOC_SET_REV - _IOW(PFRUT_IOCTL_MAGIC, 0x01, unsigned int)
19 * * 0 - success
20 * * -EFAULT - fail to read the revision id
21 * * -EINVAL - user provides an invalid revision id
23 * Set the Revision ID for Platform Firmware Runtime Update.
28 * PFRU_IOC_STAGE - _IOW(PFRUT_IOCTL_MAGIC, 0x02, unsigned int)
31 * * 0 - success
32 * * -EINVAL - stage phase returns invalid result
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-secvar22 and is expected to be "ibm,edk2-compat-v1".
27 format string takes the form "ibm,plpks-sb-v<version>" in the
30 the form "ibm,plpks-sb-v0", indicating that the key management
38 representation. The data and size can be determined by reading
52 variable. In other words, it represents the size of the data.
54 What: /sys/firmware/secvar/vars/<variable_name>/data
57 Description: A read-only file containing the value of the variable. The size
58 of the file represents the maximum size of the variable data.
63 Description: A write-only file that is used to submit the new value for the
65 the variable data that can be written.
[all …]
/linux/Documentation/admin-guide/
H A Ddell_rbu.rst49 /sys/class/firmware/dell_rbu/data
50 /sys/devices/platform/dell_rbu/image_type
51 /sys/devices/platform/dell_rbu/data
52 /sys/devices/platform/dell_rbu/packet_size
66 echo packet > /sys/devices/platform/dell_rbu/image_type
71 echo XXXX > /sys/devices/platform/dell_rbu/packet_size
74 packets of data arranged back to back. It can be done as follows:
82 This file is then copied to /sys/class/firmware/dell_rbu/data.
83 Once this file gets to the driver, the driver extracts packet_size data from
90 to the data file as is without any change to the BIOS image itself.
[all …]
/linux/sound/soc/intel/avs/boards/
H A Des8336.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <sound/soc-acpi.h>
34 { "speaker-enable-gpios", &enable_gpio, 1, ACPI_GPIO_QUIRK_ONLY_GPIOIO },
41 struct snd_soc_card *card = w->dapm->card; in avs_es8336_speaker_power_event()
42 struct avs_card_drvdata *data; in avs_es8336_speaker_power_event() local
105 struct avs_card_drvdata *data; avs_es8336_codec_init() local
142 struct avs_card_drvdata *data = snd_soc_card_get_drvdata(runtime->card); avs_es8336_codec_exit() local
201 struct snd_soc_dai_link_component *platform; avs_create_dai_link() local
253 struct avs_card_drvdata *data = snd_soc_card_get_drvdata(card); avs_card_resume_post() local
263 struct avs_card_drvdata *data; avs_es8336_probe() local
[all...]

12345678910>>...47