| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | ams,as3711.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> 15 two step-up DC/DC converters are defined. 26 Step-up converter configuration, to be used as a backlight source 31 const: ams,as3711-bl 33 su1-dev: 34 description: Framebuffer phandle for the first step-up converter 37 su1-max-uA: [all …]
|
| /linux/Documentation/admin-guide/pm/ |
| H A D | suspend-flows.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 At least one global system-wide transition needs to be carried out for the 14 :doc:`sleep states <sleep-states>`. Hibernation requires more than one 16 referred to as *system-wide suspend* (or simply *system suspend*) states, need 27 significant differences between the :ref:`suspend-to-idle <s2idle>` code flows 28 and the code flows related to the :ref:`suspend-to-RAM <s2ram>` and 31 The :ref:`suspend-to-RAM <s2ram>` and :ref:`standby <standby>` sleep states 33 boils down to the platform-specific actions carried out by the suspend and 37 *platform-dependent suspend* states in what follows. 42 Suspend-to-idle Suspend Code Flow [all …]
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_audmix.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 #define FSL_AUDMIX_ATSTPUP0 0x210 /* Attenuation step up factor */ 21 #define FSL_AUDMIX_ATSTPDN0 0x214 /* Attenuation step down factor */ 22 #define FSL_AUDMIX_ATSTPTGT0 0x218 /* Attenuation step target */ 24 #define FSL_AUDMIX_ATSTP0 0x220 /* Attenuation step number */ 28 #define FSL_AUDMIX_ATSTPUP1 0x230 /* Attenuation step up factor */ 29 #define FSL_AUDMIX_ATSTPDN1 0x234 /* Attenuation step down factor */ 30 #define FSL_AUDMIX_ATSTPTGT1 0x238 /* Attenuation step target */ 32 #define FSL_AUDMIX_ATSTP1 0x240 /* Attenuation step number */ 79 /* AUDMIX Attenuation Step Up Factor Register */ [all …]
|
| /linux/include/linux/ |
| H A D | iov_iter.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 25 iov_ustep_f step) in iterate_ubuf() argument 27 void __user *base = iter->ubuf; in iterate_ubuf() 30 remain = step(base + iter->iov_offset, 0, len, priv, priv2); in iterate_ubuf() 31 progress = len - remain; in iterate_ubuf() 32 iter->iov_offset += progress; in iterate_ubuf() 33 iter->count -= progress; in iterate_ubuf() 42 iov_ustep_f step) in iterate_iovec() argument 44 const struct iovec *p = iter->__iov; in iterate_iovec() 45 size_t progress = 0, skip = iter->iov_offset; in iterate_iovec() [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | ar933x_uart.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Atheros AR933X SoC built-in UART driver 31 #include <asm/mach-ath79/ar933x_uart.h> 35 #define DRIVER_NAME "ar933x-uart" 57 static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, in ar933x_uart_read() argument 60 return readl(up->port.membase + offset); in ar933x_uart_read() 63 static inline void ar933x_uart_write(struct ar933x_uart_port *up, in ar933x_uart_write() argument 66 writel(value, up->port.membase + offset); in ar933x_uart_write() 69 static inline void ar933x_uart_rmw(struct ar933x_uart_port *up, in ar933x_uart_rmw() argument 76 t = ar933x_uart_read(up, offset); in ar933x_uart_rmw() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-pci-renesas.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2019-2020 Linaro Limited */ 12 #include "xhci-trace.h" 13 #include "xhci-pci.h" 57 const u32 *fw, size_t step, bool rom) in renesas_fw_download_image() argument 71 * The hardware does alternate between two 32-bit pages. in renesas_fw_download_image() 76 data0_or_data1 = (step & 1) == 1; in renesas_fw_download_image() 78 /* step+1. Read "Set DATAX" and confirm it is cleared. */ in renesas_fw_download_image() 82 dev_err(&dev->dev, "Read Status failed: %d\n", in renesas_fw_download_image() 92 dev_err(&dev->dev, "Timeout for Set DATAX step: %zd\n", step); in renesas_fw_download_image() [all …]
|
| /linux/Documentation/core-api/ |
| H A D | cpu_hotplug.rst | 26 A more novel use of CPU-hotplug support is its use today in suspend resume 27 support for SMP. Dual-core and HT support makes even a laptop run SMP kernels 75 from the map depending on the event is hot-add/hot-remove. There are currently 80 be read-only for most use. When setting up per-cpu resources almost always use 94 $ ls -lh /sys/devices/system/cpu 96 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu0 97 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu1 98 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu2 99 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu3 100 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu4 [all …]
|
| /linux/drivers/clk/tegra/ |
| H A D | cvb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2012-2019 NVIDIA Corporation. All rights reserved. 20 mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale); in get_cvb_voltage() 21 mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0; in get_cvb_voltage() 28 /* combined: apply voltage scale and round to cvb alignment step */ in round_cvb_voltage() 30 int step = (align->step_uv ? : 1000) * v_scale; in round_cvb_voltage() local 31 int offset = align->offset_uv * v_scale; in round_cvb_voltage() 33 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage() 34 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; in round_cvb_voltage() 40 UP enumerator [all …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | cs35l33.txt | 5 - compatible : "cirrus,cs35l33" 7 - reg : the I2C address of the device for I2C 9 - VA-supply, VP-supply : power supplies for the device, 15 - reset-gpios : gpio used to reset the amplifier 17 - interrupts : IRQ line info CS35L33. 18 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 21 - cirrus,boost-ctl : Booster voltage use to supply the amp. If the value is 23 a value of 1 and will increase at a step size of 100mV until a maximum of 26 - cirrus,ramp-rate : On power up, it affects the time from when the power 27 up sequence begins to the time the audio reaches a full-scale output. [all …]
|
| /linux/Documentation/devicetree/bindings/input/touchscreen/ |
| H A D | ti,am3359-tsc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Miquel Raynal <miquel.raynal@bootlin.com> 14 const: ti,am3359-tsc 22 ti,x-plate-resistance: 26 ti,coordinate-readouts: 28 step is used to read a single coordinate. A single readout is enough but 36 ti,wire-config: [all …]
|
| /linux/arch/arm/mach-omap1/ |
| H A D | pm.c | 2 * linux/arch/arm/mach-omap1/pm.c 55 #include <linux/soc/ti/omap1-io.h> 57 #include <linux/omap-dma.h> 58 #include <clocksource/timer-ti-dm.h> 91 return -EINVAL; in idle_store() 163 * Turn off all interrupts except GPIO bank 1, L1-2nd level cascade, in omap_pm_wakeup_setup() 166 * wake up to a GPIO interrupt. in omap_pm_wakeup_setup() 213 * Step 1: turn off interrupts (FIXME: NOTE: already disabled) in omap1_pm_suspend() 220 * Step 2: save registers in omap1_pm_suspend() 263 /* (Step 3 removed - we now allow deep sleep by default) */ in omap1_pm_suspend() [all …]
|
| /linux/block/ |
| H A D | blk-wbt.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - Monitor latencies in a defined window of time. 7 * - If the minimum latency in the above window exceeds some target, increment 8 * scaling step and scale down queue depth by a factor of 2x. The monitoring 9 * window is then shrunk to 100 / sqrt(scaling step + 1). 10 * - For any window where we don't have solid data on what the latencies 12 * - If latencies look good, decrement scaling step. 13 * - If we're only doing writes, allow the scaling step to go negative. This 15 * scaling step of 0 if reads show up or the heavy writers finish. Unlike 17 * scaling step retains the default step==0 window size. [all …]
|
| /linux/drivers/pinctrl/mediatek/ |
| H A D | pinctrl-mtk-common.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 #include <linux/pinctrl/pinconf-generic.h> 14 #include "mtk-eint.h" 61 #define SET_ADDR(x, y) (x + (y->devdata->port_align)) 62 #define CLR_ADDR(x, y) (x + (y->devdata->port_align << 1)) 71 * struct mtk_drv_group_desc - Provide driving group data. 76 * @step: The step current of this group. 83 unsigned char step; member 92 .step = _step, \ 96 * struct mtk_pin_drv_grp - Provide each pin driving info. [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | sentelic.rst | 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 10 :Last update: Dec-07-2011 28 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 30 |---------------| |---------------| |---------------| |---------------| 40 Byte 2: X Movement(9-bit 2's complement integers) 41 Byte 3: Y Movement(9-bit 2's complement integers) 43 valid values, -8 ~ +7 51 - Set bit 1 in register 0x40 to 1 60 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 62 |---------------| |---------------| |---------------| |---------------| [all …]
|
| /linux/Documentation/devicetree/bindings/leds/ |
| H A D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 There are two LED outputs available - FLED1 and FLED2. Each of them can 26 const: maxim,max77693-led 28 maxim,boost-mode: 30 In boost mode the device can produce up to 1.2A of total current on both 34 See LEDS_BOOST_* in include/dt-bindings/leds/common.h. 38 maxim,boost-mvout: [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | firmware.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2015 - 2017 Intel Corporation. 103 #define AUGMENT_SIZE (sizeof(struct augmented_firmware_file) - \ 217 * Read a single 64-bit value from 8051 data memory. 220 * o caller to have already set up data read, no auto increment 224 * ignored - i.e. the hardware will always do aligned 8-byte reads as if 227 * Return 0 on success, -ENXIO on a read error (timeout). 234 /* step 1: set the address, clear enable */ in __read_8051_data() 238 /* step 2: enable */ in __read_8051_data() 250 return -ENXIO; in __read_8051_data() [all …]
|
| /linux/lib/crypto/tests/ |
| H A D | hash-test-template.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #include <kunit/run-in-irq-context.h> 22 * which does not require cryptographically secure random numbers. A hard-coded 29 random_seed = (random_seed * 25214903917 + 11) & ((1ULL << 48) - 1); in rand32() 77 * Allocate the test buffer using vmalloc() with a page-aligned length in hash_suite_init() 85 return -ENOMEM; in hash_suite_init() 87 test_buf = orig_test_buf + alloc_len - TEST_BUF_LEN; in hash_suite_init() 102 * one-shot instead of incremental), since consistency between different ways of 123 * Test that the hash function produces correct results for *every* length up to 145 * Test that the hash function produces the same result with a one-shot [all …]
|
| /linux/mm/ |
| H A D | shrinker.c | 1 // SPDX-License-Identifier: GPL-2.0 29 unit = info->unit; in shrinker_unit_free() 30 nr = DIV_ROUND_UP(info->map_nr_max, SHRINKER_UNIT_BITS); in shrinker_unit_free() 45 int nr = DIV_ROUND_UP(new->map_nr_max, SHRINKER_UNIT_BITS); in shrinker_unit_alloc() 46 int start = old ? DIV_ROUND_UP(old->map_nr_max, SHRINKER_UNIT_BITS) : 0; in shrinker_unit_alloc() 53 return -ENOMEM; in shrinker_unit_alloc() 56 new->unit[i] = unit; in shrinker_unit_alloc() 69 pn = memcg->nodeinfo[nid]; in free_shrinker_info() 70 info = rcu_dereference_protected(pn->shrinker_info, true); in free_shrinker_info() 73 rcu_assign_pointer(pn->shrinker_info, NULL); in free_shrinker_info() [all …]
|
| /linux/kernel/ |
| H A D | cpu.c | 36 #include <linux/percpu-rwsem.h> 49 * struct cpuhp_cpu_state - Per cpu hotplug state storage 58 * @node: Remote CPU node; for multi-instance, do a 60 * @last: For multi-instance rollback, remember how far we got 64 * @done_up: Signal completion to the issuer of the task for cpu-up 65 * @done_down: Signal completion to the issuer of the task for cpu-down 97 STATIC_LOCKDEP_MAP_INIT("cpuhp_state-up", &cpuhp_state_up_map); 99 STATIC_LOCKDEP_MAP_INIT("cpuhp_state-down", &cpuhp_state_down_map); 119 * struct cpuhp_step - Hotplug state machine step 120 * @name: Name of the step [all …]
|
| /linux/scripts/ |
| H A D | recordmcount.pl | 2 # SPDX-License-Identifier: GPL-2.0-only 5 # recordmcount.pl - makes a section called __mcount_loc that holds 9 # What we want to end up with this is that each object file will have a 13 # Later on boot up, the kernel will read this list, save the locations and turn 31 # referring a function symbol in this section. During the link step, 'ld' will 58 # .quad func2 - 0x10 81 # the original object, we will end up with two symbols for func1: 82 # one local, one global. After final compile, we will end up with 99 # 4) Do we have to deal with local functions? If not, go to step 8. 145 # Acceptable section-prefixes to record. [all …]
|
| /linux/drivers/pwm/ |
| H A D | pwm-mc33xs2410.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2024 Liebherr-Electronics and Drives GmbH 5 * Reference Manual : https://www.nxp.com/docs/en/data-sheet/MC33XS2410.pdf 8 * - Supports frequencies between 0.5Hz and 2048Hz with following steps: 9 * - 0.5 Hz steps from 0.5 Hz to 32 Hz 10 * - 2 Hz steps from 2 Hz to 128 Hz 11 * - 8 Hz steps from 8 Hz to 512 Hz 12 * - 32 Hz steps from 32 Hz to 2048 Hz 13 * - Cannot generate a 0 % duty cycle. 14 * - Always produces low output if disabled. [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | nct6775.rst | 19 * Nuvoton NCT5572D/NCT6771F/NCT6772F/NCT6775F/W83677HG-I 83 * Nuvoton NCT6796D-S/NCT6799D-R 93 Guenter Roeck <linux@roeck-us.net> 96 ----------- 101 The chips support up to 25 temperature monitoring sources. Up to 6 of those are 105 temperatures. The driver reports up to 10 of the temperatures to the user. 138 The mode works for fan1-fan5. 141 ---------------- 143 pwm[1-7] 144 - this file stores PWM duty cycle or DC value (fan speed) in range: [all …]
|
| /linux/drivers/regulator/ |
| H A D | bd718x7-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // bd71837-regulator.c ROHM BD71837MWV/BD71847MWV regulator driver 10 #include <linux/mfd/rohm-bd718x7.h> 51 * controlled by software - or by PMIC internal HW state machine. Whether 52 * regulator should be under SW or HW control can be defined from device-tree. 103 * Note for next hacker - these PMICs have a register where the HW state can be 104 * read. If assuming RUN appears to be false in your use-case - you can 123 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl() 142 * might be less - and we could probably use DT to give in voltage_change_done() 153 ret = regmap_clear_bits(rdev->regmap, BD718XX_REG_MVRFLTMASK2, in voltage_change_done() [all …]
|
| /linux/Documentation/driver-api/driver-model/ |
| H A D | porting.rst | 12 Please refer to `Documentation/driver-api/driver-model/*.rst` for definitions of 21 be embedded in larger, bus-specific objects. Fields in these generic 22 objects can replace fields in the bus-specific objects. 28 # mount -t sysfs sysfs /sys 34 Step 0: Read include/linux/device.h for object and function definitions. 36 Step 1: Registering the bus driver. 39 - Define a struct bus_type for the bus driver:: 46 - Register the bus type. 65 - Export the bus type for others to use. 81 - This will cause the bus to show up in /sys/bus/pci/ with two [all …]
|
| /linux/Documentation/PCI/ |
| H A D | pci-error-recovery.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 :Authors: - Linas Vepstas <linasvepstas@gmail.com> 9 - Richard Lary <rlary@us.ibm.com> 10 - Mike Mason <mmlnx@us.ibm.com> 17 and the PCI-host bridges found on IBM Power4, Power5 and Power6-based 32 including multiple instances of a device driver on multi-function 34 waiting for some i/o-space register to change, when it never will. 39 is forced by the need to handle multi-function devices, that is, 42 of reset it desires, the choices being a simple re-enabling of I/O 47 After a reset and/or a re-enabling of I/O, all drivers are [all …]
|