Home
last modified time | relevance | path

Searched +full:bus +full:- +full:type (Results 1 – 25 of 1120) sorted by relevance

12345678910>>...45

/Linux-v5.15/include/media/
Dv4l2-fwnode.h1 /* SPDX-License-Identifier: GPL-2.0-only */
8 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
22 #include <media/v4l2-mediabus.h>
31 * struct v4l2_fwnode_bus_mipi_csi2 - MIPI CSI-2 bus data structure
32 * @flags: media bus (V4L2_MBUS_*) flags
48 * struct v4l2_fwnode_bus_parallel - parallel data bus data structure
49 * @flags: media bus (V4L2_MBUS_*) flags
50 * @bus_width: bus width in bits
60 * struct v4l2_fwnode_bus_mipi_csi1 - CSI-1/CCP2 data bus structure
62 * false - not inverted, true - inverted
[all …]
/Linux-v5.15/drivers/bus/
Dmips_cdmm.c2 * 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-v5.15/include/linux/device/
Dbus.h1 // 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-v5.15/drivers/pci/
Daccess.c1 // SPDX-License-Identifier: GPL-2.0
11 * This interrupt-safe spinlock protects all accesses to PCI
19 * alignment, do locking and call the low-level functions pointed to
20 * by pci_dev->ops.
35 #define PCI_OP_READ(size, type, len) \ argument
37 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \
44 res = bus->ops->read(bus, devfn, pos, len, &data); \
45 *value = (type)data; \
50 #define PCI_OP_WRITE(size, type, len) \ argument
52 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \
[all …]
Dsetup-bus.c1 // SPDX-License-Identifier: GPL-2.0
11 * PCI-PCI bridges cleanup, sorted resource allocation.
47 list_del(&dev_res->list); in free_list()
53 * add_to_list() - Add a new resource tracker to the list
68 return -ENOMEM; in add_to_list()
70 tmp->res = res; in add_to_list()
71 tmp->dev = dev; in add_to_list()
72 tmp->start = res->start; in add_to_list()
73 tmp->end = res->end; in add_to_list()
74 tmp->flags = res->flags; in add_to_list()
[all …]
/Linux-v5.15/sound/hda/ext/
Dhdac_ext_stream.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * hdac-ext-stream.c - HD-audio extended stream operations.
19 * snd_hdac_ext_stream_init - initialize each stream (aka device)
20 * @bus: HD-audio core bus
21 * @stream: HD-audio ext core stream object to initialize
29 void snd_hdac_ext_stream_init(struct hdac_bus *bus, in snd_hdac_ext_stream_init() argument
33 if (bus->ppcap) { in snd_hdac_ext_stream_init()
34 stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init()
37 stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init()
38 AZX_PPLC_MULTI * bus->num_streams + in snd_hdac_ext_stream_init()
[all …]
Dhdac_ext_bus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * hdac-ext-bus.c - HD-audio extended core bus functions.
5 * Copyright (C) 2014-2015 Intel Corp
21 * snd_hdac_ext_bus_init - initialize a HD-audio extended bus
22 * @bus: the pointer to HDAC bus object
24 * @ops: bus verb operators
29 int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, in snd_hdac_ext_bus_init() argument
35 ret = snd_hdac_bus_init(bus, dev, ops); in snd_hdac_ext_bus_init()
39 bus->ext_ops = ext_ops; in snd_hdac_ext_bus_init()
41 * Currently only one bus is supported, if there is device with more in snd_hdac_ext_bus_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbase.c26 #include "bus.h"
40 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find()
41 if (pad->id == id) in nvkm_i2c_pad_find()
51 struct nvkm_bios *bios = i2c->subdev.device->bios; in nvkm_i2c_bus_find()
52 struct nvkm_i2c_bus *bus; in nvkm_i2c_bus_find() local
68 list_for_each_entry(bus, &i2c->bus, head) { in nvkm_i2c_bus_find()
69 if (bus->id == id) in nvkm_i2c_bus_find()
70 return bus; in nvkm_i2c_bus_find()
81 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find()
82 if (aux->id == id) in nvkm_i2c_aux_find()
[all …]
/Linux-v5.15/arch/mips/pci/
Dops-bcm63xx.c15 #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 …]
Dops-loongson2.c1 // 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-v5.15/Documentation/driver-api/driver-model/
Dporting.rst12 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 …]
Dbus.rst2 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-v5.15/arch/arm/boot/dts/
Daspeed-bmc-opp-tacoma.dts1 // 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 …]
Daspeed-bmc-ibm-everest.dts1 // 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,everest-bmc", "aspeed,ast2600";
137 stdout-path = &uart5;
146 reserved-memory {
147 #address-cells = <1>;
[all …]
/Linux-v5.15/drivers/acpi/acpica/
Dutresdecode.c1 // 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-v5.15/drivers/i2c/busses/
Di2c-powermac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 * SMBUS-type transfer entrypoint
36 struct pmac_i2c_bus *bus = i2c_get_adapdata(adap); in i2c_powermac_smbus_xfer() local
62 buf = &data->byte; in i2c_powermac_smbus_xfer()
67 local[0] = data->word & 0xff; in i2c_powermac_smbus_xfer()
68 local[1] = (data->word >> 8) & 0xff; in i2c_powermac_smbus_xfer()
78 * anywhere near a pmac i2c bus anyway ... in i2c_powermac_smbus_xfer()
81 buf = data->block; in i2c_powermac_smbus_xfer()
82 len = data->block[0] + 1; in i2c_powermac_smbus_xfer()
85 buf = &data->block[1]; in i2c_powermac_smbus_xfer()
[all …]
/Linux-v5.15/arch/mips/include/asm/
Dio.h7 * Copyright (C) 1994 - 2000, 06 Ralf Baechle
27 #include <asm/cpu-features.h>
28 #include <asm-generic/iomap.h>
30 #include <asm/pgtable-bits.h>
33 #include <mangle-port.h>
37 * operations are working on may or may not have been swapped by the bus
52 /* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */
81 * Enforce in-order execution of data I/O. In the MIPS architecture
82 * these are equivalent to corresponding platform-specific memory
92 * virt_to_phys - map virtual addresses to physical
[all …]
/Linux-v5.15/drivers/xen/xenbus/
Dxenbus_probe_backend.c5 * 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-v5.15/Documentation/devicetree/bindings/dma/
Dadi,axi-dmac.txt1 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 …]
Darm-pl08x.yaml1 # 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: "dma-controller.yaml#"
21 - arm,pl080
22 - arm,pl081
24 - compatible
29 - items:
[all …]
/Linux-v5.15/drivers/pci/hotplug/
Dibmphp_res.c1 // 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-v5.15/Documentation/ABI/testing/
Dsysfs-bus-siox1 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 …]
/Linux-v5.15/Documentation/devicetree/bindings/i2c/
Di2c-qcom-cci.txt5 - compatible:
7 Value type: <string>
9 "qcom,msm8916-cci"
10 "qcom,msm8996-cci"
11 "qcom,sdm845-cci"
12 "qcom,sm8250-cci"
14 - reg
16 Value type: <prop-encoded-array>
20 - interrupts:
22 Value type: <prop-encoded-array>
[all …]
/Linux-v5.15/arch/x86/pci/
Ddirect.c1 // 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 …]
/Linux-v5.15/Documentation/devicetree/bindings/bus/
Dintel,ixp4xx-expansion-bus-controller.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/bus/intel,ixp4xx-expansion-bus-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Intel IXP4xx Expansion Bus Controller
10 The IXP4xx expansion bus controller handles access to devices on the
11 memory-mapped expansion bus on the Intel IXP4xx family of system on chips,
15 - Linus Walleij <linus.walleij@linaro.org>
19 pattern: '^bus@[0-9a-f]+$'
23 - enum:
[all …]

12345678910>>...45