| /openbmc/sdbusplus/tools/sdbusplus/templates/ |
| H A D | interface.aserver.hpp.mako | 3 #include <sdbusplus/server/interface.hpp> 8 % for h in interface.cpp_includes(): 11 #include <${interface.headerFile()}> 13 namespace sdbusplus::aserver::${interface.cppNamespace()} 20 class ${interface.classname}; 24 struct ${interface.classname} : 27 sdbusplus::async::server_t<Instance, details::${interface.classname}>, 28 details::${interface.classname}<Instance, Server>> 31 ${interface.classname}(Args&&... args) : 34 sdbusplus::async::server_t<Instance, details::${interface.classname}>, [all …]
|
| H A D | interface.server.hpp.mako | 9 % for h in interface.cpp_includes(): 12 #include <${interface.headerFile()}> 14 namespace sdbusplus::server::${interface.cppNamespace()} 17 class ${interface.classname} : 18 public sdbusplus::common::${interface.cppNamespacedClass()} 30 ${interface.classname}() = delete; 31 ${interface.classname}(const ${interface.classname}&) = delete; 32 ${interface.classname}& operator=(const ${interface.classname}&) = delete; 33 ${interface.classname}(${interface.classname}&&) = delete; 34 ${interface.classname}& operator=(${interface.classname}&&) = delete; [all …]
|
| H A D | interface.server.cpp.mako | 9 #include <${interface.headerFile("server")}> 11 namespace sdbusplus::server::${interface.cppNamespace()} 14 % for m in interface.methods: 15 ${ m.cpp_prototype(loader, interface=interface, ptype='callback-cpp') } 18 % for s in interface.signals: 19 ${ s.cpp_prototype(loader, interface=interface, ptype='callback-cpp') } 22 % for p in interface.properties: 23 ${ p.render(loader, "property.server.cpp.mako", property=p, interface=interface) } 26 % if interface.properties: 27 void ${interface.classname}::setPropertyByName(const std::string& _name, [all …]
|
| H A D | interface.client.hpp.mako | 7 % for h in interface.cpp_includes(): 10 #include <${interface.headerFile()}> 12 namespace sdbusplus::client::${interface.cppNamespace()} 19 class ${interface.classname}; 25 * sdbusplus::async::client_t<${interface.classname}>() or 26 * ${interface.classname}() both construct an equivalent instance. 29 struct ${interface.classname} : 31 sdbusplus::async::client_t<details::${interface.classname}>, 32 details::${interface.classname}<Client, Proxy>> 35 ${interface.classname}(Args&&... args) : [all …]
|
| H A D | interface.common.hpp.mako | 14 return set(p.cppTypeParam(interface.name) for p in 15 interface.properties); 18 namespace sdbusplus::common::${interface.cppNamespace()} 21 struct ${interface.classname} 23 static constexpr auto interface = "${interface.name}"; 25 % for e in interface.enums: 34 % if interface.properties: 37 % for p in interface.properties: 38 ${p.cppTypeParam(interface.name)} ${p.snake_case}${p.default_value(interface.name)}; 44 % for p in interface.properties: [all …]
|
| H A D | property.server.cpp.mako | 1 auto ${interface.classname}::${property.camelCase}() const -> 2 ${property.cppTypeParam(interface.name)} 7 int ${interface.classname}::_callback_get_${property.name}( 8 sd_bus* /*bus*/, const char* /*path*/, const char* /*interface*/, 12 auto o = static_cast<${interface.classname}*>(context); 26 catch(const ${interface.errorNamespacedClass(e)}& e) 38 auto ${interface.classname}::${property.camelCase}(${property.cppTypeParam(interface.name)} value, 40 ${property.cppTypeParam(interface.name)} 47 _${interface.joinedName("_", "interface")}.property_changed("${property.name}"); 54 auto ${interface.classname}::${property.camelCase}(${property.cppTypeParam(interface.name)} val) -> [all …]
|
| H A D | interface.md.mako | 1 # ${interface.name} 3 ${interface.description} 6 % if len(interface.methods): 7 % for m in interface.methods: 15 % if len(interface.properties): 18 % for p in interface.properties: 26 % if len(interface.signals): 27 % for s in interface.signals: 35 % if len(interface.enums): 36 % for e in interface.enums:
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | virtio-net.c | 29 static void virtio_net_cleanup(QVirtioNet *interface) in virtio_net_cleanup() argument 33 for (i = 0; i < interface->n_queues; i++) { in virtio_net_cleanup() 34 qvirtqueue_cleanup(interface->vdev->bus, interface->queues[i], alloc); in virtio_net_cleanup() 36 g_free(interface->queues); in virtio_net_cleanup() 39 static void virtio_net_setup(QVirtioNet *interface) in virtio_net_setup() argument 41 QVirtioDevice *vdev = interface->vdev; in virtio_net_setup() 52 interface->n_queues = qvirtio_config_readw(vdev, 8) * 2; in virtio_net_setup() 54 interface->n_queues = 2; in virtio_net_setup() 56 interface->n_queues++; /* Account for the ctrl queue */ in virtio_net_setup() 58 interface->queues = g_new(QVirtQueue *, interface->n_queues); in virtio_net_setup() [all …]
|
| H A D | virtio-iommu.c | 25 const char *interface) in qvirtio_iommu_get_driver() argument 27 if (!g_strcmp0(interface, "virtio-iommu")) { in qvirtio_iommu_get_driver() 30 if (!g_strcmp0(interface, "virtio")) { in qvirtio_iommu_get_driver() 34 fprintf(stderr, "%s not present in virtio-iommu-device\n", interface); in qvirtio_iommu_get_driver() 38 static void virtio_iommu_cleanup(QVirtioIOMMU *interface) in virtio_iommu_cleanup() argument 40 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_iommu_cleanup() 43 static void virtio_iommu_setup(QVirtioIOMMU *interface) in virtio_iommu_setup() argument 45 QVirtioDevice *vdev = interface->vdev; in virtio_iommu_setup() 54 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_iommu_setup() 55 qvirtio_set_driver_ok(interface->vdev); in virtio_iommu_setup() [all …]
|
| H A D | virtio-9p.c | 82 static void virtio_9p_cleanup(QVirtio9P *interface) in virtio_9p_cleanup() argument 84 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_9p_cleanup() 87 static void virtio_9p_setup(QVirtio9P *interface) in virtio_9p_setup() argument 91 features = qvirtio_get_features(interface->vdev); in virtio_9p_setup() 93 qvirtio_set_features(interface->vdev, features); in virtio_9p_setup() 95 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_9p_setup() 96 qvirtio_set_driver_ok(interface->vdev); in virtio_9p_setup() 117 const char *interface) in virtio_9p_get_driver() argument 119 if (!g_strcmp0(interface, "virtio-9p")) { in virtio_9p_get_driver() 122 if (!g_strcmp0(interface, "virtio")) { in virtio_9p_get_driver() [all …]
|
| H A D | virtio-scsi.c | 28 const char *interface) in qvirtio_scsi_get_driver() argument 30 if (!g_strcmp0(interface, "virtio-scsi")) { in qvirtio_scsi_get_driver() 33 if (!g_strcmp0(interface, "virtio")) { in qvirtio_scsi_get_driver() 37 fprintf(stderr, "%s not present in virtio-scsi-device\n", interface); in qvirtio_scsi_get_driver() 42 const char *interface) in qvirtio_scsi_device_get_driver() argument 45 return qvirtio_scsi_get_driver(&v_scsi->scsi, interface); in qvirtio_scsi_device_get_driver() 53 QVirtioSCSI *interface = &virtio_bdevice->scsi; in virtio_scsi_device_create() local 55 interface->vdev = virtio_dev; in virtio_scsi_device_create() 64 const char *interface) in qvirtio_scsi_pci_get_driver() argument 67 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_scsi_pci_get_driver() [all …]
|
| H A D | vhost-user-blk.c | 34 const char *interface) in qvhost_user_blk_get_driver() argument 36 if (!g_strcmp0(interface, "vhost-user-blk")) { in qvhost_user_blk_get_driver() 39 if (!g_strcmp0(interface, "virtio")) { in qvhost_user_blk_get_driver() 43 fprintf(stderr, "%s not present in vhost-user-blk-device\n", interface); in qvhost_user_blk_get_driver() 48 const char *interface) in qvhost_user_blk_device_get_driver() argument 51 return qvhost_user_blk_get_driver(&v_blk->blk, interface); in qvhost_user_blk_device_get_driver() 59 QVhostUserBlk *interface = &vhost_user_blk->blk; in vhost_user_blk_device_create() local 61 interface->vdev = virtio_dev; in vhost_user_blk_device_create() 69 static void *qvhost_user_blk_pci_get_driver(void *object, const char *interface) in qvhost_user_blk_pci_get_driver() argument 72 if (!g_strcmp0(interface, "pci-device")) { in qvhost_user_blk_pci_get_driver() [all …]
|
| H A D | virtio-blk.c | 31 const char *interface) in qvirtio_blk_get_driver() argument 33 if (!g_strcmp0(interface, "virtio-blk")) { in qvirtio_blk_get_driver() 36 if (!g_strcmp0(interface, "virtio")) { in qvirtio_blk_get_driver() 40 fprintf(stderr, "%s not present in virtio-blk-device\n", interface); in qvirtio_blk_get_driver() 45 const char *interface) in qvirtio_blk_device_get_driver() argument 48 return qvirtio_blk_get_driver(&v_blk->blk, interface); in qvirtio_blk_device_get_driver() 56 QVirtioBlk *interface = &virtio_blk->blk; in virtio_blk_device_create() local 58 interface->vdev = virtio_dev; in virtio_blk_device_create() 66 static void *qvirtio_blk_pci_get_driver(void *object, const char *interface) in qvirtio_blk_pci_get_driver() argument 69 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_blk_pci_get_driver() [all …]
|
| H A D | virtio-rng.c | 27 const char *interface) in qvirtio_rng_get_driver() argument 29 if (!g_strcmp0(interface, "virtio-rng")) { in qvirtio_rng_get_driver() 32 if (!g_strcmp0(interface, "virtio")) { in qvirtio_rng_get_driver() 36 fprintf(stderr, "%s not present in virtio-rng-device\n", interface); in qvirtio_rng_get_driver() 41 const char *interface) in qvirtio_rng_device_get_driver() argument 44 return qvirtio_rng_get_driver(&v_rng->rng, interface); in qvirtio_rng_device_get_driver() 52 QVirtioRng *interface = &virtio_rdevice->rng; in virtio_rng_device_create() local 54 interface->vdev = virtio_dev; in virtio_rng_device_create() 62 static void *qvirtio_rng_pci_get_driver(void *object, const char *interface) in qvirtio_rng_pci_get_driver() argument 65 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_rng_pci_get_driver() [all …]
|
| H A D | virtio-balloon.c | 27 const char *interface) in qvirtio_balloon_get_driver() argument 29 if (!g_strcmp0(interface, "virtio-balloon")) { in qvirtio_balloon_get_driver() 32 if (!g_strcmp0(interface, "virtio")) { in qvirtio_balloon_get_driver() 36 fprintf(stderr, "%s not present in virtio-balloon-device\n", interface); in qvirtio_balloon_get_driver() 41 const char *interface) in qvirtio_balloon_device_get_driver() argument 44 return qvirtio_balloon_get_driver(&v_balloon->balloon, interface); in qvirtio_balloon_device_get_driver() 52 QVirtioBalloon *interface = &virtio_bdevice->balloon; in virtio_balloon_device_create() local 54 interface->vdev = virtio_dev; in virtio_balloon_device_create() 63 const char *interface) in qvirtio_balloon_pci_get_driver() argument 66 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_balloon_pci_get_driver() [all …]
|
| H A D | virtio-serial.c | 26 const char *interface) in qvirtio_serial_get_driver() argument 28 if (!g_strcmp0(interface, "virtio-serial")) { in qvirtio_serial_get_driver() 31 if (!g_strcmp0(interface, "virtio")) { in qvirtio_serial_get_driver() 35 fprintf(stderr, "%s not present in virtio-serial-device\n", interface); in qvirtio_serial_get_driver() 40 const char *interface) in qvirtio_serial_device_get_driver() argument 43 return qvirtio_serial_get_driver(&v_serial->serial, interface); in qvirtio_serial_device_get_driver() 51 QVirtioSerial *interface = &virtio_device->serial; in virtio_serial_device_create() local 53 interface->vdev = virtio_dev; in virtio_serial_device_create() 61 static void *qvirtio_serial_pci_get_driver(void *object, const char *interface) in qvirtio_serial_pci_get_driver() argument 64 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_serial_pci_get_driver() [all …]
|
| /openbmc/phosphor-fan-presence/ |
| H A D | sdbusplus.hpp | 49 const std::string& interface, const std::string& method) : in DBusMethodError() argument 51 interface, method)), in DBusMethodError() 52 busName(busName), path(path), interface(interface), method(method) in DBusMethodError() 57 const std::string interface; member in phosphor::fan::util::DBusMethodError 70 DBusServiceError(const std::string& path, const std::string& interface) : in DBusServiceError() argument 72 std::format("DBus service lookup failed: {} {}", path, interface)), in DBusServiceError() 73 path(path), interface(interface) in DBusServiceError() 77 const std::string interface; member in phosphor::fan::util::DBusServiceError 89 const std::string& path, const std::string& interface, in DBusPropertyError() argument 91 DBusError(msg + std::format(": {} {} {} {}", busName, path, interface, in DBusPropertyError() [all …]
|
| /openbmc/phosphor-networkd/test/ |
| H A D | test_ethernet_interface.cpp | 34 MockEthernetInterface interface; member in phosphor::network::TestEthernetInterface 38 interface(makeInterface(bus, manager)) in TestEthernetInterface() 54 return interface.ip(addressType, ipaddress, subnetMask, ""); in createIPObject() 60 return interface.staticGateway(gateway, protocol); in createStaticGatewayObject() 66 interface.EthernetInterfaceIntf::ntpServers(ntpServers); in setNtpServers() 71 return interface.EthernetInterfaceIntf::ntpServers(); in getNtpServers() 77 EXPECT_EQ(0, interface.mtu()); in TEST_F() 78 EXPECT_EQ("", interface.macAddress()); in TEST_F() 79 EXPECT_FALSE(interface.linkUp()); in TEST_F() 101 EXPECT_TRUE(interface.addrs.empty()); in TEST_F() [all …]
|
| /openbmc/sdbusplus/include/sdbusplus/server/ |
| H A D | interface.hpp | 18 namespace interface namespace 35 struct interface final : private sdbusplus::bus::details::bus_friend struct 45 interface() = delete; 46 interface(const interface&) = delete; 47 interface& operator=(const interface&) = delete; 48 interface(interface&&) = delete; 49 interface& operator=(interface&&) = delete; 60 interface(sdbusplus::bus_t& bus, const char* path, const char* interf, 63 ~interface(); 119 using interface_t = interface::interface;
|
| /openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/ |
| H A D | 0009-fix-cmake-dependency-race.patch | 8 /a/builder/mnt/build-oe/tmp-glibc/work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/git/interface/… 9 fatal error: interface/vmcs_host/wayland-dispmanx-server-protocol.h: No 12 interface/khronos/CMakeFiles/EGL_static.dir/build.make:773: recipe for 13 target 'interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o' 16 [interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o] Error 1 22 interface/vcos/pthreads/CMakeLists.txt | 8 ++++++++ 23 interface/vmcs_host/CMakeLists.txt | 8 -------- 24 interface/vmcs_host/vc_vchi_dispmanx.h | 2 +- 27 diff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt 29 --- a/interface/vcos/pthreads/CMakeLists.txt [all …]
|
| /openbmc/sdbusplus/tools/sdbusplus/ |
| H A D | method.py | 19 def cpp_prototype(self, loader, interface, ptype): argument 24 interface=interface, 29 def cpp_includes(self, interface): argument 30 return interface.error_includes(self.errors) + interface.enum_includes( 34 def returns_as_list(self, interface, full=False): argument 36 [r.cppTypeParam(interface.name, full=full) for r in self.returns] 39 def cpp_return_type(self, interface): argument 43 return self.returns[0].cppTypeParam(interface.name) 45 return "std::tuple<" + self.returns_as_list(interface) + ">" 47 def parameter(self, interface, p, defaultValue=False, ref=""): argument [all …]
|
| /openbmc/phosphor-dbus-monitor/src/test/ |
| H A D | propertywatchtest.hpp | 34 const std::string& path, const std::string& interface, in op() 49 const std::string& path, const std::string& interface, in op() 53 return dbus.mapperGetObject(busName, path, interface, method, in op() 66 const std::string& path, const std::string& interface, in op() 69 return dbus.getPropertiesU64(busName, path, interface, method, in op() 82 const std::string& path, const std::string& interface, in op() 85 return dbus.getPropertiesU32(busName, path, interface, method, in op() 98 const std::string& path, const std::string& interface, in op() 101 return dbus.getPropertiesU16(busName, path, interface, method, in op() 114 const std::string& path, const std::string& interface, in op() [all …]
|
| /openbmc/phosphor-dbus-monitor/mslverify/ |
| H A D | util.hpp | 38 const std::string& path, const std::string& interface, in callMethod() argument 42 interface.c_str(), method.c_str()); in callMethod() 51 "PATH", path, "INTF", interface, "METHOD", method); in callMethod() 59 const std::string& interface, const std::string& method, in callMethod() argument 62 return callMethod(getBus(), busName, path, interface, method, in callMethod() 70 const std::string& path, const std::string& interface, in callMethodAndRead() argument 74 bus, busName, path, interface, method, std::forward<Args>(args)...); in callMethodAndRead() 84 const std::string& interface, const std::string& method, Args&&... args) in callMethodAndRead() argument 86 return callMethodAndRead<Ret>(getBus(), busName, path, interface, method, in callMethodAndRead() 92 const std::string& interface) in getService() argument [all …]
|
| /openbmc/openbmc/poky/meta/recipes-core/busybox/files/ |
| H A D | simple.script | 27 /SBIN_DIR/resolvconf -d "${interface}.udhcpc" 31 /SBIN_DIR/ip -4 addr flush dev $interface 32 /SBIN_DIR/ip link set dev $interface up 34 /SBIN_DIR/ifconfig $interface 0.0.0.0 41 /SBIN_DIR/ip addr add dev $interface local $ip/$mask $BROADCAST 43 /SBIN_DIR/ifconfig $interface $ip $BROADCAST $NETMASK 49 … while /SBIN_DIR/ip route del default dev $interface 2>/dev/null ; do 53 … while /SBIN_DIR/route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do 62 … /SBIN_DIR/ip route add default via $i metric $metric dev $interface 64 … /SBIN_DIR/route add default gw $i dev $interface metric $metric 2>/dev/null [all …]
|
| /openbmc/openbmc-test-automation/lib/external_intf/ |
| H A D | vmi_utils.robot | 41 ... ${interface}=${ethernet_interface} 48 # interface VMI interface (eg. eth0 or eth1). 52 ${resp}= Redfish.Patch /redfish/v1/Systems/hypervisor/EthernetInterfaces/${interface} 61 Verify VMI Network Interface Details ${ip} Static ${gateway} ${netmask} ${interface} 66 [Documentation] Verify VMI network interface details. 68 ... ${interface}=${ethernet_interface} ${valid_status_code}=${HTTP_OK} 75 # interface VMI interface (eg. eth0 or eth1). 78 ${vmi_ip}= Get VMI Network Interface Details ${interface} ${valid_status_code} 87 ... ${interface}=${ethernet_interface} 93 # interface VMI interface (eg. eth0 or eth1). [all …]
|