/openbmc/linux/Documentation/devicetree/bindings/ipmi/ |
H A D | ipmi-ipmb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ipmi/ipmi-ipmb.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Corey Minyard <cminyard@mvista.com> 17 - ipmi-ipmb 21 - const: ipmi 30 retry-time: 33 Time between retries of sends, in milliseconds. Defaults to 250. 35 max-retries: [all …]
|
/openbmc/phosphor-power/tools/i2c/ |
H A D | i2c.cpp | 16 #include <linux/i2c-dev.h> 33 int ret = 0, retries = 0; in getFuncs() local 37 } while ((ret < 0) && (++retries <= maxRetries)); in getFuncs() 158 int ret = 0, retries = 0; in processCallSMBus() local 166 } while ((ret < 0) && (++retries <= maxRetries)); in processCallSMBus() 182 // Buffer for block write. Linux supports SMBus 3.0 max size for block in processCallI2C() 187 // Buffer for block read. Linux supports smaller SMBus 2.0 max size for in processCallI2C() 199 int ret = 0, retries = 0; in processCallI2C() local 227 } while ((ret != numMessages) && (++retries <= maxRetries)); in processCallI2C() 255 int retries = 0; in open() local [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | pci_vsc.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 13 ((size) ? (0xffffffff >> (32 - (size))) : 0) 22 pci_read_config_dword((dev)->pdev, (dev)->vsc_addr + (offset), (val)) 24 pci_write_config_dword((dev)->pdev, (dev)->vsc_addr + (offset), (val)) 63 dev->vsc_addr = pci_find_capability(dev->pdev, in mlx5_pci_vsc_init() 65 if (!dev->vsc_addr) in mlx5_pci_vsc_init() 72 int retries = 0; in mlx5_vsc_gw_lock() local 76 pci_cfg_access_lock(dev->pdev); in mlx5_vsc_gw_lock() 78 if (retries > VSC_MAX_RETRIES) { in mlx5_vsc_gw_lock() 79 ret = -EBUSY; in mlx5_vsc_gw_lock() [all …]
|
/openbmc/linux/tools/testing/selftests/cgroup/ |
H A D | test_memcontrol.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 98 int ret = -1; in alloc_anon_50M_check() 103 return -1; in alloc_anon_50M_check() 132 int ret = -1; in alloc_pagecache_50M_check() 138 return -1; in alloc_pagecache_50M_check() 204 return -1; in alloc_pagecache_50M_noexit() 221 return -1; in alloc_anon_noexit() 242 for (limit = 10; limit > 0; limit--) { in cg_test_proc_killed() 248 return -1; in cg_test_proc_killed() 255 * A memory.min = 0, memory.max = 200M [all …]
|
/openbmc/u-boot/include/ |
H A D | ata.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 9 * "Information Technology - AT Attachment-3 Interface (ATA-3)" 11 * http://www.dt.wdc.com/ata/ata-3/ata3r5v.zip 13 * ftp://ftp.fee.vutbr.cz/pub/doc/io/ata/ata-3/ata3r5v.zip 22 * 8-bit (register) and 16-bit (data) accesses might use different 76 #define ATA_CMD_READ 0x20 /* Read Sectors (with retries) */ 77 #define ATA_CMD_READN 0x21 /* Read Sectors ( no retries) */ 78 #define ATA_CMD_WRITE 0x30 /* Write Sectores (with retries)*/ 79 #define ATA_CMD_WRITEN 0x31 /* Write Sectors ( no retries)*/ 80 #define ATA_CMD_VRFY 0x40 /* Read Verify (with retries) */ [all …]
|
/openbmc/linux/drivers/pci/controller/mobiveil/ |
H A D | pcie-mobiveil.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include "pcie-mobiveil.h" 21 * mobiveil_pcie_sel_page - routine to access paged register 32 val = readl(pcie->csr_axi_slave_base + PAB_CTRL); in mobiveil_pcie_sel_page() 36 writel(val, pcie->csr_axi_slave_base + PAB_CTRL); in mobiveil_pcie_sel_page() 45 return pcie->csr_axi_slave_base + off; in mobiveil_pcie_comp_addr() 49 return pcie->csr_axi_slave_base + OFFSET_TO_PAGE_ADDR(off); in mobiveil_pcie_comp_addr() 54 if ((uintptr_t)addr & (size - 1)) { in mobiveil_pcie_read() 79 if ((uintptr_t)addr & (size - 1)) in mobiveil_pcie_write() 109 dev_err(&pcie->pdev->dev, "read CSR address failed\n"); in mobiveil_csr_read() [all …]
|
/openbmc/linux/drivers/char/xilinx_hwicap/ |
H A D | fifo_icap.c | 24 * (c) Copyright 2007-2008 Xilinx Inc. 79 #define XHI_WFO_MAX_VACANCY 1024 /* Max Write FIFO Vacancy, in words */ 80 #define XHI_RFO_MAX_OCCUPANCY 256 /* Max Read FIFO Occupancy, in words */ 87 * fifo_icap_fifo_write - Write data to the write FIFO. 89 * @data: the 32-bit value to be written to the FIFO. 96 dev_dbg(drvdata->dev, "fifo_write: %x\n", data); in fifo_icap_fifo_write() 97 out_be32(drvdata->base_address + XHI_WF_OFFSET, data); in fifo_icap_fifo_write() 101 * fifo_icap_fifo_read - Read data from the Read FIFO. 108 u32 data = in_be32(drvdata->base_address + XHI_RF_OFFSET); in fifo_icap_fifo_read() 109 dev_dbg(drvdata->dev, "fifo_read: %x\n", data); in fifo_icap_fifo_read() [all …]
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | ipmi_bt_sm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * The state machine for an Open IPMI BT sub-driver under ipmi_si.c, part 35 * Typical "Get BT Capabilities" values are 2-3 retries, 5-10 seconds, 37 * buffer (with a documented message of 160 bytes) so go for the max. 38 * Since the Open IPMI architecture is single-message oriented at this 64 BT_STATE_LONG_BUSY /* BT doesn't get hosed :-) */ 72 #define BT_STATE_CHANGE(X, Y) { bt->state = X; return Y; } 90 int BT_CAP_retries; /* Recommended retries */ 110 #define BT_STATUS bt->io->inputb(bt->io, 0) 111 #define BT_CONTROL(x) bt->io->outputb(bt->io, 0, x) [all …]
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pcie-designware.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #include "pcie-designware.h" 46 [DW_PCIE_NON_STICKY_RST] = "non-sticky", 60 pci->app_clks[i].id = dw_pcie_app_clks[i]; in dw_pcie_get_clocks() 63 pci->core_clks[i].id = dw_pcie_core_clks[i]; in dw_pcie_get_clocks() 65 ret = devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_APP_CLKS, in dw_pcie_get_clocks() 66 pci->app_clks); in dw_pcie_get_clocks() 70 return devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_CORE_CLKS, in dw_pcie_get_clocks() 71 pci->core_clks); in dw_pcie_get_clocks() 79 pci->app_rsts[i].id = dw_pcie_app_rsts[i]; in dw_pcie_get_resets() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-rs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 26 #define RS_NAME "iwl-3945-rs" 50 {-60, RATE_54M_IDX}, 51 {-64, RATE_48M_IDX}, 52 {-72, RATE_36M_IDX}, 53 {-80, RATE_24M_IDX}, 54 {-84, RATE_18M_IDX}, 55 {-85, RATE_12M_IDX}, [all …]
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | meson-gxl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 * - Early failures: MII_LPA is just 0x0001. if MII_EXPANSION reports that 21 * - Late failures: MII_LPA is filled with a value which seems to make sense 23 * can detect this using a magic bit in the WOL bank (reg 12 - bit 12). 29 * in some cases, it may take up to 6 retries to get a decent result 33 unsigned int retries = 10; in meson_gxl_startup() local 41 if (phydev->autoneg == AUTONEG_ENABLE) { in meson_gxl_startup() 78 if (!retries) { in meson_gxl_startup() 79 printf("%s LPA corruption max attempts\n", in meson_gxl_startup() 80 phydev->dev->name); in meson_gxl_startup() [all …]
|
/openbmc/linux/include/linux/mmc/ |
H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 40 #define MMC_CMD_MASK (3 << 5) /* non-SPI command type */ 69 #define mmc_resp_type(cmd) ((cmd)->flags & (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MM… 84 #define mmc_spi_resp_type(cmd) ((cmd)->flags & \ 90 #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) 92 unsigned int retries; /* max number of retries */ member 115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ 176 int retries);
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdswap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * support and lock-less operation written by Adrian Hunter. 44 * without disturbing gc too much. This is made by defining max GC frequency. 59 #define BLOCK_ERROR (UINT_MAX - 1) 60 #define BLOCK_MAX (UINT_MAX - 2) 80 rb)->erase_count) 82 rb)->erase_count) 153 * page from the current block and is then pre-empted by the GC 160 #define TREE_ROOT(d, name) (&d->trees[MTDSWAP_ ## name].root) 161 #define TREE_EMPTY(d, name) (TREE_ROOT(d, name)->rb_node == NULL) [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | xfs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 on the SGI IRIX platform. It is completely multi-threaded, can 15 for further details. This implementation is on-disk compatible 25 Sets the buffered I/O end-of-file preallocation size when 28 through to 1GiB, inclusive, in power-of-2 increments. 30 The default behaviour is for dynamic end-of-file 40 on-disk. When the new form is used for the first time when 42 attributes) the on-disk superblock feature bit field will be 45 The default behaviour is determined by the on-disk feature 116 Set the number of in-memory log buffers. Valid numbers [all …]
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | pm8941.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/spmi/spmi.h> 8 thermal-zones { 9 pm8941-thermal { 10 polling-delay-passive = <100>; 11 polling-delay = <0>; 12 thermal-sensors = <&pm8941_temp>; 40 compatible = "qcom,pm8941", "qcom,spmi-pmic"; [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_diag.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <asm/asm-extable.h> 43 #define DIAG_MAX_BLOCKS (((2 * PAGE_SIZE - sizeof(struct dasd_ccw_req) - \ 100 * number of blocks on the device minus the specified offset. Return non-zero 106 struct dasd_diag_private *private = device->private; in mdsk_init_io() 107 struct dasd_diag_init_io *iib = &private->iib; in mdsk_init_io() 112 iib->dev_nr = private->dev_id.devno; in mdsk_init_io() 113 iib->block_size = blocksize; in mdsk_init_io() 114 iib->offset = offset; in mdsk_init_io() 115 iib->flaga = DASD_DIAG_FLAGA_DEFAULT; in mdsk_init_io() [all …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_i2c_infineon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 /* max. number of iterations after I2C NAK */ 31 /* max. number of iterations after I2C NAK for 'long' commands 62 /* In addition to the data itself, the buffer must fit the 7-bit I2C 74 * iic_tpm_read() - read from TPM register 80 * buffer (little-endian format, i.e. first byte is put into buffer[0]). 82 * NOTE: TPM is big-endian for multi-byte values. Multi-byte 90 * Return -EIO on error, 0 on success. 96 .addr = tpm_dev.client->addr, in iic_tpm_read() 101 .addr = tpm_dev.client->addr, in iic_tpm_read() [all …]
|
/openbmc/linux/drivers/platform/x86/intel/ifs/ |
H A D | runtest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 /* Max retries on the same chunk */ 56 "Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently", 72 "Not all scan chunks were executed. Maximum forward progress retries exceeded"); in message_not_tested() 90 cpumask_pr_args(cpu_smt_mask(cpu)), ifsd->cur_batch, ifsd->loaded_version); in message_fail() 102 cpumask_pr_args(cpu_smt_mask(cpu)), ifsd->cur_batch, ifsd->loaded_version); in message_fail() 177 int retries; in ifs_test_core() local 185 to_stop = ifsd->valid_chunks - 1; in ifs_test_core() 187 if (ifsd->generation) { in ifs_test_core() 196 retries = MAX_IFS_RETRIES; in ifs_test_core() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | abituguru.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * abituguru.c Copyright (c) 2005-2006 Hans de Goede <hdegoede@redhat.com> 23 #include <linux/hwmon-sysfs.h> 32 /* max nr of sensors in bank1, a bank1 sensor can be in, temp or nc */ 35 * Warning if you increase one of the 2 MAX defines below to 10 or higher you 38 /* max nr of sensors in bank2, currently mb's with max 6 fans are known */ 40 /* max nr of pwm outputs, currently mb's with max 5 pwm outputs are known */ 44 #define ABIT_UGURU_VOLT_HIGH_ALARM_ENABLE 0x02 /* volt over max */ 47 #define ABIT_UGURU_VOLT_HIGH_ALARM_FLAG 0x20 /* volt is over max */ 64 * of the time it will reach this status within 30 - 90 ISA reads, and thus we [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | jr3_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 84 int max; member 116 int retries; member 119 static struct jr3_pci_poll_delay poll_delay_min_max(int min, int max) in poll_delay_min_max() argument 124 result.max = max; in poll_delay_min_max() 130 return get_s16(&sensor->command_word0) == 0; in is_complete() 140 set_u16(&sensor->transforms[num].link[i].link_type, in set_transforms() 141 transf->link[i].link_type); in set_transforms() 143 set_s16(&sensor->transforms[num].link[i].link_amount, in set_transforms() [all …]
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_defs_fcs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 73 * - FCP IM and FCP TM roles cannot be enabled together for a FCS port 74 * - Create multiple ports if both IM and TM functions required. 75 * - Atleast one role must be specified. 142 u32 max_vports_supp; /* Max supported vports */ 144 u32 max_rports_supp; /* Max supported rports */ 161 u32 ns_retries; /* NS command retries */ [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | hdreg.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 17 #define IDE_DRIVE_TASK_INVALID -1 137 * 0x01->0x02 Reserved 141 * 0x04->0x07 Reserved 146 * 0x09->0x0F Reserved 151 * 0x10->0x1F Reserved 153 #define WIN_READ 0x20 /* 28-Bit */ 154 #define WIN_READ_ONCE 0x21 /* 28-Bit without retries */ 155 #define WIN_READ_LONG 0x22 /* 28-Bit */ 156 #define WIN_READ_LONG_ONCE 0x23 /* 28-Bit without retries */ [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/network/network/ |
H A D | ncsi-wait-and-set-speed | 2 set -e 5 # 1 gigabit. It will run until it is successful or it hits its max retries. 10 # - Network interface to configure (i.e. eth0, eth1, ...) 12 if [ $# -ne 1 ]; then 25 /usr/libexec/ncsi-netlink-ifindex "$netIface" -p 0 -c 0 -o 5000000157200001 || rc=$? 26 if [ $rc -ne 0 ]; then
|
/openbmc/pldm/ |
H A D | meson.options | 31 'transport-implementation', 33 choices: ['mctp-demux', 'af-mctp'], 34 description: 'transport via af-mctp or mctp-demux' 44 'dbus-timeout-value', 47 max: 10, 54 'heartbeat-timeout-seconds', 58 from host, as part of host-bmc surveillance''' 63 'flightrecorder-max-entries', 66 max:30, 68 description: '''The max number of pldm messages that can be stored in the [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | location.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2015-2017 Intel Deutschland GmbH 4 * Copyright (C) 2018-2022 Intel Corporation 10 * enum iwl_location_subcmd_ids - location group command IDs 85 * struct iwl_tof_config_cmd - ToF configuration 87 * @one_sided_disabled: indicates if one-sided is disabled (or not) 99 * enum iwl_tof_bandwidth - values for iwl_tof_range_req_ap_entry.bandwidth 100 * @IWL_TOF_BW_20_LEGACY: 20 MHz non-HT 117 * enum iwl_tof_algo_type - Algorithym type for range measurement request 129 * enum iwl_tof_mcsi_ntfy - Enable/Disable MCSI notifications [all …]
|