| /openbmc/phosphor-power/ | 
| H A D | utility.hpp | 6 #include <phosphor-logging/elog.hpp>7 #include <phosphor-logging/lg2.hpp>
 8 #include <sdbusplus/bus.hpp>
 23 constexpr auto POWEROFF_TARGET = "obmc-chassis-hard-poweroff@0.target";
 42  * @param[in] path - the D-Bus path name
 43  * @param[in] interface - the D-Bus interface name
 44  * @param[in] bus - the D-Bus object
 45  * @param[in] logError - log error when no service found
 50                        sdbusplus::bus_t& bus, bool logError = true);
 53  * @brief Read a D-Bus property
 [all …]
 
 | 
| H A D | dbus_interfaces_finder.hpp | 8  *     http://www.apache.org/licenses/LICENSE-2.020 #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/ | 
| H A D | utils.hpp | 32  *  Wrapper class to handle the D-Bus calls34  *  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/witherspoon-pfault-analysis/ | 
| H A D | utility.hpp | 3 #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/openpower-pnor-code-mgmt/ | 
| H A D | utils.hpp | 10 #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/ibm-logging/ | 
| H A D | dbus.hpp | 43  * @param[in] bus - the D-Bus object44  * @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/phosphor-led-manager/fault-monitor/ | 
| H A D | operational-status-monitor.hpp | 5 #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         matchSignal(bus,  in Monitor()
 55     sdbusplus::bus::match_t matchSignal;
 60      *        D-Bus object path and if OperationalStatus::Functional is changed,
 61      *        then corresponding LED Group D-Bus object is called to assert.
 63      * @param[in] msg - The D-Bus message contents
 [all …]
 
 | 
