Home
last modified time | relevance | path

Searched +full:max +full:- +full:cur (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/Linux-v6.1/arch/arm/boot/dts/
Domap3-echo.dts1 // 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 …]
Dste-href.dtsi1 // 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 …]
Domap3-n900.dts1 // 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>
14 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
16 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"
17 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no
33 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
46 cpu0-supply = <&vcc>;
[all …]
Dimx6dl-yapp4-common.dtsi1 // 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 …]
/Linux-v6.1/Documentation/devicetree/bindings/leds/
Dleds-lp55xx.yaml1 # 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-v6.1/drivers/infiniband/hw/cxgb4/
Dresource.c2 * 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-v6.1/drivers/block/drbd/
Ddrbd_vli.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
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-v6.1/tools/power/cpupower/
Dcpupower-completion.sh1 # -*- 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-v6.1/fs/xfs/libxfs/
Dxfs_ialloc_btree.c1 // 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_mp, cur->bc_tp, in xfs_inobt_dup_cursor()
40 cur->bc_ag.agbp, cur->bc_ag.pag, 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 …]
Dxfs_rmap_btree.c1 // 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 …]
Dxfs_btree_staging.c1 // 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 …]
/Linux-v6.1/tools/power/cpupower/utils/helpers/
Dbitmask.c1 // 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-v6.1/include/linux/mlx5/
Ddevice.h2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
50 #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
55 #define __mlx5_16_bit_off(typ, fld) (16 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0xf…
56 #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) - (__mlx5_bit_off(typ, fld) & 0x1…
57 #define __mlx5_mask(typ, fld) ((u32)((1ull << __mlx5_bit_sz(typ, fld)) - 1))
59 #define __mlx5_mask16(typ, fld) ((u16)((1ull << __mlx5_bit_sz(typ, fld)) - 1))
253 MLX5_FP_BFREGS_PER_UAR = MLX5_BFREGS_PER_UAR -
295 #define MLX5_UMR_MTT_MASK (MLX5_UMR_MTT_ALIGNMENT - 1)
[all …]
/Linux-v6.1/tools/testing/selftests/vm/
Dmlock-random-test.c1 // SPDX-License-Identifier: GPL-2.0
23 #define PAGE_ALIGN(size, ps) (((size) + ((ps) - 1)) & ~((ps) - 1))
25 int set_cap_limits(rlim_t max) in set_cap_limits() argument
30 new.rlim_cur = max; in set_cap_limits()
31 new.rlim_max = max; in set_cap_limits()
34 return -1; in set_cap_limits()
40 return -2; in set_cap_limits()
49 int ret = -1; in get_proc_locked_vm_size()
56 return -1; in get_proc_locked_vm_size()
66 return -1; in get_proc_locked_vm_size()
[all …]
/Linux-v6.1/drivers/staging/media/imx/
Dimx-media-fim.c1 // 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) */
71 #define icap_enabled(fim) ((fim)->icap_flags != IRQ_TYPE_NONE)
76 if (fi->denominator == 0) { in update_fim_nominal()
77 dev_dbg(fim->sd->dev, "no frame interval, FIM disabled\n"); in update_fim_nominal()
78 fim->enabled = false; in update_fim_nominal()
82 fim->nominal = DIV_ROUND_CLOSEST_ULL(1000000ULL * (u64)fi->numerator, in update_fim_nominal()
[all …]
/Linux-v6.1/drivers/cpufreq/
Dcpufreq_userspace.c1 // 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 …]
/Linux-v6.1/drivers/gpu/drm/nouveau/
Dnouveau_dma.c37 * -EINVAL if GET pointer currently outside main push buffer
38 * -EBUSY if timeout exceeded
45 val = nvif_rd32(&chan->user, chan->user_get); in READ_GET()
46 if (chan->user_get_hi) in READ_GET()
47 val |= (uint64_t)nvif_rd32(&chan->user, 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 …]
Dnouveau_debugfs.c40 struct drm_info_node *node = (struct drm_info_node *) m->private; in nouveau_debugfs_vbios_image()
41 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_vbios_image()
44 for (i = 0; i < drm->vbios.length; i++) in nouveau_debugfs_vbios_image()
45 seq_printf(m, "%c", drm->vbios.data[i]); in nouveau_debugfs_vbios_image()
52 struct drm_info_node *node = m->private; in nouveau_debugfs_strap_peek()
53 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_strap_peek()
56 ret = pm_runtime_get_sync(drm->dev->dev); in nouveau_debugfs_strap_peek()
57 if (ret < 0 && ret != -EACCES) { in nouveau_debugfs_strap_peek()
58 pm_runtime_put_autosuspend(drm->dev->dev); in nouveau_debugfs_strap_peek()
63 nvif_rd32(&drm->client.device.object, 0x101000)); in nouveau_debugfs_strap_peek()
[all …]
/Linux-v6.1/drivers/misc/cxl/
Dof.c1 // 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 …]
/Linux-v6.1/tools/testing/selftests/net/
Dtxtimestamp.c1 // 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 …]
/Linux-v6.1/drivers/hwmon/
Dlm77.c1 // 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-v6.1/drivers/power/supply/
Dsc2731_charger.c1 // 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-v6.1/tools/testing/selftests/drivers/net/mlxsw/
Dsch_red_ets.sh2 # SPDX-License-Identifier: GPL-2.0
34 local -a args=("$@")
37 limit 1000000 min $BACKLOG1 max $((BACKLOG1 + 1)) \
43 local -a args=("$@")
46 limit 1000000 min $BACKLOG2 max $((BACKLOG2 + 1)) \
114 # Make sure that we get the non-zero value if there is any.
115 local cur=$(busywait 1100 until_counter_is "> 0" \
117 (( cur == 0 ))
118 check_err $? "backlog of $cur observed on non-busy qdisc"
/Linux-v6.1/net/dccp/ccids/lib/
Dloss_interval.c1 // 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 …]
/Linux-v6.1/arch/csky/kernel/
Dcpu-probe.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
14 unsigned int cur, next, i; in percpu_print() local
17 seq_printf(m, "C-SKY CPU model : %s\n", CSKYCPU_DEF_NAME); in percpu_print()
19 /* read processor id, max is 100 */ in percpu_print()
20 cur = mfcr("cr13"); in percpu_print()
22 seq_printf(m, "product info[%d] : 0x%08x\n", i, cur); in percpu_print()
27 if (cur == next) in percpu_print()
30 cur = next; in percpu_print()
32 /* cpid index is 31-28, reset */ in percpu_print()
[all …]

12345678910>>...16