| /linux/tools/include/linux/ |
| H A D | overflow.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 12 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 13 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 17 * the type_max expression (but not if -fsanitize=undefined is in 23 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on 28 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html - 31 #define is_signed_type(type) (((type)(-1)) < (type)1) 32 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) 33 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) 34 #define type_min(T) ((T)((T)-type_max(T)-(T)1)) [all …]
|
| /linux/Documentation/devicetree/bindings/media/ |
| H A D | mediatek,mdp3-tdshp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/mediatek,mdp3-tdshp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek Media Data Path 3 Two-Dimensional Sharpness 10 - Matthias Brugger <matthias.bgg@gmail.com> 11 - Moudy Ho <moudy.ho@mediatek.com> 14 Two-Dimensional Sharpness (TDSHP) is a Media Profile Path 3 (MDP3) component 20 - enum: 21 - mediatek,mt8195-mdp3-tdshp [all …]
|
| /linux/Documentation/devicetree/bindings/iio/ |
| H A D | mount-matrix.txt | 2 * is the definition of +/- values practical or counterintuitive? 13 that produce three-dimensional data in relation to the world where it is 37 reference. This means that the sensor may be flipped upside-down, left-right, 47 Device-to-world examples for some three-dimensional sensor types: 49 - Accelerometers have their world frame of reference toward the center of 55 9.81 m/s^2 upwards along the (z) axis, i.e. out of the screen when the device 57 as the gravity vector is projected 1:1 onto the sensors (z)-axis. 67 +--------+ +--------+ 69 +--------+ +--------+ 80 (---------) [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | btf_dump_test_case_multidim.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 4 * BTF-to-C dumper test for multi-dimensional array output. 8 /* ----- START-EXPECTED-OUTPUT ----- */ 9 typedef int arr_t[2]; 30 /* ------ END-EXPECTED-OUTPUT ------ */
|
| H A D | core_reloc_types.h | 31 /* we have test_progs[-flavor], so cut flavor part */ 364 char b[2][3][4]; 366 struct core_reloc_arrays_substruct d[1][2]; 367 struct core_reloc_arrays_substruct f[][2]; 375 struct core_reloc_arrays_substruct d[2][3]; 382 char b[2][3][4]; 392 } d[1][2]; 397 } f[][2]; 402 char b[2][3][4]; 404 struct core_reloc_arrays_substruct d[1][2]; [all...] |
| /linux/include/sound/ |
| H A D | madera-pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2016-2019 Cirrus Logic, Inc. and 18 #define MADERA_MAX_PDM_SPK 2 35 * values. Two-dimensional array 38 * [n][0]=INnAL [n][1]=INnAR [n][2]=INnBL [n][3]=INnBR
|
| /linux/Documentation/admin-guide/perf/ |
| H A D | qcom_l2_pmu.rst | 2 Qualcomm Technologies Level-2 Cache Performance Monitoring Unit (PMU) 17 Events can be envisioned as a 2-dimensional array. Each column represents 22 Events are specified as 0xCCG, where CC is 2 hex digits specifying 23 the code (array row) and G specifies the group (column) 0-7. 34 perf stat -e l2cache_0/config=0x001/,l2cache_0/config=0x042/ -a sleep 1 36 perf stat -e l2cache_0/config=0xfe/ -C 2 sleep 1 39 not work. Per-task perf sessions are not supported.
|
| /linux/include/linux/ |
| H A D | overflow.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 14 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 15 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 19 * the type_max expression (but not if -fsanitize=undefined is in 25 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on 30 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html - 33 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) 34 #define __type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) 36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1)) 42 * both the type-agnostic benefits of the macros while also being able to [all …]
|
| /linux/arch/mips/include/asm/mach-au1x00/ |
| H A D | au1xxx_dbdma.h | 12 * Free Software Foundation; either version 2 of the License, or (at your 32 * Specifics for the Au1xxx Descriptor-Based DMA Controller, 48 #define DDMA_CONFIG_AF (1 << 2) 57 u32 ddma_desptr; /* 32-byte aligned pointer to descriptor */ 72 #define DDMA_CFG_DFN (1 << 3) /* Descriptor fetch non-coherent */ 73 #define DDMA_CFG_SBE (1 << 2) /* Source big endian */ 84 #define DDMA_STAT_DB (1 << 2) /* Doorbell pushed */ 90 * Must be 32-byte aligned. 103 * Let's have some SW data following -- make sure it's 32 bytes. 111 #define DSCR_CMD0_MEM (1 << 30) /* mem-mem transfer */ [all …]
|
| /linux/Documentation/userspace-api/ |
| H A D | dma-buf-alloc-exchange.rst | 1 .. SPDX-License-Identifier: GPL-2.0 2 .. Copyright 2021-2023 Collabora Ltd. 9 support for sharing pixel-buffer allocations between processes, devices, and 12 approach this sharing for two-dimensional image data. 25 Conceptually a two-dimensional array of pixels. The pixels may be stored 30 A span along a single y-axis value, e.g. from co-ordinates (0,100) to 37 A span along a single x-axis value, e.g. from co-ordinates (100,0) to 46 A two-dimensional array of some or all of an image's color and alpha 80 A value that denotes the relationship between pixel-location co-ordinates 81 and byte-offset values. Typically used as the byte offset between two [all …]
|
| /linux/Documentation/cpu-freq/ |
| H A D | cpufreq-stats.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 2. Statistics Provided (with example) 16 3. Configuring cpufreq-stats 22 cpufreq-stats is a driver that provides CPU frequency statistics for each CPU. 32 2. Statistics Provided (with example) 37 - time_in_state 38 - total_trans 39 - trans_table 48 <mysystem>:/sys/devices/system/cpu/cpu0/cpufreq/stats # ls -l 50 drwxr-xr-x 2 root root 0 May 14 16:06 . [all …]
|
| /linux/drivers/clk/ux500/ |
| H A D | reset-prcc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/reset-controller.h> 17 #include "reset-prcc.h" 21 /* This macro flattens the 2-dimensional PRCC numberspace */ 26 * Reset registers in each PRCC - the reset lines are active low 41 case 2: in prcc_num_to_index() 50 return -EINVAL; in prcc_num_to_index() 61 if (index >= ARRAY_SIZE(ur->base)) in u8500_prcc_reset_base() 64 return ur->base[index]; in u8500_prcc_reset_base() 141 if (reset_spec->args_count != 2) in u8500_prcc_reset_xlate() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | vmxfeatures.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 #define NVMXINTS 5 /* N 32-bit words worth of info */ 16 /* Pin-Based VM-Execution Controls, EPT/VPID, APIC and VM-Functions, word 0 */ 17 #define VMX_FEATURE_INTR_EXITING ( 0*32+ 0) /* VM-Exit on vectored interrupts */ 18 #define VMX_FEATURE_NMI_EXITING ( 0*32+ 3) /* VM-Exit on NMIs */ 23 /* EPT/VPID features, scattered to bits 16-23 */ 28 #define VMX_FEATURE_EPT_5LEVEL ( 0*32+ 20) /* "ept_5level" 5-level EPT paging */ 30 /* Aggregated APIC features 24-27 */ 34 /* VM-Functions, shifted to bits 28-31 */ 37 /* Primary Processor-Based VM-Execution Controls, word 1 */ [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | ext-ctrls-codec.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _codec-controls: 25 .. _mpeg-control-id: 28 ----------------- 36 .. _v4l2-mpeg-stream-type: 41 enum v4l2_mpeg_stream_type - 42 The MPEG-1, -2 or -4 output stream type. One cannot assume anything 49 .. flat-table:: 50 :header-rows: 0 51 :stub-columns: 0 [all …]
|
| /linux/Documentation/virt/kvm/x86/ |
| H A D | mmu.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 - correctness: 18 - security: 21 - performance: 23 - scaling: 25 - hardware: 27 - integration: 31 - dirty tracking: 33 and framebuffer-based displays 34 - footprint: [all …]
|
| /linux/Documentation/sound/cards/ |
| H A D | hdspm.rst | 2 Software Interface ALSA-DSP MADI Driver 5 (translated from German, so no good English ;-), 7 2004 - winfried ritsch 11 the Controls and startup-options are ALSA-Standard and only the 19 ------------------ 21 * number of channels -- depends on transmission mode 29 * Single Speed -- 1..64 channels 37 * Double Speed -- 1..32 channels 40 Note: Choosing the 56-channel mode for 41 transmission/receive-mode , only 28 are transmitted/received [all …]
|
| /linux/kernel/sched/ |
| H A D | cpupri.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 2007-2008 Novell 18 * a 2 dimensional bitmap (the first for priority class, the second for CPUs 28 * p->rt_priority p->prio newpri cpupri 30 * -1 -1 (CPUPRI_INVALID) 49 cpupri = CPUPRI_INVALID; /* -1 */ in convert_prio() 53 cpupri = MAX_RT_PRIO-1 - prio; /* 1 ... 99 */ in convert_prio() 56 case MAX_RT_PRIO-1: in convert_prio() 71 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() 74 if (!atomic_read(&(vec)->count)) in __cpupri_find() [all …]
|
| /linux/Documentation/userspace-api/media/mediactl/ |
| H A D | media-types.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _media-controller-types: 10 .. _media-entity-functions: 11 .. _MEDIA-ENT-F-UNKNOWN: 12 .. _MEDIA-ENT-F-V4L2-SUBDEV-UNKNOWN: 13 .. _MEDIA-ENT-F-IO-V4L: 14 .. _MEDIA-ENT-F-IO-VBI: 15 .. _MEDIA-ENT-F-IO-SWRADIO: 16 .. _MEDIA-ENT-F-IO-DTV: 17 .. _MEDIA-ENT-F-DTV-DEMOD: [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | device_link.rst | 57 device ``->probe`` callback or a boot-time PCI quirk. 61 ``->probe`` callback while the supplier hasn't started to probe yet: Had the 65 non-presence. [Note that it is valid to create a link from the consumer's 66 ``->probe`` callback while the supplier is still probing, but the consumer must 72 is added in the ``->probe`` callback of the supplier or consumer driver, it is 73 typically deleted in its ``->remove`` callback for symmetry. That way, if the 87 link is added from the consumer's ``->probe`` callback: ``DL_FLAG_RPM_ACTIVE`` 93 Similarly, when the device link is added from supplier's ``->probe`` callback, 125 :c:func:`device_link_add()` may cause the PM-runtime usage counter of the 129 called twice in a row for the same consumer-supplier pair without removing the [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_mode.h | 40 #include <linux/i2c-algo-bit.h> 129 /* amdgpu gpio-based i2c 133 * 2. "a" reg and bits 151 /* uses multi-media i2c engine */ 177 #define AMDGPU_PLL_USE_REF_DIV (1 << 2) 318 /* DVI-I properties */ 349 /* Driver-private color mgmt props */ 357 * size of degamma LUT as supported by the driver (read-only). 361 * @plane_degamma_tf_property: Plane pre-defined transfer function to 372 * @plane_shaper_lut_property: Plane property to set pre-blending [all …]
|
| /linux/sound/pci/echoaudio/ |
| H A D | echoaudio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 11 Translation from C++ and adaptation for use in ALSA-Driver 19 +-----------+ 20 record | |<-------------------- Inputs 21 <-------| | | 24 ------->| | +-------+ 25 play | |--->|monitor|-------> Outputs 26 +-----------+ | mixer | 27 +-------+ [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | visemul.c | 1 // SPDX-License-Identifier: GPL-2.0 19 /* 000111011 - four 16-bit packs */ 22 /* 000111010 - two 32-bit packs */ 25 /* 000111101 - four 16-bit packs */ 28 /* 001001101 - four 16-bit expands */ 31 /* 001001011 - two 32-bit merges */ 34 /* 000110001 - 8-by-16-bit partitioned product */ 37 /* 000110011 - 8-by-16-bit upper alpha partitioned product */ 40 /* 000110101 - 8-by-16-bit lower alpha partitioned product */ 43 /* 000110110 - upper 8-by-16-bit partitioned product */ [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | azoteq,iqs7222.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 21 - azoteq,iqs7222a 22 - azoteq,iqs7222b 23 - azoteq,iqs7222c 24 - azoteq,iqs7222d 29 irq-gpios: 32 Specifies the GPIO connected to the device's active-low RDY output. [all …]
|
| /linux/drivers/hwmon/ |
| H A D | applesmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/hwmon/applesmc.c - driver for Apple's SMC (accelerometer, temperature 4 * sensors, fan control, keyboard backlight control) used in Intel-based Apple 29 #include <linux/hwmon-sysfs.h> 42 #define APPLESMC_NR_PORTS 32 /* 0x300-0x31f */ 49 #define SMC_STATUS_BUSY BIT(2) /* Command in progress */ 59 #define KEY_COUNT_KEY "#KEY" /* r-o ui32 */ 61 #define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6-10 bytes) */ 62 #define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6-10 bytes) */ 63 #define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */ [all …]
|
| /linux/include/linux/iio/ |
| H A D | iio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 43 * struct iio_chan_spec_ext_info - Extended channel info attribute 62 * struct iio_enum - Enum channel info attribute 93 * IIO_ENUM() - Initialize enum extended channel attribute 110 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute 127 * struct iio_mount_matrix - iio mounting matrix 128 * @rotation: 3 dimensional space rotation matrix defining sensor alignment with 144 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute 157 * struct iio_event_spec - specification for a channel event 180 * struct iio_scan_type - specification for channel data format in buffer [all …]
|