/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-echo.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 5 /dts-v1/; 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 14 compatible = "amazon,omap3-echo", "ti,omap3630", "ti,omap3"; 18 cpu0-supply = <&vdd1_reg>; 28 compatible = "regulator-fixed"; 29 regulator-name = "vcc5v"; 30 regulator-min-microvolt = <5000000>; 31 regulator-max-microvolt = <5000000>; [all …]
|
H A D | omap3-n900.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> 7 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/media/video-interfaces.h> 15 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall 17 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch" 18 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no 34 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-lp55xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 27 - national,lp5521 28 - national,lp5523 29 - ti,lp55231 30 - ti,lp5562 [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | ste-href.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/leds/common.h> 8 #include "ste-href-family-pinctrl.dtsi" 17 compatible = "simple-battery"; 18 battery-type = "lithium-ion-polymer"; 21 thermal-zones { 22 battery-thermal { 24 polling-delay = <0>; [all …]
|
/openbmc/linux/drivers/infiniband/hw/cxgb4/ |
H A D | resource.c | 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 42 if (c4iw_id_table_alloc(&rdev->resource.qid_table, in c4iw_init_qid_table() 43 rdev->lldi.vr->qp.start, in c4iw_init_qid_table() 44 rdev->lldi.vr->qp.size, in c4iw_init_qid_table() 45 rdev->lldi.vr->qp.size, 0)) in c4iw_init_qid_table() 46 return -ENOMEM; in c4iw_init_qid_table() 48 for (i = rdev->lldi.vr->qp.start; in c4iw_init_qid_table() 49 i < rdev->lldi.vr->qp.start + rdev->lldi.vr->qp.size; i++) in c4iw_init_qid_table() [all …]
|
/openbmc/linux/drivers/gpu/drm/ci/ |
H A D | testlist.txt | 1 core_auth@getclient-simple 2 core_auth@getclient-master-drop 3 core_auth@basic-auth 4 core_auth@many-magics 9 drm_read@invalid-buffer 10 drm_read@fault-buffer 11 drm_read@empty-block 12 drm_read@empty-nonblock 13 drm_read@short-buffer-block 14 drm_read@short-buffer-nonblock [all …]
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_vli.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 -*- linux-c -*- 7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH. 8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>. 9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. 19 * and possibly small-bandwidth replication, 55 * * simple byte-based 79 prefix data bits max val Nº data bits 108 -+----------------------------------------------------------------------- 140 if ((in & ((1 << b) -1)) == v) { \ in vli_decode_bits() [all …]
|
/openbmc/linux/tools/power/cpupower/ |
H A D | cpupower-completion.sh | 1 # -*- shell-script -*- 5 _cpupower_commands="frequency-info frequency-set idle-info idle-set set info monitor" 9 …-f -w -l -d -p -g -a -s -y -o -m -n --freq --hwfreq --hwlimits --driver --policy --governors --rel… 10 local prev="${COMP_WORDS[COMP_CWORD-1]}" 11 local cur="${COMP_WORDS[COMP_CWORD]}" 13 frequency-info) COMPREPLY=($(compgen -W "$flags" -- "$cur")) ;; 19 local flags="-f -g --freq --governor -d --min -u --max -r --related" 20 local prev="${COMP_WORDS[COMP_CWORD-1]}" 21 local cur="${COMP_WORDS[COMP_CWORD]}" 23 -f| --freq | -d | --min | -u | --max) [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_ialloc_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. 29 struct xfs_btree_cur *cur, in xfs_inobt_get_minrecs() argument 32 return M_IGEO(cur->bc_mp)->inobt_mnr[level != 0]; in xfs_inobt_get_minrecs() 37 struct xfs_btree_cur *cur) in xfs_inobt_dup_cursor() argument 39 return xfs_inobt_init_cursor(cur->bc_ag.pag, cur->bc_tp, in xfs_inobt_dup_cursor() 40 cur->bc_ag.agbp, cur->bc_btnum); in xfs_inobt_dup_cursor() 45 struct xfs_btree_cur *cur, in xfs_inobt_set_root() argument 49 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_set_root() 50 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root() [all …]
|
H A D | xfs_rmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 30 * This is a per-ag tree used to track the owner(s) of a given extent. With 54 struct xfs_btree_cur *cur) in xfs_rmapbt_dup_cursor() argument 56 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor() 57 cur->bc_ag.agbp, cur->bc_ag.pag); in xfs_rmapbt_dup_cursor() 62 struct xfs_btree_cur *cur, in xfs_rmapbt_set_root() argument 66 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root() 67 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() 68 int btnum = cur->bc_btnum; in xfs_rmapbt_set_root() 70 ASSERT(ptr->s != 0); in xfs_rmapbt_set_root() [all …]
|
H A D | xfs_btree_staging.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 47 struct xfs_btree_cur *cur) in xfs_btree_fakeroot_dup_cursor() argument 62 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_alloc_block() argument 68 return -EFSCORRUPTED; in xfs_btree_fakeroot_alloc_block() 77 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_free_block() argument 81 return -EFSCORRUPTED; in xfs_btree_fakeroot_free_block() 87 struct xfs_btree_cur *cur, in xfs_btree_fakeroot_init_ptr_from_cur() argument 92 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_btree_fakeroot_init_ptr_from_cur() 94 afake = cur->bc_ag.afake; in xfs_btree_fakeroot_init_ptr_from_cur() 95 ptr->s = cpu_to_be32(afake->af_root); in xfs_btree_fakeroot_init_ptr_from_cur() [all …]
|
/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H A D | bitmask.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #define howmany(x, y) (((x)+((y)-1))/(y)) 17 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 31 bmp->size = n; in bitmask_alloc() 32 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc() 33 if (!bmp->maskp) { in bitmask_alloc() 45 free(bmp->maskp); in bitmask_free() 46 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ in bitmask_free() 52 * routines that actually understand the layout of bmp->maskp[]. 64 if (n < bmp->size) in _getbit() [all …]
|
/openbmc/linux/drivers/staging/media/imx/ |
H A D | imx-media-fim.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <media/v4l2-ctrls.h> 14 #include <media/v4l2-subdev.h> 16 #include "imx-media.h" 37 #define FIM_CL_TOLERANCE_MAX_DEF 0 /* no max tolerance (unbounded) */ 73 return fim->icap_flags != IRQ_TYPE_NONE; in icap_enabled() 79 if (fi->denominator == 0) { in update_fim_nominal() 80 dev_dbg(fim->sd->dev, "no frame interval, FIM disabled\n"); in update_fim_nominal() 81 fim->enabled = false; in update_fim_nominal() 85 fim->nominal = DIV_ROUND_CLOSEST_ULL(1000000ULL * (u64)fi->numerator, in update_fim_nominal() [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | mlock-random-test.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #define PAGE_ALIGN(size, ps) (((size) + ((ps) - 1)) & ~((ps) - 1)) 26 int set_cap_limits(rlim_t max) in set_cap_limits() argument 31 new.rlim_cur = max; in set_cap_limits() 32 new.rlim_max = max; in set_cap_limits() 35 return -1; in set_cap_limits() 41 return -2; in set_cap_limits() 50 int ret = -1; in get_proc_locked_vm_size() 57 return -1; in get_proc_locked_vm_size() 67 return -1; in get_proc_locked_vm_size() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | cpufreq_userspace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * (C) 2002 - 2004 Dominik Brodowski <linux@brodo.de> 22 * cpufreq_set - set the CPU frequency 30 int ret = -EINVAL; in cpufreq_set() 31 unsigned int *setspeed = policy->governor_data; in cpufreq_set() 33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() 36 if (!per_cpu(cpu_is_managed, policy->cpu)) in cpufreq_set() 49 return sprintf(buf, "%u\n", policy->cur); in show_speed() 58 return -ENOMEM; in cpufreq_userspace_policy_init() 60 policy->governor_data = setspeed; in cpufreq_userspace_policy_init() [all …]
|
/openbmc/qemu/util/ |
H A D | hbitmap.c | 9 * later. See the COPYING file in the top-level directory. 14 #include "qemu/host-utils.h" 25 * granularity; in all levels except the last, bit N is set iff the N-th 27 * completes on the last level it can examine the 2nd-last level to quickly 29 * powers thereof (32 on 32-bit machines). 32 * this (for the 64-bit case): 34 * bits 0-57 => word in the last bitmap | bits 58-63 => bit in the word 35 * bits 0-51 => word in the 2nd-last bitmap | bits 52-57 => bit in the word 36 * bits 0-45 => word in the 3rd-last bitmap | bits 46-51 => bit in the word 52 * O(logB n) as in the non-amortized complexity). [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_dma.c | 37 * -EINVAL if GET pointer currently outside main push buffer 38 * -EBUSY if timeout exceeded 45 val = nvif_rd32(chan->userd, chan->user_get); in READ_GET() 46 if (chan->user_get_hi) in READ_GET() 47 val |= (uint64_t)nvif_rd32(chan->userd, chan->user_get_hi) << 32; in READ_GET() 61 return -EBUSY; in READ_GET() 64 if (val < chan->push.addr || in READ_GET() 65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET() 66 return -EINVAL; in READ_GET() 68 return (val - chan->push.addr) >> 2; in READ_GET() [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6dl-yapp4-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2015-2018 Y Soft Corporation, a.s. 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/pwm/pwm.h> 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 32 64 128 255>; 23 default-brightness-level = <32>; [all …]
|
H A D | imx6dl-yapp43-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/pwm/pwm.h> 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 32 64 128 255>; 23 default-brightness-level = <32>; 24 num-interpolated-steps = <8>; [all …]
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 62 return -EINVAL; in read_handle() 88 afu->guest->handle = addr; in read_phys_addr() 91 afu->guest->p2n_phys += addr; in read_phys_addr() 92 afu->guest->p2n_size = size; in read_phys_addr() 95 afu->psn_phys += addr; in read_phys_addr() 96 afu->adapter->ps_size = size; in read_phys_addr() 101 return -EINVAL; in read_phys_addr() 133 if (read_handle(afu_np, &afu->guest->handle)) in cxl_of_read_afu_handle() 134 return -EINVAL; in cxl_of_read_afu_handle() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | txtimestamp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - SCHED, SND and ACK timestamps 9 * - RAW, UDP and TCP 10 * - IPv4 and IPv6 11 * - various packet sizes (to test GSO and TSO) 17 * A simple `nc6 [-u] -l -p $DESTPORT` will do 85 static int saved_tskey = -1; 86 static int saved_tskey_type = -1; 90 int64_t max; member 103 return ts->tv_sec * NSEC_PER_SEC + ts->tv_nsec; in timespec_to_ns64() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dp_capability.c | 55 link->ctx->logger 58 #ifndef MAX 59 #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) macro 108 return (link->dpcd_caps.dongle_type >= DISPLAY_DONGLE_DP_VGA_CONVERTER) && in is_dp_active_dongle() 109 (link->dpcd_caps.dongle_type <= DISPLAY_DONGLE_DP_HDMI_CONVERTER); in is_dp_active_dongle() 114 return link->dpcd_caps.is_branch_dev; in is_dp_branch_device() 132 return -1; in translate_dpcd_max_bpc() 186 link_rate = LINK_RATE_LOW; // Rate_1 (RBR) - 1.62 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 189 link_rate = LINK_RATE_RATE_2; // Rate_2 - 2.16 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 192 link_rate = LINK_RATE_RATE_3; // Rate_3 - 2.43 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | lm77.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lm77.c - Part of lm_sensors, Linux kernel modules for hardware 21 #include <linux/hwmon-sysfs.h> 65 #define LM77_TEMP_MIN (-55000) 83 * All registers are word-sized, except for the configuration register. 84 * The LM77 uses the high-byte first convention. 105 struct i2c_client *client = data->client; in lm77_update_device() 108 mutex_lock(&data->update_lock); in lm77_update_device() 110 if (time_after(jiffies, data->last_updated + HZ + HZ / 2) in lm77_update_device() 111 || !data->valid) { in lm77_update_device() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | defrag.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "disk-io.h" 9 #include "print-tree.h" 14 #include "delalloc-space.h" 17 #include "file-item.h" 42 * This value is different for compressed/non-compressed extents, thus 52 if (defrag1->root > defrag2->root) in __compare_inode_defrag() 54 else if (defrag1->root < defrag2->root) in __compare_inode_defrag() 55 return -1; in __compare_inode_defrag() 56 else if (defrag1->ino > defrag2->ino) in __compare_inode_defrag() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | sc2731_charger.c | 1 // SPDX-License-Identifier: GPL-2.0 69 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge() 72 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge() 81 ret = regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge() 87 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge() 105 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG5, in sc2731_charger_set_current_limit() 110 static int sc2731_charger_set_current(struct sc2731_charger_info *info, u32 cur) in sc2731_charger_set_current() argument 115 if (cur > SC2731_CURRENT_LIMIT_2000) in sc2731_charger_set_current() 116 cur = SC2731_CURRENT_LIMIT_2000; in sc2731_charger_set_current() 117 else if (cur < SC2731_CURRENT_PRECHG) in sc2731_charger_set_current() [all …]
|