/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | image-fleecing.out | 3 --- Setting up images --- 7 --- Launching VM --- 11 --- Setting up Fleecing Graph --- 16 --- Setting up NBD Export --- 21 --- Sanity Check --- 23 read -P0x5d 0 64k 24 read -P0xd5 1M 64k 25 read -P0xdc 32M 64k 26 read -P0xcd 0x3ff0000 64k 27 read -P0 0x00f8000 32k [all …]
|
H A D | parallels-checks | 4 # Test qemu-img check for parallels format 54 LAST_CLUSTER_OFF=$((SIZE - CLUSTER_SIZE)) 59 echo "== write pattern ==" 60 { $QEMU_IO -c "write -P 0x11 0 $SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir 66 echo "== read corrupted image with repairing ==" 67 { $QEMU_IO -c "read -P 0x00 0 $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_testdir 74 echo "== write pattern to last cluster ==" 75 echo "write -P 0x11 $LAST_CLUSTER_OFF $CLUSTER_SIZE" 76 { $QEMU_IO -c "write -P 0x11 $LAST_CLUSTER_OFF $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io… 78 file_size=`stat --printf="%s" "$TEST_IMG"` [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 171 | 5 # (or can) read and write outside of the image size. 50 if [ "$img_size" -ne -1 ] ; then 60 if [ "$img_size" -ge 0 ] ; then 63 test_size=$((size-img_offset)) 67 echo "write to image" 68 $QEMU_IO -c "write -P 0x0a 0 $test_size" "$(img_json)" | _filter_qemu_io 71 echo "read the image" 72 $QEMU_IO -c "read -P 0x0a 0 $test_size" "$(img_json)" | _filter_qemu_io 76 $QEMU_IO -c "read -v $((img_offset-2)) 4" $TEST_IMG | _filter_qemu_io 79 echo "write before image boundary" [all …]
|
H A D | 154 | 6 # Copyright (C) 2016-2017 Red Hat, Inc. 54 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 59 # X = non-zero data sector in backing file 60 # - = sector unallocated in whole backing chain 63 # 1. Tail unaligned: 00 00 -- -- 64 # 2. Head unaligned: -- -- 00 00 65 # 3. Both unaligned: -- 00 00 -- 66 # 4. Both, 2 clusters: -- -- -- 00 | 00 -- -- -- 68 $QEMU_IO -c "write -z 0 2k" "$TEST_IMG" | _filter_qemu_io 69 $QEMU_IO -c "write -z 10k 2k" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | 046 | 63 for ((i=0;i<=$((sectors - 1));i++)); do 67 echo "$op -P $pattern $((cur_sec * 64))k 64k" 71 backing_io 0 32 write | $QEMU_IO "$TEST_IMG" | _filter_qemu_io 74 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G 81 # Allocate middle of cluster 1, then write to somewhere before and after it 84 aio_write -P 10 0x18000 0x2000 87 aio_write -P 11 0x12000 0x2000 88 aio_write -P 12 0x1c000 0x2000 94 # Sequential write case: Alloc middle of cluster 2, then write overlapping 98 aio_write -P 20 0x28000 0x2000 [all …]
|
H A D | 153.out | 2 == readonly=off,force-share=on should be rejected == 3 QEMU_PROG: -drive if=none,file=null-co://,readonly=off,force-share=on: force-share=on can only be u… 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock 17 == Launching another QEMU, opts: 'read-only=on' == 18 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock 21 == Launching another QEMU, opts: 'read-only=on,force-share=on' == 25 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2 26 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock 29 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2 30 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock [all …]
|
H A D | 073 | 55 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 56 $QEMU_IO -c "write -P 0xa5 0 $size" "$TEST_IMG.base" | _filter_qemu_io 59 echo "== normal -> unallocated ==" 61 $QEMU_IO -c "write -P 0x11 0 0x10000" "$TEST_IMG" | _filter_qemu_io 62 $QEMU_IO -c "write -P 0x11 0x10000 0x10000" "$TEST_IMG.base" | _filter_qemu_io 64 $QEMU_IO -c "read -P 0x11 0 0x20000" "$TEST_IMG" | _filter_qemu_io 67 echo "== normal -> compressed ==" 69 $QEMU_IO -c "write -P 0x22 0x20000 0x10000" "$TEST_IMG" | _filter_qemu_io 70 $QEMU_IO -c "write -c -P 0x22 0x30000 0x10000" "$TEST_IMG" | _filter_qemu_io 72 $QEMU_IO -c "read -P 0x22 0x20000 0x20000" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | 004 | 4 # Make sure we can't read and write outside of the image size. 51 echo "write before image boundary" 52 $QEMU_IO -c "write $pre_offset 1M" "$TEST_IMG" | _filter_qemu_io 55 echo "write into image boundary" 56 $QEMU_IO -c "write $pre_offset 4M" "$TEST_IMG" 59 echo "write at image boundary" 60 $QEMU_IO -c "write $size 4096" "$TEST_IMG" 63 echo "write past image boundary" 64 $QEMU_IO -c "write $past_offset 4096" "$TEST_IMG" 68 $QEMU_IO -c "write -p $past_offset 4096" "$TEST_IMG" [all …]
|
H A D | 034 | 58 $QEMU_IO -c "write -P 0x55 0 1M" "$TEST_IMG" | _filter_qemu_io 62 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G 65 echo "== zero write with backing file ==" 66 $QEMU_IO -c "write -z 64k 192k" "$TEST_IMG" | _filter_qemu_io 67 $QEMU_IO -c "write -z 513k 13k" "$TEST_IMG" | _filter_qemu_io 73 $QEMU_IO -c "read -P 0x55 0 64k" "$TEST_IMG" | _filter_qemu_io 74 $QEMU_IO -c "read -P 0x0 64k 192k" "$TEST_IMG" | _filter_qemu_io 75 $QEMU_IO -c "read -P 0x55 256k 257k" "$TEST_IMG" | _filter_qemu_io 76 $QEMU_IO -c "read -P 0x0 513k 13k" "$TEST_IMG" | _filter_qemu_io 77 $QEMU_IO -c "read -P 0x55 526k 498k" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | 177 | 6 # Copyright (C) 2016-2018 Red Hat, Inc. 54 $QEMU_IO -c "write -P 11 0 $size" "$TEST_IMG.base" | _filter_qemu_io 55 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 56 $QEMU_IO -c "write -P 22 0 $size" "$TEST_IMG" | _filter_qemu_io 58 # Limited to 64k max-transfer 60 echo "== constrained alignment and max-transfer ==" 61 limits=align=4k,max-transfer=64k 62 $QEMU_IO -c "open -o $options,$limits blkdebug::$TEST_IMG" \ 63 -c "write -P 33 1000 128k" -c "read -P 33 1000 128k" | _filter_qemu_io 66 echo "== write zero with constrained max-transfer ==" [all …]
|
H A D | 131 | 57 echo == read empty image == 58 { $QEMU_IO -c "read -P 0 $CLUSTER_HALF_SIZE $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | … 59 echo == write more than 1 block in a row == 60 { $QEMU_IO -c "write -P 0x11 $CLUSTER_HALF_SIZE $CLUSTER_DBL_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qe… 61 echo == read less than block == 62 { $QEMU_IO -c "read -P 0x11 $CLUSTER_HALF_SIZE $CLUSTER_HALF_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qe… 63 echo == read exactly 1 block == 64 { $QEMU_IO -c "read -P 0x11 $CLUSTER_SIZE $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _f… 65 echo == read more than 1 block == 66 { $QEMU_IO -c "read -P 0x11 $CLUSTER_HALF_SIZE $CLUSTER_DBL_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qem… [all …]
|
H A D | 149.out | 1 # ================= dm-crypt aes-256-xts-plain64-sha1 ================= 3 truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB 5 …-q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --k… 7 sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-p… 8 # Write test pattern 0xa7 9 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 10 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-… 14 # Write test pattern 0x13 15 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1 16 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-… [all …]
|
/openbmc/u-boot/include/ |
H A D | axi.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 11 * enum axi_size_t - Determine size of AXI transfer 12 * @AXI_SIZE_8: AXI sransfer is 8-bit wide 13 * @AXI_SIZE_16: AXI sransfer is 16-bit wide 14 * @AXI_SIZE_32: AXI sransfer is 32-bit wide 24 * read() - Read a single value from a specified address on a AXI bus 25 * @dev: AXI bus to read from. 26 * @address: The address to read from. 27 * @data: Pointer to a variable that takes the data value read 29 * @size: The size of the data to be read. [all …]
|
H A D | rtc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 13 /* bcd<->bin functions are needed by almost all the RTC drivers, let's include 23 * get() - get the current time 25 * Returns the current time read from the RTC device. The driver 28 * @dev: Device to read from 29 * @time: Place to put the time that is read 34 * set() - set the current time 39 * @dev: Device to read from 40 * @time: Time to write 45 * reset() - reset the RTC to a known-good state [all …]
|
H A D | regmap.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 21 * Read and write functions are supplied, which can read/write data of 25 * tree settings via the boolean "little-endian", "big-endian", and 26 * "native-endian" properties. 34 * accesses the register map as regular IO-mapped memory. 38 * enum regmap_size_t - Access sizes for regmap reads and writes 40 * @REGMAP_SIZE_8: 8-bit read/write access size 41 * @REGMAP_SIZE_16: 16-bit read/write access size 42 * @REGMAP_SIZE_32: 32-bit read/write access size 43 * @REGMAP_SIZE_64: 64-bit read/write access size [all …]
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_pci.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 13 /* A 32-bit r/o bitmask of the features supported by the host */ 16 /* A 32-bit r/w bitmask of features activated by the guest */ 19 /* A 32-bit r/w PFN for the currently selected queue */ 22 /* A 16-bit r/o queue size for the currently selected queue */ 25 /* A 16-bit r/w queue selector */ 28 /* A 16-bit r/w queue notifier */ 31 /* An 8-bit device status register */ 35 * An 8-bit r/o interrupt status register. Reading the value will return the 37 * a read-and-acknowledge. [all …]
|
H A D | virtio_mmio.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 14 /* Magic value ("virt" string) - Read Only */ 17 /* Virtio device version - Read Only */ 20 /* Virtio device ID - Read Only */ 23 /* Virtio vendor ID - Read Only */ 28 * (32 bits per set) - Read Only 32 /* Device (host) features set selector - Write Only */ 37 * (32 bits per set) - Write Only 41 /* Activated features set selector - Write Only */ 46 /* Guest's memory page size in bytes - Write Only */ [all …]
|
/openbmc/u-boot/board/micronas/vct/ |
H A D | scc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 11 #define DMA_READ 0 /* SCC read DMA */ 12 #define DMA_WRITE 1 /* SCC write DMA */ 17 #define DMA_START 0 /* DMA command - start DMA */ 18 #define DMA_STOP 1 /* DMA command - stop DMA */ 19 #define DMA_START_FH_RESET 2 /* DMA command - start DMA reset FH */ 20 #define DMA_TAKEOVER 15 /* DMA command - commit the DMA conf */ 65 u32 p_dma_channels_rd; /* Number of Read DMA channels */ 66 u32 p_dma_channels_wr; /* Number of Write DMA channels */ 139 SCC_NULL = -1, /* illegal SCC identifier */ [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | tda19988.c | 1 // SPDX-License-Identifier: GPL-2.0+ 27 #define REG_VERSION_LSB REG(0x00, 0x00) /* read */ 28 #define REG_MAIN_CNTRL0 REG(0x00, 0x01) /* read/write */ 35 #define REG_VERSION_MSB REG(0x00, 0x02) /* read */ 36 #define REG_SOFTRESET REG(0x00, 0x0a) /* write */ 39 #define REG_DDC_DISABLE REG(0x00, 0x0b) /* read/write */ 40 #define REG_I2C_MASTER REG(0x00, 0x0d) /* read/write */ 44 #define REG_FEAT_POWERDOWN REG(0x00, 0x0e) /* read/write */ 48 #define REG_INT_FLAGS_0 REG(0x00, 0x0f) /* read/write */ 49 #define REG_INT_FLAGS_1 REG(0x00, 0x10) /* read/write */ [all …]
|
/openbmc/phosphor-power/tools/i2c/ |
H A D | i2c_interface.hpp | 83 * The interface can later be re-opened by calling open(). 94 /** @brief Read byte data from i2c 96 * @param[out] data - The data read from the i2c device 100 virtual void read(uint8_t& data) = 0; 102 /** @brief Read byte data from i2c 104 * @param[in] addr - The register address of the i2c device 105 * @param[out] data - The data read from the i2c device 109 virtual void read(uint8_t addr, uint8_t& data) = 0; 111 /** @brief Read word data from i2c 113 * Uses the SMBus Read Word protocol. Reads two bytes from the device, and [all …]
|
H A D | i2c.hpp | 19 * @param[in] busId - The i2c bus ID 20 * @param[in] devAddr - The device address of the I2C device 21 * @param[in] initialState - Initial state of the I2CDevice object 22 * @param[in] maxRetries - Maximum number of times to retry an I2C operation 28 busStr("/dev/i2c-" + std::to_string(busId)) in I2CDevice() 37 static constexpr int INVALID_FD = -1; 90 /** @brief Check i2c adapter read functionality 95 * @param[in] type - The SMBus transaction type defined in linux/i2c.h 101 /** @brief Check i2c adapter write functionality 106 * @param[in] type - The SMBus transaction type defined in linux/i2c.h [all …]
|
/openbmc/qemu/include/hw/gpio/ |
H A D | pca9552_regs.h | 4 * Copyright (c) 2017-2018, IBM Corporation. 7 * later. See the COPYING file in the top-level directory. 15 #define PCA9552_INPUT0 0 /* read only input register 0 */ 16 #define PCA9552_INPUT1 1 /* read only input register 1 */ 17 #define PCA9552_PSC0 2 /* read/write frequency prescaler 0 */ 18 #define PCA9552_PWM0 3 /* read/write PWM register 0 */ 19 #define PCA9552_PSC1 4 /* read/write frequency prescaler 1 */ 20 #define PCA9552_PWM1 5 /* read/write PWM register 1 */ 21 #define PCA9552_LS0 6 /* read/write LED0 to LED3 selector */ 22 #define PCA9552_LS1 7 /* read/write LED4 to LED7 selector */ [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | throttle-options.h | 7 * See the COPYING file in the top-level directory for details. 13 #define QEMU_OPT_IOPS_TOTAL "iops-total" 14 #define QEMU_OPT_IOPS_TOTAL_MAX "iops-total-max" 15 #define QEMU_OPT_IOPS_TOTAL_MAX_LENGTH "iops-total-max-length" 16 #define QEMU_OPT_IOPS_READ "iops-read" 17 #define QEMU_OPT_IOPS_READ_MAX "iops-read-max" 18 #define QEMU_OPT_IOPS_READ_MAX_LENGTH "iops-read-max-length" 19 #define QEMU_OPT_IOPS_WRITE "iops-write" 20 #define QEMU_OPT_IOPS_WRITE_MAX "iops-write-max" 21 #define QEMU_OPT_IOPS_WRITE_MAX_LENGTH "iops-write-max-length" [all …]
|
/openbmc/u-boot/include/spmi/ |
H A D | spmi.h | 5 * struct dm_spmi_ops - SPMI device I/O interface 10 * @read: read register 'reg' of slave 'usid' and peripheral 'pid' 11 * @write: write register 'reg' of slave 'usid' and peripheral 'pid' 13 * Each register is 8-bit, both read and write can return negative values 17 int (*read)(struct udevice *dev, int usid, int pid, int reg); member 18 int (*write)(struct udevice *dev, int usid, int pid, int reg, member 23 * spmi_reg_read() - read a register from specific slave/peripheral 25 * @dev: SPMI bus to read 28 * @reg: Register to read 29 * @return value read on success or negative value of errno. [all …]
|
/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | gw_ventana_spl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <asm/arch/mx6-ddr.h> 11 #include <asm/arch/mx6-pins.h> 13 #include <asm/mach-imx/boot_mode.h> 14 #include <asm/mach-imx/iomux-v3.h> 15 #include <asm/mach-imx/mxc_i2c.h> 35 /* SDCKE[0:1]: 100k pull-up */ 38 /* SDBA2: pull-up disabled */ 40 /* SDODT[0:1]: 100k pull-up, 40 ohm */ 95 /* SDCKE[0:1]: 100k pull-up */ [all …]
|