Home
last modified time | relevance | path

Searched refs:SCALE (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/hwmon/
H A Dadm9240.c71 static inline int SCALE(long val, int mul, int div) in SCALE() function
84 return SCALE(reg, nom_mv[n], 192); in IN_FROM_REG()
90 return SCALE(val, 192, nom_mv[n]); in IN_TO_REG()
97 return SCALE(val, 1, 1000); in TEMP_TO_REG()
109 return SCALE(1350000, 1, reg * div); in FAN_FROM_REG()
116 return SCALE(val, 255, 1250); in AOUT_TO_REG()
121 return SCALE(reg, 1250, 255); in AOUT_FROM_REG()
H A Dsmsc47m192.c47 static inline int SCALE(long val, int mul, int div) in SCALE() function
62 return SCALE(reg, nom_mv[n], 192); in IN_FROM_REG()
68 return SCALE(val, 192, nom_mv[n]); in IN_TO_REG()
77 return SCALE(clamp_val(val, -128000, 127000), 1, 1000); in TEMP_TO_REG()
H A Dlm85.c124 #define SCALE(val, from, to) (((val) * (to) + ((from) / 2)) / (from)) macro
127 SCALE(clamp_val(val, 0, 255 * lm85_scaling[n] / 192), \
131 SCALE(((val) << 4) + (ext), 192 << 4, lm85_scaling[n])
133 #define INS_FROM_REG(n, val) SCALE((val), 192, lm85_scaling[n])
149 SCALE(((val) << 4) + (ext), 16, 1000)
H A Dadm1026.c186 #define SCALE(val, from, to) (((val)*(to) + ((from)/2))/(from)) macro
188 SCALE(clamp_val(val, 0, 255 * adm1026_scaling[n] / 192), \
190 #define INS_FROM_REG(n, val) (SCALE(val, 192, adm1026_scaling[n]))
/linux/tools/testing/selftests/resctrl/
H A Dresctrl_val.c17 #define SCALE 0.00006103515625 macro
395 reads += r->return_value.value * of_mul_read * SCALE; in get_mem_bw_imc()
396 writes += w->return_value.value * of_mul_write * SCALE; in get_mem_bw_imc()
/linux/tools/perf/tests/
H A Dstat.c37 TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1)); in process_stat_config_event()
/linux/arch/m68k/fpsp040/
H A Dbindec.S52 | A7. Calculate SCALE.
53 | SCALE is equal to 10^ISCALE, where ISCALE is the number
328 | A7. Calculate SCALE.
329 | SCALE is equal to 10^ISCALE, where ISCALE is the number
334 | Coonen, p. 7.23 as ref.; however, the SCALE variable is
H A Dsetox.S531 movew %d0,SCALE(%a6) | ...SCALE is 2^(M) in extended
532 clrw SCALE+2(%a6)
533 movel #0x80000000,SCALE+4(%a6)
534 clrl SCALE+8(%a6)
567 fmulx SCALE(%a6),%fp0 | ...multiply 2^(M)
H A Dscale.S27 |SCALE idnt 2,1 | Motorola 040 Floating Point Software Package
/linux/net/wireless/
H A Dutil.c1491 #define SCALE 6144 in cfg80211_calculate_bitrate_he() macro
1562 tmp *= SCALE; in cfg80211_calculate_bitrate_he()
1576 #define SCALE 6144 in cfg80211_calculate_bitrate_eht() macro
1693 tmp *= SCALE; in cfg80211_calculate_bitrate_eht()
/linux/tools/perf/util/
H A Devent.c163 CASE(SCALE, scale) in perf_event__read_stat_config()
H A Dsynthetic-events.c1393 ADD(SCALE, config->scale) in perf_event__synthesize_stat_config()
/linux/Documentation/input/devices/
H A Datarikbd.rst321 SET MOUSE SCALE
/linux/arch/m68k/ifpsp060/src/
H A Dfpsp.S7201 set SCALE,FP_SCR0
15912 mov.l (%sp)+,%d0 # return SCALE factor
15919 mov.l (%sp)+,%d0 # return SCALE factor
15948 mov.l (%sp)+,%d0 # return SCALE factor
15955 mov.l (%sp)+,%d0 # return SCALE factor
H A Dfplsp.S7169 mov.w %d1,SCALE(%a6) # SCALE is 2^(M) in extended
7170 mov.l &0x80000000,SCALE+4(%a6)
7171 clr.l SCALE+8(%a6)
7203 fmul.x SCALE(%a6),%fp0 # multiply 2^(M)