Searched refs:scale (Results 1 - 15 of 15) sorted by relevance

/u-boot/drivers/serial/
H A Dserial_ar933x.c43 * baudrate = (clk / (scale + 1)) * (step * (1 / 2^17))
45 static u32 ar933x_serial_get_baud(u32 clk, u32 scale, u32 step) argument
50 div = (2 << 16) * (scale + 1);
60 u32 *scale, u32 *step)
65 *scale = 0;
84 *scale = tscale;
93 u32 val, scale, step; local
96 ar933x_serial_get_scale_step(val, baudrate, &scale, &step);
98 val = (scale & AR933X_UART_CLK_SCALE_M)
203 u32 val, scale, ste local
59 ar933x_serial_get_scale_step(u32 clk, u32 baud, u32 *scale, u32 *step) argument
[all...]
/u-boot/drivers/pwm/
H A Dpwm-sifive.c70 u32 scale, val = 0, frac; local
79 * (1 << (PWM_SIFIVE_CMPWIDTH + scale)) * 10^9/rate = period
82 scale = clamp(ilog2(scale_pow) - PWM_SIFIVE_CMPWIDTH, 0, 0xf);
83 val |= (FIELD_PREP(PWM_SIFIVE_PWMCFG_SCALE, scale) | PWM_SIFIVE_PWMCFG_EN_ALWAYS);
/u-boot/include/net/
H A Dtcp.h104 * struct tcp_scale - TCP option structure for Windows scale
107 * @scale: windows shift value used for networks with many hops.
113 u8 scale; member in struct:tcp_scale
183 * @scale: TCP Windows Scale Option
191 struct tcp_scale scale; member in struct:ip_tcp_hdr_o
/u-boot/drivers/sound/
H A Dbroadwell_i2s.c75 uint scale; local
95 scale = uc_priv->audio_pll_clk / uc_priv->samplingrate / uc_priv->bfs;
96 sscr0 |= scale << SSP_SSC0_SCR_SHIFT;
/u-boot/drivers/video/
H A Dconsole_truetype.c146 * @scale: Scale of the font. This is calculated from the pixel height
156 double scale; member in struct:console_tt_metrics
293 xpos += met->scale * stbtt_GetCodepointKernAdvance(font,
304 xpos += advance * met->scale;
305 width_frac = (int)VID_TO_POS(advance * met->scale);
323 data = stbtt_GetCodepointBitmapSubpixel(font, met->scale, met->scale,
619 met->scale = stbtt_ScaleForPixelHeight(font, font_size);
621 met->baseline = (int)(ascent * met->scale);
763 bbox->x1 = tt_ceil((double)width * met->scale);
[all...]
H A Dstb_truetype.h189 // an explicit scale factor to scale a given font's glyphs to points,
190 // but the author has observed that this scale factor is often wrong
199 // a scale factor SF that will be used by all other functions.
379 float scale, xpos=2; // leave a little padding in case the character extends left local
385 scale = stbtt_ScaleForPixelHeight(&font, 15);
387 baseline = (int) (ascent*scale);
393 stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1);
394 stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scal
4157 float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); local
4219 float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); local
4353 float scale; local
4575 stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) argument
4760 stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) argument
[all...]
/u-boot/drivers/bios_emulator/x86emu/
H A Ddecode.c727 scale - scale value of SIB byte
731 Value of scale * index
734 Decodes scale/index of SIB byte and returns relevant offset part of
738 int scale,
741 scale = 1 << scale;
742 if (scale > 1) {
743 DECODE_PRINTF2("[%d*", scale);
737 decode_sib_si( int scale, int index) argument
/u-boot/drivers/spi/
H A Dfsl_dspi.c388 int scale_needed, scale, minscale = INT_MAX; local
400 scale = pscale_tbl[i] * (2 << j);
401 if (scale >= scale_needed) {
402 if (scale < minscale) {
403 minscale = scale;
412 pr_warn("Cannot find correct scale values for %dns delay at clkrate %ld, using max prescaler value",
467 /* Set PCS to SCK delay scale values */
470 /* Set After SCK delay scale values */
H A Dspi-sifive.c348 u32 scale; local
354 scale = (DIV_ROUND_UP(spi->freq >> 1, speed) - 1)
356 writel(scale, spi->regs + SIFIVE_SPI_REG_SCKDIV);
/u-boot/common/
H A Dboard_f.c209 * From input size calculate its nearest rounded unit scale (multiply of 2^10)
210 * and value in calculated unit scale multiplied by 10 (as fractional fixed
213 * round_nearest(val * 2^scale) = size * 10; where: 10 <= val < 10240.
215 * For example for size=87654321 we calculate scale=20 and val=836 which means
218 #define compute_size_scale_val(size, scale, val) do { \
219 scale = ilog2(size) / 10 * 10; \
220 val = (10 * size + ((1ULL << scale) >> 1)) >> scale; \
221 if (val == 10240) { val = 10; scale += 10; } \
/u-boot/cmd/
H A Dsf.c232 size_t scale = 1; local
237 scale = (end - buf) / 100;
248 100 - (end - buf) / scale,
/u-boot/net/
H A Dtcp.c221 b->ip.scale.kind = TCP_O_SCL;
222 b->ip.scale.scale = TCP_SCALE;
223 b->ip.scale.len = TCP_OPT_LEN_3;
331 * overrun, congestion, TCP segment sizes, TCP windows, TCP scale,
/u-boot/drivers/mtd/
H A Dcfi_flash.c1296 #define FLASH_SHOW_PROGRESS(scale, dots, digit, dots_sub) \
1299 if (scale > 0 && dots <= 0) { \
1305 dots += scale; \
1309 #define FLASH_SHOW_PROGRESS(scale, dots, digit, dots_sub)
1330 int scale = 0; local
1337 scale = (int)((cnt + CONFIG_FLASH_SHOW_PROGRESS - 1) /
1365 FLASH_SHOW_PROGRESS(scale, dots, digit, i);
1397 FLASH_SHOW_PROGRESS(scale, dots, digit, i);
1412 FLASH_SHOW_PROGRESS(scale, dots, digit, info->portwidth);
/u-boot/drivers/pinctrl/intel/
H A Dpinctrl.c101 uint relative_pad, size_t scale)
109 return ret * scale;
100 pinctrl_group_index_scaled(const struct pad_community *comm, uint relative_pad, size_t scale) argument
/u-boot/lib/zstd/decompress/
H A Dhuf_decompress.c304 U32 const scale = targetTableLog - tableLog; local
306 /* Increase the weight for all non-zero probability symbols by scale. */
308 huffWeight[s] += (BYTE)((huffWeight[s] == 0) ? 0 : scale);
311 * All weights except 0 get moved to weight + scale.
312 * Weights [1, scale] are empty.
314 for (s = targetTableLog; s > scale; --s) {
315 rankVal[s] = rankVal[s - scale];
317 for (s = scale; s > 0; --s) {

Completed in 201 milliseconds