| /openbmc/pldm/requester/test/ |
| H A D | request_test.cpp | 26 * for the timeout time. 28 * @param[in] timeout - maximum time to wait for an event 30 void waitEventExpiry(milliseconds timeout) in waitEventExpiry() argument 34 auto sleepTime = duration_cast<microseconds>(timeout); in waitEventExpiry() 35 // Returns 0 on timeout in waitEventExpiry() 66 // send() is called a total of 3 times, the original plus two retries 78 // send() will be called a total of 10 times, the original plus 9 retries. 80 // the timer is stopped) with a timeout of 100ms. Because there are delays
|
| /openbmc/intel-ipmi-oem/include/ |
| H A D | smbiosmdrv2handler.hpp | 8 // http://www.apache.org/licenses/LICENSE-2.0 28 1024 * 60; // Total size will transfer for smbios table 58 1024 * 1024; // Total size of VGA share memory 60 64 * 1024; // Total size of smbios table 63 static constexpr const int lastAgentIndex = -1; 183 uint16_t timeout; member 204 uint16_t timeout; member 275 uint16_t timeout);
|
| /openbmc/u-boot/arch/x86/cpu/ |
| H A D | mp_init.c | 1 // SPDX-License-Identifier: GPL-2.0+ 24 #include <dm/device-internal.h> 25 #include <dm/uclass-internal.h> 32 /* Total CPUs include BSP */ 76 /* Returns 1 if timeout waiting for APs. 0 if target APs found */ 80 int timeout = 0; in wait_for_aps() local 87 timeout = 1; in wait_for_aps() 92 return timeout; in wait_for_aps() 102 atomic_inc(&rec->cpus_entered); in ap_do_flight_plan() 103 barrier_wait(&rec->barrier); in ap_do_flight_plan() [all …]
|
| /openbmc/phosphor-dbus-interfaces/yaml/com/google/gbmc/ |
| H A D | Hoth.interface.yaml | 5 - name: SendHostCommand 12 - name: Command 17 - name: Response 22 - self.Error.CommandFailure 23 - self.Error.ResponseFailure 24 - self.Error.InterfaceError 25 - xyz.openbmc_project.Common.Error.Timeout 27 - name: SendTrustedHostCommand 34 - name: Command 39 - name: Response [all …]
|
| /openbmc/u-boot/drivers/ddr/fsl/ |
| H A D | arm_ddr_gen3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 * regs has the to-be-set values for DDR controller registers 37 int timeout; in fsl_ddr_set_memctl_regs() local 66 if (regs->ddr_eor) in fsl_ddr_set_memctl_regs() 67 ddr_out32(&ddr->eor, regs->ddr_eor); in fsl_ddr_set_memctl_regs() 70 ddr_out32(&ddr->cs0_bnds, regs->cs[i].bnds); in fsl_ddr_set_memctl_regs() 71 ddr_out32(&ddr->cs0_config, regs->cs[i].config); in fsl_ddr_set_memctl_regs() 72 ddr_out32(&ddr->cs0_config_2, regs->cs[i].config_2); in fsl_ddr_set_memctl_regs() 75 ddr_out32(&ddr->cs1_bnds, regs->cs[i].bnds); in fsl_ddr_set_memctl_regs() 76 ddr_out32(&ddr->cs1_config, regs->cs[i].config); in fsl_ddr_set_memctl_regs() [all …]
|
| H A D | fsl_ddr_gen4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2014-2015 Freescale Semiconductor, Inc. 24 int timeout = 1000; in set_wait_for_bits_clear() local 30 timeout--; in set_wait_for_bits_clear() 32 if (timeout <= 0) in set_wait_for_bits_clear() 33 puts("Error: wait for clear timeout.\n"); in set_wait_for_bits_clear() 42 * regs has the to-be-set values for DDR controller registers 57 int timeout; in fsl_ddr_set_memctl_regs() local 96 mod_bnds = regs->cs[0].config & CTLR_INTLV_MASK; in fsl_ddr_set_memctl_regs() 102 ddr_out32(&ddr->ddr_cdr1, regs->ddr_cdr1); in fsl_ddr_set_memctl_regs() [all …]
|
| H A D | mpc85xx_ddr_gen3.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2008-2012 Freescale Semiconductor, Inc. 16 * regs has the to-be-set values for DDR controller registers 31 int timeout; in fsl_ddr_set_memctl_regs() local 36 int csn = -1; in fsl_ddr_set_memctl_regs() 69 if (regs->ddr_eor) in fsl_ddr_set_memctl_regs() 70 out_be32(&ddr->eor, regs->ddr_eor); in fsl_ddr_set_memctl_regs() 74 cs_sa = (regs->cs[i].bnds >> 16) & 0xfff; in fsl_ddr_set_memctl_regs() 75 cs_ea = regs->cs[i].bnds & 0xfff; in fsl_ddr_set_memctl_regs() 78 csn_bnds_backup = regs->cs[i].bnds; in fsl_ddr_set_memctl_regs() [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 219 | 21 # Check using the job-* QMP commands with block jobs 30 with iotests.Timeout(3, "Timeout waiting for job to pause"): 32 result = vm.qmp('query-jobs') 37 # Test that block-job-pause/resume and job-pause/resume can be mixed 39 for pause_cmd, pause_arg in [('block-job-pause', 'device'), 40 ('job-pause', 'id')]: 41 for resume_cmd, resume_arg in [('block-job-resume', 'device'), 42 ('job-resume', 'id')]: 48 result = vm.qmp('query-jobs') 51 old_progress = result['return'][0]['current-progress'] [all …]
|
| H A D | 235 | 32 # This test was added to check that mirror dead-lock was fixed (see previous 47 qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', disk, 51 vm.add_args('-accel', 'kvm', '-accel', 'tcg') 52 if iotests.qemu_default_machine == 's390-ccw-virtio': 53 vm.add_args('-no-shutdown') 54 vm.add_args('-drive', 'id=src,file=' + disk) 57 log(vm.qmp('object-add', qom_type='throttle-group', id='tg0', 58 limits={'bps-total': size})) 60 log(vm.qmp('blockdev-add', 61 **{ 'node-name': 'target', [all …]
|
| H A D | 262 | 38 vm.add_object('throttle-group,id=tg0,x-bps-total=65536') 39 vm.add_blockdev('file,filename=%s,node-name=drive0-file' % (img_path)) 40 vm.add_blockdev('%s,file=drive0-file,node-name=drive0-fmt' % (iotests.imgfmt)) 41 vm.add_blockdev('copy-on-read,file=drive0-fmt,node-name=drive0-cor') 42 vm.add_blockdev('throttle,file=drive0-cor,node-name=drive0-throttle,throttle-group=tg0') 43 vm.add_blockdev('blkdebug,image=drive0-throttle,node-name=drive0-dbg') 44 vm.add_blockdev('null-co,node-name=null,read-zeroes=on') 45 vm.add_blockdev('blkverify,test=drive0-dbg,raw=null,node-name=drive0-verify') 48 … vm.add_blockdev('quorum,children.0=drive0-verify,vote-threshold=1,node-name=drive0-quorum') 49 root = "drive0-quorum" [all …]
|
| H A D | 185 | 37 if [ -f "$TEST_DIR/qsd.pid" ]; then 38 kill -SIGKILL "$(cat "$TEST_DIR/qsd.pid")" 39 rm -f "$TEST_DIR/qsd.pid" 41 rm -f "$SOCK_DIR/qsd.sock" 64 -drive file="${TEST_IMG}.base",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk 73 "{ 'execute': 'blockdev-snapshot-sync', 75 'snapshot-file': '$TEST_IMG.mid', 77 'mode': 'absolute-paths' } }" \ 81 "{ 'execute': 'human-monitor-command', 82 'arguments': { 'command-line': [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
| H A D | sshcontrol.py | 4 # SPDX-License-Identifier: MIT 25 "bufsize": -1, 47 def _run(self, command, timeout=None, logfile=None): argument 52 if timeout: 53 endtime = self.starttime + timeout 65 data = data.decode("utf-8") 68 endtime = time.time() + timeout 80 …lastline = "\nProcess killed - no output for %d seconds. Total running time: %d seconds." % (timeo… 90 def run(self, command, timeout=None, logfile=None): argument 92 self._run(command, timeout, logfile) [all …]
|
| /openbmc/qemu/tests/ |
| H A D | vhost-user-bridge.c | 10 * later. See the COPYING file in the top-level directory. 15 * - main should get parameters from the command line. 16 * - implement all request handlers. Still not implemented: 19 * - test for broken requests and virtqueue. 20 * - implement features defined by Virtio 1.0 spec. 21 * - support mergeable buffers and indirect descriptors. 22 * - implement clean shutdown. 23 * - implement non-blocking writes to UDP backend. 24 * - implement polling strategy. 25 * - implement clean starting/stopping of vq processing [all …]
|
| /openbmc/u-boot/board/armltd/vexpress64/ |
| H A D | pcie.c | 6 * SPDX-Licence-Identifier: GPL-2.0+ 52 #define XR3PCI_ATR_TRSLID_AXIMEMORY (0x4e0004) /* Write-through, read/write allocate */ 78 - bit 0: enable entry, in xr3pci_set_atr_entry() 79 - bits 1-6: ATR window size: total size in bytes: 2^(ATR_WSIZE + 1) in xr3pci_set_atr_entry() 80 - bits 7-11: reserved in xr3pci_set_atr_entry() 81 - bits 12-31: start of source address in xr3pci_set_atr_entry() 83 writel((u32)(src_addr & 0xfffff000) | (window_size - 1) << 1 | 1, in xr3pci_set_atr_entry() 91 src_addr, (trsl_param & 0x400000) ? "<-" : "->", trsl_addr, in xr3pci_set_atr_entry() 145 int timeout = 200; in xr3pci_init() local 164 } while (--timeout && in xr3pci_init() [all …]
|
| /openbmc/u-boot/drivers/mmc/ |
| H A D | mmc_write.c | 1 // SPDX-License-Identifier: GPL-2.0+ 23 if (mmc->high_capacity) { in mmc_erase_t() 24 end = start + blkcnt - 1; in mmc_erase_t() 26 end = (start + blkcnt - 1) * mmc->write_bl_len; in mmc_erase_t() 27 start *= mmc->write_bl_len; in mmc_erase_t() 77 int dev_num = block_dev->devnum; in mmc_berase() 82 int timeout = 1000; in mmc_berase() local 85 return -1; in mmc_berase() 88 block_dev->hwpart); in mmc_berase() 90 return -1; in mmc_berase() [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/core/target/ |
| H A D | ssh.py | 4 # SPDX-License-Identifier: MIT 17 def __init__(self, logger, ip, server_ip, timeout=300, user='root', argument 23 fileHandler = logging.FileHandler(filePath, 'w', 'utf-8') 34 self.timeout = timeout 37 '-o', 'ServerAliveCountMax=2', 38 '-o', 'ServerAliveInterval=30', 39 '-o', 'UserKnownHostsFile=/dev/null', 40 '-o', 'StrictHostKeyChecking=no', 41 '-o', 'LogLevel=ERROR' 44 '-r' [all …]
|
| /openbmc/openbmc-test-automation/gui/gui_test/overview_menu/ |
| H A D | test_overview_menu.robot | 27 ${xpath_launch_host_console} //*[@data-test-id='overviewQuickLinks-button-solConsole'] 30 ${xpath_critical_logs_count} //dt[contains(text(),'Critical')]/following-sibling::dd[1] 31 ${xpath_warning_logs_count} //dt[contains(text(),'Warning')]/following-sibling::dd[1] 32 ${xpath_asset_tag} //dt[contains(text(),'Asset tag')]/following-sibling::dd[1] 33 ${xpath_operating_mode} //dt[contains(text(),'Operating mode')]/following-sibling::dd[1] 34 ${xpath_machine_model} //dt[contains(text(),'Model')]/following-sibling::dd[1] 35 ${xpath_serial_number} //dt[contains(text(),'Serial number')]/following-siblin [all...] |
| /openbmc/openbmc/poky/bitbake/lib/toaster/toastermain/ |
| H A D | settings.py | 6 # SPDX-License-Identifier: GPL-2.0-only 47 # Needed when Using sqlite especially to add a longer timeout for waiting 49 # https://docs.djangoproject.com/en/1.6/ref/databases/#database-is-locked-errors 51 DATABASES['default']['OPTIONS'] = { 'timeout': 20 } 78 # and do a reverse-mapping to /usr/share/zoneinfo/; 105 # http://www.i18nguy.com/unicode/language-identifiers.html 106 LANGUAGE_CODE = 'en-us' 114 # If you set this to False, Django will not use timezone-aware datetimes. 117 # Absolute filesystem path to the directory that will hold user-uploaded files. 192 … # https://docs.djangoproject.com/en/4.2/ref/templates/api/#how-invalid-variables-are-handled [all …]
|
| /openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
| H A D | bootimg-efi.py | 4 # SPDX-License-Identifier: GPL-2.0-only 7 # This implements the 'bootimg-efi' source plugin class for 'wic' 32 This plugin supports GRUB 2 and systemd-boot bootloaders. 35 name = 'bootimg-efi' 46 cp_cmd = "cp -v -p %s/%s %s" % (bootimg_dir, rd, hdddir) 55 cp_cmd = "cp -v -p %s/%s %s" % (bootimg_dir, dtb, hdddir) 62 Create loader-specific (grub-efi) config 88 grubefi_conf += "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1\n" 90 grubefi_conf += "timeout=%s\n" % bootloader.timeout 96 kernel = "%s-%s.bin" % \ [all …]
|
| H A D | bootimg-pcbios.py | 4 # SPDX-License-Identifier: GPL-2.0-only 7 # This implements the 'bootimg-pcbios' source plugin class for 'wic' 30 name = 'bootimg-pcbios' 44 nonarch_datadir = re.sub('/[^/]*recipe-sysroot', '/recipe-sysroot', staging_datadir) 68 raise WicError("Couldn't find %s. If using the -e option, do you " 88 install_cmd = "install -d %s" % hdddir 115 syslinux_conf += "TIMEOUT " + str(bootloader.timeout) + "\n" 155 kernel = "%s-%s.bin" % \ 158 cmds = ("install -m 0644 %s/%s %s/%s" % 160 "install -m 444 %s/syslinux/ldlinux.sys %s/ldlinux.sys" % [all …]
|
| /openbmc/u-boot/include/configs/ |
| H A D | vct.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 52 #define CONFIG_SYS_NS16550_REG_SIZE -4 81 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* re-init HCD after CMD_RESET */ 108 * For the non-memory-mapped NOR FLASH, we need to define the 111 * U-Boot code, before the NOR FLASH is detected. 127 #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ 128 #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */ 133 #define CONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */ 145 #define CONFIG_ENV_ADDR (128 << 10) /* after compr. U-Boot image */ 153 #define CONFIG_SYS_I2C_SOFT /* I2C bit-banged */ [all …]
|
| /openbmc/u-boot/arch/arm/mach-at91/arm926ejs/ |
| H A D | eflash.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Reinhard Meyer, EMK Elektronik, reinhard.meyer@emk-elektronik.de 11 * AT91SAM9XE128: 1 plane of 8 regions of 32 pages (total 256 pages) 12 * AT91SAM9XE256: 1 plane of 16 regions of 32 pages (total 512 pages) 13 * AT91SAM9XE512: 1 plane of 32 regions of 32 pages (total 1024 pages) 21 * The flash is presented to u-boot with each region being a sector, 27 * by u-Boot commands. 43 * do a read-modify-write for partially programmed pages 73 if ((readl(&dbu->cidr) & AT91_DBU_CID_ARCH_MASK) != AT91_DBU_CID_ARCH_9XExx) { in flash_init() 79 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GETD, &eefc->fcr); in flash_init() [all …]
|
| /openbmc/qemu/qapi/ |
| H A D | block-core.json | 1 # -*- Mode: Python -*- 21 # @vm-state-size: size of the VM state 23 # @date-sec: UTC date of the snapshot in seconds 25 # @date-nsec: fractional part in nano seconds to be used with date-sec 27 # @vm-clock-sec: VM clock relative to boot in seconds 29 # @vm-clock-nsec: fractional part in nano seconds to be used with 30 # vm-clock-sec 33 # record/replay is enabled. Used for "time-traveling" to match 35 # counter may be obtained through `query-replay` command 41 'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int', [all …]
|
| /openbmc/phosphor-net-ipmid/ |
| H A D | sessions_manager.hpp | 77 * @param[in] remoteConsoleSessID - Remote Console Session ID mentioned 79 * @param[in] priv - Privilege level requested 80 * @param[in] authAlgo - Authentication Algorithm 81 * @param[in] intAlgo - Integrity Algorithm 82 * @param[in] cryptAlgo - Confidentiality Algorithm 96 * @param[in] bmcSessionID - BMC Session ID 106 * @param[in] sessionID - Session ID 107 * @param[in] option - Select between BMC Session ID and Remote Console 137 * from in-setup sessions, which are not required to be authenticated. This 138 * will prevent would-be DoS attacks by calling a bunch of Open Session [all …]
|
| /openbmc/u-boot/drivers/mtd/ |
| H A D | pic32_flash.c | 1 // SPDX-License-Identifier: GPL-2.0+ 52 writel(nvmop, &nvm_regs_p->ctrl.raw); in flash_initiate_operation() 55 writel(NVM_WREN, &nvm_regs_p->ctrl.set); in flash_initiate_operation() 58 writel(LOCK_KEY, &nvm_regs_p->key.raw); in flash_initiate_operation() 59 writel(UNLOCK_KEY1, &nvm_regs_p->key.raw); in flash_initiate_operation() 60 writel(UNLOCK_KEY2, &nvm_regs_p->key.raw); in flash_initiate_operation() 63 writel(NVM_WR, &nvm_regs_p->ctrl.set); in flash_initiate_operation() 66 static int flash_wait_till_busy(const char *func, ulong timeout) in flash_wait_till_busy() argument 68 int ret = wait_for_bit_le32(&nvm_regs_p->ctrl.raw, in flash_wait_till_busy() 69 NVM_WR, false, timeout, false); in flash_wait_till_busy() [all …]
|