Home
last modified time | relevance | path

Searched +full:current +full:- (Results 1 – 25 of 1069) sorted by relevance

12345678910>>...43

/linux/arch/sparc/kernel/
H A Dsigutil_32.c1 // SPDX-License-Identifier: GPL-2.0
19 if (test_tsk_thread_flag(current, TIF_USEDFPU)) { in save_fpu_state()
21 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
22 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
23 regs->psr &= ~(PSR_EF); in save_fpu_state()
24 clear_tsk_thread_flag(current, TIF_USEDFPU); in save_fpu_state()
27 if (current == last_task_used_math) { in save_fpu_state()
29 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
30 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
32 regs->psr &= ~(PSR_EF); in save_fpu_state()
[all …]
/linux/include/linux/platform_data/
H A Dad7793.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 * enum ad7793_clock_source - AD7793 clock source selection
25 * enum ad7793_bias_voltage - AD7793 bias voltage selection
27 * @AD7793_BIAS_VOLTAGE_AIN1: Bias voltage connected to AIN1(-).
28 * @AD7793_BIAS_VOLTAGE_AIN2: Bias voltage connected to AIN2(-).
29 * @AD7793_BIAS_VOLTAGE_AIN3: Bias voltage connected to AIN3(-).
40 * enum ad7793_refsel - AD7793 reference voltage selection
42 * and REFIN1(-).
44 * and REFIN1(-). Only valid for AD7795/AD7796.
54 * enum ad7793_current_source_direction - AD7793 excitation current direction
[all …]
/linux/Documentation/devicetree/bindings/power/supply/
H A Dbq25890.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - enum:
20 - ti,bq25890
21 - items:
22 - enum:
[all …]
H A Drohm,bd99954.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <mazziesaccount@gmail.com>
11 - Markus Laine <markus.laine@fi.rohmeurope.com>
12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com>
15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion
16 secondary battery intended to be used in space-constraint equipment such
18 provides a Dual-source Battery Charger, two port BC1.2 detection and a
21 $ref: power-supply.yaml#
[all …]
H A Dbq2415x.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: TI bq2415x Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24150
20 - ti,bq24150a
21 - ti,bq24151
22 - ti,bq24151a
[all …]
H A Dsummit,smb347-charger.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - David Heidelberg <david@ixit.cz>
11 - Dmitry Osipenko <digetx@gmail.com>
16 - summit,smb345
17 - summit,smb347
18 - summit,smb358
26 monitored-battery: true
[all …]
H A Dbq24257.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq24250, bq24251 and bq24257 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24250
20 - ti,bq24251
21 - ti,bq24257
29 ti,battery-regulation-voltage:
[all …]
H A Drichtek,rt9455.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
25 richtek,output-charge-current:
27 description: output current from the charger to the battery, in uA.
29 richtek,end-of-charge-percentage:
32 percent of the output charge current. When the current in constant-voltage phase drops
33 below output_charge_current x end-of-charge-percentage, charge is terminated.
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dqcom,qca807x.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Christian Marangi <ansuelsmth@gmail.com>
11 - Robert Marko <robert.marko@sartura.hr>
15 IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and
16 1000BASE-T PHY-s.
21 Both models have a combo port that supports 1000BASE-X and
22 100BASE-FX fiber.
25 output only pins that natively drive LED-s for up to 2 attached
[all …]
/linux/drivers/tty/
H A Dtty_jobctrl.c1 // SPDX-License-Identifier: GPL-2.0
18 return (sigismember(&current->blocked, sig) || in is_ignored()
19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored()
23 * __tty_check_change - check for POSIX terminal changes
39 if (current->signal->tty != tty) in __tty_check_change()
43 pgrp = task_pgrp(current); in __tty_check_change()
45 spin_lock_irqsave(&tty->ctrl.lock, flags); in __tty_check_change()
46 tty_pgrp = tty->ctrl.pgrp; in __tty_check_change()
47 spin_unlock_irqrestore(&tty->ctrl.lock, flags); in __tty_check_change()
52 ret = -EIO; in __tty_check_change()
[all …]
/linux/tools/testing/selftests/cgroup/
H A Dtest_hugetlb_memcg.c1 // SPDX-License-Identifier: GPL-2.0
19 /* borrowed from mm/hmm-tests.c */
31 return -1; in get_hugepage_size()
38 return -1; in get_hugepage_size()
42 return -1; in get_hugepage_size()
50 return -1; /* looks like the line we want isn't there */ in get_hugepage_size()
58 return -1; in get_hugepage_size()
71 return - in set_file()
99 long old_current, expected_current, current; hugetlb_test_program() local
[all...]
/linux/arch/riscv/kernel/
H A Dkernel_mode_vector.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <asm/asm-prototypes.h>
23 WRITE_ONCE(current->thread.riscv_v_flags, flags); in riscv_v_flags_set()
86 return &current->thread.riscv_v_flags; in riscv_v_flags_ptr()
106 *riscv_v_flags_ptr() -= RISCV_V_CTX_UNIT_DEPTH; in riscv_v_ctx_depth_dec()
116 if (riscv_v_ctx_get_depth() != 0 || !riscv_preempt_v_started(current)) in riscv_v_stop_kernel_context()
119 riscv_preempt_v_clear_dirty(current); in riscv_v_stop_kernel_context()
128 kvstate = &current->thread.kernel_vstate; in riscv_v_start_kernel_context()
129 if (!kvstate->datap) in riscv_v_start_kernel_context()
130 return -ENOENT; in riscv_v_start_kernel_context()
[all …]
/linux/arch/powerpc/kernel/
H A Dsignal_32.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
13 * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson
44 #include <asm/asm-prototypes.h>
66 (sizeof(struct ucontext) - sizeof(elf_vsrreghalf_t32))
104 unsafe_put_user(val, &frame->mc_gregs[i], failed); in __unsafe_save_general_regs()
121 unsafe_get_user(gregs[i], &sr->mc_gregs[i], failed); in __unsafe_restore_general_regs()
148 unsafe_copy_to_user(&frame->mc_gregs, regs, GP_REGS_SIZE, failed); in __unsafe_save_general_regs()
159 unsafe_copy_from_user(regs, &sr->mc_gregs, PT_MSR * sizeof(elf_greg_t), failed); in __unsafe_restore_general_regs()
162 unsafe_copy_from_user(&regs->orig_gpr3, &sr->mc_gregs[PT_ORIG_R3], in __unsafe_restore_general_regs()
[all …]
/linux/Documentation/hwmon/
H A Dina3221.rst10 Addresses: I2C 0x40 - 0x43
19 -----------
21 The Texas Instruments INA3221 monitors voltage, current, and power on the high
23 and supply voltage, with programmable conversion times and averaging, current
24 and power are calculated host-side from these.
27 -------------
33 curr[123]_input Current(mA) measurement channels
35 curr[123]_crit Critical alert current(mA) setting, activates the
36 corresponding alarm when the respective current
38 curr[123]_crit_alarm Critical alert current limit exceeded
[all …]
H A Dacbel-fsg032.rst1 Kernel driver acbel-fsg032
6 * ACBEL FSG032-00xG power supply.
11 -----------
13 This driver supports ACBEL FSG032-00xG Power Supply. This driver
17 -----------
19 This driver does not auto-detect devices. You will have to instantiate the
20 devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
24 -------------
29 curr1_crit Critical maximum current.
30 curr1_crit_alarm Input current critical alarm.
[all …]
H A Dlochnagar.rst10 -----------
12 Lochnagar 2 features built-in Current Monitor circuitry that allows for the
13 measurement of both voltage and current on up to eight of the supply voltage
14 rails provided to the minicards. The Current Monitor does not require any
17 The current and voltage measurements are obtained through the standard register
22 ----------------
28 curr1_input Measured current for DBVDD1 (milliAmps)
35 curr2_input Measured current for 1V8 DSP (milliAmps)
42 curr3_input Measured current for 1V8 CDC (milliAmps)
49 curr4_input Measured current for VDDCORE DSP (milliAmps)
[all …]
H A Dpli1209bc.rst1 .. SPDX-License-Identifier: GPL-2.0
12 Addresses scanned: 0x50 - 0x5F
14 Datasheet: https://www.vicorpower.com/documents/datasheets/ds-PLI1209BCxyzz-VICOR.pdf
17 - Marcello Sylvester Bauer <sylv@sylv.io>
20 -----------
29 -------------
48 curr1_input Input current.
49 curr1_max Maximum input current.
50 curr1_max_alarm Maximum input current high alarm.
51 curr1_crit Critical input current.
[all …]
/linux/Documentation/devicetree/bindings/iio/addac/
H A Dadi,ad74115.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74115H is a single-channel software configurable input/output
17 chip solution with an SPI interface. The device features a 16-bit ADC and a
18 14-bit DAC.
25 - adi,ad74115h
30 spi-max-frequency:
33 spi-cpol: true
[all …]
/linux/arch/s390/kernel/
H A Dguarded_storage.c1 // SPDX-License-Identifier: GPL-2.0
18 kfree(tsk->thread.gs_cb); in guarded_storage_release()
19 kfree(tsk->thread.gs_bc_cb); in guarded_storage_release()
26 if (!current->thread.gs_cb) { in gs_enable()
29 return -ENOMEM; in gs_enable()
30 gs_cb->gsd = 25; in gs_enable()
34 current->thread.gs_cb = gs_cb; in gs_enable()
42 if (current->thread.gs_cb) { in gs_disable()
44 kfree(current->thread.gs_cb); in gs_disable()
45 current->thread.gs_cb = NULL; in gs_disable()
[all …]
/linux/kernel/events/
H A Dhw_breakpoint_test.c1 // SPDX-License-Identifier: GPL-2.0
23 #define TEST_EXPECT_NOSPC(expr) KUNIT_EXPECT_EQ(test, -ENOSPC, PTR_ERR(expr))
82 for (int i = 0; i < get_test_bp_slots() - skip; ++i) in fill_bp_slots()
113 if (num-- <= 0) in get_test_cpu()
127 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_cpu()
150 fill_bp_slots(test, &idx, -1, current, 0); in test_one_task_on_all_cpus()
151 TEST_EXPECT_NOSPC(register_test_bp(-1, current, idx)); in test_one_task_on_all_cpus()
152 TEST_EXPECT_NOSPC(register_test_bp(get_test_cpu(0), current, idx)); in test_one_task_on_all_cpus()
154 /* Remove one and adding back CPU-target should work. */ in test_one_task_on_all_cpus()
164 fill_bp_slots(test, &idx, -1, current, 0); in test_two_tasks_on_all_cpus()
[all …]
/linux/Documentation/power/regulator/
H A Doverview.rst2 Linux voltage and current regulator framework
9 voltage and current regulators.
13 regulators (where voltage output is controllable) and current sinks (where
14 current limit is controllable).
26 - Regulator
27 - Electronic device that supplies power to other devices.
29 some can control their output voltage and or current.
31 Input Voltage -> Regulator -> Output Voltage
34 - PMIC
35 - Power Management IC. An IC that contains numerous
[all …]
/linux/Documentation/devicetree/bindings/phy/
H A Dphy-stm32-usbphyc.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/phy/phy-stm32-usbphyc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
22 |_ PHY port#2 ----| |________________
27 - Amelie Delaunay <amelie.delaunay@foss.st.com>
31 const: st,stm32mp1-usbphyc
42 "#address-cells":
45 "#size-cells":
48 vdda1v1-supply:
[all …]
/linux/rust/kernel/
H A Dtask.rs1 // SPDX-License-Identifier: GPL-2.0
35 macro_rules! current { macro
39 // leave current task context:
41 // * To return to userspace, the caller must leave the current scope.
47 unsafe { &*$crate::task::Task::current() }
62 /// The following is an example of getting the PID of the current thread with zero additional cost
66 /// let pid = current!().pid();
69 /// Getting the PID of the current process, also zero additional cost:
72 /// let pid = current!().group_leader().pid();
75 /// Getting the current task and storing it in some struct. The reference count is automatically
[all …]
/linux/scripts/gdb/linux/
H A Dlists.py81 gdb.write('prev.next != current: '
82 'current@{current_addr}={current} '
85 current=c,
92 'current@{current_addr}={current}\n'.format(
94 current=c
99 gdb.write('next.prev != current: '
100 'current@{current_addr}={current} '
103 current=c,
110 'current@{current_addr}={current}\n'.format(
112 current=c
[all …]
/linux/Documentation/admin-guide/cgroup-v1/
H A Dpids.rst6 --------
17 -----
21 number of processes currently in the cgroup is given by pids.current.
24 to have pids.current > pids.max. This can be done by either setting the limit to
25 be smaller than pids.current, or attaching enough processes to the cgroup such
26 that pids.current > pids.max. However, it is not possible to violate a cgroup
27 policy through fork() or clone(). fork() and clone() will return -EAGAIN if the
34 pids.current tracks all child cgroup hierarchies, so parent/pids.current is a
35 superset of parent/child/pids.current.
39 - max: Number of times fork failed in the cgroup because limit was hit in
[all …]

12345678910>>...43