| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | core.c | 132 …usb_configuration_instance *usbd_device_configuration_instance (struct usb_device_instance *device, in usbd_device_configuration_instance() argument 135 if (configuration >= device->configurations) in usbd_device_configuration_instance() 138 return device->configuration_instance_array + configuration; in usbd_device_configuration_instance() 150 struct usb_interface_instance *usbd_device_interface_instance (struct usb_device_instance *device, … in usbd_device_interface_instance() argument 154 …if ((configuration_instance = usbd_device_configuration_instance (device, port, configuration)) ==… in usbd_device_interface_instance() 172 struct usb_alternate_instance *usbd_device_alternate_instance (struct usb_device_instance *device, … in usbd_device_alternate_instance() argument 176 …if ((interface_instance = usbd_device_interface_instance (device, port, configuration, interface))… in usbd_device_alternate_instance() 196 struct usb_device_descriptor *usbd_device_device_descriptor (struct usb_device_instance *device, in… in usbd_device_device_descriptor() argument 198 return (device->device_descriptor); in usbd_device_device_descriptor() 211 *device, int port, int configuration) in usbd_device_configuration_descriptor() [all …]
|
| H A D | ep0.c | 59 static int ep0_get_status (struct usb_device_instance *device, in ep0_get_status() argument 75 cp[0] = usbd_endpoint_halted (device, index); in ep0_get_status() 95 static int ep0_get_one (struct usb_device_instance *device, struct urb *urb, in ep0_get_one() argument 168 static int ep0_get_descriptor (struct usb_device_instance *device, in ep0_get_descriptor() argument 193 usbd_device_device_descriptor (device, port))) { in ep0_get_descriptor() 216 usbd_device_device_descriptor (device, port))) { in ep0_get_descriptor() 229 usbd_device_configuration_descriptor (device, in ep0_get_descriptor() 275 usbd_device_class_descriptor_index (device, in ep0_get_descriptor() 305 (device, port, 0, bNumInterface, in ep0_get_descriptor() 330 device->qualifier_descriptor; in ep0_get_descriptor() [all …]
|
| /openbmc/u-boot/drivers/block/ |
| H A D | ide.c | 207 unsigned char atapi_issue(int device, unsigned char *ccb, int ccblen, in atapi_issue() argument 217 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue() 218 c = atapi_wait_mask(device, ATAPI_TIME_OUT, mask, res); in atapi_issue() 220 printf("ATAPI_ISSUE: device %d not ready status %X\n", device, in atapi_issue() 226 ide_outb(device, ATA_ERROR_REG, 0); /* no DMA, no overlaped */ in atapi_issue() 227 ide_outb(device, ATA_SECT_CNT, 0); in atapi_issue() 228 ide_outb(device, ATA_SECT_NUM, 0); in atapi_issue() 229 ide_outb(device, ATA_CYL_LOW, (unsigned char) (buflen & 0xFF)); in atapi_issue() 230 ide_outb(device, ATA_CYL_HIGH, in atapi_issue() 232 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue() [all …]
|
| /openbmc/qemu/docs/specs/ |
| H A D | pci-ids.rst | 5 Red Hat, Inc. donates a part of its device ID range to QEMU, to be used for 8 Contact Gerd Hoffmann <kraxel@redhat.com> to get a device ID assigned 14 The 1000 -> 10ff device ID range is used as follows for virtio-pci devices. 15 Note that this allocation is separate from the virtio device IDs, which are 19 network device (legacy) 21 block device (legacy) 23 balloon device (legacy) 25 console device (legacy) 27 SCSI host bus adapter device (legacy) 29 entropy generator device (legacy) [all …]
|
| H A D | acpi_mem_hotplug.rst | 14 Lo part of memory device phys address 16 Hi part of memory device phys address 18 Lo part of memory device size in bytes 20 Hi part of memory device size in bytes 22 Memory device proximity domain 24 Memory device status fields 31 Device insert event, used to distinguish device for which 32 no device check event to OSPM was issued. 35 Device remove event, used to distinguish device for which 36 no device eject request to OSPM was issued. [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 172 | 128 echo === Using -drive if=none and -device === 130 check_floppy_qtree -drive if=none,file="$TEST_IMG" -device floppy,drive=none0 131 check_floppy_qtree -drive if=none,file="$TEST_IMG" -device floppy,drive=none0,unit=1 133 -device floppy,drive=none0 -device floppy,drive=none1,unit=1 144 echo === Mixing -fdX and -device === 147 check_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0 148 check_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,un… 150 check_floppy_qtree -fdb "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0 151 check_floppy_qtree -fdb "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,un… 154 check_floppy_qtree -fda "$TEST_IMG" -drive if=none,file="$TEST_IMG.2" -device floppy,drive=none0,un… [all …]
|
| /openbmc/openbmc/poky/meta/recipes-core/initrdscripts/files/ |
| H A D | init-install.sh | 50 for device in $devices; do 51 case $device in 64 case $device in 69 hdnamelist="$hdnamelist $device" 81 if [ -r /sys/block/$hdname/device/vendor ]; then 83 cat /sys/block/$hdname/device/vendor 85 if [ -r /sys/block/$hdname/device/model ]; then 87 cat /sys/block/$hdname/device/model 89 if [ -r /sys/block/$hdname/device/uevent ]; then 91 cat /sys/block/$hdname/device/uevent [all …]
|
| H A D | init-install-testfs.sh | 22 for device in `ls /sys/block/`; do 23 case $device in 33 if [ $device != $live_dev_name -a -e /dev/$device ]; then 34 hdnamelist="$hdnamelist $device" 45 if [ -r /sys/block/$hdname/device/vendor ]; then 47 cat /sys/block/$hdname/device/vendor 50 cat /sys/block/$hdname/device/model 51 cat /sys/block/$hdname/device/uevent 75 device=$TARGET_DEVICE_NAME 86 umount /dev/${device}* 2> /dev/null || /bin/true [all …]
|
| H A D | init-install-efi-testfs.sh | 20 for device in 'hda' 'hdb' 'sda' 'sdb' 'mmcblk0' 'mmcblk1' 22 if [ -e /sys/block/${device}/removable ]; then 23 if [ "$(cat /sys/block/${device}/removable)" = "0" ]; then 30 echo "Found drive at /dev/${device}. Do you want to install this image there? [y/n]" 56 echo "Installing image on /dev/${device}" 67 umount /dev/${device}* 2> /dev/null || /bin/true 72 disk_size=$(parted /dev/${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "… 86 if [ ! "${device#mmcblk}" = "${device}" ]; then 90 bootfs=/dev/${device}${part_prefix}1 91 rootfs=/dev/${device}${part_prefix}2 [all …]
|
| H A D | init-install-efi.sh | 51 for device in $devices; do 52 case $device in 65 case $device in 70 hdnamelist="$hdnamelist $device" 87 if [ -r /sys/block/$hdname/device/vendor ]; then 89 cat /sys/block/$hdname/device/vendor 91 if [ -r /sys/block/$hdname/device/model ]; then 93 cat /sys/block/$hdname/device/model 95 if [ -r /sys/block/$hdname/device/uevent ]; then 97 cat /sys/block/$hdname/device/uevent [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/test/common/device/ |
| H A D | device.cpp | 31 device(exampleUpdater.getDevice()) in DeviceTest() 37 std::unique_ptr<ExampleDevice>& device; member in DeviceTest 88 EXPECT_TRUE(device->getEMConfigType().starts_with("Nop")); in TEST_F() 91 EXPECT_NE(device->softwareCurrent, nullptr); in TEST_F() 94 EXPECT_EQ(device->softwarePending, nullptr); in TEST_F() 98 sdbusplus::async::context& ctx, std::unique_ptr<ExampleDevice>& device, in testDeviceStartUpdateCommon() argument 101 const Software* oldSoftware = device->softwareCurrent.get(); in testDeviceStartUpdateCommon() 113 std::make_unique<Software>(ctx, *device); in testDeviceStartUpdateCommon() 117 co_await device->startUpdateAsync(fd, applyTime, std::move(softwareUpdate)); in testDeviceStartUpdateCommon() 119 EXPECT_TRUE(device->deviceSpecificUpdateFunctionCalled); in testDeviceStartUpdateCommon() [all …]
|
| /openbmc/phosphor-power/phosphor-power-sequencer/test/ |
| H A D | standard_device_tests.cpp | 161 StandardDeviceImpl device{ in TEST() local 170 EXPECT_EQ(device.getName(), name); in TEST() 171 EXPECT_EQ(device.getBus(), bus); in TEST() 172 EXPECT_EQ(device.getAddress(), address); in TEST() 173 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST() 174 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST() 175 EXPECT_TRUE(device.getRails().empty()); in TEST() 190 StandardDeviceImpl device{ in TEST() local 199 EXPECT_EQ(device.getName(), name); in TEST() 200 EXPECT_EQ(device.getBus(), bus); in TEST() [all …]
|
| H A D | gpios_only_device_tests.cpp | 42 GPIOsOnlyDevice device{powerControlGPIOName, powerGoodGPIOName, services}; in TEST() local 44 EXPECT_EQ(device.getName(), GPIOsOnlyDevice::deviceName); in TEST() 45 EXPECT_EQ(device.getBus(), 0); in TEST() 46 EXPECT_EQ(device.getAddress(), 0x00); in TEST() 47 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST() 48 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST() 49 EXPECT_TRUE(device.getRails().empty()); in TEST() 59 GPIOsOnlyDevice device{powerControlGPIOName, powerGoodGPIOName, in TEST() local 62 device.getGPIOValues(services); in TEST() 78 GPIOsOnlyDevice device{powerControlGPIOName, powerGoodGPIOName, in TEST() local [all …]
|
| H A D | basic_device_tests.cpp | 115 BasicDeviceImpl device{ in TEST() local 124 EXPECT_EQ(device.getName(), name); in TEST() 125 EXPECT_EQ(device.getBus(), bus); in TEST() 126 EXPECT_EQ(device.getAddress(), address); in TEST() 127 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST() 128 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST() 129 EXPECT_TRUE(device.getRails().empty()); in TEST() 143 BasicDeviceImpl device{ in TEST() local 152 EXPECT_EQ(device.getName(), name); in TEST() 153 EXPECT_EQ(device.getBus(), bus); in TEST() [all …]
|
| H A D | pmbus_driver_device_tests.cpp | 122 PMBusDriverDevice device{ in TEST_F() local 131 EXPECT_EQ(device.getName(), name); in TEST_F() 132 EXPECT_EQ(device.getBus(), bus); in TEST_F() 133 EXPECT_EQ(device.getAddress(), address); in TEST_F() 134 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST_F() 135 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST_F() 136 EXPECT_EQ(device.getRails().size(), 2); in TEST_F() 137 EXPECT_EQ(device.getRails()[0]->getName(), "VDD"); in TEST_F() 138 EXPECT_EQ(device.getRails()[1]->getName(), "VIO"); in TEST_F() 139 EXPECT_EQ(device.getDriverName(), ""); in TEST_F() [all …]
|
| H A D | rail_tests.cpp | 457 MockDevice device{}; in TEST() local 458 EXPECT_CALL(device, getStatusWord).Times(0); in TEST() 462 rail.getStatusWord(device); in TEST() 484 MockDevice device{}; in TEST() local 485 EXPECT_CALL(device, getStatusWord(2)).Times(1).WillOnce(Return(0xbeef)); in TEST() 487 EXPECT_EQ(rail.getStatusWord(device), 0xbeef); in TEST() 501 MockDevice device{}; in TEST() local 502 EXPECT_CALL(device, getStatusWord(2)) in TEST() 508 rail.getStatusWord(device); in TEST() 540 MockDevice device{}; in TEST() local [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | chassis.cpp | 27 for (std::unique_ptr<Device>& device : devices) in addToIDMap() 29 device->addToIDMap(idMap); in addToIDMap() 36 for (std::unique_ptr<Device>& device : devices) in clearCache() 38 device->clearCache(); in clearCache() 45 for (std::unique_ptr<Device>& device : devices) in clearErrorHistory() 47 device->clearErrorHistory(); in clearErrorHistory() 58 for (std::unique_ptr<Device>& device : devices) in closeDevices() 60 device->close(services); in closeDevices() 71 for (std::unique_ptr<Device>& device : devices) in configure() 73 device->configure(services, system, *this); in configure() [all …]
|
| /openbmc/entity-manager/test/ |
| H A D | test_gpio_presence_state.cpp | 28 DevicePresence device(ctx, gpioNames, gpioValues, deviceName, gpioState, in TEST_F() local 31 EXPECT_EQ(device.deviceName, deviceName); in TEST_F() 32 EXPECT_EQ(device.gpioPolarity.size(), 1); in TEST_F() 33 EXPECT_EQ(device.gpioPolarity["GPIO1"], ACTIVE_LOW); in TEST_F() 43 DevicePresence device(ctx, gpioNames, gpioValues, deviceName, gpioState, in TEST_F() local 46 EXPECT_EQ(device.deviceName, deviceName); in TEST_F() 47 EXPECT_EQ(device.gpioPolarity.size(), 1); in TEST_F() 48 EXPECT_EQ(device.gpioPolarity["GPIO2"], ACTIVE_HIGH); in TEST_F() 58 DevicePresence device(ctx, gpioNames, gpioValues, deviceName, gpioState, in TEST_F() local 61 EXPECT_EQ(device.deviceName, deviceName); in TEST_F() [all …]
|
| /openbmc/qemu/qapi/ |
| H A D | qdev.json | 16 # @device-list-properties: 18 # List properties associated with a device. 20 # @typename: the type name of a device 30 { 'command': 'device-list-properties', 37 # Add a device. 39 # @driver: the name of the new device's driver 41 # @bus: the device's parent bus (device tree path) 43 # @id: the device's ID, must be unique 60 # the 'docs/qdev-device-use.txt' file. 62 # 3. It's possible to list device properties by running QEMU with [all …]
|
| H A D | vfio.json | 14 # An enumeration of the VFIO device migration states. 16 # @stop: The device is stopped. 18 # @running: The device is running. 20 # @stop-copy: The device is stopped and its internal state is 23 # @resuming: The device is stopped and its internal state is available 26 # @running-p2p: The device is running in the P2P quiescent state. 28 # @pre-copy: The device is running, tracking its internal state and 31 # @pre-copy-p2p: The device is running in the P2P quiescent state, 44 # This event is emitted when a VFIO device migration state is changed. 46 # @device-id: The device's id, if it has one. [all …]
|
| /openbmc/openbmc/poky/meta/conf/machine/include/riscv/ |
| H A D | qemuriscv.inc | 34 QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" 35 QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=d… 36 QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=… 37 QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0… 38 QB_GRAPHICS = "-device bochs-display" 39 QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd" 40 QB_OPT_APPEND:riscv32 = "-device virtio-tablet-pci -device virtio-keyboard-pci"
|
| /openbmc/dbus-sensors/src/mctp/ |
| H A D | MCTPDeviceRepository.hpp | 19 auto lookup(const std::shared_ptr<MCTPDevice>& device) in lookup() argument 21 auto pred = [&device](const auto& it) { return it.second == device; }; in lookup() 35 const std::shared_ptr<MCTPDevice>& device) in add() argument 37 auto [entry, fresh] = devices.emplace(inventory, device); in add() 38 if (!fresh && entry->second.get() != device.get()) in add() 43 device->describe())); in add() 47 void remove(const std::shared_ptr<MCTPDevice>& device) in remove() argument 49 auto entry = lookup(device); in remove() 55 device->describe())); in remove() 60 bool contains(const std::shared_ptr<MCTPDevice>& device) in contains() argument [all …]
|
| /openbmc/u-boot/arch/arm/mach-uniphier/boot-device/ |
| H A D | Makefile | 3 obj-y += boot-device.o 5 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += boot-device-ld4.o 6 obj-$(CONFIG_ARCH_UNIPHIER_PRO4) += boot-device-ld4.o 7 obj-$(CONFIG_ARCH_UNIPHIER_SLD8) += boot-device-ld4.o 8 obj-$(CONFIG_ARCH_UNIPHIER_PRO5) += boot-device-pro5.o 9 obj-$(CONFIG_ARCH_UNIPHIER_PXS2) += boot-device-pxs2.o 10 obj-$(CONFIG_ARCH_UNIPHIER_LD6B) += boot-device-pxs2.o 11 obj-$(CONFIG_ARCH_UNIPHIER_LD11) += boot-device-ld11.o 12 obj-$(CONFIG_ARCH_UNIPHIER_LD20) += boot-device-ld11.o 13 obj-$(CONFIG_ARCH_UNIPHIER_PXS3) += boot-device-pxs3.o
|
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | rail.cpp | 53 uint16_t Rail::getStatusWord(PowerSequencerDevice& device) in getStatusWord() argument 59 value = device.getStatusWord(*page); in getStatusWord() 70 uint8_t Rail::getStatusVout(PowerSequencerDevice& device) in getStatusVout() argument 76 value = device.getStatusVout(*page); in getStatusVout() 87 double Rail::getReadVout(PowerSequencerDevice& device) in getReadVout() argument 93 value = device.getReadVout(*page); in getReadVout() 103 double Rail::getVoutUVFaultLimit(PowerSequencerDevice& device) in getVoutUVFaultLimit() argument 109 value = device.getVoutUVFaultLimit(*page); in getVoutUVFaultLimit() 120 bool Rail::hasPgoodFault(PowerSequencerDevice& device, Services& services, in hasPgoodFault() argument 124 return (hasPgoodFaultStatusVout(device, services, additionalData) || in hasPgoodFault() [all …]
|
| /openbmc/u-boot/arch/sandbox/cpu/ |
| H A D | eth-raw-os.c | 70 struct sockaddr_ll *device; in _raw_packet_start() local 77 priv->device = os_malloc(sizeof(struct sockaddr_ll)); in _raw_packet_start() 78 if (priv->device == NULL) in _raw_packet_start() 80 device = priv->device; in _raw_packet_start() 81 memset(device, 0, sizeof(struct sockaddr_ll)); in _raw_packet_start() 82 device->sll_ifindex = if_nametoindex(priv->host_ifname); in _raw_packet_start() 83 priv->host_ifindex = device->sll_ifindex; in _raw_packet_start() 84 device->sll_family = AF_PACKET; in _raw_packet_start() 85 memcpy(device->sll_addr, ethmac, 6); in _raw_packet_start() 86 device->sll_halen = htons(6); in _raw_packet_start() [all …]
|