/linux/include/media/ |
H A D | v4l2-fwnode.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd. 22 #include <media/v4l2-mediabus.h> 25 * struct v4l2_fwnode_endpoint - the endpoint data structure 27 * @bus_type: bus type 28 * @bus: bus configuration data structure 29 * @bus.parallel: embedded &struct v4l2_mbus_config_parallel. 30 * Used if the bus is parallel. 31 * @bus.mipi_csi1: embedded &struct v4l2_mbus_config_mipi_csi1. 32 * Used if the bus is MIPI Alliance's Camera Serial [all …]
|
H A D | v4l2-mediabus.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Media Bus API header 11 #include <linux/v4l2-mediabus.h> 17 * bus configuration parameter. One and only one bit of each group of flags 20 * reporting the media bus configuration. For example, it is invalid to set or 60 /* FIELD = 0/1 - Field1 (odd)/Field2 (even) */ 62 /* FIELD = 1/0 - Field1 (odd)/Field2 (even) */ 64 /* Active state of Sync-on-green (SoG) signal, 0/1 for LOW/HIGH respectively. */ 71 /* Clock non-continuous mode support. */ 77 * struct v4l2_mbus_config_mipi_csi2 - MIPI CSI-2 data bus configuration [all …]
|
/linux/drivers/bus/ |
H A D | mips_cdmm.c | 2 * Bus driver for MIPS Common Device Memory Map (CDMM). 4 * Copyright (C) 2014-2015 Imagination Technologies Ltd. 45 /* Bus operations */ 53 for (; table->type; ++table) { in mips_cdmm_lookup() 54 ret = (dev->type == table->type); in mips_cdmm_lookup() 67 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL; in mips_cdmm_match() 75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); in mips_cdmm_uevent() 79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); in mips_cdmm_uevent() 83 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev); in mips_cdmm_uevent() 87 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type); in mips_cdmm_uevent() [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | devlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 - 11 type: enum 12 name: sb-pool-type 14 - 16 - 18 - 19 type: enum 20 name: port-type [all …]
|
/linux/sound/hda/ext/ |
H A D | hdac_ext_stream.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * hdac-ext-stream.c - HD-audio extended stream operations. 22 * snd_hdac_ext_host_stream_setup - Setup a HOST stream. 24 * @code_loading: Whether the stream is for PCM or code-loading. 30 return hext_stream->host_setup(hdac_stream(hext_stream), code_loading); in snd_hdac_ext_host_stream_setup() 35 * snd_hdac_apl_host_stream_setup - Setup a HOST stream following procedure 38 * @code_loading: Whether the stream is for PCM or code-loading. 47 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, false); in snd_hdac_apl_host_stream_setup() 49 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, true); in snd_hdac_apl_host_stream_setup() 55 * snd_hdac_ext_stream_init - initialize each stream (aka device) [all …]
|
/linux/include/linux/device/ |
H A D | bus.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * bus.h - the bus-specific portions of the driver model 5 * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> 6 * Copyright (c) 2004-2009 Greg Kroah-Hartman <gregkh@suse.de> 7 * Copyright (c) 2008-2009 Novell Inc. 8 * Copyright (c) 2012-2019 Greg Kroah-Hartman <gregkh@linuxfoundation.org> 9 * Copyright (c) 2012-2019 Linux Foundation 11 * See Documentation/driver-api/driver-model/ for more information. 25 * struct bus_type - The bus type of the device 27 * @name: The name of the bus. [all …]
|
/linux/Documentation/driver-api/driver-model/ |
H A D | porting.rst | 12 Please refer to `Documentation/driver-api/driver-model/*.rst` for definitions of 16 at the bus driver layer. This was intentional, to minimize the 18 of bus drivers. 21 be embedded in larger, bus-specific objects. Fields in these generic 22 objects can replace fields in the bus-specific objects. 28 # mount -t sysfs sysfs /sys 36 Step 1: Registering the bus driver. 39 - Define a struct bus_type for the bus driver:: 46 - Register the bus type. 48 This should be done in the initialization function for the bus type, [all …]
|
H A D | bus.rst | 2 Bus Types 9 int bus_register(struct bus_type * bus); 15 Each bus type in the kernel (PCI, USB, etc) should declare one static 16 object of this type. They must initialize the name field, and may 32 When a bus driver is initialized, it calls bus_register. This 33 initializes the rest of the fields in the bus object and inserts it 34 into a global list of bus types. Once the bus object is registered, 35 the fields in it are usable by the bus driver. 45 them are inherently bus-specific. Drivers typically declare an array 46 of device IDs of devices they support that reside in a bus-specific [all …]
|
/linux/arch/mips/pci/ |
H A D | ops-bcm63xx.c | 15 #include "pci-bcm63xx.h" 64 static int bcm63xx_setup_cfg_access(int type, unsigned int busn, in bcm63xx_setup_cfg_access() argument 90 /* type 0 cycle for local bus, type 1 cycle for anything else */ in bcm63xx_setup_cfg_access() 91 if (type != 0) { in bcm63xx_setup_cfg_access() 92 /* FIXME: how to specify bus ??? */ in bcm63xx_setup_cfg_access() 100 static int bcm63xx_do_cfg_read(int type, unsigned int busn, in bcm63xx_do_cfg_read() argument 109 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_read() 121 static int bcm63xx_do_cfg_write(int type, unsigned int busn, in bcm63xx_do_cfg_write() argument 130 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_write() 147 static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_read() argument [all …]
|
H A D | ops-loongson2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #define MAX_DEV_NUM (31 - ID_SEL_BEGIN) 33 struct pci_bus *bus, in loongson_pcibios_config_access() argument 37 u32 busnum = bus->number; in loongson_pcibios_config_access() 38 u32 addr, type; in loongson_pcibios_config_access() local 46 /* board-specific part,currently,only fuloong2f,yeeloong2f in loongson_pcibios_config_access() 69 /* Type 0 configuration for onboard PCI bus */ in loongson_pcibios_config_access() 71 return -1; in loongson_pcibios_config_access() 74 type = 0; in loongson_pcibios_config_access() 76 /* Type 1 configuration for offboard PCI bus */ in loongson_pcibios_config_access() [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-opp-tacoma.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 12 compatible = "ibm,tacoma-bmc", "aspeed,ast2600"; 15 stdout-path = &uart5; 24 reserved-memory { 25 #address-cells = <1>; [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | utresdecode.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: utresdecode - Resource descriptor keyword strings 28 "0 - Good Configuration", 29 "1 - Acceptable Configuration", 30 "2 - Suboptimal Configuration", 31 "3 - ***Invalid Configuration***", 86 "Type C", 87 "Type D", 88 "Unknown Type", 89 "Unknown Type" [all …]
|
/linux/drivers/pci/hotplug/ |
H A D | ibmphp_res.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 25 static void update_resources(struct bus_node *bus_cur, int type, int rangeno); 29 static int add_bus_range(int type, struct range_node *, struct bus_node *); 49 newbus->busno = busno; in alloc_error_bus() 51 newbus->busno = curr->bus_num; in alloc_error_bus() 52 list_add_tail(&newbus->bus_list, &gbuses); in alloc_error_bus() 69 rs->busno = curr->bus_num; in alloc_resources() 70 rs->devfunc = curr->dev_fun; in alloc_resources() 71 rs->start = curr->start_addr; in alloc_resources() [all …]
|
/linux/Documentation/devicetree/bindings/dma/ |
H A D | adi,axi-dmac.txt | 1 Analog Devices AXI-DMAC DMA controller 4 - compatible: Must be "adi,axi-dmac-1.00.a". 5 - reg: Specification for the controllers memory mapped register map. 6 - interrupts: Specification for the controllers interrupt. 7 - clocks: Phandle and specifier to the controllers AXI interface clock 8 - #dma-cells: Must be 1. 10 Required sub-nodes: 11 - adi,channels: This sub-node must contain a sub-node for each DMA channel. For 12 the channel sub-nodes the following bindings apply. They must match the 15 Required properties for adi,channels sub-node: [all …]
|
H A D | arm-pl08x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dma/arm-pl08x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vinod Koul <vkoul@kernel.org> 13 - $ref: /schemas/arm/primecell.yaml# 14 - $ref: dma-controller.yaml# 22 - arm,pl080 23 - arm,pl081 25 - compatible [all …]
|
/linux/drivers/xen/xenbus/ |
H A D | xenbus_probe_backend.c | 5 * Copyright (C) 2005 Mike Wray, Hewlett-Packard 58 /* backend/<type>/<fe-uuid>/<id> => <type>-<fe-domid>-<id> */ 62 const char *devid, *type, *frontend; in backend_bus_id() local 65 type = strchr(nodename, '/'); in backend_bus_id() 66 if (!type) in backend_bus_id() 67 return -EINVAL; in backend_bus_id() 68 type++; in backend_bus_id() 69 typelen = strcspn(type, "/"); in backend_bus_id() 70 if (!typelen || type[typelen] != '/') in backend_bus_id() 71 return -EINVAL; in backend_bus_id() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-siox | 1 What: /sys/bus/siox/devices/siox-X/active 3 Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.d… 5 On reading represents the current state of the bus. If it 6 contains a "0" the bus is stopped and connected devices are 8 When the file contains a "1" the bus is operated and periodically 9 does a push-pull cycle to write and read data from the 12 When writing a "0" or "1" the bus moves to the described state. 14 What: /sys/bus/siox/devices/siox-X/device_add 16 Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.d… 18 Write-only file. Write [all …]
|
H A D | sysfs-bus-usb | 1 What: /sys/bus/usb/devices/<INTERFACE>/authorized 9 by writing INTERFACE to /sys/bus/usb/drivers_probe 10 This allows to avoid side-effects with drivers 15 What: /sys/bus/usb/devices/usbX/interface_authorized_default 22 What: /sys/bus/usb/device/.../authorized 28 drivers, non-authorized one are not. By default, wired 31 What: /sys/bus/usb/drivers/.../new_id 33 Contact: linux-usb@vger.kernel.org 48 # echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id 53 # echo "0458 7045 0 0458 704c" > /sys/bus/usb/drivers/foo/new_id [all …]
|
/linux/arch/x86/pci/ |
H A D | direct.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * direct.c - Low-level direct PCI config space access 13 * (4096 bytes per PCI function) configuration space with type 1 17 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ argument 18 (0x80000000 | ((reg & 0xF00) << 16) | (bus << 16) \ 21 static int pci_conf1_read(unsigned int seg, unsigned int bus, in pci_conf1_read() argument 26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_conf1_read() 27 *value = -1; in pci_conf1_read() 28 return -EINVAL; in pci_conf1_read() 33 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_read() [all …]
|
H A D | intel_mid_pci.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * - configuration space is memory mapped (as defined by MCFG) 9 * - Lincroft devices also have a real, type 1 configuration space 10 * - Early Lincroft silicon has a type 1 access bug that will cause 11 * a hang if non-existent devices are accessed 12 * - some devices have the "fixed BAR" capability, which means 17 * Lincroft writes to type 1 space. But only read/write if the device 36 #include <asm/intel-family.h> 37 #include <asm/intel-mid.h> 58 * fixed_bar_cap - return the offset of the fixed BAR cap if found [all …]
|
/linux/drivers/interconnect/qcom/ |
H A D | icc-rpm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <linux/soc/qcom/smd-rpm.h> 11 #include <dt-bindings/interconnect/qcom,rpm-icc.h> 13 #include <linux/interconnect-provider.h> 29 * struct rpm_clk_resource - RPM bus clock resource 30 * @resource_type: RPM resource type of the clock resource 31 * @clock_id: index of the clock resource of a specific resource type 41 * struct qcom_icc_provider - Qualcomm specific interconnect provider 44 * @type: the ICC provider type 47 * @ab_coeff: a percentage-based coefficient for compensating the AB calculations [all …]
|
/linux/drivers/mcb/ |
H A D | mcb-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MEN Chameleon Bus. 21 while (ids->device) { in mcb_match_id() 22 if (ids->device == dev->id) in mcb_match_id() 37 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_match() 49 ret = add_uevent_var(env, "MODALIAS=mcb:16z%03d", mdev->id); in mcb_uevent() 51 return -ENOMEM; in mcb_uevent() 58 struct mcb_driver *mdrv = to_mcb_driver(dev->driver); in mcb_probe() 64 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_probe() 66 return -ENODEV; in mcb_probe() [all …]
|
/linux/Documentation/driver-api/iio/ |
H A D | core.rst | 8 :file:`drivers/iio/industrialio-*` 11 ---------------------- 13 * struct iio_dev - industrial I/O device 14 * iio_device_alloc() - allocate an :c:type:`iio_dev` from a driver 15 * iio_device_free() - free an :c:type:`iio_dev` from a driver 16 * iio_device_register() - register a device with the IIO subsystem 17 * iio_device_unregister() - unregister a device from the IIO 27 1. :file:`/sys/bus/iio/devices/iio:device{X}/`, this represents a hardware sensor 54 index X, attributes can be found under /sys/bus/iio/devices/iio:deviceX/ 63 :file:`Documentation/ABI/testing/sysfs-bus-iio` file in the Linux kernel [all …]
|
/linux/arch/sh/drivers/pci/ |
H A D | ops-sh7786.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic SH7786 PCI-Express operations. 5 * Copyright (C) 2009 - 2010 Paul Mundt 12 #include "pcie-sh7786.h" 20 struct pci_bus *bus, unsigned int devfn, int where, u32 *data) in sh7786_pcie_config_access() argument 22 struct pci_channel *chan = bus->sysdata; in sh7786_pcie_config_access() 23 int dev, func, type, reg; in sh7786_pcie_config_access() local 27 type = !!bus->parent; in sh7786_pcie_config_access() 30 if (bus->number > 255 || dev > 31 || func > 7) in sh7786_pcie_config_access() 34 * While each channel has its own memory-mapped extended config in sh7786_pcie_config_access() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * platforms. Basically, there have 3 types of PEs: PHB/Bus/Device. 20 #include <asm/pci-bridge.h> 21 #include <asm/ppc-pci.h> 27 * eeh_set_pe_aux_size - Set PE auxiliary data size 41 * eeh_pe_alloc - Allocate PE 43 * @type: PE type 47 static struct eeh_pe *eeh_pe_alloc(struct pci_controller *phb, int type) in eeh_pe_alloc() argument 63 pe->type = type; in eeh_pe_alloc() 64 pe->phb = phb; in eeh_pe_alloc() [all …]
|