| /openbmc/phosphor-logging/extensions/openpower-pels/ | 
| H A D | dbus_watcher.hpp | 5 #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/openpower-occ-control/ | 
| H A D | utils.hpp | 3 #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/qemu/include/hw/virtio/ | 
| H A D | virtio-bus.h | 28 #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/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/MCTP/ | 
| H A D | README.md | 3 MCTP D-Bus interfaces are implemented by the MCTP control process daemon alias7 `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/qemu/hw/pci/ | 
| H A D | pci.c | 2  * QEMU PCI bus manager33 #include "hw/qdev-properties.h"
 34 #include "hw/qdev-properties-system.h"
 36 #include "migration/qemu-file-types.h"
 43 #include "qemu/error-report.h"
 53 #include "pci-internal.h"
 79     DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1),
 82     DEFINE_PROP_INT32("rombar",  PCIDevice, rom_bar, -1),
 85     DEFINE_PROP_BIT("x-pcie-lnksta-dllla", PCIDevice, cap_present,
 87     DEFINE_PROP_BIT("x-pcie-extcap-init", PCIDevice, cap_present,
 [all …]
 
 | 
| /openbmc/phosphor-power/phosphor-regulators/src/ | 
| H A D | dbus_sensor.hpp | 8  *     http://www.apache.org/licenses/LICENSE-2.020 #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/docs/architecture/ | 
| H A D | LED-architecture.md | 4 OpenBMC [LED Architecture][led d-bus readme] document. LED group management is8 ## 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/qemu/tests/qtest/libqos/ | 
| H A D | virtio.c | 7  * 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)) {  in qvirtio_readw()
 40 static uint32_t qvirtio_readl(QVirtioDevice *d, QTestState *qts, uint64_t addr)  in qvirtio_readl()  argument
 44     if (d->features & (1ull << VIRTIO_F_VERSION_1)) {  in qvirtio_readl()
 54 static void qvirtio_writew(QVirtioDevice *d, QTestState *qts,  in qvirtio_writew()  argument
 57     if (d->features & (1ull << VIRTIO_F_VERSION_1)) {  in qvirtio_writew()
 [all …]
 
 | 
| /openbmc/phosphor-mboxd/Documentation/ | 
| H A D | mboxd.md | 7   http://www.apache.org/licenses/LICENSE-2.026 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/hiomapd/Documentation/ | 
| H A D | mboxd.md | 9 <http://www.apache.org/licenses/LICENSE-2.0>27 dbus.c -    Contains the handlers for the D-Bus commands which the daemon can
 29 flash.c -   Contains the functions for performing flash access including
 31 lpc.c -     Contains the functions for controlling the LPC bus mapping
 32                   including pointing the bus so it maps flash and memory.
 33 transport_mbox.c -     Contains the handlers for the mbox commands which the daemon
 35 windows.c - Contains the functions for managing the window cache.
 43 UNINITIALISED -         The daemon is still in the initialisation phase and
 45 ACTIVE_MAPS_FLASH -     The daemon is polling for incoming commands, is not
 46                         currently suspended and the LPC bus maps the flash
 [all …]
 
 | 
| /openbmc/qemu/hw/usb/ | 
| H A D | trace-events | 4 …_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/phosphor-host-ipmid/include/ipmid/ | 
| H A D | utils.hpp | 4 #include <ipmid/api-types.hpp>7 #include <phosphor-logging/lg2.hpp>
 35  * than the default 25s D-Bus timeout. */
 52      *  @param[in] intf - The interface used for each lookup
 53      *  @param[in] path - The path used for each lookup
 61      *  @param[in] bus - The bus associated with and used for looking
 64     const std::string& getService(sdbusplus::bus_t& bus);
 69     /** @brief A wrapper around sdbusplus bus.new_method_call
 71      *  @param[in] bus - The bus used for calling the method
 72      *  @param[in] intf - The interface containing the method
 [all …]
 
 | 
| /openbmc/pldm/fw-update/ | 
| H A D | activation.hpp | 3 #include <sdbusplus/bus.hpp>28  *  D-Bus interface
 35      * @param[in] bus - Bus to attach to
 36      * @param[in] objPath - D-Bus object path
 38     ActivationProgress(sdbusplus::bus_t& bus, const std::string& objPath) :  in ActivationProgress()  argument
 39         ActivationProgressIntf(bus, objPath.c_str(),  in ActivationProgress()
 48  *  Concrete implementation of xyz.openbmc_project.Object.Delete D-Bus interface
 55      *  @param[in] bus - Bus to attach to
 56      *  @param[in] objPath - D-Bus object path
 57      *  @param[in] updateManager - Reference to FW update manager
 [all …]
 
 | 
| /openbmc/phosphor-power/phosphor-regulators/docs/ | 
| H A D | sensor_monitoring.md | 9 When [regulator monitoring](monitoring.md) is enabled, the `phosphor-regulators`12 The sensor values are stored on D-Bus on the BMC, making them available to
 24 ## How sensors are stored on D-Bus
 27 on D-Bus. On subsequent reads, the existing D-Bus sensor object is updated with
 30 The D-Bus sensor object implements the following interfaces:
 32 - xyz.openbmc_project.Sensor.Value
 33 - xyz.openbmc_project.State.Decorator.OperationalStatus
 34 - xyz.openbmc_project.State.Decorator.Availability
 35 - xyz.openbmc_project.Association.Definitions
 37 An existing D-Bus Sensor object is removed from D-Bus if no corresponding sensor
 [all …]
 
 | 
| /openbmc/u-boot/drivers/spi/ | 
| H A D | spi-uclass.c | 1 // 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/sdbusplus/ | 
| H A D | README.md | 5 1. A C++ library (libsdbusplus) for interacting with D-Bus, built on top of the6    sd-bus library from systemd.
 8    D-Bus-based applications.
 12 The sdbusplus library requires sd-bus, which is contained in libsystemd.
 30 `-Dtests=disabled` and `-Dexamples=disabled` respectively to `meson`.
 42 The sdbusplus library builds on top of the [sd-bus] library to create a modern
 43 C++ API for D-Bus. The library attempts to be as lightweight as possible,
 44 usually compiling to exactly the sd-bus API calls that would have been
 45 necessary, while also providing compile-time type-safety and memory leak
 51 auto b = bus::new_default_system();
 [all …]
 
 | 
| /openbmc/qemu/hw/ide/ | 
| H A D | sii3112.c | 7  * See the COPYING file in the top-level directory.20 #include "ide-internal.h"
 39  * Internal Register Space - BAR5 (section 6.7 of the data sheet).
 45     SiI3112PCIState *d = opaque;  in sii3112_reg_read()  local
 50         val = d->i.bmdma[0].cmd;  in sii3112_reg_read()
 53         val = d->regs[0].swdata;  in sii3112_reg_read()
 56         val = d->i.bmdma[0].status;  in sii3112_reg_read()
 62         val = bmdma_addr_ioport_ops.read(&d->i.bmdma[0], addr - 4, size);  in sii3112_reg_read()
 65         val = d->i.bmdma[1].cmd;  in sii3112_reg_read()
 68         val = d->regs[1].swdata;  in sii3112_reg_read()
 [all …]
 
 | 
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ | 
| H A D | device_finder.hpp | 8  *     http://www.apache.org/licenses/LICENSE-2.021 #include <sdbusplus/bus.hpp>
 42     uint8_t bus;  member
 58     // Specify which compiler-generated methods we want
 82      * @param bus D-Bus bus object
 86     explicit DeviceFinder(sdbusplus::bus_t& bus, Callback callback);
 89      * Callback function that is called when a D-Bus interface is found that
 92      * @param path D-Bus object path that implements the interface
 93      * @param interface D-Bus interface that was found
 94      * @param properties Properties of the D-Bus interface
 [all …]
 
 |