Home
last modified time | relevance | path

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

12345678910>>...45

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/include/linux/device/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/pci/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/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.
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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A 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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A 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 …]
/OK3568_Linux_fs/u-boot/arch/mips/include/asm/
H A Dio.h3 * Copyright (C) 1994 - 2000, 06 Ralf Baechle
8 * SPDX-License-Identifier: GPL-2.0
19 #include <asm/cpu-features.h>
20 #include <asm/pgtable-bits.h>
25 #include <mangle-port.h>
30 * operations are working on may or may not have been swapped by the bus
40 /* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */
50 return gd->arch.io_port_base; in mips_io_port_base()
57 gd->arch.io_port_base = base; in set_io_port_base()
76 * virt_to_phys - map virtual addresses to physical
[all …]
/OK3568_Linux_fs/kernel/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()
86 buf = data->block; in i2c_powermac_smbus_xfer()
87 len = data->block[0] + 1; in i2c_powermac_smbus_xfer()
90 buf = &data->block[1]; in i2c_powermac_smbus_xfer()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/arch/mips/include/asm/
H A 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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-bus-iio1 What: /sys/bus/iio/devices/iio:deviceX
3 Contact: linux-iio@vger.kernel.org
9 What: /sys/bus/iio/devices/triggerX
11 Contact: linux-iio@vger.kernel.org
19 Contains trigger type specific elements. These do not
23 What: /sys/bus/iio/devices/iio:deviceX/buffer
25 Contact: linux-iio@vger.kernel.org
29 What: /sys/bus/iio/devices/iio:deviceX/name
31 Contact: linux-iio@vger.kernel.org
36 What: /sys/bus/iio/devices/iio:deviceX/current_timestamp_clock
[all …]
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 …]
/OK3568_Linux_fs/kernel/arch/x86/pci/
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
35 #include <asm/intel-mid.h>
56 * fixed_bar_cap - return the offset of the fixed BAR cap if found
57 * @bus: PCI bus
[all …]
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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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>
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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/iommu/
H A Diommu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2008 Advanced Micro Devices, Inc.
66 [IOMMU_RESV_DIRECT_RELAXABLE] = "direct-relaxable",
86 static struct iommu_domain *__iommu_domain_alloc(struct bus_type *bus,
87 unsigned type);
111 * Use a function instead of an array here because the domain-type is a
112 * bit-field, so an array would waste memory.
141 pr_info("Memory encryption detected - Disabling default IOMMU Passthrough\n"); in iommu_subsys_init()
146 pr_info("Default domain type: %s %s\n", in iommu_subsys_init()
157 list_add_tail(&iommu->list, &iommu_device_list); in iommu_device_register()
[all …]

12345678910>>...45