| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | crop.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 6 Image Cropping, Insertion and Scaling -- the CROP API 12 <selection-api>`. The new API should be preferred in most cases, 15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a 20 abilities cropping and scaling. Some video output devices can scale an 21 image up or down and insert it at an arbitrary scan line and horizontal 33 Scaling requires a source and a target. On a video capture or overlay 48 support scaling or the :ref:`VIDIOC_G_CROP <VIDIOC_G_CROP>` and 62 .. _crop-scale: 64 .. kernel-figure:: crop.svg [all …]
|
| D | selection-api-configuration.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 11 Video hardware can have various cropping, composing and scaling 12 limitations. It may only scale up or down, support only discrete scaling 13 factors, or have different scaling abilities in the horizontal and 14 vertical directions. Also it may not support scaling at all. At the same 20 :ref:`constraint flags <v4l2-selection-flags>`. 26 See figure :ref:`sel-targets-capture` for examples of the selection 63 :ref:`constraint flags <v4l2-selection-flags>`. 123 However, such a padded area is driver-dependent feature not covered by 130 Scaling control [all …]
|
| D | selection-api-intro.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 10 part of an input image, scale it up or down and insert it at an 12 these abilities cropping, scaling and composing. 28 scaling then the cropping and composing rectangles have the same size.
|
| /kernel/linux/linux-4.19/Documentation/media/uapi/v4l/ |
| D | crop.rst | 1 .. -*- coding: utf-8; mode: rst -*- 6 Image Cropping, Insertion and Scaling -- the CROP API 12 <selection-api>`. The new API should be preferred in most cases, 15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a 20 abilities cropping and scaling. Some video output devices can scale an 21 image up or down and insert it at an arbitrary scan line and horizontal 33 Scaling requires a source and a target. On a video capture or overlay 48 support scaling or the :ref:`VIDIOC_G_CROP <VIDIOC_G_CROP>` and 62 .. _crop-scale: 64 .. kernel-figure:: crop.svg [all …]
|
| D | selection-api-configuration.rst | 1 .. -*- coding: utf-8; mode: rst -*- 11 Video hardware can have various cropping, composing and scaling 12 limitations. It may only scale up or down, support only discrete scaling 13 factors, or have different scaling abilities in the horizontal and 14 vertical directions. Also it may not support scaling at all. At the same 20 :ref:`constraint flags <v4l2-selection-flags>`. 26 See figure :ref:`sel-targets-capture` for examples of the selection 63 :ref:`constraint flags <v4l2-selection-flags>`. 123 However, such a padded area is driver-dependent feature not covered by 130 Scaling control [all …]
|
| D | selection-api-intro.rst | 1 .. -*- coding: utf-8; mode: rst -*- 10 part of an input image, scale it up or down and insert it at an 12 these abilities cropping, scaling and composing. 28 scaling then the cropping and composing rectangles have the same size.
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/ |
| D | drm_rect.c | 2 * Copyright (C) 2011-2013 Intel Corporation 31 * drm_rect_intersect - intersect two rectangles 44 r1->x1 = max(r1->x1, r2->x1); in drm_rect_intersect() 45 r1->y1 = max(r1->y1, r2->y1); in drm_rect_intersect() 46 r1->x2 = min(r1->x2, r2->x2); in drm_rect_intersect() 47 r1->y2 = min(r1->y2, r2->y2); in drm_rect_intersect() 60 tmp = mul_u32_u32(src, dst - clip); in clip_scaled() 73 * drm_rect_clip_scaled - perform a scaled clip operation 90 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() 95 src->x1 = clamp_t(int64_t, src->x2 - new_src_w, INT_MIN, INT_MAX); in drm_rect_clip_scaled() [all …]
|
| /kernel/linux/linux-4.19/block/ |
| D | blk-rq-qos.c | 1 #include "blk-rq-qos.h" 27 return atomic_inc_below(&rq_wait->inflight, limit); in rq_wait_inc_below() 34 for (rqos = q->rq_qos; rqos; rqos = rqos->next) { in rq_qos_cleanup() 35 if (rqos->ops->cleanup) in rq_qos_cleanup() 36 rqos->ops->cleanup(rqos, bio); in rq_qos_cleanup() 44 for (rqos = q->rq_qos; rqos; rqos = rqos->next) { in rq_qos_done() 45 if (rqos->ops->done) in rq_qos_done() 46 rqos->ops->done(rqos, rq); in rq_qos_done() 54 for(rqos = q->rq_qos; rqos; rqos = rqos->next) { in rq_qos_issue() 55 if (rqos->ops->issue) in rq_qos_issue() [all …]
|
| D | blk-wbt.c | 5 * - Monitor latencies in a defined window of time. 6 * - If the minimum latency in the above window exceeds some target, increment 7 * scaling step and scale down queue depth by a factor of 2x. The monitoring 8 * window is then shrunk to 100 / sqrt(scaling step + 1). 9 * - For any window where we don't have solid data on what the latencies 11 * - If latencies look good, decrement scaling step. 12 * - If we're only doing writes, allow the scaling step to go negative. This 14 * scaling step of 0 if reads show up or the heavy writers finish. Unlike 15 * positive scaling steps where we shrink the monitoring window, a negative 16 * scaling step retains the default step==0 window size. [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
| D | vsp1_uds.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * vsp1_uds.c -- R-Car VSP1 Up and Down Scaler 5 * Copyright (C) 2013-2014 Renesas Electronics Corporation 13 #include <media/v4l2-subdev.h> 26 /* ----------------------------------------------------------------------------- 33 vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write() 36 /* ----------------------------------------------------------------------------- 37 * Scaling Computation 43 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha() 50 * uds_output_size - Return the output size for an input size and scaling ratio [all …]
|
| /kernel/linux/linux-4.19/drivers/media/platform/vsp1/ |
| D | vsp1_uds.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * vsp1_uds.c -- R-Car VSP1 Up and Down Scaler 5 * Copyright (C) 2013-2014 Renesas Electronics Corporation 13 #include <media/v4l2-subdev.h> 26 /* ----------------------------------------------------------------------------- 33 vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write() 36 /* ----------------------------------------------------------------------------- 37 * Scaling Computation 43 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha() 50 * uds_output_size - Return the output size for an input size and scaling ratio [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/pm/ |
| D | cpufreq.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 CPU Performance Scaling 15 The Concept of CPU Performance Scaling 20 Operating Performance Points or P-states (in ACPI terminology). As a rule, 24 time (or the more power is drawn) by the CPU in the given P-state. Therefore 29 as possible and then there is no reason to use any P-states different from the 30 highest one (i.e. the highest-performance frequency/voltage configuration 38 put into different P-states. 41 capacity, so as to decide which P-states to put the CPUs into. Of course, since 44 to as CPU performance scaling or CPU frequency scaling (because it involves [all …]
|
| /kernel/linux/linux-4.19/Documentation/admin-guide/pm/ |
| D | cpufreq.rst | 5 CPU Performance Scaling 12 The Concept of CPU Performance Scaling 17 Operating Performance Points or P-states (in ACPI terminology). As a rule, 21 time (or the more power is drawn) by the CPU in the given P-state. Therefore 26 as possible and then there is no reason to use any P-states different from the 27 highest one (i.e. the highest-performance frequency/voltage configuration 35 put into different P-states. 38 capacity, so as to decide which P-states to put the CPUs into. Of course, since 41 to as CPU performance scaling or CPU frequency scaling (because it involves 45 CPU Performance Scaling in Linux [all …]
|
| /kernel/linux/linux-5.10/block/ |
| D | blk-rq-qos.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include "blk-rq-qos.h" 29 return atomic_inc_below(&rq_wait->inflight, limit); in rq_wait_inc_below() 35 if (rqos->ops->cleanup) in __rq_qos_cleanup() 36 rqos->ops->cleanup(rqos, bio); in __rq_qos_cleanup() 37 rqos = rqos->next; in __rq_qos_cleanup() 44 if (rqos->ops->done) in __rq_qos_done() 45 rqos->ops->done(rqos, rq); in __rq_qos_done() 46 rqos = rqos->next; in __rq_qos_done() 53 if (rqos->ops->issue) in __rq_qos_issue() [all …]
|
| 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 16 * positive scaling steps where we shrink the monitoring window, a negative [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | microchip,qt1050.txt | 1 Microchip AT42QT1050 Five-channel Touch Sensor IC 11 - compatible: Must be "microchip,qt1050" 12 - reg: The I2C address of the device 13 - interrupts: The sink for the touchpad's IRQ output, 14 see ../interrupt-controller/interrupts.txt 17 - wakeup-source: touch keys can be used as a wakeup source 19 Each button (key) is represented as a sub-node: 25 - linux,code: Keycode to emit. 26 - reg: The key number. Valid values: 0, 1, 2, 3, 4. 28 Optional subnode-properties: [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_rect.c | 2 * Copyright (C) 2011-2013 Intel Corporation 33 * drm_rect_intersect - intersect two rectangles 46 r1->x1 = max(r1->x1, r2->x1); in drm_rect_intersect() 47 r1->y1 = max(r1->y1, r2->y1); in drm_rect_intersect() 48 r1->x2 = min(r1->x2, r2->x2); in drm_rect_intersect() 49 r1->y2 = min(r1->y2, r2->y2); in drm_rect_intersect() 65 tmp = mul_u32_u32(src, dst - *clip); in clip_scaled() 78 * drm_rect_clip_scaled - perform a scaled clip operation 84 * the corresponding amounts, retaining the vertical and horizontal scaling 97 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() [all …]
|
| /kernel/linux/linux-5.10/drivers/cpufreq/ |
| D | omap-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * CPU frequency scaling for OMAP using OPP information 8 * Based on cpu-sa1110.c, Copyright (C) 2001 Russell King 10 * Copyright (C) 2007-2011 Texas Instruments, Inc. 11 * - OMAP3/4 support by Rajendra Nayak, Santosh Shilimkar 49 old_freq = policy->cur; in omap_target() 53 ret = clk_round_rate(policy->clk, freq); in omap_target() 67 return -EINVAL; in omap_target() 75 dev_dbg(mpu_dev, "cpufreq-omap: %u MHz, %ld mV --> %u MHz, %ld mV\n", in omap_target() 76 old_freq / 1000, volt_old ? volt_old / 1000 : -1, in omap_target() [all …]
|
| /kernel/linux/linux-4.19/drivers/cpufreq/ |
| D | omap-cpufreq.c | 2 * CPU frequency scaling for OMAP using OPP information 7 * Based on cpu-sa1110.c, Copyright (C) 2001 Russell King 9 * Copyright (C) 2007-2011 Texas Instruments, Inc. 10 * - OMAP3/4 support by Rajendra Nayak, Santosh Shilimkar 52 old_freq = policy->cur; in omap_target() 56 ret = clk_round_rate(policy->clk, freq); in omap_target() 70 return -EINVAL; in omap_target() 78 dev_dbg(mpu_dev, "cpufreq-omap: %u MHz, %ld mV --> %u MHz, %ld mV\n", in omap_target() 79 old_freq / 1000, volt_old ? volt_old / 1000 : -1, in omap_target() 80 new_freq / 1000, volt ? volt / 1000 : -1); in omap_target() [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/qcom/ |
| D | cpr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. 27 #include <linux/nvmem-consumer.h> 29 /* Register Offsets for RB-CPR and Bit Definitions */ 125 #define FUSE_REVISION_UNKNOWN (-1) 129 DOWN, enumerator 254 return !drv->loop_disabled; in cpr_is_allowed() 259 writel_relaxed(value, drv->base + offset); in cpr_write() 264 return readl_relaxed(drv->base + offset); in cpr_read() 272 val = readl_relaxed(drv->base + offset); in cpr_masked_write() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/binary/src/ |
| D | binary.c | 1 // SPDX-License-Identifier: GPL-2.0 55 if (info->enable.dvs_envelope) { in ia_css_binary_dvs_env() 57 binary_dvs_env->width = max(dvs_env->width, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env() 58 binary_dvs_env->height = max(dvs_env->height, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env() 72 bool binary_supports_yuv_ds = info->enable.ds & 2; in ia_css_binary_internal_res() 81 isp_tmp_internal_width = in_info->res.width in ia_css_binary_internal_res() 82 + info->pipeline.left_cropping + binary_dvs_env.width; in ia_css_binary_internal_res() 83 isp_tmp_internal_height = in_info->res.height in ia_css_binary_internal_res() 84 + info->pipeline.top_cropping + binary_dvs_env.height; in ia_css_binary_internal_res() 89 (bds_out_info->res.width >= out_info->res.width)) { in ia_css_binary_internal_res() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
| D | ia_css_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 152 * Before the shading correction is applied, NxN-filter and/or scaling 155 * - Bad pixels on left/top sides generated by NxN-filter 158 * - Down-scaling/Up-scaling factor 164 * - Origin coordinate of bayer (real sensor data) 167 * ------------------------ISP 2401----------------------- 180 * In some isp binaries, the bayer scaling is applied before the shading correction is applied. 181 * Then, this scaling factor should be considered in generating the shading table. 182 * The scaling factor is expressed by these parameters. 189 * This is the size BEFORE the bayer scaling is applied. [all …]
|
| /kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/ |
| D | clock-sh4-202.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * arch/sh/kernel/cpu/sh4/clock-sh4-202.c 5 * Additional SH4-202 support for the clock framework 25 return clk->parent->rate / frqcr3_divisors[idx]; in emi_clk_recalc() 30 int divisor = clk->parent->rate / rate; in frqcr3_lookup() 53 return clk->parent->rate / frqcr3_divisors[idx]; in femi_clk_recalc() 72 * range for instance). We deal with this by scaling it back down in shoc_clk_init() 75 * Start scaling from the high end down until we find something in shoc_clk_init() 81 if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0) in shoc_clk_init() 91 return clk->parent->rate / frqcr3_divisors[idx]; in shoc_clk_recalc() [all …]
|
| /kernel/linux/linux-4.19/arch/sh/kernel/cpu/sh4/ |
| D | clock-sh4-202.c | 2 * arch/sh/kernel/cpu/sh4/clock-sh4-202.c 4 * Additional SH4-202 support for the clock framework 28 return clk->parent->rate / frqcr3_divisors[idx]; in emi_clk_recalc() 33 int divisor = clk->parent->rate / rate; in frqcr3_lookup() 56 return clk->parent->rate / frqcr3_divisors[idx]; in femi_clk_recalc() 75 * range for instance). We deal with this by scaling it back down in shoc_clk_init() 78 * Start scaling from the high end down until we find something in shoc_clk_init() 84 if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0) in shoc_clk_init() 94 return clk->parent->rate / frqcr3_divisors[idx]; in shoc_clk_recalc() 119 return -EINVAL; in shoc_clk_set_rate() [all …]
|
| /kernel/linux/linux-4.19/Documentation/media/v4l-drivers/ |
| D | soc-camera.rst | 1 The Soc-Camera Drivers 7 ----------- 10 - camera / camera device / camera sensor - a video-camera sensor chip, capable 13 - camera host - an interface, to which a camera is connected. Typically a 16 - camera host bus - a connection between a camera host and a camera. Can be 20 Purpose of the soc-camera subsystem 21 ----------------------------------- 23 The soc-camera subsystem initially provided a unified API between camera host 24 drivers and camera sensor drivers. Later the soc-camera sensor API has been 25 replaced with the V4L2 standard subdev API. This also made camera driver re-use [all …]
|