Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/hwmon/
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()
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()
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)
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-v6.6/tools/testing/selftests/resctrl/
Dresctrl_val.c17 #define SCALE 0.00006103515625 macro
367 reads += r->return_value.value * of_mul_read * SCALE; in get_mem_bw_imc()
368 writes += w->return_value.value * of_mul_write * SCALE; in get_mem_bw_imc()
/Linux-v6.6/tools/perf/tests/
Dstat.c37 TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1)); in process_stat_config_event()
/Linux-v6.6/arch/m68k/fpsp040/
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
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)
Dscale.S27 |SCALE idnt 2,1 | Motorola 040 Floating Point Software Package
/Linux-v6.6/net/wireless/
Dutil.c1439 #define SCALE 6144 in cfg80211_calculate_bitrate_he() macro
1508 tmp *= SCALE; in cfg80211_calculate_bitrate_he()
1522 #define SCALE 6144 in cfg80211_calculate_bitrate_eht() macro
1639 tmp *= SCALE; in cfg80211_calculate_bitrate_eht()
/Linux-v6.6/tools/perf/util/
Devent.c163 CASE(SCALE, scale) in perf_event__read_stat_config()
Dsynthetic-events.c1377 ADD(SCALE, config->scale) in perf_event__synthesize_stat_config()
/Linux-v6.6/Documentation/input/devices/
Datarikbd.rst321 SET MOUSE SCALE
/Linux-v6.6/arch/m68k/ifpsp060/src/
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
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)
/Linux-v6.6/
DMAINTAINERS10176 IIO LIGHT SENSOR GAIN-TIME-SCALE HELPERS