/openbmc/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 …]
|
/openbmc/linux/sound/soc/uniphier/ |
H A D | aio-core.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright (c) 2016-2018 Socionext Inc. 17 #include "aio-reg.h" 22 return wr - rd; in rb_cnt() 24 return len - (rd - wr); in rb_cnt() 30 return wr - rd; in rb_cnt_to_end() 32 return len - rd; in rb_cnt_to_end() 38 return len - (wr - rd) - 8; in rb_space() 40 return rd - wr - 8; in rb_space() 46 return rd - wr - 8; in rb_space_to_end() [all …]
|
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 …]
|
/openbmc/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-device.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 #include <media/media-device.h> 13 #include <media/v4l2-subdev.h> 14 #include <media/v4l2-dev.h> 21 * struct v4l2_device - main struct to for V4L2 device drivers 29 * @notify: notify operation called by some sub-devices. 33 * @release: Release function that is called when the ref count 37 * either stand-alone or embedded in a larger struct. 39 * It allows easy access to sub-devices (see v4l2-subdev.h) and provides 40 * basic V4L2 device-level support. [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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/u-boot/scripts/ |
H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 19 # 18/01/2001 - Cleanups 22 # -- huggie@earth.li 24 # 27/06/2001 - Allowed whitespace after initial "/**" and 25 # allowed comments before function declarations. 26 # -- Christian Kreibich <ck@whoop.org> 29 # - add perldoc documentation 30 # - Look more closely at some of the scarier bits :) 32 # 26/05/2001 - Support for separate source and object trees. [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/scripts/ |
H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0-only 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 19 # 18/01/2001 - Cleanups 22 # -- huggie@earth.li 24 # 27/06/2001 - Allowed whitespace after initial "/**" and 25 # allowed comments before function declarations. 26 # -- Christian Kreibich <ck@whoop.org> 29 # - add perldoc documentation 30 # - Look more closely at some of the scarier bits :) 32 # 26/05/2001 - Support for separate source and object trees. [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | setup.py | 3 from re import sub 7 # Check if CC has options, as is the case in yocto, where it uses CC="cc --sysroot..." 15 cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline() 19 …cc_output = Popen([cc, cc_options + option, path.join(src_feature_tests, "test-hello.c") ], stderr… 26 vars[var] = sub("-specs=[^ ]+", "", vars[var]) 27 if not clang_has_option("-mcet"): 28 vars[var] = sub("-mcet", "", vars[var]) 29 if not clang_has_option("-fcf-protection"): 30 vars[var] = sub("-fcf-protection", "", vars[var]) 31 if not clang_has_option("-fstack-clash-protection"): [all …]
|
/openbmc/linux/scripts/ |
H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 22 kernel-doc - Print formatted kernel documentation to stdout 26 …kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-description] [-Wcontents-before-section… 27 [ -man | 28 -rst [-sphinx-version VERSION] [-enable-lineno] | 29 -none 32 -export | 33 -internal | 34 [-function NAME] ... | [all …]
|
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 …]
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | scu.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * is servicing watchdog and controlling system reset function. 38 * scu_ipc_send_command() - send command to SCU 49 writel(cmd, ®s->cmd); in scu_ipc_send_command() 53 * scu_ipc_check_status() - check status of last command 68 status = readl(®s->status); in scu_ipc_check_status() 73 } while (--loop_count); in scu_ipc_check_status() 75 return -ETIMEDOUT; in scu_ipc_check_status() 79 return -EIO; in scu_ipc_check_status() 85 static int scu_ipc_cmd(struct ipc_regs *regs, u32 cmd, u32 sub, in scu_ipc_cmd() argument [all …]
|
/openbmc/u-boot/common/ |
H A D | hwconfig.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * An inteface for configuring a hardware via u-boot environment. 40 if (end - start > maxlen) in hwconfig_parse() 43 if (str && (str == opts || strpbrk(str - 1, stopchs) == str - 1) && in hwconfig_parse() 56 *arglen = min(maxlen, strlen(str)) - optlen - 1; in hwconfig_parse() 58 *arglen = arg_end - end - 1; in hwconfig_parse() 78 if (!(gd->flags & GD_FLG_ENV_READY)) { in __hwconfig() 103 * hwconfig_f - query if a particular hwconfig option is specified 105 * @buf: if non-NULL use this buffer to parse, otherwise try env 107 * This call can be used to find out whether U-Boot should configure [all …]
|
/openbmc/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 …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | gen_print.py | 47 os.path.normpath(re.sub("/" + pgm_name, "", pgm_file_path)) + os.path.sep 119 Return the function name associated with the indicated stack frame. 122 …stack_frame_ix The index of the stack frame whose function name should be returne… 123 … the caller does not specify a value, this function will set the value to 125 … wrapper function "print_func_name", this function will bump it up by 1. 149 …This function will try to prevent this failure by detecting the scenario in advance and making "/t… 163 return len(line) - len(line.lstrip(" ")) 166 # get_arg_name is not a print function per se. It has been included in this module because it is u… 170 …Return the "name" of an argument passed to a function. This could be a literal or a variable name. 182 … return the name of the target function as specified in the calling line [all …]
|
/openbmc/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> 41 * LEAF - declare leaf routine 47 .type symbol, @function; \ 54 * NESTED - declare nested routine entry point 60 .type symbol, @function; \ 67 * END - mark end of function 69 #define END(function) \ argument 71 .end function; \ [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/arch/mips/include/asm/ |
H A D | asm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * away by gas in -O mode. These nops are however required to fill delay 47 .type symbol, @function; \ 52 * LEAF - declare leaf routine 57 .type symbol, @function; \ 63 * NESTED - declare nested routine entry point 68 .type symbol, @function; \ 74 * END - mark end of function 76 #define END(function) \ argument 77 .end function; \ [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/apt/apt/ |
H A D | triehash | 1 #!/usr/bin/perl -w 3 # Copyright (C) 2016 Julian Andres Klode <jak@jak-linux.org> 27 triehash - Generate a perfect hash function derived from a trie. 42 triehash takes a list of words in input file and generates a function and 63 Which defines the value to be used for non-existing keys. Note that this also 76 =item B<-C>I<.c file> B<--code>=I<.c file> 80 =item B<-H>I<header file> B<--header>=I<header file> 83 function and an enumeration. 85 =item B<--enum-name=>I<word> 89 =item B<--function-name=>I<word> [all …]
|