Home
last modified time | relevance | path

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

12345678910>>...45

/openbmc/phosphor-power/
H A Dutility.hpp6 #include <phosphor-logging/elog.hpp>
7 #include <phosphor-logging/log.hpp>
8 #include <sdbusplus/bus.hpp>
23 constexpr auto POWEROFF_TARGET = "obmc-chassis-hard-poweroff@0.target";
41 * @param[in] path - the D-Bus path name
42 * @param[in] interface - the D-Bus interface name
43 * @param[in] bus - the D-Bus object
44 * @param[in] logError - log error when no service found
49 sdbusplus::bus_t& bus, bool logError = true);
52 * @brief Read a D-Bus property
[all …]
H A Ddbus_interfaces_finder.hpp8 * http://www.apache.org/licenses/LICENSE-2.0
20 #include <sdbusplus/bus.hpp>
21 #include <sdbusplus/bus/match.hpp>
33 * Class that finds instances of one or more D-Bus interfaces.
35 * A D-Bus service name and one or more D-Bus interfaces are specified in the
40 * - Registers an InterfacesAdded listener for the specified service. Class is
41 * notified when a new interface instance is created on D-Bus.
42 * - Queries the ObjectMapper to find interface instances that already exist.
54 // Specify which compiler-generated methods we want
65 * @param path D-Bus object path that implements the interface
[all …]
/openbmc/phosphor-led-manager/fault-monitor/
H A Doperational-status-monitor.hpp5 #include <sdbusplus/bus.hpp>
25 * Inventory D-Bus object and then assert corresponding LED Group
26 * D-Bus objects.
40 * @param[in] bus - D-Bus object
42 explicit Monitor(sdbusplus::bus_t& bus) : in Monitor() argument
43 bus(bus), in Monitor()
44 matchSignal(bus, in Monitor()
55 /** @brief sdbusplus D-Bus connection. */
56 sdbusplus::bus_t& bus; member in phosphor::led::Operational::status::monitor::Monitor
59 sdbusplus::bus::match_t matchSignal;
[all …]
/openbmc/witherspoon-pfault-analysis/
H A Dutility.hpp3 #include <phosphor-logging/elog.hpp>
4 #include <phosphor-logging/log.hpp>
5 #include <sdbusplus/bus.hpp>
19 constexpr auto POWEROFF_TARGET = "obmc-chassis-hard-poweroff@0.target";
26 * @param[in] path - the D-Bus path name
27 * @param[in] interface - the D-Bus interface name
28 * @param[in] bus - the D-Bus object
33 sdbusplus::bus_t& bus);
36 * @brief Read a D-Bus property
38 * @param[in] interface - the interface the property is on
[all …]
/openbmc/phosphor-led-manager/
H A Dutils.hpp32 * Wrapper class to handle the D-Bus calls
34 * This class contains the APIs to handle the D-Bus calls.
39 /** @brief Get the bus connection. */
42 static auto bus = sdbusplus::bus::new_default(); in getBus() local
43 return bus; in getBus()
49 * @param[in] path - D-Bus object path
50 * @param[in] interface - D-Bus Interface
52 * @return std::string - the D-Bus service name
60 * @param[in] objectPath - D-Bus object path
61 * @param[in] interface - D-Bus interface
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Ddbus_watcher.hpp5 #include <sdbusplus/bus/match.hpp>
10 namespace match_rules = sdbusplus::bus::match::rules;
30 * @param[in] path - The D-Bus path that will be watched
31 * @param[in] interface - The D-Bus interface that will be watched
39 * @brief The D-Bus path
44 * @brief The D-Bus interface
52 std::vector<sdbusplus::bus::match_t> _matches;
58 * This class allows the user to be kept up to data with a D-Bus
63 * the property is on D-Bus at the time.
67 * The DataInterface class is used to access D-Bus, and is a template
[all …]
/openbmc/linux/drivers/soundwire/
H A Dbus.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
11 #include "bus.h"
17 static int sdw_get_id(struct sdw_bus *bus) in sdw_get_id() argument
24 bus->id = rc; in sdw_get_id()
26 if (bus->controller_id == -1) in sdw_get_id()
27 bus->controller_id = rc; in sdw_get_id()
33 * sdw_bus_master_add() - add a bus Master instance
34 * @bus: bus instance
38 * Initializes the bus instance, read properties and create child
[all …]
H A Dintel_auxdevice.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-22 Intel Corporation.
22 #include "bus.h"
32 * flags reused in each byte, with master0 using the ls-byte, etc.
71 if (slave->id.part_id == wake_capable_list[i].part_id && in is_wake_capable()
72 slave->id.mfg_id == wake_capable_list[i].mfg_id) in is_wake_capable()
77 static int generic_pre_bank_switch(struct sdw_bus *bus) in generic_pre_bank_switch() argument
79 struct sdw_cdns *cdns = bus_to_cdns(bus); in generic_pre_bank_switch()
82 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch()
85 static int generic_post_bank_switch(struct sdw_bus *bus) in generic_post_bank_switch() argument
[all …]
H A Dmaster.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2019-2020 Intel Corporation.
9 #include "bus.h"
13 * devices physically attached on a bus segment. In practice enabling
14 * the bus operation will result in children devices become active and
25 * sdw-master-N
26 * |---- revision
27 * |---- clk_stop_modes
28 * |---- max_clk_freq
29 * |---- clk_freq
[all …]
/openbmc/qemu/hw/pci/
H A Dpci.c2 * QEMU PCI bus manager
33 #include "hw/qdev-properties.h"
34 #include "hw/qdev-properties-system.h"
35 #include "migration/qemu-file-types.h"
42 #include "qemu/error-report.h"
51 #include "pci-internal.h"
84 DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1),
90 DEFINE_PROP_BIT("x-pcie-lnksta-dllla", PCIDevice, cap_present,
92 DEFINE_PROP_BIT("x-pcie-extcap-init", PCIDevice, cap_present,
96 DEFINE_PROP_UINT32("acpi-index", PCIDevice, acpi_index, 0),
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dutils.hpp4 #include <ipmid/api-types.hpp>
32 * than the default 25s D-Bus timeout. */
49 * @param[in] intf - The interface used for each lookup
50 * @param[in] path - The path used for each lookup
58 * @param[in] bus - The bus associated with and used for looking
61 const std::string& getService(sdbusplus::bus_t& bus);
66 /** @brief A wrapper around sdbusplus bus.new_method_call
68 * @param[in] bus - The bus used for calling the method
69 * @param[in] intf - The interface containing the method
70 * @param[in] method - The method name
[all …]
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-bus.h28 #include "hw/qdev-core.h"
32 #define TYPE_VIRTIO_BUS "virtio-bus"
42 void (*notify)(DeviceState *d, uint16_t vector);
43 void (*save_config)(DeviceState *d, QEMUFile *f);
44 void (*save_queue)(DeviceState *d, int n, QEMUFile *f);
45 void (*save_extra_state)(DeviceState *d, QEMUFile *f);
46 int (*load_config)(DeviceState *d, QEMUFile *f);
47 int (*load_queue)(DeviceState *d, int n, QEMUFile *f);
48 int (*load_done)(DeviceState *d, QEMUFile *f);
49 int (*load_extra_state)(DeviceState *d, QEMUFile *f);
[all …]
/openbmc/openpower-occ-control/
H A Dutils.hpp3 #include <sdbusplus/bus.hpp>
25 /** @brief Get the bus connection. */
28 static auto bus = sdbusplus::bus::new_default(); in getBus() local
29 return bus; in getBus()
35 * @param[in] path - D-Bus object path
36 * @param[in] interface - D-Bus Interface
38 * @return std::string - the D-Bus service name
46 * @param[in] objectPath - D-Bus object path
47 * @param[in] interface - D-Bus interface
48 * @param[in] propertyName - D-Bus property name
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Ddbus_sensor.hpp8 * http://www.apache.org/licenses/LICENSE-2.0
20 #include <sdbusplus/bus.hpp>
65 * the necessary D-Bus interfaces via templates/multiple inheritance.
73 * valid sensor Unit values on D-Bus.
78 * Define simple name for the tuple used to create D-Bus associations.
90 * This class represents a voltage regulator sensor on D-Bus.
99 // Specify which compiler-generated methods we want
112 * @param bus D-Bus bus object
117 * @param deviceInventoryPath D-Bus inventory path of the voltage regulator
119 * @param chassisInventoryPath D-Bus inventory path of the chassis that
[all …]
/openbmc/ibm-logging/
H A Ddbus.hpp43 * @param[in] bus - the D-Bus object
44 * @param[in] service - the D-Bus service name
45 * @param[in] objPath - the D-Bus object path
47 * @return ObjectValueTree - A map of object paths to their
50 ObjectValueTree getManagedObjects(sdbusplus::bus_t& bus,
59 * @param[in] bus - the D-Bus object
60 * @param[in] root - the point from which to provide results
61 * @param[in] depth - the number of path elements to descend
63 * @return DbusSubtree - A map of object paths to their
66 DbusSubtree getSubtree(sdbusplus::bus_t& bus, const std::string& root,
[all …]
/openbmc/openpower-pnor-code-mgmt/
H A Dutils.hpp10 #include <sdbusplus/bus.hpp>
24 * @brief Gets the D-Bus Service name for the input D-Bus path
26 * @param[in] bus - Bus handler
27 * @param[in] path - Object Path
28 * @param[in] intf - Interface
33 std::string getService(sdbusplus::bus_t& bus, const std::string& path,
38 * @param[in] bus - The D-Bus bus object.
40 void hiomapdSuspend(sdbusplus::bus_t& bus);
44 * @param[in] bus - The D-Bus bus object.
46 void hiomapdResume(sdbusplus::bus_t& bus);
[all …]
/openbmc/qemu/hw/usb/
H A Dtrace-events4 …_state_change(int bus, const char *port, int ep, void *p, const char *o, const char *n) "bus %d, p…
5 usb_packet_state_fault(int bus, const char *port, int ep, void *p, const char *o, const char *n) "b…
7 # bus.c
8 usb_port_claim(int bus, const char *port) "bus %d, port %s"
9 usb_port_attach(int bus, const char *port, const char *devspeed, const char *portspeed) "bus %d, po…
10 usb_port_detach(int bus, const char *port) "bus %d, port %s"
11 usb_port_release(int bus, const char *port) "bus %d, port %s"
13 # hcd-ohci-pci.c
16 # hcd-ohci.c
18 …x next 0x%.8x be 0x%.8x, frame_number 0x%.8x starting_frame 0x%.8x, frame_count 0x%.8x relative %d"
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio.c7 * See the COPYING file in the top-level directory.
14 #include "standard-headers/linux/virtio_config.h"
15 #include "standard-headers/linux/virtio_ring.h"
20 * accesses. For VIRTIO 1.0 the vring is little-endian so the automatic guest
26 static uint16_t qvirtio_readw(QVirtioDevice *d, QTestState *qts, uint64_t addr) in qvirtio_readw() argument
30 if (d->features & (1ull << VIRTIO_F_VERSION_1) && qtest_big_endian(qts)) { in qvirtio_readw()
36 static uint32_t qvirtio_readl(QVirtioDevice *d, QTestState *qts, uint64_t addr) in qvirtio_readl() argument
40 if (d->features & (1ull << VIRTIO_F_VERSION_1) && qtest_big_endian(qts)) { in qvirtio_readl()
46 static void qvirtio_writew(QVirtioDevice *d, QTestState *qts, in qvirtio_writew() argument
49 if (d->features & (1ull << VIRTIO_F_VERSION_1) && qtest_big_endian(qts)) { in qvirtio_writew()
[all …]
/openbmc/docs/architecture/
H A DLED-architecture.md4 OpenBMC [LED Architecture][led d-bus readme] document. LED group management is
8 ## D-Bus section in LED Support for OpenBMC
29 curl -b cjar -k -X PUT -H "Content-Type: application/json" -d '{"data": 1}' \
41 All applicable Inventory D-Bus objects would have a forward association mapping
42 to LED Group D-Bus object, namely:
45 - identify_led_group
48 All applicable LED Group D-Bus objects would have an association mapping to
49 inventory D-Bus object, namely:
52 - identify_inventory_object
58 - Look for an association `identify_led_group` on the Inventory D-Bus object
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/MCTP/
H A DREADME.md3 MCTP D-Bus interfaces are implemented by the MCTP control process daemon alias
7 `xyz.openbmc_project.MCTP.Endpoint` D-Bus interface to discover MCTP endpoints.
12 the removal of the MCTP endpoints and removes the D-Bus objects corresponding to
13 those endpoints. MCTP bridges are not modelled in the D-Bus.
15 ## D-Bus object modelling
17 The root D-Bus object path for the mctpd is `/xyz/openbmc_project/mctp`. There
18 will be a D-Bus object for every endpoint that is discovered by the mctpd. The
19 lifetime of the D-Bus object is the lifetime of the connected MCTP device.
21 The D-Bus object path for MCTP endpoints are named
25 The D-Bus object implements the `xyz.openbmc_project.MCTP.Endpoint` interface.
[all …]
/openbmc/hiomapd/Documentation/
H A Dmboxd.md7 http://www.apache.org/licenses/LICENSE-2.0
25 dbus.c - Contains the handlers for the D-Bus commands which the daemon can
27 flash.c - Contains the functions for performing flash access including
29 lpc.c - Contains the functions for controlling the LPC bus mapping
30 including pointing the bus so it maps flash and memory.
31 transport_mbox.c - Contains the handlers for the mbox commands which the daemon
33 windows.c - Contains the functions for managing the window cache.
41 UNINITIALISED - The daemon is still in the initialisation phase and
43 ACTIVE_MAPS_FLASH - The daemon is polling for incoming commands, is not
44 currently suspended and the LPC bus maps the flash
[all …]
/openbmc/phosphor-mboxd/Documentation/
H A Dmboxd.md7 http://www.apache.org/licenses/LICENSE-2.0
26 mboxd_dbus.c - Contains the handlers for the D-Bus commands which the daemon can
28 mboxd_flash.c - Contains the functions for performing flash access including
30 mboxd_lpc.c - Contains the functions for controlling the LPC bus mapping
31 including pointing the bus so it maps flash and memory.
32 mboxd_msg.c - Contains the handlers for the mbox commands which the daemon
34 mboxd_windows.c - Contains the functions for managing the window cache.
42 UNINITIALISED - The daemon is still in the initialisation phase and
44 ACTIVE_MAPS_FLASH - The daemon is polling for incoming commands, is not
45 currently suspended and the LPC bus maps the flash
[all …]
/openbmc/u-boot/drivers/spi/
H A Dspi-uclass.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <dm/device-internal.h>
12 #include <dm/uclass-internal.h>
20 static int spi_set_speed_mode(struct udevice *bus, int speed, int mode) in spi_set_speed_mode() argument
25 ops = spi_get_ops(bus); in spi_set_speed_mode()
26 if (ops->set_speed) in spi_set_speed_mode()
27 ret = ops->set_speed(bus, speed); in spi_set_speed_mode()
29 ret = -EINVAL; in spi_set_speed_mode()
31 printf("Cannot set speed (err=%d)\n", ret); in spi_set_speed_mode()
35 if (ops->set_mode) in spi_set_speed_mode()
[all …]
/openbmc/qemu/hw/ide/
H A Dpci.c2 * QEMU IDE Emulation: PCI Bus support.
31 #include "qemu/error-report.h"
34 #include "ide-internal.h"
45 IDEBus *bus = opaque; in pci_ide_status_read() local
48 return ((uint64_t)1 << (size * 8)) - 1; in pci_ide_status_read()
50 return ide_status_read(bus, addr + 2); in pci_ide_status_read()
56 IDEBus *bus = opaque; in pci_ide_ctrl_write() local
61 ide_ctrl_write(bus, addr + 2, data); in pci_ide_ctrl_write()
72 IDEBus *bus = opaque; in pci_ide_data_read() local
75 return ide_ioport_read(bus, addr); in pci_ide_data_read()
[all …]
/openbmc/u-boot/board/freescale/lx2160a/
H A Deth_lx2160aqds.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2019 NXP
19 #include <fsl-mc/fsl_mc.h>
20 #include <fsl-mc/ldpaa_wriop.h>
27 #define EMI1 1 /* Mdio Bus 1 */
28 #define EMI2 2 /* Mdio Bus 2 */
57 /* -1 terminated array */
66 * e.g. for serdes1 protocol 19 it is being assumed that X-M11-USXGMII
67 * card is being used for dpmac 3-4. (X-M12-XFI could also have been used)
69 * to any of the 8 IO slots (IO slot 1 - IO slot 8)).
[all …]

12345678910>>...45