Home
last modified time | relevance | path

Searched +full:down +full:- +full:scaling (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/
H A Dcrop.rst1 .. 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 …]
H A Dselection-api-configuration.rst1 .. 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 …]
H A Dselection-api-intro.rst1 .. 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.
H A Ddev-subdev.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
6 Sub-device Interface
13 components as software blocks called sub-devices.
15 V4L2 sub-devices are usually kernel-only objects. If the V4L2 driver
17 media entities. Applications will be able to enumerate the sub-devices
21 In addition to make sub-devices discoverable, drivers can also choose to
23 sub-device driver and the V4L2 device driver support this, sub-devices
26 - query, read and write sub-devices controls
28 - subscribe and unsubscribe to events and retrieve them
30 - negotiate image formats on individual pads
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/vsp1/
H A Dvsp1_uds.c1 // 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 …]
/OK3568_Linux_fs/kernel/Documentation/admin-guide/pm/
H A Dcpufreq.rst1 .. 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 …]
/OK3568_Linux_fs/kernel/block/
H A Dblk-rq-qos.c1 // 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 …]
H A Dblk-wbt.c1 // 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 …]
/OK3568_Linux_fs/u-boot/drivers/misc/
H A Dmxs_ocotp.c6 * SPDX-License-Identifier: GPL-2.0+
12 * etc.) which would make common driver an ifdef nightmare :-(
20 #include <asm/arch/imx-regs.h>
37 while (--timeout) { in mxs_ocotp_wait_busy_clear()
38 reg = readl(&ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_wait_busy_clear()
45 return -EINVAL; in mxs_ocotp_wait_busy_clear()
55 writel(OCOTP_CTRL_ERROR, &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_clear_error()
64 &ocotp_regs->hw_ocotp_ctrl_set); in mxs_ocotp_read_bank_open()
75 &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_read_bank_open()
88 * scaling the voltage from it's current value down to 2.8V in mxs_ocotp_scale_vddio()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_rect.c2 * 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/
H A Dmicrochip,qt1050.txt1 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 …]
/OK3568_Linux_fs/kernel/drivers/soc/qcom/
H A Dcpr.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/binary/src/
H A Dbinary.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Domap-cpufreq.c1 // 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 …]
/OK3568_Linux_fs/kernel/Documentation/admin-guide/media/
H A Dipu3.rst1 .. SPDX-License-Identifier: GPL-2.0
24 ImgU). The CIO2 driver is available as drivers/media/pci/intel/ipu3/ipu3-cio2*
36 Both of the drivers implement V4L2, Media Controller and V4L2 sub-device
38 MIPI CSI-2 interfaces through V4L2 sub-device sensor drivers.
44 interface to the user space. There is a video node for each CSI-2 receiver,
47 The CIO2 contains four independent capture channel, each with its own MIPI CSI-2
48 receiver and DMA engine. Each channel is modelled as a V4L2 sub-device exposed
49 to userspace as a V4L2 sub-device node and has two pads:
53 .. flat-table::
55 * - pad
[all …]
H A Dvivid.rst1 .. SPDX-License-Identifier: GPL-2.0
13 Each input can be a webcam, TV capture device, S-Video capture device or an HDMI
14 capture device. Each output can be an S-Video output device or an HDMI output
23 - Support for read()/write(), MMAP, USERPTR and DMABUF streaming I/O.
24 - A large list of test patterns and variations thereof
25 - Working brightness, contrast, saturation and hue controls
26 - Support for the alpha color component
27 - Full colorspace support, including limited/full RGB range
28 - All possible control types are present
29 - Support for various pixel aspect ratios and video aspect ratios
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
H A Dia_css_types.h1 /* 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 …]
/OK3568_Linux_fs/kernel/arch/sh/kernel/cpu/sh4/
H A Dclock-sh4-202.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/mdp4/
H A Dmdp4_plane.c1 // SPDX-License-Identifier: GPL-2.0-only
35 if (fb->modifier == DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) in mdp4_get_frame_format()
38 if (fb->format->format == DRM_FORMAT_NV12 && is_tile) in mdp4_get_frame_format()
55 struct msm_drm_private *priv = plane->dev->dev_private; in get_kms()
56 return to_mdp4_kms(to_mdp_kms(priv->kms)); in get_kms()
79 return -EINVAL; in mdp4_plane_set_property()
97 struct msm_kms *kms = &mdp4_kms->base.base; in mdp4_plane_cleanup_fb()
98 struct drm_framebuffer *fb = old_state->fb; in mdp4_plane_cleanup_fb()
103 DBG("%s: cleanup: FB[%u]", mdp4_plane->name, fb->base.id); in mdp4_plane_cleanup_fb()
104 msm_framebuffer_cleanup(fb, kms->aspace); in mdp4_plane_cleanup_fb()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/ipa_control/
H A Dmali_kbase_csf_ipa_control.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved.
18 * http://www.gnu.org/licenses/gpl-2.0.html.
33 * struct kbase_ipa_control_perf_counter - Performance counter description
35 * @scaling_factor: Scaling factor by which the counter's value shall be
36 * multiplied. A scaling factor of 1 corresponds to units
40 * an interval of time expressed in seconds (when the scaling
53 * The client may specify a scaling factor to multiply counter values before
55 * too low in resolution. For instance: a scaling factor of 1000 implies
56 * that the returned value is a time expressed in milliseconds; a scaling
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vc4/
H A Dvc4_plane.c1 // SPDX-License-Identifier: GPL-2.0-only
157 return state->fb && !WARN_ON(!state->crtc); in plane_enabled()
164 if (WARN_ON(!plane->state)) in vc4_plane_duplicate_state()
167 vc4_state = kmemdup(plane->state, sizeof(*vc4_state), GFP_KERNEL); in vc4_plane_duplicate_state()
171 memset(&vc4_state->lbm, 0, sizeof(vc4_state->lbm)); in vc4_plane_duplicate_state()
172 vc4_state->dlist_initialized = 0; in vc4_plane_duplicate_state()
174 __drm_atomic_helper_plane_duplicate_state(plane, &vc4_state->base); in vc4_plane_duplicate_state()
176 if (vc4_state->dlist) { in vc4_plane_duplicate_state()
177 vc4_state->dlist = kmemdup(vc4_state->dlist, in vc4_plane_duplicate_state()
178 vc4_state->dlist_count * 4, in vc4_plane_duplicate_state()
[all …]
/OK3568_Linux_fs/kernel/drivers/leds/
H A Dleds-pca963x.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Peter Meerwald <p.meerwald@bct-electronic.com>
9 * Based on leds-pca955x.c
11 * LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62)
12 * LED driver for the PCA9634/5 I2C LED driver (7-bit slave address set by hw.)
22 * or by adding the 'nxp,hw-blink' property to the DTS.
42 #define PCA963X_MODE2_OUTDRV 0x04 /* Open-drain or totem pole */
61 unsigned int scaling; member
119 struct i2c_client *client = led->chip->client; in pca963x_brightness()
120 struct pca963x_chipdef *chipdef = led->chip->chipdef; in pca963x_brightness()
[all …]
/OK3568_Linux_fs/kernel/Documentation/filesystems/
H A Dceph.rst1 .. SPDX-License-Identifier: GPL-2.0
13 * Seamless scaling from 1 to many thousands of nodes
15 * N-way replication of data across storage nodes
32 re-replicated in a distributed fashion by the storage nodes themselves
37 in-memory cache above the file namespace that is extremely scalable,
39 and can tolerate arbitrary (well, non-Byzantine) node failures. The
48 The system offers automatic data rebalancing/migration when scaling
61 files and bytes. That is, a 'getfattr -d foo' on any directory in the
72 setfattr -n ceph.quota.max_bytes -v 100000000 /some/dir
73 getfattr -n ceph.quota.max_bytes /some/dir
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/
H A Dqcom,spmi-vadc.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andy Gross <agross@kernel.org>
11 - Bjorn Andersson <bjorn.andersson@linaro.org>
15 voltage. The VADC is a 15-bit sigma-delta ADC.
17 voltage. The VADC is a 16-bit sigma-delta ADC.
22 - items:
23 - const: qcom,pms405-adc
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/
H A Dcs35l33.txt5 - compatible : "cirrus,cs35l33"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
15 - reset-gpios : gpio used to reset the amplifier
17 - interrupts : IRQ line info CS35L33.
18 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
21 - cirrus,boost-ctl : Booster voltage use to supply the amp. If the value is
26 - cirrus,ramp-rate : On power up, it affects the time from when the power
27 up sequence begins to the time the audio reaches a full-scale output.
28 On power down, it affects the time from when the power-down sequence
[all …]

12345678910>>...15