Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 2024) sorted by relevance

12345678910>>...81

/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dbasic_device_tests.cpp114 BasicDeviceImpl device{name, in TEST() local
121 EXPECT_EQ(device.getName(), name); in TEST()
122 EXPECT_EQ(device.getBus(), bus); in TEST()
123 EXPECT_EQ(device.getAddress(), address); in TEST()
124 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST()
125 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST()
126 EXPECT_TRUE(device.getRails().empty()); in TEST()
127 EXPECT_FALSE(device.isOpen()); in TEST()
140 BasicDeviceImpl device{name, in TEST() local
147 EXPECT_EQ(device.getName(), name); in TEST()
[all …]
H A Dgpios_only_device_tests.cpp40 GPIOsOnlyDevice device{powerControlGPIOName, powerGoodGPIOName}; in TEST() local
42 EXPECT_EQ(device.getName(), GPIOsOnlyDevice::deviceName); in TEST()
43 EXPECT_EQ(device.getBus(), 0); in TEST()
44 EXPECT_EQ(device.getAddress(), 0x00); in TEST()
45 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST()
46 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST()
47 EXPECT_TRUE(device.getRails().empty()); in TEST()
56 GPIOsOnlyDevice device{powerControlGPIOName, powerGoodGPIOName}; in TEST() local
59 device.open(services); in TEST()
60 device.getGPIOValues(services); in TEST()
[all …]
H A Dpmbus_driver_device_tests.cpp119 PMBusDriverDevice device{name, in TEST_F() local
126 EXPECT_EQ(device.getName(), name); in TEST_F()
127 EXPECT_EQ(device.getBus(), bus); in TEST_F()
128 EXPECT_EQ(device.getAddress(), address); in TEST_F()
129 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST_F()
130 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST_F()
131 EXPECT_EQ(device.getRails().size(), 2); in TEST_F()
132 EXPECT_EQ(device.getRails()[0]->getName(), "VDD"); in TEST_F()
133 EXPECT_EQ(device.getRails()[1]->getName(), "VIO"); in TEST_F()
134 EXPECT_EQ(device.getDriverName(), ""); in TEST_F()
[all …]
H A Dstandard_device_tests.cpp160 StandardDeviceImpl device{ in TEST() local
168 EXPECT_EQ(device.getName(), name); in TEST()
169 EXPECT_EQ(device.getBus(), bus); in TEST()
170 EXPECT_EQ(device.getAddress(), address); in TEST()
171 EXPECT_EQ(device.getPowerControlGPIOName(), powerControlGPIOName); in TEST()
172 EXPECT_EQ(device.getPowerGoodGPIOName(), powerGoodGPIOName); in TEST()
173 EXPECT_TRUE(device.getRails().empty()); in TEST()
187 StandardDeviceImpl device{ in TEST() local
195 EXPECT_EQ(device.getName(), name); in TEST()
196 EXPECT_EQ(device.getBus(), bus); in TEST()
[all …]
H A Drail_tests.cpp457 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 …]
H A Dsystem_tests.cpp185 auto& device = getMockDevice(system, 0); in TEST() local
186 EXPECT_CALL(device, isOpen).WillRepeatedly(Return(true)); in TEST()
187 EXPECT_CALL(device, getPowerGood).WillOnce(Return(false)); in TEST()
208 auto& device = getMockDevice(system, 0); in TEST() local
209 EXPECT_CALL(device, isOpen).WillRepeatedly(Return(true)); in TEST()
210 EXPECT_CALL(device, powerOn).Times(1); in TEST()
257 auto& device = getMockDevice(system, 0); in TEST() local
258 EXPECT_CALL(device, isOpen).WillRepeatedly(Return(true)); in TEST()
259 EXPECT_CALL(device, getPowerGood).WillOnce(Return(false)); in TEST()
267 auto& device = getMockDevice(system, 1); in TEST() local
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dcore.c132 …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 Dep0.c59 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 Dide.c207 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 Dpci-ids.rst5 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 …]
/openbmc/qemu/tests/qemu-iotests/
H A D172128 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 Dinit-install.sh50 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 Dinit-install-testfs.sh22 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 Dinit-install-efi-testfs.sh20 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 Dinit-install-efi.sh51 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 Ddevice.cpp31 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-regulators/src/
H A Dchassis.cpp27 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 Dtest_gpio_presence_state.cpp28 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/dbus-sensors/src/mctp/
H A DMCTPReactor.cpp48 switch (self->states[ep->device()->id()]) in trackEndpoint()
55 self->next(ep->device(), MCTPDeviceState::Lost); in trackEndpoint()
58 self->terminate(ep->device()); in trackEndpoint()
64 self->next(ep->device(), MCTPDeviceState::Lost); in trackEndpoint()
69 if (self->devices.contains(ep->device())) in trackEndpoint()
71 self->terminate(ep->device()); in trackEndpoint()
75 self->next(ep->device(), MCTPDeviceState::Unassigned); in trackEndpoint()
87 switch (states[ep->device()->id()]) in trackEndpoint()
92 next(ep->device(), MCTPDeviceState::Assigned); in trackEndpoint()
97 next(ep->device(), MCTPDeviceState::Recovered); in trackEndpoint()
[all …]
H A DMCTPDeviceRepository.hpp19 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/openbmc/poky/meta/conf/machine/include/riscv/
H A Dqemuriscv.inc34 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/qemu/qapi/
H A Dvfio.json14 # 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/u-boot/arch/arm/mach-uniphier/boot-device/
H A DMakefile3 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 Drail.cpp53 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 Deth-raw-os.c70 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 …]

12345678910>>...81