/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/include/linux/dma/ |
H A D | ti-cppi5.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com 16 * struct cppi5_desc_hdr_t - Descriptor header, present in all types of 31 * struct cppi5_host_desc_t - Host-mode packet and buffer descriptor definition 39 * Protocol Specific Data (optional, 0-128 bytes in 41 * Other Software Data (0-N bytes, optional) 66 * 0 - located in the descriptor, 87 /* Return Policy: 0 - Entire packet 1 - Each buffer */ 119 * struct cppi5_desc_epib_t - Host Packet Descriptor Extended Packet Info Block 133 * struct cppi5_monolithic_desc_t - Monolithic-mode packet descriptor [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 - mediatek,mt8195-mdp3-tdshp 25 mediatek,gce-client-reg: [all …]
|
H A D | video-interface-devices.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/video-interface-devices.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacopo Mondi <jacopo@jmondi.org> 11 - Sakari Ailus <sakari.ailus@linux.intel.com> 14 flash-leds: 15 $ref: /schemas/types.yaml#/definitions/phandle-array 17 An array of phandles, each referring to a flash LED, a sub-node of the LED 20 lens-focus: [all …]
|
/linux/include/media/i2c/ |
H A D | upd64083.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * upd6408x - NEC Electronics 3-Dimensional Y/C separation input defines 11 /* There are two bits of information that the driver needs in order 15 The first two operating modes expect a composite signal on the Y input, 16 the second two operating modes use both the Y and C inputs. 19 YCNR mode is used for S-Video inputs. 21 The external Y-ADC is selected when the composite input comes from a 23 the input is a S-Video signal, then the internal Y-ADC input should 33 /* Note: the following two modes cannot be used in combination with the 34 external Y-ADC. */ [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/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)) 40 * Avoids triggering -Wtype-limits compilation warning, [all …]
|
H A D | edac.h | 6 * 2006-2008 (c) MontaVista Software, Inc. This file is licensed under 26 #define EDAC_OPSTATE_INVAL -1 56 /* String used to join two or more labels */ 60 * enum dev_type - describe the type of memory DRAM chips used at the stick 93 * enum hw_event_mc_err_type - type of the detected error 95 * @HW_EVENT_ERR_CORRECTED: Corrected Error - Indicates that an ECC 97 * @HW_EVENT_ERR_UNCORRECTED: Uncorrected Error - Indicates an error that 101 * it for example, by re-trying the operation). 102 * @HW_EVENT_ERR_DEFERRED: Deferred Error - Indicates an uncorrectable 108 * @HW_EVENT_ERR_FATAL: Fatal Error - Uncorrected error that could not [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 35 * values. Two-dimensional array
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | extended-controls.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _extended-controls: 71 it also allows for 64-bit values and pointers to be passed. 75 such as N-dimensional arrays and/or structures. You need to specify the 83 particular, this ioctl gives the dimensions of the N-dimensional array if 96 audio bitrates. Some drivers only support one or two bitrates, others 110 .. code-block:: c 131 .. code-block:: c 141 The 32-bit ``qctrl.id`` value is subdivided into three bit ranges: the 147 non-zero for controls. The range of 0x1000 and up are reserved for [all …]
|
H A D | vidioc-queryctrl.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_QUERYCTRL - VIDIOC_QUERY_EXT_CTRL - VIDIOC_QUERYMENU - Enumerate controls and menu control i… 42 of a struct :ref:`v4l2_queryctrl <v4l2-queryctrl>` and call the 60 driver returns the next supported non-compound control, or ``EINVAL`` if 72 :ref:`v4l2_queryctrl <v4l2-queryctrl>` since that structure is full. 80 fields of struct :ref:`v4l2_querymenu <v4l2-querymenu>` and call the 85 :ref:`v4l2_queryctrl <v4l2-queryctrl>` ``minimum`` to ``maximum``, 99 .. _v4l2-queryctrl: 103 .. flat-table:: struct v4l2_queryctrl 104 :header-rows: 0 [all …]
|
H A D | ext-ctrls-codec.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _codec-controls: 24 .. _mpeg-control-id: 27 ----------------- 35 .. _v4l2-mpeg-stream-type: 40 enum v4l2_mpeg_stream_type - 41 The MPEG-1, -2 or -4 output stream type. One cannot assume anything 48 .. flat-table:: 49 :header-rows: 0 50 :stub-columns: 0 [all …]
|
H A D | vidioc-g-ext-ctrls.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_G_EXT_CTRLS - VIDIOC_S_EXT_CTRLS - VIDIOC_TRY_EXT_CTRLS - Get or set the value of several co… 44 :ref:`ctrl-class`) and all controls in the control array must belong 61 relevant for pointer-type controls like strings), then the driver will 63 should re-allocate the memory to this new size and try again. For the 70 N-dimensional arrays are set and retrieved row-by-row. You cannot set a 97 If ``request_fd`` is set to a not-yet-queued :ref:`request <media-request-api>` 118 were set/get. Only low-level errors (e. g. a failed i2c command) can 131 .. flat-table:: struct v4l2_ext_control 132 :header-rows: 0 [all …]
|
/linux/drivers/infiniband/sw/siw/ |
H A D | siw_mem.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 4 /* Copyright (c) 2008-2019, IBM Corporation */ 30 kref_put(&mem->ref, siw_free_mem); in siw_mem_put() 42 num_sge--; in siw_unref_mem_sgl() 48 #define CHUNK_MASK (~(PAGES_PER_CHUNK - 1)) 56 * @umem: two dimensional list of page pointers 61 unsigned int page_idx = (addr - umem->fp_addr) >> PAGE_SHIFT, in siw_get_upage() 65 if (likely(page_idx < umem->num_pages)) in siw_get_upage() 66 return umem->page_chunk[chunk_idx].plist[page_in_chunk]; in siw_get_upage()
|
/linux/Documentation/mm/ |
H A D | memory-model.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 Linux abstracts this diversity using one of the two memory models: 23 Regardless of the selected memory model, there exists one-to-one 35 non-NUMA systems with contiguous, or mostly contiguous, physical 54 straightforward: `PFN - ARCH_PFN_OFFSET` is an index to the 65 as hot-plug and hot-remove of the physical memory, alternative memory 66 maps for non-volatile memory devices and deferred initialization of 85 NR\_MEM\_SECTIONS = 2 ^ {(MAX\_PHYSMEM\_BITS - SECTION\_SIZE\_BITS)} 87 The `mem_section` objects are arranged in a two-dimensional array 103 With SPARSEMEM there are two possible ways to convert a PFN to the [all …]
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | index-page-map.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "index-page-map.h" 10 #include "memory-alloc.h" 13 #include "string-utils.h" 14 #include "thread-utils.h" 16 #include "hash-utils.h" 20 * The index page map is conceptually a two-dimensional array indexed by chapter number and index 28 #define PAGE_MAP_MAGIC_LENGTH (sizeof(PAGE_MAP_MAGIC) - 1) 32 return geometry->chapters_per_volume * (geometry->index_pages_per_chapter - 1); in get_entry_count() 45 map->geometry = geometry; in uds_make_index_page_map() [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/cpu-freq/ |
H A D | cpufreq-stats.rst | 1 .. SPDX-License-Identifier: GPL-2.0 16 3. Configuring cpufreq-stats 22 cpufreq-stats is a driver that provides CPU frequency statistics for each CPU. 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 . 51 drwxr-xr-x 3 root root 0 May 14 15:58 .. 52 --w------- 1 root root 4096 May 14 16:06 reset [all …]
|
/linux/drivers/input/ |
H A D | touchscreen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Generic helper functions for touchscreens and other two-dimensional 39 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params() 40 dev_warn(&dev->dev, in touchscreen_set_params() 46 absinfo = &dev->absinfo[axis]; in touchscreen_set_params() 47 absinfo->minimum = min; in touchscreen_set_params() 48 absinfo->maximum = max; in touchscreen_set_params() 49 absinfo->fuzz = fuzz; in touchscreen_set_params() 53 * touchscreen_parse_properties - parse common touchscreen properties 56 * single-touch or multi-touch axes [all …]
|
/linux/include/drm/ |
H A D | drm_rect.h | 2 * Copyright (C) 2011-2013 Intel Corporation 37 * struct drm_rect - two dimensional rectangle 51 * DRM_RECT_INIT - initialize a rectangle from x/y/w/h 67 * DRM_RECT_FMT - printf string for &struct drm_rect 71 * DRM_RECT_ARG - printf arguments for &struct drm_rect 74 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 77 * DRM_RECT_FP_FMT - printf string for &struct drm_rect in 16.16 fixed point 81 * DRM_RECT_FP_ARG - printf arguments for &struct drm_rect in 16.16 fixed point 90 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \ 91 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10 [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-thermal | 61 E.g. it can be one of critical, hot, passive, `active[0-*]` 84 The trip point in this thermal zone which `cdev[0-*]` is 85 associated with; -1 means the cooling device is not 92 The influence of `cdev[0-*]` in this thermal zone. This value 124 Documentation/driver-api/thermal/power_allocator.rst 133 Documentation/driver-api/thermal/power_allocator.rst 143 Documentation/driver-api/thermal/power_allocator.rst 153 Documentation/driver-api/thermal/power_allocator.rst 165 Documentation/driver-api/thermal/power_allocator.rst 194 Documentation/driver-api/thermal/power_allocator.rst [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/tools/testing/selftests/bpf/progs/ |
H A D | core_reloc_types.h | 31 /* we have test_progs[-flavor], so cut flavor part */ 259 /* two flavors of same struct with incompatible layout for b.b.b */ 287 /* two flavors of same struct having one of a.a.a and b.b.b, but not both */ 450 /* zero-sized array, but not at the end */ 734 /* non-bitfields */ 742 uint16_t ub1: 3; /* 1 -> 3 */ 743 uint32_t ub2: 20; /* 2 -> 20 */ 744 uint8_t ub7: 1; /* 7 -> 1 */ 746 int8_t sb4: 1; /* 4 -> 1 */ 747 int32_t sb20: 30; /* 20 -> 30 */ [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/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 20 * restrictions can find a suitable CPU with O(1) complexity (e.g. two bit 27 * p->rt_priority p->prio newpri cpupri 29 * -1 -1 (CPUPRI_INVALID) 48 cpupri = CPUPRI_INVALID; /* -1 */ in convert_prio() 52 cpupri = MAX_RT_PRIO-1 - prio; /* 1 ... 99 */ in convert_prio() 55 case MAX_RT_PRIO-1: in convert_prio() 70 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() [all …]
|