Home
last modified time | relevance | path

Searched +full:charge +full:- +full:current +full:- +full:limit +full:- +full:mapping (Results 1 – 25 of 99) sorted by relevance

1234

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dgpio-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/gpio-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
19 const: gpio-charger
21 charger-type:
23 - unknown
24 - battery
25 - ups
[all …]
Dbq24257.txt1 Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger
4 - compatible: Should contain one of the following:
8 - reg: integer, i2c address of the device.
9 - interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in
10 conjunction with "interrupt-parent".
11 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV.
12 - ti,charge-current: integer, maximum charging current in uA.
13 - ti,termination-current: integer, charge will be terminated when current in
14 constant-voltage phase drops below this value (in uA).
17 - pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin.
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dgpio-charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
18 #include <linux/power/gpio-charger.h>
58 struct gpio_mapping mapping; in set_charge_current_limit() local
59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit()
60 struct gpio_desc **gpios = gpio_charger->current_limit_gpios->desc; in set_charge_current_limit()
63 if (!gpio_charger->current_limit_map_size) in set_charge_current_limit()
64 return -EINVAL; in set_charge_current_limit()
66 for (i = 0; i < gpio_charger->current_limit_map_size; i++) { in set_charge_current_limit()
67 if (gpio_charger->current_limit_map[i].limit_ua <= val) in set_charge_current_limit()
[all …]
Dbq24190_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <linux/extcon-provider.h>
34 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */
51 #define BQ24190_REG_CCC 0x02 /* Charge Current Control */
58 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */
70 #define BQ24190_REG_CVC 0x04 /* Charge Voltage Control */
79 #define BQ24190_REG_CTTC 0x05 /* Charge Term/Timer Control */
153 * reads return the current value. In order to return the fault status
182 * The tables below provide a 2-way mapping for the value that goes in
183 * the register field and the real-world value that it represents.
[all …]
Dbq27xxx_battery.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (C) 2010-2011 Lars-Peter Clausen <lars@metafoo.de>
19 * https://www.ti.com/product/bq27510-g1
20 * https://www.ti.com/product/bq27510-g2
21 * https://www.ti.com/product/bq27510-g3
22 * https://www.ti.com/product/bq27520-g1
23 * https://www.ti.com/product/bq27520-g2
24 * https://www.ti.com/product/bq27520-g3
25 * https://www.ti.com/product/bq27520-g4
26 * https://www.ti.com/product/bq27530-g1
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/power/supply/
Dbq24257.txt1 Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger
4 - compatible: Should contain one of the following:
8 - reg: integer, i2c address of the device.
9 - interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in
10 conjunction with "interrupt-parent".
11 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV.
12 - ti,charge-current: integer, maximum charging current in uA.
13 - ti,termination-current: integer, charge will be terminated when current in
14 constant-voltage phase drops below this value (in uA).
17 - pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin.
[all …]
/kernel/linux/linux-4.19/mm/
Dmemcontrol.c1 /* memcontrol.c - Memory Controller
18 * Charge lifetime sanitation
43 #include <linux/page-flags.h>
44 #include <linux/backing-dev.h>
116 * Cgroups above their limits are maintained in a RB-Tree, independent of
208 * limit reclaim to prevent infinite loops, if they ever occur.
221 /* for encoding cft->private value on file */
253 return tsk_is_oom_victim(current) || fatal_signal_pending(current) || in should_force_charge()
254 (current->flags & PF_EXITING); in should_force_charge()
262 return &memcg->vmpressure; in memcg_to_vmpressure()
[all …]
Dpage-writeback.c2 * mm/page-writeback.c
24 #include <linux/backing-dev.h>
53 #define DIRTY_POLL_THRESH (128 >> (PAGE_SHIFT - 10))
99 * The interval between `kupdate'-style writebacks
123 /* End of sysctl-exported parameters */
141 unsigned long wb_dirty; /* per-wb counterparts */
151 * reflect changes in current writeout rate.
159 .wb_completions = &(__wb)->completions
165 .wb_completions = &(__wb)->memcg_completions, \
170 return dtc->dom; in mdtc_valid()
[all …]
/kernel/linux/linux-5.10/mm/
Dpage-writeback.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mm/page-writeback.c
25 #include <linux/backing-dev.h>
54 #define DIRTY_POLL_THRESH (128 >> (PAGE_SHIFT - 10))
100 * The interval between `kupdate'-style writebacks
119 /* End of sysctl-exported parameters */
137 unsigned long wb_dirty; /* per-wb counterparts */
147 * reflect changes in current writeout rate.
155 .wb_completions = &(__wb)->completions
161 .wb_completions = &(__wb)->memcg_completions, \
[all …]
Dmemcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* memcontrol.c - Memory Controller
19 * Charge lifetime sanitation
35 #include <linux/page-flags.h>
36 #include <linux/backing-dev.h>
107 * Cgroups above their limits are maintained in a RB-Tree, independent of
199 * limit reclaim to prevent infinite loops, if they ever occur.
204 /* for encoding cft->private value on file */
236 return tsk_is_oom_victim(current) || fatal_signal_pending(current) || in should_force_charge()
237 (current->flags & PF_EXITING); in should_force_charge()
[all …]
/kernel/linux/linux-4.19/Documentation/isdn/
DREADME1 README for the ISDN-subsystem
8 of the ISDN-subsystem.
10 For using the ISDN-subsystem, some additional userlevel programs are
16 /pub/isdn4linux/isdn4k-utils-<VersionNumber>.tar.gz
19 We also have set up a mailing-list:
21 The isdn4linux-project originates in Germany, and therefore by historical
22 reasons, the mailing-list's primary language is german. However mails
29 To write to the mailing-list, write to isdn4linux@listserv.isdn4linux.de
48 to Euro(EDSS1)-type lines. Usually it is simply the phone number.
51 applies to German 1TR6-type lines. This is a one-digit string,
[all …]
/kernel/linux/linux-4.19/drivers/power/supply/
Dbq24190_charger.c36 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */
53 #define BQ24190_REG_CCC 0x02 /* Charge Current Control */
60 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */
72 #define BQ24190_REG_CVC 0x04 /* Charge Voltage Control */
81 #define BQ24190_REG_CTTC 0x05 /* Charge Term/Timer Control */
155 * reads return the current value. In order to return the fault status
178 * The tables below provide a 2-way mapping for the value that goes in
179 * the register field and the real-world value that it represents.
181 * number at that index in the array is the real-world value that it
221 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
[all …]
Dbq27xxx_battery.c6 * Copyright (C) 2010-2011 Lars-Peter Clausen <lars@metafoo.de>
26 * http://www.ti.com/product/bq27510-g1
27 * http://www.ti.com/product/bq27510-g2
28 * http://www.ti.com/product/bq27510-g3
29 * http://www.ti.com/product/bq27520-g1
30 * http://www.ti.com/product/bq27520-g2
31 * http://www.ti.com/product/bq27520-g3
32 * http://www.ti.com/product/bq27520-g4
33 * http://www.ti.com/product/bq27530-g1
34 * http://www.ti.com/product/bq27531-g1
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_svm.c4 * Permission is hereby granted, free of charge, to any person obtaining a
70 #define SVM_DBG(s,f,a...) NV_DEBUG((s)->drm, "svm: "f"\n", ##a)
71 #define SVM_ERR(s,f,a...) NV_WARN((s)->drm, "svm: "f"\n", ##a)
89 list_for_each_entry(ivmm, &svm->inst, head) { in nouveau_ivmm_find()
90 if (ivmm->inst == inst) in nouveau_ivmm_find()
97 NV_DEBUG((s)->vmm->cli->drm, "svm-%p: "f"\n", (s), ##a)
99 NV_WARN((s)->vmm->cli->drm, "svm-%p: "f"\n", (s), ##a)
111 args->va_start &= PAGE_MASK; in nouveau_svmm_bind()
112 args->va_end = ALIGN(args->va_end, PAGE_SIZE); in nouveau_svmm_bind()
115 if (args->reserved0 || args->reserved1) in nouveau_svmm_bind()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_flat_memory.c4 * Permission is hereby granted, free of charge, to any person obtaining a
56 * System Unified Address - SUA
60 * a combination of vidMM/driver software components. The current virtual
80 * HSA64 - ATC/IOMMU 64b
90 * unified address” feature (SUA) is the mapping of GPUVM and ATC address
112 * A 64b pointer is compared to the apertures that are defined (Base/Limit), in
137 * In all cases (no matter where the 64b -> 49b conversion is done), the gfxip
154 * The default aperture isn’t an actual base/limit aperture; it is just the
155 * address space that doesn’t hit any defined base/limit apertures.
163 * An aperture register definition consists of a Base, Limit, Mtype, and
[all …]
Dkfd_events.c4 * Permission is hereby granted, free of charge, to any person obtaining a
46 * Each signal event needs a 64-bit signal slot where the signaler will write
61 return page->kernel_address; in page_slots()
82 page->kernel_address = backing_store; in allocate_signal_page()
83 page->need_to_free_pages = true; in allocate_signal_page()
99 if (!p->signal_page) { in allocate_event_notification_slot()
100 p->signal_page = allocate_signal_page(p); in allocate_event_notification_slot()
101 if (!p->signal_page) in allocate_event_notification_slot()
102 return -ENOMEM; in allocate_event_notification_slot()
104 p->signal_mapped_size = 256*8; in allocate_event_notification_slot()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdkfd/
Dkfd_flat_memory.c4 * Permission is hereby granted, free of charge, to any person obtaining a
56 * System Unified Address - SUA
60 * a combination of vidMM/driver software components. The current virtual
80 * HSA64 - ATC/IOMMU 64b
90 * unified address” feature (SUA) is the mapping of GPUVM and ATC address
112 * A 64b pointer is compared to the apertures that are defined (Base/Limit), in
137 * In all cases (no matter where the 64b -> 49b conversion is done), the gfxip
154 * The default aperture isn’t an actual base/limit aperture; it is just the
155 * address space that doesn’t hit any defined base/limit apertures.
163 * An aperture register definition consists of a Base, Limit, Mtype, and
[all …]
Dkfd_events.c4 * Permission is hereby granted, free of charge, to any person obtaining a
46 * Each signal event needs a 64-bit signal slot where the signaler will write
61 return page->kernel_address; in page_slots()
82 page->kernel_address = backing_store; in allocate_signal_page()
83 page->need_to_free_pages = true; in allocate_signal_page()
99 if (!p->signal_page) { in allocate_event_notification_slot()
100 p->signal_page = allocate_signal_page(p); in allocate_event_notification_slot()
101 if (!p->signal_page) in allocate_event_notification_slot()
102 return -ENOMEM; in allocate_event_notification_slot()
104 p->signal_mapped_size = 256*8; in allocate_event_notification_slot()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
4 * Copyright 2009-2015 VMware, Inc., Palo Alto, CA., USA
6 * Permission is hereby granted, free of charge, to any person obtaining a
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
259 * true otherwise. Functions are selected depending on the current
260 * DMA mapping mode.
264 return ++(viter->i) < viter->num_pages; in __vmw_piter_non_sg_next()
269 return __sg_page_iter_next(&viter->iter); in __vmw_piter_sg_next()
274 * Helper functions to return a pointer to the current page.
280 * current mapping mode.
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/
Dsmu11_driver_if_arcturus.h4 * Permission is hereby granted, free of charge, to any person obtaining a
44 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1)
45 #define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1)
46 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1)
47 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1)
48 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1)
49 #define MAX_UCLK_DPM_LEVEL (NUM_UCLK_DPM_LEVELS - 1)
50 #define MAX_FCLK_DPM_LEVEL (NUM_FCLK_DPM_LEVELS - 1)
51 #define MAX_XGMI_LEVEL (NUM_XGMI_LEVELS - 1)
52 #define MAX_XGMI_PSTATE_LEVEL (NUM_XGMI_PSTATE_LEVELS - 1)
[all …]
Dsmu11_driver_if_navi10.h4 * Permission is hereby granted, free of charge, to any person obtaining a
50 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1)
51 #define MAX_SMNCLK_DPM_LEVEL (NUM_SMNCLK_DPM_LEVELS - 1)
52 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1)
53 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1)
54 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1)
55 #define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1)
56 #define MAX_DCEFCLK_DPM_LEVEL (NUM_DCEFCLK_DPM_LEVELS - 1)
57 #define MAX_DISPCLK_DPM_LEVEL (NUM_DISPCLK_DPM_LEVELS - 1)
58 #define MAX_PIXCLK_DPM_LEVEL (NUM_PIXCLK_DPM_LEVELS - 1)
[all …]
/kernel/linux/linux-4.19/kernel/
Dfork.c8 * 'fork.c' contains the help-routines for the 'fork' system call
82 #include <linux/posix-timers.h>
83 #include <linux/user-return-notifier.h>
123 int max_threads; /* tunable limit on nr_threads */
193 vfree(vm_stack->addr); in free_vm_stack_cache()
216 memset(s->addr, 0, THREAD_SIZE); in alloc_thread_stack_node()
218 tsk->stack_vm_area = s; in alloc_thread_stack_node()
219 tsk->stack = s->addr; in alloc_thread_stack_node()
220 return s->addr; in alloc_thread_stack_node()
235 tsk->stack_vm_area = find_vm_area(stack); in alloc_thread_stack_node()
[all …]
/kernel/linux/linux-4.19/include/linux/mfd/
Dcros_ec_commands.h27 * Current version of this protocol
55 /* The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
75 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
76 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
77 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
79 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
80 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
81 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
82 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
83 #define EC_MEMMAP_EVENTS_VERSION 0x26 /* Version of data in 0x34 - 0x3f */
[all …]
/kernel/linux/linux-5.10/kernel/
Dfork.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * 'fork.c' contains the help-routines for the 'fork' system call
83 #include <linux/posix-timers.h>
84 #include <linux/user-return-notifier.h>
127 static int max_threads; /* tunable limit on nr_threads */
206 vfree(vm_stack->addr); in free_vm_stack_cache()
229 kasan_unpoison_shadow(s->addr, THREAD_SIZE); in alloc_thread_stack_node()
232 memset(s->addr, 0, THREAD_SIZE); in alloc_thread_stack_node()
234 tsk->stack_vm_area = s; in alloc_thread_stack_node()
235 tsk->stack = s->addr; in alloc_thread_stack_node()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/device_include/
Dsvga_reg.h1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
3 * Copyright 1998-2015 VMware, Inc.
5 * Permission is hereby granted, free of charge, to any person
28 * svga_reg.h --
72 * Legal values for the SVGA_REG_CURSOR_ON register in old-fashioned
90 * the full framebuffer can be traced independent of this limit.
139 * The byte-size is the size of the actual cursor data,
140 * possibly after expanding it to the current bit depth.
142 * 40K is sufficient memory for two 32-bit planes for a 64 x 64 cursor.
144 * The dimension limit is a bound on the maximum width or height.
[all …]

1234