/third_party/skia/tools/skpbench/ |
H A D | skpbench.cpp | 81 static DEFINE_double(scale, 1, "Scale the size of the canvas and the zoom level by this factor."); 620 canvas->scale(FLAGS_scale, FLAGS_scale); in main()
|
/third_party/skia/modules/canvaskit/htmlcanvas/ |
H A D | canvas2dcontext.js | 942 this.scale = function(sx, sy) { 950 this._canvas.scale(sx, sy);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 1713 /* rx/tx scale factors for all CPlusCmd[0:1] cases */ 1737 /* get rx/tx scale vector corresponding to current speed */ 1764 u32 scale, c_us, c_fr; in rtl_get_coalesce() local 1772 /* get rx/tx scale corresponding to current speed and CPlusCmd[0:1] */ in rtl_get_coalesce() 1777 scale = ci->scale_nsecs[tp->cp_cmd & INTT_MASK]; in rtl_get_coalesce() 1782 ec->tx_coalesce_usecs = DIV_ROUND_UP(c_us * scale, 1000); in rtl_get_coalesce() 1789 ec->rx_coalesce_usecs = DIV_ROUND_UP(c_us * scale, 1000); in rtl_get_coalesce() 1797 /* choose appropriate scale factor and CPlusCmd[0:1] for (speed, usec) */ 1825 int scale; in rtl_set_coalesce() local 1834 scale in rtl_set_coalesce() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 1746 /* rx/tx scale factors for all CPlusCmd[0:1] cases */ 1770 /* get rx/tx scale vector corresponding to current speed */ 1800 u32 scale, c_us, c_fr; in rtl_get_coalesce() local 1808 /* get rx/tx scale corresponding to current speed and CPlusCmd[0:1] */ in rtl_get_coalesce() 1813 scale = ci->scale_nsecs[tp->cp_cmd & INTT_MASK]; in rtl_get_coalesce() 1818 ec->tx_coalesce_usecs = DIV_ROUND_UP(c_us * scale, 1000); in rtl_get_coalesce() 1825 ec->rx_coalesce_usecs = DIV_ROUND_UP(c_us * scale, 1000); in rtl_get_coalesce() 1833 /* choose appropriate scale factor and CPlusCmd[0:1] for (speed, usec) */ 1864 int scale; in rtl_set_coalesce() local 1873 scale in rtl_set_coalesce() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | OutputASM.cpp | 1567 if(arg0->isScalar() && arg.size() == 1) // Construct scale matrix in visitAggregate() 2701 int scale = result->totalRegisterCount(); in lvalue() local 2714 rel.scale = scale; in lvalue() 2720 if(scale == 1) in lvalue() 2722 Constant oldScale((int)rel.scale); in lvalue() 2729 Constant oldScale((int)rel.scale); in lvalue() 2734 Constant newScale(scale); in lvalue() 2740 rel.scale = 1; in lvalue() 2744 if(scale in lvalue() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.c | 1460 int scale, shift_amount, startword; in qla4_82xx_pci_mem_write_2M() local 1483 scale = 2; in qla4_82xx_pci_mem_write_2M() 1488 (i << shift_amount), &word[i * scale], 8)) in qla4_82xx_pci_mem_write_2M() 1526 temp = word[i * scale] & 0xffffffff; in qla4_82xx_pci_mem_write_2M() 1528 temp = (word[i * scale] >> 32) & 0xffffffff; in qla4_82xx_pci_mem_write_2M() 1530 temp = word[i*scale + 1] & 0xffffffff; in qla4_82xx_pci_mem_write_2M() 1533 temp = (word[i*scale + 1] >> 32) & 0xffffffff; in qla4_82xx_pci_mem_write_2M()
|
/kernel/linux/linux-5.10/sound/usb/ |
H A D | mixer.c | 546 DECLARE_TLV_DB_MINMAX(scale, 0, 0); in snd_usb_mixer_vol_tlv() 548 if (size < sizeof(scale)) in snd_usb_mixer_vol_tlv() 551 scale[0] = SNDRV_CTL_TLVT_DB_MINMAX_MUTE; in snd_usb_mixer_vol_tlv() 552 scale[2] = cval->dBmin; in snd_usb_mixer_vol_tlv() 553 scale[3] = cval->dBmax; in snd_usb_mixer_vol_tlv() 554 if (copy_to_user(_tlv, scale, sizeof(scale))) in snd_usb_mixer_vol_tlv() 1289 /* USB descriptions contain the dB scale in 1/256 dB unit in get_min_max_with_quirks()
|
/kernel/linux/linux-6.6/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.c | 1447 int scale, shift_amount, startword; in qla4_82xx_pci_mem_write_2M() local 1470 scale = 2; in qla4_82xx_pci_mem_write_2M() 1475 (i << shift_amount), &word[i * scale], 8)) in qla4_82xx_pci_mem_write_2M() 1513 temp = word[i * scale] & 0xffffffff; in qla4_82xx_pci_mem_write_2M() 1515 temp = (word[i * scale] >> 32) & 0xffffffff; in qla4_82xx_pci_mem_write_2M() 1517 temp = word[i*scale + 1] & 0xffffffff; in qla4_82xx_pci_mem_write_2M() 1520 temp = (word[i*scale + 1] >> 32) & 0xffffffff; in qla4_82xx_pci_mem_write_2M()
|
/kernel/linux/linux-6.6/sound/usb/ |
H A D | mixer.c | 551 DECLARE_TLV_DB_MINMAX(scale, 0, 0); in snd_usb_mixer_vol_tlv() 553 if (size < sizeof(scale)) in snd_usb_mixer_vol_tlv() 556 scale[0] = SNDRV_CTL_TLVT_DB_MINMAX_MUTE; in snd_usb_mixer_vol_tlv() 557 scale[2] = cval->dBmin; in snd_usb_mixer_vol_tlv() 558 scale[3] = cval->dBmax; in snd_usb_mixer_vol_tlv() 559 if (copy_to_user(_tlv, scale, sizeof(scale))) in snd_usb_mixer_vol_tlv() 1327 /* USB descriptions contain the dB scale in 1/256 dB unit in get_min_max_with_quirks()
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_internal.h | 1991 float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() 2024 float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } 2243 float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. 2357 float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. 2653 IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); 2656 IMGUI_API void RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); 2663 inline void RenderArrow(ImVec2 pos, ImGuiDir dir, float scale=1.0f) { ImGuiWindow* window = GetCurrentWindow(); RenderArrow(window->DrawList, pos, GetColorU32(ImGuiCol_Text), dir, scale); } [all...] |
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fShaderOperatorTests.cpp | 341 OperatorShaderEvaluator (ShaderEvalFunc evalFunc, float scale, float bias) in OperatorShaderEvaluator() argument 344 m_scale = scale; in OperatorShaderEvaluator() 573 float scale = (v.rangeMax - v.rangeMin); in ShaderOperatorCase() local 584 case 0: row = Vec4(scale, 0.0f, 0.0f, minBias); break; in ShaderOperatorCase() 585 case 1: row = Vec4(0.0f, scale, 0.0f, minBias); break; in ShaderOperatorCase() 586 case 2: row = Vec4(-scale, 0.0f, 0.0f, maxBias); break; in ShaderOperatorCase() 587 case 3: row = Vec4(0.0f, -scale, 0.0f, maxBias); break; in ShaderOperatorCase()
|
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | clk-dfll.c | 470 * Apply the same scaling formula that the DFLL hardware uses to scale 840 int scale; in dfll_calculate_rate_request() local 842 scale = DIV_ROUND_CLOSEST(rate / 1000 * DFLL_FREQ_REQ_SCALE_MAX, in dfll_calculate_rate_request() 844 if (!scale) { in dfll_calculate_rate_request() 849 req->scale_bits = scale - 1; in dfll_calculate_rate_request() 853 /* Convert requested rate into frequency request and scale settings */ in dfll_calculate_rate_request() 1910 "nvidia,cg-scale"); in dfll_fetch_common_params()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | at91-sama5d2_adc.c | 637 u32 scale, result, pos; in at91_adc_touch_pos() local 640 * to obtain the actual position we must divide by scale in at91_adc_touch_pos() 644 /* first half of register is the x or y, second half is the scale */ in at91_adc_touch_pos() 651 scale = (val >> 16) & AT91_SAMA5D2_XYZ_MASK; in at91_adc_touch_pos() 652 if (scale == 0) { in at91_adc_touch_pos() 653 dev_err(&st->indio_dev->dev, "scale is 0\n"); in at91_adc_touch_pos() 656 result /= scale; in at91_adc_touch_pos()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | synthetic-events.c | 1254 ADD(SCALE, config->scale) in perf_event__synthesize_stat_config() 1740 ev_data->scale = evsel->scale; in perf_event__synthesize_event_update_scale() 1816 return evsel->scale != 1; in has_scale() 1827 * attr event - unit, scale, name in perf_event__synthesize_extra_attr() 1834 * Synthesize unit and scale only if it's defined. in perf_event__synthesize_extra_attr()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mgag200/ |
H A D | mgag200_mode.c | 1196 unsigned int bpp, bppshift, scale; in mgag200_set_format_regs() local 1204 scale = ((1 << bppshift) * 3) - 1; in mgag200_set_format_regs() 1207 scale = (1 << bppshift) - 1; in mgag200_set_format_regs() 1236 crtcext3 |= scale; in mgag200_set_format_regs()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun8i_vi_scaler.c | 848 unsigned int scale, int_part, float_part; in sun8i_vi_scaler_coef_index() local 850 scale = step >> (SUN8I_VI_SCALER_SCALE_FRAC - 3); in sun8i_vi_scaler_coef_index() 851 int_part = scale >> 3; in sun8i_vi_scaler_coef_index() 852 float_part = scale & 0x7; in sun8i_vi_scaler_coef_index()
|
/kernel/linux/linux-6.6/drivers/powercap/ |
H A D | intel_rapl_common.c | 94 #define ENERGY_UNIT_SCALE 1000 /* scale from driver unit to powercap unit */ 614 u64 scale = 1; in rapl_unit_xlate() local 621 scale = ENERGY_UNIT_SCALE; in rapl_unit_xlate() 632 return div64_u64(value, units) * scale; in rapl_unit_xlate() 636 return div64_u64(value, scale); in rapl_unit_xlate()
|
/kernel/linux/linux-6.6/drivers/clk/tegra/ |
H A D | clk-dfll.c | 471 * Apply the same scaling formula that the DFLL hardware uses to scale 841 int scale; in dfll_calculate_rate_request() local 843 scale = DIV_ROUND_CLOSEST(rate / 1000 * DFLL_FREQ_REQ_SCALE_MAX, in dfll_calculate_rate_request() 845 if (!scale) { in dfll_calculate_rate_request() 850 req->scale_bits = scale - 1; in dfll_calculate_rate_request() 854 /* Convert requested rate into frequency request and scale settings */ in dfll_calculate_rate_request() 1915 "nvidia,cg-scale"); in dfll_fetch_common_params()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_sprite.c | 723 int scale, i; in ivb_sprite_linear_gamma() local 733 scale = 4; in ivb_sprite_linear_gamma() 736 gamma[i] = min((scale * i << 10) / 16, (1 << 10) - 1); in ivb_sprite_linear_gamma() 738 gamma[i] = min((scale * i << 10) / 16, 1 << 10); in ivb_sprite_linear_gamma()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun8i_vi_scaler.c | 848 unsigned int scale, int_part, float_part; in sun8i_vi_scaler_coef_index() local 850 scale = step >> (SUN8I_VI_SCALER_SCALE_FRAC - 3); in sun8i_vi_scaler_coef_index() 851 int_part = scale >> 3; in sun8i_vi_scaler_coef_index() 852 float_part = scale & 0x7; in sun8i_vi_scaler_coef_index()
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | at91-sama5d2_adc.c | 1017 u32 scale, result, pos; in at91_adc_touch_pos() local 1020 * to obtain the actual position we must divide by scale in at91_adc_touch_pos() 1024 /* first half of register is the x or y, second half is the scale */ in at91_adc_touch_pos() 1035 scale = (val >> 16) & AT91_SAMA5D2_XYZ_MASK; in at91_adc_touch_pos() 1036 if (scale == 0) { in at91_adc_touch_pos() 1037 dev_err(&st->indio_dev->dev, "scale is 0\n"); in at91_adc_touch_pos() 1040 result /= scale; in at91_adc_touch_pos()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | stat-display.c | 651 double sc = evsel->scale; in print_counter_value_std() 675 double sc = evsel->scale; in print_counter_value_csv() 998 uval = val * counter->scale; in print_counter_aggrdata() 1144 uval = val * counter->scale; in print_no_aggr_metric()
|
/third_party/ffmpeg/libavcodec/ |
H A D | ituh263dec.c | 447 int x, y, wrap, a, c, pred_dc, scale; in h263_pred_acdc() local 457 scale = s->y_dc_scale; in h263_pred_acdc() 464 scale = s->c_dc_scale; in h263_pred_acdc() 514 block[0] = block[0] * scale + pred_dc; in h263_pred_acdc()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_paletteuse.c | 118 { "bayer_scale", "set scale for bayer dithering", OFFSET(bayer_scale), AV_OPT_TYPE_INT, {.i64=2}, 0, 5, FLAGS }, 157 int eb, int scale, int shift) in dither_color() 160 | av_clip_uint8((px >> 16 & 0xff) + ((er * scale) / (1<<shift))) << 16 in dither_color() 161 | av_clip_uint8((px >> 8 & 0xff) + ((eg * scale) / (1<<shift))) << 8 in dither_color() 162 | av_clip_uint8((px & 0xff) + ((eb * scale) / (1<<shift))); in dither_color() 156 dither_color(uint32_t px, int er, int eg, int eb, int scale, int shift) dither_color() argument
|
/third_party/node/deps/v8/src/codegen/mips64/ |
H A D | macro-assembler-mips64.h | 510 void SmiScale(Register dst, Register src, int scale) { in SmiScale() argument 513 dsra(dst, src, kSmiShift - scale); in SmiScale() 516 DCHECK_GE(scale, kSmiTagSize); in SmiScale() 517 sll(dst, src, scale - kSmiTagSize); in SmiScale()
|