Home
last modified time | relevance | path

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

12345678910>>...43

/linux/include/media/
H A 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>
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 Dv4l2-mediabus.h1 /* 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 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/sound/hda/ext/
H A Dhdac_ext_stream.c1 // 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/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 -
11 type: enum
12 name: sb-pool-type
14 -
16 -
18 -
19 type: enum
20 name: port-type
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dbase.c26 #include "bus.h"
39 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find()
40 if (pad->id == id) in nvkm_i2c_pad_find()
50 struct nvkm_bios *bios = i2c->subdev.device->bios; in nvkm_i2c_bus_find()
51 struct nvkm_i2c_bus *bus; in nvkm_i2c_bus_find() local
67 list_for_each_entry(bus, &i2c->bus, head) { in nvkm_i2c_bus_find()
68 if (bus->id == id) in nvkm_i2c_bus_find()
69 return bus; in nvkm_i2c_bus_find()
80 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find()
81 if (aux->id == id) in nvkm_i2c_aux_find()
[all …]
/linux/Documentation/driver-api/driver-model/
H A 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 …]
H A 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/arch/mips/pci/
H A 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 …]
H A 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/drivers/pci/
H A Dsetup-bus.c1 // SPDX-License-Identifier: GPL-2.0
11 * PCI-PCI bridges cleanup, sorted resource allocation.
50 list_del(&dev_res->list); in free_list()
56 * add_to_list() - Add a new resource tracker to the list
71 return -ENOMEM; in add_to_list()
73 tmp->res = res; in add_to_list()
74 tmp->dev = dev; in add_to_list()
75 tmp->start = res->start; in add_to_list()
76 tmp->end = res->end; in add_to_list()
77 tmp->flags = res->flags; in add_to_list()
[all …]
/linux/drivers/acpi/acpica/
H A 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/drivers/i2c/busses/
H A 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/arch/mips/include/asm/
H A Dio.h7 * Copyright (C) 1994 - 2000, 06 Ralf Baechle
24 #include <asm/cpu-features.h>
26 #include <asm/pgtable-bits.h>
28 #include <mangle-port.h>
32 * 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
99 * This function does not give bus mappings for DMA transfers. In
[all …]
/linux/drivers/pci/hotplug/
H A 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/Documentation/devicetree/bindings/dma/
H A 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 …]
H A 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: /schemas/arm/primecell.yaml#
14 - $ref: dma-controller.yaml#
22 - arm,pl080
23 - arm,pl081
25 - compatible
[all …]
/linux/drivers/xen/xenbus/
H A 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/Documentation/ABI/testing/
H A 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 …]
H A Dsysfs-bus-usb1 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 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 …]
H A Dintel_mid_pci.c1 // 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 Dicc-rpm.h1 /* 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 Dmcb-core.c1 // 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/arch/sh/drivers/pci/
H A Dops-sh7786.c1 // 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 …]

12345678910>>...43