Home
last modified time | relevance | path

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

12345678910>>...13

/linux/arch/arm/boot/dts/ti/omap/
H A 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 …]
H A 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>
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 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/drivers/gpu/drm/nouveau/nvif/
H A Dchan.c1 /* SPDX-License-Identifier: MIT
11 u32 put = push->bgn - (u32 *)chan->push.mem.object.map.ptr; in nvif_chan_gpfifo_push_kick()
14 if (chan->func->gpfifo.post) { in nvif_chan_gpfifo_push_kick()
15 if (push->end - push->cur < chan->func->gpfifo.post_size) in nvif_chan_gpfifo_push_kick()
16 push->end = push->cur + chan->func->gpfifo.post_size; in nvif_chan_gpfifo_push_kick()
21 cnt = push->cur - push->bgn; in nvif_chan_gpfifo_push_kick()
23 chan->func->gpfifo.push(chan, true, chan->push.addr + (put << 2), cnt << 2, false); in nvif_chan_gpfifo_push_kick()
24 chan->func->gpfifo.kick(chan); in nvif_chan_gpfifo_push_kick()
38 const u32 *map = chan->push.mem.object.map.ptr; in nvif_chan_gpfifo_post()
39 const u32 pbptr = (chan->push.cur - map) + chan->func->gpfifo.post_size; in nvif_chan_gpfifo_post()
[all …]
/linux/arch/arm/boot/dts/st/
H A 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 …]
/linux/drivers/infiniband/hw/cxgb4/
H A 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/fs/xfs/libxfs/
H A Dxfs_rmap_btree.c1 // 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 Dxfs_ialloc_btree.c1 // 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 Dxfs_btree_staging.c1 // 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 Dxfs_alloc_btree.c1 // 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 Dxfs_rtrmap_btree.c1 // 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 Ddrbd_vli.h1 /* 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 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/tools/power/cpupower/utils/helpers/
H A 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/drivers/staging/media/imx/
H A 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) */
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 Dmlock-random-test.c1 // 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 - in set_cap_limits()
137 struct rlimit cur; test_mlock_within_limit() local
204 struct rlimit cur; test_mlock_outof_limit() local
[all...]
/linux/fs/btrfs/
H A Ddefrag.c1 // 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/cpufreq/
H A Dcpufreq_userspace.c1 // 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/arch/arm/boot/dts/nxp/imx/
H A Dimx6dl-yapp43-common.dtsi1 // 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/gpu/drm/vmwgfx/
H A Dvmwgfx_page_dirty.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
4 * Copyright (c) 2019-2025 Broadcom. All Rights Reserved. The term
13 * VMW_BO_DIRTY_PAGETABLE - Scan the pagetable for hardware dirty bits
14 * VMW_BO_DIRTY_MKWRITE - Write-protect page table entries and record write-
34 * struct vmw_bo_dirty - Dirty information for buffer objects
57 return vbo->dirty && (vbo->dirty->start < vbo->dirty->end); in vmw_bo_is_dirty()
61 * vmw_bo_dirty_scan_pagetable - Perform a pagetable scan for dirty bits
66 * dirty-tracking method.
70 struct vmw_bo_dirty *dirty = vbo->dirty; in vmw_bo_dirty_scan_pagetable()
71 pgoff_t offset = drm_vma_node_start(&vbo->tbo.base.vma_node); in vmw_bo_dirty_scan_pagetable()
[all …]
/linux/drivers/hwmon/
H A 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/tools/testing/selftests/net/
H A 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
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/tools/testing/selftests/drivers/net/
H A Dhds.py2 # SPDX-License-Identifier: GPL-2.0
14 def _get_hds_mode(cfg, netnl) -> str:
16 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
18 raise KsftSkipEx('ring-get not supported by device')
19 if 'tcp-data-split' not in rings:
20 raise KsftSkipEx('tcp-data-split not supported by device')
21 return rings['tcp-data-split']
31 def _ioctl_ringparam_modify(cfg, netnl) -> None:
37 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
39 raise KsftSkipEx('ring-get not supported by device')
[all …]
/linux/net/dccp/ccids/lib/
H A Dloss_interval.c
/linux/arch/csky/kernel/
H A 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>>...13