/openbmc/qemu/tests/qtest/ |
H A D | test-arm-mptimer.c | 16 #define TIMER_BLOCK_STEP(scaler, steps_nb) \ argument 17 clock_step(TIMER_BLOCK_SCALE(scaler) * (int64_t)(steps_nb) + 1) 94 int scaler = *((int *) arg); in test_timer_oneshot() local 98 timer_start(ONESHOT, scaler); in test_timer_oneshot() 100 TIMER_BLOCK_STEP(scaler, 9999); in test_timer_oneshot() 105 TIMER_BLOCK_STEP(scaler, 9990000); in test_timer_oneshot() 110 TIMER_BLOCK_STEP(scaler, 9990000); in test_timer_oneshot() 118 int scaler = *((int *) arg); in test_timer_pause() local 122 timer_start(ONESHOT, scaler); in test_timer_pause() 124 TIMER_BLOCK_STEP(scaler, 999); in test_timer_pause() [all …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_scaler.c | 25 #include "regs-scaler.h" 27 #define scaler_read(offset) readl(scaler->regs + (offset)) 28 #define scaler_write(cfg, offset) writel(cfg, scaler->regs + (offset)) 93 static inline int scaler_reset(struct scaler_context *scaler) in scaler_reset() argument 110 static inline void scaler_enable_int(struct scaler_context *scaler) in scaler_enable_int() argument 143 static inline void scaler_set_src_fmt(struct scaler_context *scaler, in scaler_set_src_fmt() argument 152 static inline void scaler_set_src_base(struct scaler_context *scaler, in scaler_set_src_base() argument 166 static inline void scaler_set_src_span(struct scaler_context *scaler, in scaler_set_src_span() argument 180 static inline void scaler_set_src_luma_chroma_pos(struct scaler_context *scaler, in scaler_set_src_luma_chroma_pos() argument 196 static inline void scaler_set_src_wh(struct scaler_context *scaler, in scaler_set_src_wh() argument [all …]
|
H A D | regs-gsc.h | 7 * Register definition file for Samsung G-Scaler driver 13 /* G-Scaler enable */ 33 /* G-Scaler S/W reset */ 37 /* G-Scaler IRQ */ 45 /* G-Scaler input control */ 91 /* G-Scaler source image size */ 98 /* G-Scaler source image offset */ 105 /* G-Scaler cropped source image size */ 112 /* G-Scaler output control */ 148 /* G-Scaler scaled destination image size */ [all …]
|
/openbmc/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-regs.h | 6 * Register definition file for Samsung G-Scaler driver 12 /* G-Scaler enable */ 18 /* G-Scaler S/W reset */ 22 /* G-Scaler IRQ */ 29 /* G-Scaler input control */ 65 /* G-Scaler source image size */ 70 /* G-Scaler source image offset */ 75 /* G-Scaler cropped source image size */ 80 /* G-Scaler output control */ 110 /* G-Scaler scaled destination image size */ [all …]
|
H A D | gsc-core.h | 6 * header file for Samsung EXYNOS5 SoC series G-Scaler driver 64 * enum gsc_datapath - the path of data used for G-Scaler 128 * @idx : index of G-Scaler input buffer 137 * struct gsc_addr - the G-Scaler physical address set 148 /* struct gsc_ctrls - the G-Scaler control set 162 * struct gsc_scaler - the configuration data for G-Scaler inetrnal scaler 166 * @main_hratio: the main scaler's horizontal ratio 167 * @main_vratio: the main scaler's vertical ratio 188 * @fmt: G-Scaler color format pointer 220 * @org_scaler_bypass_w: max pixel width when the scaler is disabled [all …]
|
/openbmc/linux/Documentation/gpu/ |
H A D | komeda-kms.rst | 29 Scaler section in Overview of D71 like display IPs 31 As its name suggests, scaler takes responsibility for scaling, and D71 also 32 supports image enhancements by scaler. 33 The usage of scaler is very flexible and can be connected to layer output 43 user can also insert a scaler between compositor and wb_layer to down scale 63 D71 scaler mostly only has the half horizontal input/output capabilities 64 compared with Layer, like if Layer supports 4K input size, the scaler only can 114 "Scaler-0"; 115 "Scaler-1"; 116 "Scaler-0/1" [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpu/ |
H A D | samsung-scaler.yaml | 4 $id: http://devicetree.org/schemas/gpu/samsung-scaler.yaml# 7 title: Samsung Exynos SoC Image Scaler 15 - samsung,exynos5420-scaler 16 - samsung,exynos5433-scaler 33 const: samsung,exynos5420-scaler 73 scaler@12800000 { 74 compatible = "samsung,exynos5420-scaler";
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | skl_scaler.c | 130 * Once NV12 is enabled, handle it here while allocating scaler in skl_update_scaler() 141 * if plane is being disabled or scaler is no more required or force detach in skl_update_scaler() 142 * - free scaler binded to this plane/crtc in skl_update_scaler() 145 * Here scaler state in crtc_state is set free so that in skl_update_scaler() 146 * scaler can be assigned to other user. Actual register in skl_update_scaler() 147 * update to free the scaler is done in plane/panel-fit programming. in skl_update_scaler() 157 "Staged freeing scaler id %d scaler_users = 0x%x\n", in skl_update_scaler() 206 "size is out of scaler range\n", in skl_update_scaler() 213 * The pipe scaler does not use all the bits of PIPESRC, at least in skl_update_scaler() 216 * we assume the limits match the scaler source size limits. Might in skl_update_scaler() [all …]
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_pipeline_state.c | 253 /* Get current available scaler from the component->supported_outputs */ 443 komeda_scaler_check_cfg(struct komeda_scaler *scaler, in komeda_scaler_check_cfg() argument 455 if (!malidp_in_range(&scaler->hsize, hsize_in) || in komeda_scaler_check_cfg() 456 !malidp_in_range(&scaler->hsize, hsize_out)) { in komeda_scaler_check_cfg() 461 if (!malidp_in_range(&scaler->vsize, vsize_in) || in komeda_scaler_check_cfg() 462 !malidp_in_range(&scaler->vsize, vsize_out)) { in komeda_scaler_check_cfg() 468 * and scaler can not do upscaling for writeback in komeda_scaler_check_cfg() 473 max_upscaling = scaler->max_upscaling; in komeda_scaler_check_cfg() 476 scaler->max_downscaling)) { in komeda_scaler_check_cfg() 482 scaler->max_downscaling)) { in komeda_scaler_check_cfg() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s3c-camif/ |
H A D | camif-core.c | 144 struct camif_scaler *scaler) in s3c_camif_get_scaler_config() argument 156 ret = camif_get_scaler_factor(source_x, target_x, &scaler->pre_h_ratio, in s3c_camif_get_scaler_config() 157 &scaler->h_shift); in s3c_camif_get_scaler_config() 161 ret = camif_get_scaler_factor(source_y, target_y, &scaler->pre_v_ratio, in s3c_camif_get_scaler_config() 162 &scaler->v_shift); in s3c_camif_get_scaler_config() 166 scaler->pre_dst_width = source_x / scaler->pre_h_ratio; in s3c_camif_get_scaler_config() 167 scaler->pre_dst_height = source_y / scaler->pre_v_ratio; in s3c_camif_get_scaler_config() 169 scaler->main_h_ratio = (source_x << 8) / (target_x << scaler->h_shift); in s3c_camif_get_scaler_config() 170 scaler->main_v_ratio = (source_y << 8) / (target_y << scaler->v_shift); in s3c_camif_get_scaler_config() 172 scaler->scaleup_h = (target_x >= source_x); in s3c_camif_get_scaler_config() [all …]
|
H A D | camif-regs.c | 364 struct camif_scaler *sc = &vp->scaler; in camif_hw_set_prescaler() 382 struct camif_scaler *scaler = &vp->scaler; in camif_s3c244x_hw_set_scaler() local 393 if (scaler->enable) { in camif_s3c244x_hw_set_scaler() 394 if (scaler->scaleup_h) { in camif_s3c244x_hw_set_scaler() 400 if (scaler->scaleup_v) { in camif_s3c244x_hw_set_scaler() 411 cfg |= ((scaler->main_h_ratio & 0x1ff) << 16); in camif_s3c244x_hw_set_scaler() 412 cfg |= scaler->main_v_ratio & 0x1ff; in camif_s3c244x_hw_set_scaler() 423 scaler->main_h_ratio, scaler->main_v_ratio); in camif_s3c244x_hw_set_scaler() 429 struct camif_scaler *scaler = &vp->scaler; in camif_s3c64xx_hw_set_scaler() local 446 if (!scaler->enable) { in camif_s3c64xx_hw_set_scaler() [all …]
|
/openbmc/linux/drivers/media/platform/ti/vpe/ |
H A D | sc.c | 3 * Scaler library 58 * set the horizontal scaler coefficients according to the ratio of output to 94 * for each phase, the scaler expects space for 8 coefficients in sc_set_hs_coeffs() 95 * in it's memory. For the horizontal scaler, we copy the first in sc_set_hs_coeffs() 107 * set the vertical scaler coefficients according to the ratio of output to 136 * for the vertical scaler, we copy the first 5 coefficients and in sc_set_vs_coeffs() 187 /* configure horizontal scaler */ in sc_config_scaler() 210 /* configure vertical scaler */ in sc_config_scaler() 212 /* use RAV for vertical scaler if vertical downscaling is > 4x */ in sc_config_scaler() 304 MODULE_DESCRIPTION("TI VIP/VPE Scaler");
|
H A D | sc.h | 12 /* Scaler regs */ 164 /* number of taps used by horizontal polyphase scaler */ 167 /* number of taps used by vertical polyphase scaler */ 170 /* number of taps expected by the scaler in it's coefficient memory */ 173 /* Maximum frame width the scaler can handle (in pixels) */ 176 /* Maximum frame height the scaler can handle (in lines) */
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | moortec,mr75203.yaml | 25 *) Pre Scaler - provides divide-by-X scaling of input voltage, which can then 27 divide by 2 pre-scaler). 82 moortec,vm-pre-scaler-x2: 84 Defines the channels that use a mr76006 pre-scaler to divide the input 86 The pre-scaler is used for input sources that exceed the VM input range. 89 For channels that are not listed, no pre-scaler is assumed. 160 moortec,vm-pre-scaler-x2 = /bits/ 8 <5 6 20>;
|
/openbmc/linux/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 42 /* Set up the CSS scaler look up table */ 131 * and chroma details of a scaler 193 /********************** Osys routines for scaler****************************/ 459 * scaler factor is 1 or other in imgu_css_osys_calc_frame_and_stripe_params() 481 dev_dbg(css->dev, "osys scaler procmode is %u", procmode); in imgu_css_osys_calc_frame_and_stripe_params() 503 * Calculate scaler configuration parameters based on input and output in imgu_css_osys_calc_frame_and_stripe_params() 536 * in case scaler output is not enabled in imgu_css_osys_calc_frame_and_stripe_params() 642 * of chunck scaler HW may not output the pixel in imgu_css_osys_calc_frame_and_stripe_params() 740 * The scaler requires that the last stripe in imgu_css_osys_calc_frame_and_stripe_params() 783 * as produced by the scaler; actual in imgu_css_osys_calc_frame_and_stripe_params() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-core.c | 58 SCALER, enumerator 114 [SCALER] = { 115 .name = "Scaler", 145 /* Link: Debayer A (Pad 1)->(Pad 0) Scaler */ 146 VIMC_DATA_LINK(DEBAYER_A, 1, SCALER, 0, MEDIA_LNK_FL_ENABLED), 147 /* Link: Debayer B (Pad 1)->(Pad 0) Scaler */ 148 VIMC_DATA_LINK(DEBAYER_B, 1, SCALER, 0, 0), 149 /* Link: RGB/YUV Input (Pad 0)->(Pad 0) Scaler */ 150 VIMC_DATA_LINK(RGB_YUV_INPUT, 0, SCALER, 0, 0), 151 /* Link: Scaler (Pad 1)->(Pad 0) RGB/YUV Capture */ [all …]
|
/openbmc/qemu/hw/timer/ |
H A D | grlib_gptimer.c | 90 uint32_t scaler; member 139 static void grlib_gptimer_set_scaler(GPTimerUnit *unit, uint32_t scaler) in grlib_gptimer_set_scaler() argument 146 if (scaler > 0) { in grlib_gptimer_set_scaler() 147 value = unit->freq_hz / (scaler + 1); in grlib_gptimer_set_scaler() 152 trace_grlib_gptimer_set_scaler(scaler, value); in grlib_gptimer_set_scaler() 194 trace_grlib_gptimer_readl(-1, addr, unit->scaler); in grlib_gptimer_read() 195 return unit->scaler; in grlib_gptimer_read() 253 unit->scaler = value; in grlib_gptimer_write() 254 trace_grlib_gptimer_writel(-1, addr, unit->scaler); in grlib_gptimer_write() 349 unit->scaler = 0; in grlib_gptimer_reset()
|
/openbmc/linux/Documentation/userspace-api/media/drivers/ |
H A D | ccs.rst | 11 the binner and the scaler. 32 Additionally, if a device has no scaler or digital crop functionality, the 36 Scaler chapter 39 The scaler sub-device represents the digital crop and scaling functionality of 45 Additionally, if the scaler sub-device exists, its source pad (1) exposes
|
/openbmc/linux/Documentation/admin-guide/media/ |
H A D | vimc.rst | 7 API. It has a capture device and three subdevices: sensor, debayer and scaler. 38 media-ctl -d platform:vimc -V '"Scaler":0[fmt:RGB888_1X24/640x480]' 39 media-ctl -d platform:vimc -V '"Scaler":0[crop:(100,50)/400x150]' 40 media-ctl -d platform:vimc -V '"Scaler":1[fmt:RGB888_1X24/300x700]' 82 vimc-scaler:
|
/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | samsung,exynos5250-gsc.yaml | 7 title: Samsung Exynos SoC G-Scaler 15 G-Scaler is used for scaling and color space conversion on Samsung Exynos 18 Each G-Scaler node should have a numbered alias in the aliases node, in the 101 video-scaler@13e00000 {
|
/openbmc/u-boot/drivers/spi/ |
H A D | cf_spi.c | 187 * 19 - 16: PCS to SCK delay scaler in cfspi_setup_slave() 188 * 15 - 12: After SCK delay scaler in cfspi_setup_slave() 189 * 11 - 8: Delay after transfer scaler in cfspi_setup_slave() 194 int scaler[] = { in cfspi_setup_slave() local 204 tmp = (prescaler[3] * scaler[15]); in cfspi_setup_slave() 215 (cfslave->baudrate > (gd->bus_clk / (prescaler[0] * scaler[0])))) { in cfspi_setup_slave() 254 brcnt = sizeof(scaler) / sizeof(int); in cfspi_setup_slave() 260 tmp = (baud_speed / scaler[j]) * (1 + dbr); in cfspi_setup_slave()
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | pipeline.dot | 6 …scaler [label="{<scaler_0> 0} | Host\nScaler | {<scaler_1> 1} ", shape=Mrecord, style=filled, fill… 12 frontend:frontend_1 -> scaler:scaler_0 [color=blue, label="HQ: 2592x1968\nHS: 1296x984"] 13 scaler:scaler_1 -> io:io_0 [color=blue, label="HQ: 1280x720\nHS: 1280x720"]
|
/openbmc/linux/Documentation/driver-api/media/drivers/ccs/ |
H A D | ccs.rst | 11 the binner and the scaler. 32 Additionally, if a device has no scaler or digital crop functionality, the 36 Scaler section in MIPI CCS camera sensor driver 39 The scaler sub-device represents the digital crop and scaling functionality of 45 Additionally, if the scaler sub-device exists, its source pad (1) exposes
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_connector.c | 106 *val = asyc->scaler.mode; in nouveau_conn_atomic_get_property() 108 *val = asyc->scaler.underscan.mode; in nouveau_conn_atomic_get_property() 110 *val = asyc->scaler.underscan.hborder; in nouveau_conn_atomic_get_property() 112 *val = asyc->scaler.underscan.vborder; in nouveau_conn_atomic_get_property() 168 if (asyc->scaler.mode != val) { in nouveau_conn_atomic_set_property() 169 asyc->scaler.mode = val; in nouveau_conn_atomic_set_property() 170 asyc->set.scaler = true; in nouveau_conn_atomic_set_property() 174 if (asyc->scaler.underscan.mode != val) { in nouveau_conn_atomic_set_property() 175 asyc->scaler.underscan.mode = val; in nouveau_conn_atomic_set_property() 176 asyc->set.scaler = true; in nouveau_conn_atomic_set_property() [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-scaler.c | 93 /* scaler coefficients generator */ 307 dev_err(scl->dev, "scaler: unable to remap ch base\n"); in dcss_scaler_ch_init_all() 319 struct dcss_scaler *scaler; in dcss_scaler_init() local 321 scaler = kzalloc(sizeof(*scaler), GFP_KERNEL); in dcss_scaler_init() 322 if (!scaler) in dcss_scaler_init() 325 dcss->scaler = scaler; in dcss_scaler_init() 326 scaler->dev = dcss->dev; in dcss_scaler_init() 327 scaler->ctxld = dcss->ctxld; in dcss_scaler_init() 328 scaler->ctx_id = CTX_SB_HP; in dcss_scaler_init() 330 if (dcss_scaler_ch_init_all(scaler, scaler_base)) { in dcss_scaler_init() [all …]
|