Home
last modified time | relevance | path

Searched full:current (Results 1 – 25 of 5904) sorted by relevance

12345678910>>...237

/Linux-v5.4/tools/power/cpupower/lib/
Dcpufreq.c265 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local
280 if (current) { in cpufreq_get_available_governors()
281 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
282 if (!current->next) in cpufreq_get_available_governors()
284 current = current->next; in cpufreq_get_available_governors()
289 current = first; in cpufreq_get_available_governors()
291 current->first = first; in cpufreq_get_available_governors()
292 current->next = NULL; in cpufreq_get_available_governors()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
295 if (!current->governor) in cpufreq_get_available_governors()
[all …]
/Linux-v5.4/arch/sparc/kernel/
Dsigutil_32.c19 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()
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()
36 &current->thread.float_regs[0], in save_fpu_state()
38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state()
[all …]
/Linux-v5.4/include/linux/platform_data/
Dad7793.h54 * enum ad7793_current_source_direction - AD7793 excitation current direction
55 * @AD7793_IEXEC1_IOUT1_IEXEC2_IOUT2: Current source IEXC1 connected to pin
56 * IOUT1, current source IEXC2 connected to pin IOUT2.
57 * @AD7793_IEXEC1_IOUT2_IEXEC2_IOUT1: Current source IEXC2 connected to pin
58 * IOUT1, current source IEXC1 connected to pin IOUT2.
59 * @AD7793_IEXEC1_IEXEC2_IOUT1: Both current sources connected to pin IOUT1.
60 * Only valid when the current sources are set to 10 uA or 210 uA.
61 * @AD7793_IEXEC1_IEXEC2_IOUT2: Both current sources connected to Pin IOUT2.
62 * Only valid when the current ources are set to 10 uA or 210 uA.
72 * enum ad7793_excitation_current - AD7793 excitation current selection
[all …]
/Linux-v5.4/drivers/tty/
Dtty_jobctrl.c17 return (sigismember(&current->blocked, sig) || in is_ignored()
18 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored()
37 if (current->signal->tty != tty) in __tty_check_change()
41 pgrp = task_pgrp(current); in __tty_check_change()
105 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
107 tty->session = get_pid(task_session(current)); in __proc_set_tty()
108 if (current->signal->tty) { in __proc_set_tty()
109 tty_debug(tty, "current tty %s not NULL!!\n", in __proc_set_tty()
110 current->signal->tty->name); in __proc_set_tty()
111 tty_kref_put(current->signal->tty); in __proc_set_tty()
[all …]
Dtty_audit.c26 buf = current->signal->tty_audit_buf; in tty_audit_buf_ref()
64 pid_t pid = task_pid_nr(current); in tty_audit_log()
65 uid_t uid = from_kuid(&init_user_ns, task_uid(current)); in tty_audit_log()
66 uid_t loginuid = from_kuid(&init_user_ns, audit_get_loginuid(current)); in tty_audit_log()
67 unsigned int sessionid = audit_get_sessionid(current); in tty_audit_log()
71 char name[sizeof(current->comm)]; in tty_audit_log()
76 get_task_comm(name, current); in tty_audit_log()
88 * the current task. @buf->mutex must be locked.
106 * Only needs to be called if current->signal->tty_audit_buf != %NULL.
109 * current->signal.
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/power/supply/
Dbq25890.txt11 - ti,charge-current: integer, maximum charging current (in uA);
12 - ti,termination-current: integer, charge will be terminated when current in
14 - ti,precharge-current: integer, maximum charge current during precharge
20 - ti,boost-max-current: integer, maximum allowed current draw in boost mode
27 input current will be the lower between the resistor setting and the IINLIM
30 current is lowered, to avoid overheating (in degrees Celsius). If omitted,
40 ti,charge-current = <1000000>;
41 ti,termination-current = <50000>;
42 ti,precharge-current = <128000>;
45 ti,boost-max-current = <1000000>;
Dbq24257.txt12 - ti,charge-current: integer, maximum charging current in uA.
13 - ti,termination-current: integer, charge will be terminated when current in
22 - ti,current-limit: The maximum current to be drawn from the charger's input
23 (in uA). If this property is not specified, the input limit current is
44 ti,charge-current = <1000000>;
45 ti,termination-current = <50000>;
57 ti,charge-current = <500000>;
58 ti,termination-current = <50000>;
59 ti,current-limit = <900000>;
Drt9455_charger.txt9 - richtek,output-charge-current: integer, output current from the charger to the
11 - richtek,end-of-charge-percentage: integer, percent of the output charge current.
12 When the current in constant-voltage phase drops
21 decrease voltage level when the over current
24 current provided by the power source.
26 - richtek,avg-input-current-regulation: integer, input current value in uA drained by the
39 richtek,output-charge-current = <500000>;
45 richtek,avg-input-current-regulation = <500000>;
Dbq2415x.txt18 - ti,current-limit: integer, initial maximum current charger can pull
24 - ti,charge-current: integer, maximum charging current in mA.
25 - ti,termination-current: integer, charge will be terminated when current in
39 ti,current-limit = <100>;
42 ti,charge-current = <650>;
43 ti,termination-current = <100>;
/Linux-v5.4/arch/s390/kernel/
Dguarded_storage.c25 if (!current->thread.gs_cb) { in gs_enable()
33 current->thread.gs_cb = gs_cb; in gs_enable()
41 if (current->thread.gs_cb) { in gs_disable()
43 kfree(current->thread.gs_cb); in gs_disable()
44 current->thread.gs_cb = NULL; in gs_disable()
55 gs_cb = current->thread.gs_bc_cb; in gs_set_bc_cb()
60 current->thread.gs_bc_cb = gs_cb; in gs_set_bc_cb()
71 gs_cb = current->thread.gs_bc_cb; in gs_clear_bc_cb()
72 current->thread.gs_bc_cb = NULL; in gs_clear_bc_cb()
83 gs_cb = current->thread.gs_bc_cb; in gs_load_bc_cb()
[all …]
/Linux-v5.4/arch/powerpc/kernel/
Dsignal_32.c379 * Save the current user registers on the user stack.
390 flush_fp_to_thread(current); in save_user_regs()
398 if (current->thread.used_vr) { in save_user_regs()
399 flush_altivec_to_thread(current); in save_user_regs()
400 if (__copy_to_user(&frame->mc_vregs, &current->thread.vr_state, in save_user_regs()
413 * Note that the current VRSAVE value is in the SPR at this point. in save_user_regs()
416 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_user_regs()
417 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) in save_user_regs()
420 if (copy_fpr_to_user(&frame->mc_fregs, current)) in save_user_regs()
435 if (current->thread.used_vsr && ctx_has_vsx_region) { in save_user_regs()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/iio/dac/
Dad5758.txt24 current or voltage output at the VIOUT pin. Only one mode
28 * 1: DPC current mode
30 * 3: PPC current mode
32 Depending on the selected output mode (voltage or current) one of the
42 - adi,range-microamp: Current output range
43 The array of current output ranges must contain two fields:
44 * <0 20000>: 0 mA to 20 mA current range
45 * <0 24000>: 0 mA to 24 mA current range
46 * <4 24000>: 4 mA to 20 mA current range
47 * <(-20000) 20000>: ±20 mA current range
[all …]
/Linux-v5.4/Documentation/power/regulator/
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).
29 some can control their output voltage and or current.
44 current limit. It only needs to enable or disable its
49 current limit to meet operation demands.
101 - regulator current output limit is 20mA @ 5V but is
110 - Domain-3 current limit is 0mA -> 20mA.
113 dynamically setting voltage or current limit levels.
[all …]
/Linux-v5.4/Documentation/hwmon/
Dmax16065.rst55 accurately monitor (+/-2.5%) one current channel using a dedicated high-side
56 current-sense amplifier. The MAX16065 manages up to twelve system voltages
67 one current channel using a dedicated high-side current-sense amplifier. The
74 MAX16070, and MAX16071 also support supply current monitoring.
99 in12_input Voltage on CSP (Current Sense Positive) pin.
100 Only if the chip supports current sensing and if
101 current sensing is enabled.
120 curr1_input Current sense input; only if the chip supports current
121 sensing and if current sensing is enabled.
122 Displayed current assumes 0.001 Ohm current sense
[all …]
Dlochnagar.rst12 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
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)
56 curr5_input Measured current for AVDD 1V8 (milliAmps)
61 curr6_input Measured current for SYSVDD (milliAmps)
[all …]
/Linux-v5.4/scripts/dtc/
Dsrcpos.h28 * current directory (the directory of the last source file read) and after
68 #define YYLLOC_DEFAULT(Current, Rhs, N) \ argument
71 (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \
72 (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \
73 (Current).last_line = YYRHSLOC(Rhs, N).last_line; \
74 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
75 (Current).file = YYRHSLOC(Rhs, N).file; \
77 (Current).first_line = (Current).last_line = \
79 (Current).first_column = (Current).last_column = \
81 (Current).file = YYRHSLOC (Rhs, 0).file; \
[all …]
/Linux-v5.4/scripts/gdb/linux/
Dlists.py76 gdb.write('prev.next != current: '
77 'current@{current_addr}={current} '
80 current=c,
87 'current@{current_addr}={current}\n'.format(
89 current=c
94 gdb.write('next.prev != current: '
95 'current@{current_addr}={current} '
98 current=c,
105 'current@{current_addr}={current}\n'.format(
107 current=c
/Linux-v5.4/arch/m68k/mm/
Dfault.c27 signo = current->thread.signo; in send_fault_sig()
28 si_code = current->thread.code; in send_fault_sig()
29 addr = (void __user *)current->thread.faddr; in send_fault_sig()
71 struct mm_struct *mm = current->mm; in do_page_fault()
141 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault()
161 current->maj_flt++; in do_page_fault()
163 current->min_flt++; in do_page_fault()
195 current->thread.signo = SIGBUS; in do_page_fault()
196 current->thread.faddr = address; in do_page_fault()
200 current->thread.signo = SIGBUS; in do_page_fault()
[all …]
/Linux-v5.4/tools/testing/selftests/cgroup/
Dtest_memcontrol.c93 long anon, current; in alloc_anon_50M_check() local
100 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check()
101 if (current < size) in alloc_anon_50M_check()
104 if (!values_close(size, current, 3)) in alloc_anon_50M_check()
111 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
124 long current, file; in alloc_pagecache_50M_check() local
134 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check()
135 if (current < size) in alloc_pagecache_50M_check()
142 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check()
155 * and check memory.current and some memory.stat values.
[all …]
/Linux-v5.4/include/linux/sched/
Dmm.h120 /* Remove the current tasks stale references to the old mm_struct */
180 if (unlikely(current->flags & in current_gfp_context()
186 if (current->flags & PF_MEMALLOC_NOIO) in current_gfp_context()
188 else if (current->flags & PF_MEMALLOC_NOFS) in current_gfp_context()
191 if (current->flags & PF_MEMALLOC_NOCMA) in current_gfp_context()
223 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
224 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
238 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
254 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
255 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
[all …]
/Linux-v5.4/include/linux/
Dtracehook.h31 * Some tracehook_*() inlines take arguments that the current tracing
60 int ptrace = current->ptrace; in ptrace_report_syscall()
65 current->ptrace_message = message; in ptrace_report_syscall()
73 if (current->exit_code) { in ptrace_report_syscall()
74 send_sig(current->exit_code, current, 1); in ptrace_report_syscall()
75 current->exit_code = 0; in ptrace_report_syscall()
78 current->ptrace_message = 0; in ptrace_report_syscall()
79 return fatal_signal_pending(current); in ptrace_report_syscall()
84 * @regs: user register state of current task
87 * when the current task has just entered the kernel for a system call.
[all …]
/Linux-v5.4/Documentation/admin-guide/cgroup-v1/
Dpids.rst21 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
34 pids.current tracks all child cgroup hierarchies, so parent/pids.current is a
35 superset of parent/child/pids.current.
54 # cat /sys/fs/cgroup/pids/parent/pids.current
61 # cat /sys/fs/cgroup/pids/parent/pids.current
72 # cat /sys/fs/cgroup/pids/parent/pids.current
74 # cat /sys/fs/cgroup/pids/parent/child/pids.current
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/iio/adc/
Dpalmas-gpadc.txt5 1 battery temp NTC (optional current source)
7 3 temp (with ext. diode, optional current source)
15 11 DC-DC current probe (how does this work?)
26 ti,channel0-current-microamp: Channel 0 current in uA.
28 ti,channel3-current-microamp: Channel 3 current in uA.
43 ti,channel0-current-microamp = <5>;
44 ti,channel3-current-microamp = <10>;
/Linux-v5.4/arch/mips/fw/arc/
Dtree.c19 ArcGetPeer(pcomponent *Current) in ArcGetPeer() argument
21 if (Current == PROM_NULL_COMPONENT) in ArcGetPeer()
24 return (pcomponent *) ARC_CALL1(next_component, Current); in ArcGetPeer()
28 ArcGetChild(pcomponent *Current) in ArcGetChild() argument
30 return (pcomponent *) ARC_CALL1(child_component, Current); in ArcGetChild()
34 ArcGetParent(pcomponent *Current) in ArcGetParent() argument
36 if (Current == PROM_NULL_COMPONENT) in ArcGetParent()
39 return (pcomponent *) ARC_CALL1(parent_component, Current); in ArcGetParent()
43 ArcGetConfigurationData(VOID *Buffer, pcomponent *Current) in ArcGetConfigurationData() argument
45 return ARC_CALL2(component_data, Buffer, Current); in ArcGetConfigurationData()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/iio/health/
Dmax30102.txt16 - maxim,red-led-current-microamp: configuration for red LED current
17 - maxim,ir-led-current-microamp: configuration for IR LED current
18 - maxim,green-led-current-microamp: configuration for green LED current
29 maxim,red-led-current-microamp = <7000>;
30 maxim,ir-led-current-microamp = <7000>;

12345678910>>...237