/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-subset-pid.c | 17 * Test that "mount -t proc -o subset=pid" hides everything but pids, 18 * /proc/self and /proc/thread-self. 21 #include <assert.h> 42 if (unshare(CLONE_NEWNS) == -1) { in make_private_proc() 48 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_proc() 51 if (mount(NULL, "/proc", "proc", 0, "subset=pid") == -1) { in make_private_proc() 78 assert(d); in main() 80 struct dirent *de; in main() local 87 while ((de = readdir(d))) { in main() 88 if (streq(de->d_name, ".")) { in main() [all …]
|
H A D | read.c | 21 // 5) write to /proc/sysrq-trigger 23 #include <assert.h> 46 if (fd == -1) in f_reg() 51 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); in f_reg() 61 if (fd == -1) in f_reg_write() 64 assert((0 <= rv && rv <= len) || rv == -1); in f_reg_write() 74 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1); in f_lnk() 79 struct dirent *de; in f() local 81 de = xreaddir(d); in f() 82 assert(de->d_type == DT_DIR); in f() [all …]
|
H A D | fd-001-lookup.c | 19 #include <assert.h> 32 /* lstat(2) has more "coverage" in case non-symlink pops up somehow. */ 40 assert(rv == 0); in test_lookup_pass() 41 assert(S_ISLNK(st.st_mode)); in test_lookup_pass() 50 assert(rv == -1 && errno == ENOENT); in test_lookup_fail() 83 for (i = -1024; i < 0; i++) { in test_lookup() 87 for (u = INT_MAX - 1024; u <= (unsigned int)INT_MAX + 1024; u++) { in test_lookup() 91 for (u = UINT_MAX - 1024; u != 0; u++) { in test_lookup() 101 struct dirent *de; in main() local 104 if (unshare(CLONE_FILES) == -1) in main() [all …]
|
H A D | fd-003-kthread.c | 20 #include <assert.h> 38 * Return -1 if a process is userspace process. 49 if (dir_fd == -1) in kernel_thread_fd() 50 return -1; in kernel_thread_fd() 57 if (fd == -1) { in kernel_thread_fd() 59 return -1; in kernel_thread_fd() 68 assert(buf[rv - 1] == '\n'); in kernel_thread_fd() 69 buf[rv - 1] = '\0'; in kernel_thread_fd() 71 /* Search backwards: ->comm can contain whitespace and ')'. */ in kernel_thread_fd() 74 assert(p); in kernel_thread_fd() [all …]
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | freeze_controller.c | 1 // SPDX-License-Identifier: GPL-2.0+ 33 writel(SYSMGR_FRZCTRL_SRC_VIO1_ENUM_SW, &freeze_controller_base->src); in sys_mgr_frzctrl_freeze_req() 38 &freeze_controller_base->vioctrl + channel_id); in sys_mgr_frzctrl_freeze_req() 41 * Assert active low enrnsl, plniotri in sys_mgr_frzctrl_freeze_req() 52 * Assert active low bhniotri signal and de-assert in sys_mgr_frzctrl_freeze_req() 66 * Assert active low enrnsl, plniotri and in sys_mgr_frzctrl_freeze_req() 73 clrbits_le32(&freeze_controller_base->hioctrl, reg_cfg_mask); in sys_mgr_frzctrl_freeze_req() 76 * assert active low bhniotri & nfrzdrv signals, in sys_mgr_frzctrl_freeze_req() 77 * de-assert active high csrdone and assert in sys_mgr_frzctrl_freeze_req() 80 reg_value = readl(&freeze_controller_base->hioctrl); in sys_mgr_frzctrl_freeze_req() [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | bbc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * bbc.h: Defines for BootBus Controller found on UltraSPARC-III 12 /* Register sizes are indicated by "B" (Byte, 1-byte), 13 * "H" (Half-word, 2 bytes), "W" (Word, 4 bytes) or 28 #define BBC_ES_ACT 0x10 /* [W] E* Assert Change Time */ 29 #define BBC_ES_DACT 0x14 /* [B] E* De-Assert Change Time */ 30 #define BBC_ES_DABT 0x15 /* [B] E* De-Assert Bypass Time */ 31 #define BBC_ES_ABT 0x16 /* [H] E* Assert Bypass Time */ 38 #define BBC_I2C_0_S1 0x2e /* [B] I2C ctrlr-0 reg S1 */ 39 #define BBC_I2C_0_S0 0x2f /* [B] I2C ctrlr-0 regs S0,S0',S2,S3*/ [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_pll_8960.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk-provider.h> 27 * configuration into common-clock-framework. 239 msm_writel(data, pll->mmio + reg); in pll_write() 244 return msm_readl(pll->mmio + reg); in pll_read() 249 return platform_get_drvdata(pll->pdev); in pll_get_phy() 261 /* Assert PLL S/W reset */ in hdmi_pll_enable() 266 /* Wait for a short time before de-asserting in hdmi_pll_enable() 269 * to assert and de-assert. in hdmi_pll_enable() 273 /* De-assert PLL S/W reset */ in hdmi_pll_enable() [all …]
|
H A D | hdmi_phy_8x60.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 /* De-serializer delay D/C for non-lbk mode: */ in hdmi_phy_8x60_powerup() 56 /* Write to HIGH after PLL power down de-assert: */ in hdmi_phy_8x60_powerup() 64 * Enable the re-time logic in hdmi_phy_8x60_powerup() 97 /* Assert RESET PHY from controller */ in hdmi_phy_8x60_powerdown() 101 /* De-assert RESET PHY from controller */ in hdmi_phy_8x60_powerdown() 113 /* Power down PHY, but keep RX-sense: */ in hdmi_phy_8x60_powerdown() 126 "core-vdda",
|
/openbmc/linux/include/sound/ |
H A D | cs4271.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 17 * line is de-asserted. That also means that clocks cannot be changed 19 * a complete re-initialization of all registers. 21 * One (undocumented) workaround is to assert and de-assert the PDN bit
|
/openbmc/dbus-sensors/src/ |
H A D | Thresholds.cpp | 75 if (std::visit(VariantToStringVisitor(), labelFind->second) != in parseThresholdsFromConfig() 93 (std::visit(VariantToIntVisitor(), indexFind->second) != in parseThresholdsFromConfig() 105 std::visit(VariantToDoubleVisitor(), hysteresisFind->second); in parseThresholdsFromConfig() 119 std::visit(VariantToUnsignedIntVisitor(), severityFind->second); in parseThresholdsFromConfig() 122 std::visit(VariantToStringVisitor(), directionFind->second); in parseThresholdsFromConfig() 131 double val = std::visit(VariantToDoubleVisitor(), valueFind->second); in parseThresholdsFromConfig() 147 conn->async_method_call( in persistThreshold() 165 std::visit(VariantToStringVisitor(), labelFind->second); in persistThreshold() 182 VariantToUnsignedIntVisitor(), severityFind->second); in persistThreshold() 185 std::visit(VariantToStringVisitor(), directionFind->second); in persistThreshold() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | cs4271.txt | 7 - compatible: "cirrus,cs4271" 10 Documentation/devicetree/bindings/spi/spi-bus.txt 14 - reg: the i2c address 19 - reset-gpio: a GPIO spec to define which pin is connected to the chip's 21 - cirrus,amuteb-eq-bmutec: When given, the Codec's AMUTEB=BMUTEC flag 23 - cirrus,enable-soft-reset: 25 line is de-asserted. That also means that clocks cannot be changed 27 a complete re-initialization of all registers. 29 One (undocumented) workaround is to assert and de-assert the PDN bit 36 - vd-supply: Digital power [all …]
|
/openbmc/linux/drivers/usb/misc/ |
H A D | emi26.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #define EMI26_VENDOR_ID 0x086a /* Emagic Soft-und Hardware GmBH */ 26 #define CPUCS_REG 0x7F92 /* EZ-USB Control and Status Register. Bit 0 controls 8051 reset */ 46 dev_err(&dev->dev, "kmalloc(%d) failed.\n", length); in emi26_writememory() 47 return -ENOMEM; in emi26_writememory() 60 dev_info(&dev->dev, "%s - %d\n", __func__, reset_bit); in emi26_set_reset() 61 /* printk(KERN_DEBUG "%s - %d", __func__, reset_bit); */ in emi26_set_reset() 64 dev_err(&dev->dev, "set_reset (%d) failed\n", reset_bit); in emi26_set_reset() 77 int err = -ENOMEM; in emi26_load_firmware() 86 err = request_ihex_firmware(&loader_fw, "emi26/loader.fw", &dev->dev); in emi26_load_firmware() [all …]
|
H A D | emi62.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #define EMI62_VENDOR_ID 0x086a /* Emagic Soft-und Hardware GmBH */ 35 #define CPUCS_REG 0x7F92 /* EZ-USB Control and Status Register. Bit 0 controls 8051 reset */ 55 dev_err(&dev->dev, "kmalloc(%d) failed.\n", length); in emi62_writememory() 56 return -ENOMEM; in emi62_writememory() 69 dev_info(&dev->dev, "%s - %d\n", __func__, reset_bit); in emi62_set_reset() 73 dev_err(&dev->dev, "set_reset (%d) failed\n", reset_bit); in emi62_set_reset() 85 int err = -ENOMEM; in emi62_load_firmware() 90 dev_dbg(&dev->dev, "load_firmware\n"); in emi62_load_firmware() 95 err = request_ihex_firmware(&loader_fw, "emi62/loader.fw", &dev->dev); in emi62_load_firmware() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/udpcast/udpcast/ |
H A D | 0001-include-stddef.h-for-ptrdiff_t.patch | 2 From: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com> 8 Upstream-Status: Pending 10 Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com> 11 --- 15 diff --git a/receivedata.c b/receivedata.c 17 --- a/receivedata.c 19 @@ -1,4 +1,5 @@ 20 #include <assert.h> 25 --
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0016-pass-correct-parameters-to-getdents64.patch | 3 Date: Fri, 21 Jan 2022 15:15:11 -0800 7 …-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to par… 8 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size); 11 …-util.c:102:28: error: incompatible pointer types passing 'union (unnamed union at ../git/src/basi… 15 Upstream-Status: Inappropriate [musl specific] 16 Signed-off-by: Khem Raj <raj.khem@gmail.com> 17 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> 18 --- 19 src/basic/recurse-dir.c | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Led/ |
H A D | Group.interface.yaml | 4 - name: Asserted 7 Whether or not the group is currently asserted. To assert a group, set 8 to True. To de-assert a group, set to False. 11 - name: identifying 17 - xyz.openbmc_project.Inventory.Item 18 - name: fault_identifying 24 - xyz.openbmc_project.Inventory.Item
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0016-pass-correct-parameters-to-getdents64.patch | 3 Date: Fri, 21 Jan 2022 15:15:11 -0800 7 …-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to par… 8 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size); 11 …-util.c:102:28: error: incompatible pointer types passing 'union (unnamed union at ../git/src/basi… 15 Upstream-Status: Inappropriate [musl specific] 16 Signed-off-by: Khem Raj <raj.khem@gmail.com> 17 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> 18 --- 19 src/basic/recurse-dir.c | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | stratixv.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2016 Stefan Roese <sr@denx.de> 25 return -1; in program_write() 28 return -1; in program_write() 40 * Return 0 for sucess, non-zero for error. 44 altera_board_specific_func *pfns = desc->iface_fns; in stratixv_load() 45 int cookie = desc->cookie; in stratixv_load() 52 return -EINVAL; in stratixv_load() 56 if (pfns->pre) in stratixv_load() 57 (pfns->pre)(cookie); in stratixv_load() [all …]
|
/openbmc/linux/sound/soc/sunxi/ |
H A D | sun8i-adda-pr-regmap.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright 2016 Chen-Yu Tsai <wens@csie.org> 15 #include "sun8i-adda-pr-regmap.h" 34 /* De-assert reset */ in adda_reg_read() 57 /* De-assert reset */ in adda_reg_write() 82 .name = "adda-pr", 102 MODULE_ALIAS("platform:sunxi-adda-pr");
|
/openbmc/linux/Documentation/misc-devices/ |
H A D | spear-pcie-gadget.rst | 1 .. SPDX-License-Identifier: GPL-2.0 37 ----------------------- 53 ------------------------ 61 inta write 1 to assert INTA and 0 to de-assert. 83 #mount -t configfs none /Config 134 To assert INTA:: 138 To de-assert INTA:: 170 # cd -
|
/openbmc/u-boot/arch/x86/include/asm/arch-quark/ |
H A D | quark.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 175 /* USB EHCI memory-mapped registers */ 178 /* USB device memory-mapped registers */ 200 * qrk_pci_read_config_dword() - Read a configuration value 216 * qrk_pci_write_config_dword() - Write a PCI configuration value 232 * board_assert_perst() - Assert the PERST# pin 235 * Board-specific codes need supply this routine to assert PCIe slot reset. 245 * board_deassert_perst() - De-assert the PERST# pin 248 * Board-specific codes need supply this routine to de-assert PCIe slot reset.
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-virtio-hcall.c | 5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> 8 * your option) any later version. See the COPYING file in the top-level 14 #include "hw/s390x/s390-virtio-hcall.h" 22 assert(code < MAX_DIAG_SUBCODES); in s390_register_virtio_hypercall() 23 assert(!s390_diag500_table[code]); in s390_register_virtio_hypercall() 32 if (env->regs[1] < MAX_DIAG_SUBCODES) { in s390_virtio_hypercall() 33 fn = s390_diag500_table[env->regs[1]]; in s390_virtio_hypercall() 35 env->regs[2] = fn(&env->regs[2]); in s390_virtio_hypercall() 40 return -EINVAL; in s390_virtio_hypercall()
|
/openbmc/linux/arch/arm/mach-shmobile/ |
H A D | pm-rcar-gen2.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * R-Car Generation 2 Power management support 5 * Copyright (C) 2013 - 2015 Renesas Electronics Corporation 18 #include "rcar-gen2.h" 33 #define CA15RESCNT_CPUS 0xf /* CPU0-3 */ 35 #define CA7RESCNT_CPUS 0xf /* CPU0-3 */ 37 /* On-chip RAM */ 60 if (of_device_is_compatible(np, "arm,cortex-a15")) in rcar_gen2_pm_init() 62 else if (of_device_is_compatible(np, "arm,cortex-a7")) in rcar_gen2_pm_init() 66 np = of_find_compatible_node(NULL, NULL, "renesas,smp-sram"); in rcar_gen2_pm_init() [all …]
|
/openbmc/u-boot/arch/arm/cpu/ |
H A D | u-boot-spl.lds | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (c) 2004-2008 Texas Instruments 6 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> 9 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") 69 __bss_size = __bss_end - __bss_start; 82 ASSERT(__image_copy_end - __image_copy_start < (IMAGE_MAX_SIZE), \ 87 ASSERT(__bss_end - __bss_start < (CONFIG_SPL_BSS_MAX_SIZE), \ 92 ASSERT(__bss_end - _start < (CONFIG_SPL_MAX_FOOTPRINT), \
|
/openbmc/linux/arch/arm/mach-sunxi/ |
H A D | mc_smp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018 Chen-Yu Tsai 5 * Chen-Yu Tsai <wens@csie.org> 7 * arch/arm/mach-sunxi/mc_smp.c 9 * Based on Allwinner code, arch/arm/mach-exynos/mcpm-exynos.c, and 10 * arch/arm/mach-hisi/platmcpm.c 14 #include <linux/arm-cci.h> 19 #include <linux/irqchip/arm-gic.h> 70 /* R_CPUCFG registers, specific to sun8i-a83t */ 110 is_compatible = of_device_is_compatible(node, "arm,cortex-a15"); in sunxi_core_is_cortex_a15() [all …]
|