| /linux/Documentation/driver-api/media/ |
| H A D | v4l2-subdev.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 V4L2 sub-devices 4 ---------------- 6 Many drivers need to communicate with sub-devices. These devices can do all 8 encoding or decoding. For webcams common sub-devices are sensors and camera 12 driver with a consistent interface to these sub-devices the 13 :c:type:`v4l2_subdev` struct (v4l2-subdev.h) was created. 15 Each sub-device driver must have a :c:type:`v4l2_subdev` struct. This struct 16 can be stand-alone for simple sub-devices or it might be embedded in a larger 18 low-level device struct (e.g. ``i2c_client``) that contains the device data as [all …]
|
| /linux/include/media/ |
| H A D | v4l2-async.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 22 * enum v4l2_async_match_type - type of asynchronous subdevice logic to be used 37 * struct v4l2_async_match_desc - async connection match information 65 * struct v4l2_async_connection - sub-device connection descriptor, as known to 68 * @match: struct of match type and per-bus type matching data sets 73 * @sd: the related sub-device 88 * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations 89 * @bound: a sub-device has been bound by the given connection 107 * struct v4l2_async_notifier - v4l2_device notifier data [all …]
|
| H A D | v4l2-flash-led-class.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * V4L2 flash LED sub-device registration helpers. 12 #include <media/v4l2-ctrls.h> 13 #include <media/v4l2-subdev.h> 21 * struct v4l2_flash_ctrl_data - flash control initialization data, filled 34 * struct v4l2_flash_ops - V4L2 flash operations 53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data 56 * @intensity: non-flash strobe constraints for the LED 60 * <linux/led-class-flash.h> 71 * struct v4l2_flash - Flash sub-device context [all …]
|
| H A D | v4l2-event.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * v4l2-event.h 7 * Copyright (C) 2009--2010 Nokia Corporation. 25 * struct v4l2_kevent - Internal kernel event struct. 26 * @list: List node for the v4l2_fh->available list. 39 * struct v4l2_subscribed_event_ops - Subscribed event operations. 54 * struct v4l2_subscribed_event - Internal struct representing a subscribed 57 * @list: List node for the v4l2_fh->subscribed list. 60 * @flags: Copy of v4l2_event_subscription->flags. 85 * v4l2_event_dequeue - Dequeue events from video device. [all …]
|
| /linux/include/linux/mfd/ |
| H A D | dln2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 u16 handle; /* sub-driver handle (internally used only) */ 13 * dln2_event_cb_t - event callback function signature 15 * @pdev - the sub-device that registered this callback 16 * @echo - the echo header field received in the message 17 * @data - the data payload 18 * @len - the data payload length 20 * The callback function is called in interrupt context and the data payload is 29 * dl2n_register_event_cb - register a callback function for an event 31 * @pdev - the sub-device that registers the callback [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | relay.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 to userspace via user-defined 'relay channels'. 11 A 'relay channel' is a kernel->user data relay mechanism implemented 12 as a set of per-cpu kernel buffers ('channel buffers'), each 25 filtering - this also is left to the kernel client. The purpose is to 29 details of the function parameters are documented along with the 30 functions in the relay interface code - please see that for details. 36 sub-buffers. Messages are written to the first sub-buffer until it is 38 the next (if available). Messages are never split across sub-buffers. 40 sub-buffer, while the kernel continues writing to the next. [all …]
|
| /linux/Documentation/leds/ |
| H A D | leds-class-flash.rst | 5 Some LED devices provide two modes - torch and flash. In the LED subsystem 6 those modes are supported by LED class (see Documentation/leds/leds-class.rst) 13 registered in the LED subsystem with led_classdev_flash_register function. 16 (see Documentation/ABI/testing/sysfs-class-led-flash) 18 - flash_brightness 19 - max_flash_brightness 20 - flash_timeout 21 - max_flash_timeout 22 - flash_strobe 23 - flash_fault [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | helpers.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 .type __flushw_user,#function 9 1: save %sp, -128, %sp 13 1: sub %g2, 1, %g2 18 .size __flushw_user,.-__flushw_user 27 .type stack_trace_flush,#function 34 sub %g1, 1, %g3 37 sub %g2, 1, %g2 42 sub %g3, 1, %g3 49 .size stack_trace_flush,.-stack_trace_flush [all …]
|
| /linux/tools/lib/python/kdoc/ |
| H A D | kdoc_parser.py | 2 # SPDX-License-Identifier: GPL-2.0 23 # Regular expressions used to parse kernel-doc markups at KernelDoc class. 43 # @{section-name}: 61 type_param = KernRe(r"@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 72 r'(?:[-:].*)?$', # description (not captured) 83 (KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)", flags=re.I | re.S, cache=False), ' '), 115 # - a recursive pattern: (?1) 116 # - an atomic grouping: (?>...) 147 re.S), r'unsigned long \1[1 << ((\2) - 1)]'), 167 # Transforms for function prototypes [all …]
|
| /linux/tools/perf/util/ |
| H A D | setup.py | 3 from re import sub 9 # Check if CC has options, as is the case in yocto, where it uses CC="cc --sysroot..." 18 # mypy: disable-error-code="union-attr" 19 cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline() 32 "-o", "/dev/null", 33 path.join(src_feature_tests, "test-hello.c") 42 vars[var] = sub("-specs=[^ ]+", "", vars[var]) 43 if not clang_has_option("-mcet"): 44 vars[var] = sub("-mcet", "", vars[var]) 45 if not clang_has_option("-fcf-protection"): [all …]
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | netcons_over_bonding.sh | 2 # SPDX-License-Identifier: GPL-2.0 28 set -euo pipefail 30 SCRIPTDIR=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") 58 function setup_bonding_ifaces() { 64 if ! ip -n "${TXNS}" link add "${BOND_TX_MAIN_IF}" type bond mode balance-rr 70 trap - EXIT 76 ip -n "${TXNS}" \ 78 ip -n "${TXNS}" \ 80 ip -n "${TXNS}" \ 82 ip -n "${TXNS}" \ [all …]
|
| /linux/arch/sparc/lib/ |
| H A D | NGbzero.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 .type NGmemset, #function 32 .type NGbzero, #function 39 * %g7: store-init %asi to use 40 * %o4: non-store-init %asi to use 53 sub %g2, %g1, %g1 54 sub %o1, %g1, %o1 61 andcc %o0, (64 - 1), %g1 64 sub %g2, %g1, %g1 65 sub %o1, %g1, %o1 [all …]
|
| H A D | GENbzero.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 .type GENmemset, #function 33 .type GENbzero, #function 52 sub %g2, %g1, %g1 53 sub %o1, %g1, %o1 60 andcc %o0, (64 - 1), %g1 63 sub %g2, %g1, %g1 64 sub %o1, %g1, %o1 71 andn %o1, (64 - 1), %g1 72 sub %o1, %g1, %o1 [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | asm.h | 14 * away by gas in -O mode. These nops are however required to fill delay 21 #include <asm/asm-eva.h> 22 #include <asm/isa-rev.h> 42 * LEAF - declare leaf routine 48 .type symbol, @function; \ 55 * NESTED - declare nested routine entry point 61 .type symbol, @function; \ 68 * END - mark end of function 70 #define END(function) \ 72 .end function; \ [all …]
|
| /linux/sound/soc/uniphier/ |
| H A D | aio-dma.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (c) 2016-2018 Socionext Inc. 7 #include <linux/dma-mapping.h> 28 static void aiodma_pcm_irq(struct uniphier_aio_sub *sub) in aiodma_pcm_irq() argument 30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() 31 int bytes = runtime->period_size * in aiodma_pcm_irq() 32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq() 35 spin_lock(&sub->lock); in aiodma_pcm_irq() 36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq() 37 sub->threshold + bytes); in aiodma_pcm_irq() [all …]
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | abilis,tb10x-iomux.txt | 5 ------------------- 7 - compatible: should be "abilis,tb10x-iomux"; 8 - reg: should contain the physical address and size of the pin controller's 12 Function definitions 13 -------------------- 15 Functions are defined (and referenced) by sub-nodes of the pin controller. 16 Every sub-node defines exactly one function (implying a set of pins). 17 Every function is associated to one named pin group inside the pin controller 19 controller sub-nodes. 21 Required function definition subnode properties: [all …]
|
| H A D | img,pistachio-pinctrl.txt | 8 each. The GPIO banks are represented as sub-nodes of the pad controller node. 10 Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and 11 ../interrupt-controller/interrupts.txt for generic information regarding 15 -------------------------------------------- 16 - compatible: "img,pistachio-system-pinctrl". 17 - reg: Address range of the pinctrl registers. 19 Required properties for GPIO bank sub-nodes: 20 -------------------------------------------- 21 - interrupts: Interrupt line for the GPIO bank. 22 - gpio-controller: Indicates the device is a GPIO controller. [all …]
|
| H A D | microchip,pic32-pinctrl.txt | 3 Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and 4 ../interrupt-controller/interrupts.txt for generic information regarding 8 used for a specific device or function. This node represents configurations of 9 pins, optional function, and optional mux related configuration. 12 - compatible: "microchip,pic32mada-pinctrl" 13 - reg: Address range of the pinctrl registers. 14 - clocks: Clock specifier (see clock bindings for details) 16 Required properties for pin configuration sub-nodes: 17 - pins: List of pins to which the configuration applies. 19 Optional properties for pin configuration sub-nodes: [all …]
|
| /linux/scripts/ |
| H A D | generate_initcall_order.pl | 2 # SPDX-License-Identifier: GPL-2.0 18 my $jobs = {}; # child process pid -> file handle 20 my $results = {}; # object index -> [ { level, secname }, ... ] 24 sub get_online_processors { 39 sub write_results { 45 my $level = $initcalls->{$counter}->{'level'}; 47 # section name for the initcall function 48 my $secname = $initcalls->{$counter}->{'module'} . '__' . 50 $initcalls->{$counter}->{'line'} . '_' . 51 $initcalls->{$counter}->{'function'}; [all …]
|
| /linux/arch/hexagon/mm/ |
| H A D | copy_from_user.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 16 * Therefore, we duplicate the function, and handle faulting addresses 17 * differently for each function 48 /* Normal copy loops. Do epilog. Use src-src_sav to compute distance */ 49 /* X - (A - B) == X + B - A */ 54 r2 += sub(src_sav,src) 64 r2 += sub(src_sav,src) 74 r2 += sub(src_sav,src) 84 r2 += sub(src_sav,src)
|
| /linux/arch/arm/kernel/ |
| H A D | entry-ftrace.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 #include "entry-header.S" 10 * When compiling with -pg, gcc inserts a call to the mcount routine at the 11 * start of every function. In mcount, apart from the function's address (in 12 * lr), we need to get hold of the function's caller's address. 22 * mcount can be thought of as a function called in the middle of a subroutine 33 sub \rd, \rd, #MCOUNT_INSN_SIZE 57 mcount_adjust_addr r0, lr @ instrumented function 67 str lr, [sp, #-8]! @ store LR as PC and make space for CPSR/OLD_R0, 74 str lr, [sp, #-4]! @ store previous LR as LR [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_tailcall_jit.c | 1 // SPDX-License-Identifier: GPL-2.0 20 static __naked int sub(void) in sub() function 34 /* program entry for main(), regular function prologue */ 41 * - establish memory location for tail call counter at &rbp[-8]; 42 * - spill tail_call_cnt_ptr at &rbp[-16]; 43 * - expect tail call counter to be passed in rax; 44 * - for entry program rax is a raw counter, value < 33; 45 * - for tail called program rax is tail_call_cnt_ptr (value > 33). 53 __jited("L0: pushq %rax") /* rbp[-8] = rax */ 54 __jited("L1: pushq %rax") /* rbp[-16] = rax */ [all …]
|
| /linux/arch/hexagon/lib/ |
| H A D | memset.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 /* Replaces the standard library function memset */ 15 .type \name, @function 20 .size \name, . - \name 23 /* FUNCTION: memset (v2 version) */ 35 r9 = sub(r6, r7) /* bytes until double alignment */ 64 r3:2 = sub(r3:2, r7:6) 77 r3:2 = sub(r3:2, r7:6) 90 r3:2 = sub(r3:2, r7:6) 113 r3:2 = sub(r3:2, r7:6) [all …]
|
| /linux/tools/perf/pmu-events/ |
| H A D | metric.py | 1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 19 def ToPerfJson(self) -> str: 23 def ToPython(self) -> str: 31 def Equals(self, other) -> bool: 35 def Substitute(self, name: str, expression: 'Expression') -> 'Expression': 38 def __str__(self) -> str: 41 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator': 44 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator': 47 def __xor__(self, other: Union[int, float, 'Expression']) -> 'Operator': 50 def __and__(self, other: Union[int, float, 'Expression']) -> 'Operator': [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-script-perl.txt | 1 perf-script-perl(1) 5 ---- 6 perf-script-perl - Process trace data with a Perl script 9 -------- 11 'perf script' [-s [Perl]:script[.pl] ] 14 ----------- 17 built-in Perl interpreter. It reads and processes the input file and 22 --------------- 25 -g perl' in the same directory as an existing perf.data trace file. 31 ~/libexec/perf-core/scripts/perl for typical examples showing how to [all …]
|