/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_query/ |
H A D | vktRayQueryDirectionTests.cpp | 155 // Get matrix to scale a point with the given scale factor. 565 const auto scale = scalingFactors[scalingIdx]; in createDirectionLengthTests() local 582 scale, // float directionScale; in createDirectionLengthTests() 638 const auto scale = scalingFactors[scalingIdx]; in createInsideAABBsTests() local 654 scale, // float directionScale; in createInsideAABBsTests()
|
H A D | vktRayQueryOpacityMicromapTests.cpp | 342 const float scale = 1.0f / float(1 << subdivisionLevel); in calcSubtriangleCentroid() local 344 float u = (1.0f / 3.0f) * scale; in calcSubtriangleCentroid() 345 float v = (1.0f / 3.0f) * scale; in calcSubtriangleCentroid() 362 u + (float)iu * scale, in calcSubtriangleCentroid() 363 v + (float)iv * scale in calcSubtriangleCentroid() 368 (float)iu * scale - u, in calcSubtriangleCentroid() 369 (float)iv * scale - v in calcSubtriangleCentroid()
|
/kernel/linux/linux-5.10/drivers/net/ipa/ |
H A D | ipa_endpoint.c | 655 u32 scale; in ipa_reg_init_hol_block_timer_val() local 675 * scale fields within the 32-bit timer register, where: in ipa_reg_init_hol_block_timer_val() 676 * ticks = base << scale; in ipa_reg_init_hol_block_timer_val() 684 scale = high > width ? high - width : 0; in ipa_reg_init_hol_block_timer_val() 685 if (scale) { in ipa_reg_init_hol_block_timer_val() 687 ticks += 1 << (scale - 1); in ipa_reg_init_hol_block_timer_val() 690 scale++; in ipa_reg_init_hol_block_timer_val() 693 val = u32_encode_bits(scale, SCALE_FMASK); in ipa_reg_init_hol_block_timer_val() 694 val |= u32_encode_bits(ticks >> scale, BASE_VALUE_FMASK); in ipa_reg_init_hol_block_timer_val()
|
/kernel/linux/linux-6.6/drivers/ufs/core/ |
H A D | ufs-sysfs.c | 134 int scale = FIELD_GET(UFSHCI_AHIBERN8_SCALE_MASK, ahit); in ufshcd_ahit_to_us() local 136 for (; scale > 0; --scale) in ufshcd_ahit_to_us() 145 unsigned int scale; in ufshcd_us_to_ahit() local 147 for (scale = 0; timer > UFSHCI_AHIBERN8_TIMER_MASK; ++scale) in ufshcd_us_to_ahit() 151 FIELD_PREP(UFSHCI_AHIBERN8_SCALE_MASK, scale); in ufshcd_us_to_ahit()
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | ti-ads1015.c | 85 const int *scale; member 111 * Translation from PGA bits to full-scale positive and negative input voltage 480 int scale, int uscale) in ads1015_set_scale() 483 int fullscale = div_s64((scale * 1000000LL + uscale) << in ads1015_set_scale() 523 *vals = data->chip->scale; in ads1015_read_avail() 1149 .scale = ads1015_scale, 1160 .scale = ads1115_scale, 1171 .scale = ads1015_scale, 478 ads1015_set_scale(struct ads1015_data *data, struct iio_chan_spec const *chan, int scale, int uscale) ads1015_set_scale() argument
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_emit.c | 682 minx = MAX2(minx, (int)floorf(vp->translate[0] - fabsf(vp->scale[0]))); in fd3_emit_state() 683 miny = MAX2(miny, (int)floorf(vp->translate[1] - fabsf(vp->scale[1]))); in fd3_emit_state() 684 maxx = MIN2(maxx, (int)ceilf(vp->translate[0] + fabsf(vp->scale[0]))); in fd3_emit_state() 685 maxy = MIN2(maxy, (int)ceilf(vp->translate[1] + fabsf(vp->scale[1]))); in fd3_emit_state() 705 OUT_RING(ring, A3XX_GRAS_CL_VPORT_XSCALE(ctx->viewport.scale[0])); in fd3_emit_state() 708 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YSCALE(ctx->viewport.scale[1])); in fd3_emit_state() 710 OUT_RING(ring, A3XX_GRAS_CL_VPORT_ZSCALE(ctx->viewport.scale[2])); in fd3_emit_state()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_state_validate.c | 410 PUSH_DATAf(push, vp->scale[0]); in nvc0_validate_viewport() 411 PUSH_DATAf(push, vp->scale[1]); in nvc0_validate_viewport() 412 PUSH_DATAf(push, vp->scale[2]); in nvc0_validate_viewport() 416 x = util_iround(MAX2(0.0f, vp->translate[0] - fabsf(vp->scale[0]))); in nvc0_validate_viewport() 417 y = util_iround(MAX2(0.0f, vp->translate[1] - fabsf(vp->scale[1]))); in nvc0_validate_viewport() 418 w = util_iround(vp->translate[0] + fabsf(vp->scale[0])) - x; in nvc0_validate_viewport() 419 h = util_iround(vp->translate[1] + fabsf(vp->scale[1])) - y; in nvc0_validate_viewport()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
H A D | vktRayQueryOpacityMicromapTests.cpp | 347 const float scale = 1.0f / float(1 << subdivisionLevel); in calcSubtriangleCentroid() local 349 float u = (1.0f / 3.0f) * scale; in calcSubtriangleCentroid() 350 float v = (1.0f / 3.0f) * scale; in calcSubtriangleCentroid() 367 u + (float)iu * scale, in calcSubtriangleCentroid() 368 v + (float)iv * scale in calcSubtriangleCentroid() 373 (float)iu * scale - u, in calcSubtriangleCentroid() 374 (float)iv * scale - v in calcSubtriangleCentroid()
|
/third_party/skia/src/ports/ |
H A D | SkScalerContext_win_dw.cpp | 280 // non-uniform x-scale. in SkScalerContext_DW() 285 SkVector scale; in SkScalerContext_DW() local 286 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &fSkXform); in SkScalerContext_DW() 297 // If the scale is negative, this means the matrix will do the flip anyway. in SkScalerContext_DW() 298 const SkScalar realTextSize = scale.fY; in SkScalerContext_DW() 693 SkScalar scale = fTextSizeRender / glyphData.pixelsPerEm; in generatePngMetrics() local 694 matrix.preScale(scale, scale); in generatePngMetrics() 1160 canvas.scale(ratio, ratio); in generatePngGlyphImage()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | time.c | 1038 u64 scale; in time_init() local 1054 * Compute scale factor for sched_clock. in time_init() 1060 * giving us the scale factor and shift count to use in in time_init() 1064 scale = res.result_low; in time_init() 1066 scale = (scale >> 1) | (res.result_high << 63); in time_init() 1069 tb_to_ns_scale = scale; in time_init()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | visemul.c | 480 unsigned long rs1, rs2, gsr, scale, rd_val; in pformat() local 483 scale = (gsr >> 3) & (opf == FPACK16_OPF ? 0xf : 0x1f); in pformat() 493 int scaled = src << scale; in pformat() 516 s64 scaled = src << scale; in pformat() 539 s64 scaled = src << scale; in pformat()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | visemul.c | 480 unsigned long rs1, rs2, gsr, scale, rd_val; in pformat() local 483 scale = (gsr >> 3) & (opf == FPACK16_OPF ? 0xf : 0x1f); in pformat() 493 int scaled = src << scale; in pformat() 516 s64 scaled = src << scale; in pformat() 539 s64 scaled = src << scale; in pformat()
|
/kernel/linux/linux-5.10/drivers/iio/gyro/ |
H A D | fxas21002c_core.c | 556 int scale; in fxas21002c_scale_get() local 564 scale = fxas21002c_range_fs_from_value(data, fs_bits); in fxas21002c_scale_get() 565 if (scale < 0) { in fxas21002c_scale_get() 566 ret = scale; in fxas21002c_scale_get() 570 *val = scale; in fxas21002c_scale_get()
|
/kernel/linux/linux-5.10/drivers/iio/temperature/ |
H A D | mlx90632.c | 570 static s64 mlx90632_calc_ta4(s64 TAdut, s64 scale) in mlx90632_calc_ta4() argument 572 return (div64_s64(TAdut, scale) + 27315) * in mlx90632_calc_ta4() 573 (div64_s64(TAdut, scale) + 27315) * in mlx90632_calc_ta4() 574 (div64_s64(TAdut, scale) + 27315) * in mlx90632_calc_ta4() 575 (div64_s64(TAdut, scale) + 27315); in mlx90632_calc_ta4()
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
H A D | pcie-rockchip-host.c | 260 u32 status, scale, power; in rockchip_pcie_set_power_limit() local 266 * Set RC's captured slot power limit and scale if in rockchip_pcie_set_power_limit() 275 scale = 3; /* 0.001x */ in rockchip_pcie_set_power_limit() 279 if (!scale) { in rockchip_pcie_set_power_limit() 283 scale--; in rockchip_pcie_set_power_limit() 289 (scale << PCIE_RC_CONFIG_DCR_CPLS_SHIFT); in rockchip_pcie_set_power_limit()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dfp.c | 338 else /* gpu needs to scale */ in nv04_dfp_mode_set() 381 uint32_t diff, scale; in nv04_dfp_mode_set() local 386 * horizontal needs to be scaled at vertical scale factor in nv04_dfp_mode_set() 389 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay; in nv04_dfp_mode_set() 391 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); in nv04_dfp_mode_set() 402 * vertical needs to be scaled at horizontal scale factor in nv04_dfp_mode_set() 405 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set() 407 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE); in nv04_dfp_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_crtc.c | 62 u32 scale, inc, crtc_more_cntl; in radeon_legacy_rmx_mode_set() local 136 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set() 138 fp_horz_stretch |= (((scale) & RADEON_HORZ_STRETCH_RATIO_MASK) | in radeon_legacy_rmx_mode_set() 148 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set() 150 fp_vert_stretch |= (((scale) & RADEON_VERT_STRETCH_RATIO_MASK) | in radeon_legacy_rmx_mode_set()
|
/kernel/linux/linux-6.6/drivers/pci/controller/ |
H A D | pcie-rockchip-host.c | 254 u32 status, scale, power; in rockchip_pcie_set_power_limit() local 260 * Set RC's captured slot power limit and scale if in rockchip_pcie_set_power_limit() 269 scale = 3; /* 0.001x */ in rockchip_pcie_set_power_limit() 273 if (!scale) { in rockchip_pcie_set_power_limit() 277 scale--; in rockchip_pcie_set_power_limit() 283 (scale << PCIE_RC_CONFIG_DCR_CPLS_SHIFT); in rockchip_pcie_set_power_limit()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dfp.c | 338 else /* gpu needs to scale */ in nv04_dfp_mode_set() 381 uint32_t diff, scale; in nv04_dfp_mode_set() local 386 * horizontal needs to be scaled at vertical scale factor in nv04_dfp_mode_set() 389 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay; in nv04_dfp_mode_set() 391 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); in nv04_dfp_mode_set() 402 * vertical needs to be scaled at horizontal scale factor in nv04_dfp_mode_set() 405 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set() 407 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE); in nv04_dfp_mode_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_crtc.c | 62 u32 scale, inc, crtc_more_cntl; in radeon_legacy_rmx_mode_set() local 136 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set() 138 fp_horz_stretch |= (((scale) & RADEON_HORZ_STRETCH_RATIO_MASK) | in radeon_legacy_rmx_mode_set() 148 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set() 150 fp_vert_stretch |= (((scale) & RADEON_VERT_STRETCH_RATIO_MASK) | in radeon_legacy_rmx_mode_set()
|
/kernel/linux/linux-6.6/drivers/iio/gyro/ |
H A D | fxas21002c_core.c | 556 int scale; in fxas21002c_scale_get() local 564 scale = fxas21002c_range_fs_from_value(data, fs_bits); in fxas21002c_scale_get() 565 if (scale < 0) { in fxas21002c_scale_get() 566 ret = scale; in fxas21002c_scale_get() 570 *val = scale; in fxas21002c_scale_get()
|
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | detection_post_process_test.cpp | 62 OHNNOperandTest scale = {OH_NN_FLOAT32, OH_NN_DETECTION_POST_PROCESS_SCALE, {4}, &scaleValue, 4*sizeof(float)};
member 81 inputSize, scale, nmsIoUThreshold, nmsScoreThreshold, maxDetections,
134 dppModel.scale, dppModel.nmsIoUThreshold, dppModel.nmsScoreThreshold, dppModel.maxDetections,
in HWTEST_F() 160 dppModel.scale, dppModel.nmsIoUThreshold, dppModel.nmsScoreThreshold, dppModel.maxDetections,
in HWTEST_F() 188 dppModel.confidences, dppModel.numDetections, dppModel.inputSize, dppModel.scale,
in HWTEST_F()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_headphone.c | 382 float scale; in convert_coeffs() local 384 ret = av_tx_init(&s->fft[0], &s->tx_fn[0], AV_TX_FLOAT_FFT, 0, s->n_fft, &scale, 0); in convert_coeffs() 387 ret = av_tx_init(&s->fft[1], &s->tx_fn[1], AV_TX_FLOAT_FFT, 0, s->n_fft, &scale, 0); in convert_coeffs() 390 ret = av_tx_init(&s->ifft[0], &s->itx_fn[0], AV_TX_FLOAT_FFT, 1, s->n_fft, &scale, 0); in convert_coeffs() 393 ret = av_tx_init(&s->ifft[1], &s->itx_fn[1], AV_TX_FLOAT_FFT, 1, s->n_fft, &scale, 0); in convert_coeffs()
|
/third_party/ffmpeg/libswresample/ |
H A D | resample.c | 140 * @param scale wanted sum of coefficients for each filter 145 static int build_filter(ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, in build_filter() argument 208 ((int16_t*)filter)[ph * alloc + i] = av_clip_int16(lrintf(tab[i] * scale / norm)); in build_filter() 215 ((int32_t*)filter)[ph * alloc + i] = av_clipl_int32(llrint(tab[i] * scale / norm)); in build_filter() 222 ((float*)filter)[ph * alloc + i] = tab[i] * scale / norm; in build_filter() 229 ((double*)filter)[ph * alloc + i] = tab[i] * scale / norm; in build_filter()
|
/third_party/backends/backend/ |
H A D | hp-accessor.c | 535 SANE_Fixed (*scale)(HpAccessorVector this, unsigned short val); member 610 *ptr++ = (*this->scale)(this, _v_get(this, data)); in hp_accessor_vector_get() 678 new->scale = _vector_scale; in sanei_hp_accessor_vector_new() 721 this->scale = _gamma_vector_scale; in sanei_hp_accessor_gamma_vector_new() 776 this->scale = _matrix_vector_scale; in sanei_hp_accessor_matrix_vector_new()
|