/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_rmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 33 * This is a per-ag tree used to track the owner(s) of a given extent. With 57 struct xfs_btree_cur *cur) in xfs_rmapbt_dup_cursor() argument 59 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor() 60 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_rmapbt_dup_cursor() 65 struct xfs_btree_cur *cur, in xfs_rmapbt_set_root() argument 69 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root() 70 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() 71 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_rmapbt_set_root() 73 ASSERT(ptr->s != 0); in xfs_rmapbt_set_root() [all …]
|
H A D | xfs_ialloc_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. 30 struct xfs_btree_cur *cur, in xfs_inobt_get_minrecs() argument 33 return M_IGEO(cur->bc_mp)->inobt_mnr[level != 0]; in xfs_inobt_get_minrecs() 38 struct xfs_btree_cur *cur) in xfs_inobt_dup_cursor() argument 40 return xfs_inobt_init_cursor(to_perag(cur->bc_group), cur->bc_tp, in xfs_inobt_dup_cursor() 41 cur->bc_ag.agbp); in xfs_inobt_dup_cursor() 46 struct xfs_btree_cur *cur) in xfs_finobt_dup_cursor() argument 48 return xfs_finobt_init_cursor(to_perag(cur->bc_group), cur->bc_tp, in xfs_finobt_dup_cursor() 49 cur->bc_ag.agbp); in xfs_finobt_dup_cursor() [all …]
|
H A D | xfs_btree_staging.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 49 * xfs_btree_stage_afakeroot to set up the in-memory cursor as a staging 56 * Initialize a AG-rooted btree cursor with the given AG btree fake root. 60 struct xfs_btree_cur *cur, in xfs_btree_stage_afakeroot() argument 63 ASSERT(!(cur->bc_flags & XFS_BTREE_STAGING)); in xfs_btree_stage_afakeroot() 64 ASSERT(cur->bc_ops->type != XFS_BTREE_TYPE_INODE); in xfs_btree_stage_afakeroot() 65 ASSERT(cur->bc_tp == NULL); in xfs_btree_stage_afakeroot() 67 cur->bc_ag.afake = afake; in xfs_btree_stage_afakeroot() 68 cur->bc_nlevels = afake->af_levels; in xfs_btree_stage_afakeroot() 69 cur->bc_flags |= XFS_BTREE_STAGING; in xfs_btree_stage_afakeroot() [all …]
|
H A D | xfs_alloc_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. 28 struct xfs_btree_cur *cur) in xfs_bnobt_dup_cursor() argument 30 return xfs_bnobt_init_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ag.agbp, in xfs_bnobt_dup_cursor() 31 to_perag(cur->bc_group)); in xfs_bnobt_dup_cursor() 36 struct xfs_btree_cur *cur) in xfs_cntbt_dup_cursor() argument 38 return xfs_cntbt_init_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ag.agbp, in xfs_cntbt_dup_cursor() 39 to_perag(cur->bc_group)); in xfs_cntbt_dup_cursor() 44 struct xfs_btree_cur *cur, in xfs_allocbt_set_root() argument 48 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_allocbt_set_root() [all …]
|
H A D | xfs_rtrmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2018-2024 Oracle. All Rights Reserved. 48 struct xfs_btree_cur *cur) in xfs_rtrmapbt_dup_cursor() argument 50 return xfs_rtrmapbt_init_cursor(cur->bc_tp, to_rtg(cur->bc_group)); in xfs_rtrmapbt_dup_cursor() 55 struct xfs_btree_cur *cur, in xfs_rtrmapbt_get_minrecs() argument 58 if (level == cur->bc_nlevels - 1) { in xfs_rtrmapbt_get_minrecs() 59 struct xfs_ifork *ifp = xfs_btree_ifork_ptr(cur); in xfs_rtrmapbt_get_minrecs() 61 return xfs_rtrmapbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrmapbt_get_minrecs() 65 return cur->bc_mp->m_rtrmap_mnr[level != 0]; in xfs_rtrmapbt_get_minrecs() 70 struct xfs_btree_cur *cur, in xfs_rtrmapbt_get_maxrecs() argument [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/tools/testing/selftests/mm/ |
H A D | mlock-random-test.c | 1 // SPDX-License-Identifier: GPL-2.0 25 #define PAGE_ALIGN(size, ps) (((size) + ((ps) - 1)) & ~((ps) - 1)) 27 int set_cap_limits(rlim_t max) in set_cap_limits() argument 32 new.rlim_cur = max; in set_cap_limits() 33 new.rlim_max = max; in set_cap_limits() 36 return -1; in set_cap_limits() 42 return -1; in set_cap_limits() 51 int ret = -1; in get_proc_locked_vm_size() 74 return -1; in get_proc_locked_vm_size() 129 * return value: 0 - success [all …]
|
/linux/fs/btrfs/ |
H A D | defrag.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "disk-io.h" 13 #include "delalloc-space.h" 16 #include "file-item.h" 41 * This value is different for compressed/non-compressed extents, thus 51 if (defrag1->root > defrag2->root) in compare_inode_defrag() 53 else if (defrag1->root < defrag2->root) in compare_inode_defrag() 54 return -1; in compare_inode_defrag() 55 else if (defrag1->ino > defrag2->ino) in compare_inode_defrag() 57 else if (defrag1->ino < defrag2->ino) in compare_inode_defrag() [all …]
|
/linux/drivers/misc/cxl/ |
H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 afu->guest->handle = addr; in read_phys_addr() 38 afu->guest->p2n_phys += addr; in read_phys_addr() 39 afu->guest->p2n_size = size; in read_phys_addr() 42 afu->psn_phys += addr; in read_phys_addr() 43 afu->adapter->ps_size = size; in read_phys_addr() 48 return -EINVAL; in read_phys_addr() 77 return of_property_read_reg(afu_np, 0, &afu->guest->handle, NULL); in cxl_of_read_afu_handle() 92 rc = read_phys_addr(np, "assigned-addresses", afu); in cxl_of_read_afu_properties() 96 if (afu->psn_phys == 0) in cxl_of_read_afu_properties() [all …]
|
/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 …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
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 …]
|
/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> 25 * cpufreq_set - set the CPU frequency 33 int ret = -EINVAL; in cpufreq_set() 34 struct userspace_policy *userspace = policy->governor_data; in cpufreq_set() 36 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set() 38 mutex_lock(&userspace->mutex); in cpufreq_set() 39 if (!userspace->is_managed) in cpufreq_set() 42 userspace->setspeed = freq; in cpufreq_set() 46 mutex_unlock(&userspace->mutex); in cpufreq_set() [all …]
|
/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 …]
|
/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 87 static int saved_tskey = -1; 88 static int saved_tskey_type = -1; 92 int64_t max; member 105 return ts->tv_sec * NSEC_PER_SEC + ts->tv_nsec; in timespec_to_ns64() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dp_capability.c | 57 link->ctx->logger 59 #ifndef MAX 60 #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) macro 109 return (link->dpcd_caps.dongle_type >= DISPLAY_DONGLE_DP_VGA_CONVERTER) && in is_dp_active_dongle() 110 (link->dpcd_caps.dongle_type <= DISPLAY_DONGLE_DP_HDMI_CONVERTER); in is_dp_active_dongle() 115 return link->dpcd_caps.is_branch_dev; in is_dp_branch_device() 133 return -1; in translate_dpcd_max_bpc() 187 link_rate = LINK_RATE_LOW; // Rate_1 (RBR) - 1.62 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 190 link_rate = LINK_RATE_RATE_2; // Rate_2 - 2.16 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() 193 link_rate = LINK_RATE_RATE_3; // Rate_3 - 2.43 Gbps/Lane in linkRateInKHzToLinkRateMultiplier() [all …]
|
/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 …]
|
/linux/net/dccp/ccids/lib/ |
H A D | loss_interval.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. 5 * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> 18 return LIH_SIZE - 1 - (ctr % LIH_SIZE); in LIH_INDEX() 24 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek() 30 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval() 31 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval() 35 * On-demand allocation and de-allocation of entries 39 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next() 40 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next() [all …]
|