/openbmc/qemu/tests/qtest/ |
H A D | sifive-e-aon-watchdog-test.c | 26 FIELD(AON_WDT_WDOGCFG, SCALE, 0, 4) 107 g_assert(15 == FIELD_EX32(tmp_cfg, AON_WDT_WDOGCFG, SCALE)); in test_wdogcfg() 117 g_assert(0 == FIELD_EX32(tmp_cfg, AON_WDT_WDOGCFG, SCALE)); in test_wdogcfg() 196 cfg = FIELD_DP32(cfg, AON_WDT_WDOGCFG, SCALE, i); in test_scaled_wdogs() 201 FIELD_EX32(cfg, AON_WDT_WDOGCFG, SCALE))); in test_scaled_wdogs() 218 cfg = FIELD_DP32(cfg, AON_WDT_WDOGCFG, SCALE, 0); in test_watchdog() 231 g_assert(0 == FIELD_EX32(cfg, AON_WDT_WDOGCFG, SCALE)); in test_watchdog() 260 cfg = FIELD_DP32(cfg, AON_WDT_WDOGCFG, SCALE, 15); in test_scaled_watchdog() 273 g_assert(15 == FIELD_EX32(cfg, AON_WDT_WDOGCFG, SCALE)); in test_scaled_watchdog() 302 cfg = FIELD_DP32(cfg, AON_WDT_WDOGCFG, SCALE, 0); in test_periodic_int() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | sifive_e_aon.c | 31 FIELD(AON_WDT_WDOGCFG, SCALE, 0, 4) 71 FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, SCALE)); in sifive_e_aon_wdt_update_state() 95 FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, SCALE), in sifive_e_aon_wdt_update_state() 128 SCALE); in sifive_e_aon_wdt_read()
|
/openbmc/linux/drivers/hwmon/ |
H A D | adm9240.c | 71 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 D | smsc47m192.c | 47 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 D | lm85.c | 124 #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 D | adm1026.c | 186 #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]))
|
/openbmc/qemu/target/hexagon/idef-parser/ |
H A D | macros.h.inc | 108 #define fEA_RRs(REG, REG2, SCALE) (EA = REG + (REG2 << SCALE)) 109 #define fEA_IRs(IMM, REG, SCALE) (EA = IMM + (REG << SCALE))
|
/openbmc/qemu/target/hexagon/ |
H A D | macros.h | 427 #define fEA_RRs(REG, REG2, SCALE) \ argument 430 tcg_gen_shli_tl(tmp, REG2, SCALE); \ 433 #define fEA_IRs(IMM, REG, SCALE) \ argument 435 tcg_gen_shli_tl(EA, REG, SCALE); \ 443 #define fEA_RRs(REG, REG2, SCALE) \ argument 445 EA = REG + (REG2 << SCALE); \ 447 #define fEA_IRs(IMM, REG, SCALE) \ argument 449 EA = IMM + (REG << SCALE); \
|
/openbmc/linux/tools/perf/tests/ |
H A D | stat.c | 37 TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1)); in process_stat_config_event()
|
/openbmc/linux/tools/testing/selftests/resctrl/ |
H A D | resctrl_val.c | 17 #define SCALE 0.00006103515625 macro 383 reads += r->return_value.value * of_mul_read * SCALE; in get_mem_bw_imc() 384 writes += w->return_value.value * of_mul_write * SCALE; in get_mem_bw_imc()
|
/openbmc/linux/arch/m68k/fpsp040/ |
H A D | bindec.S | 52 | 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 D | setox.S | 531 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 D | scale.S | 27 |SCALE idnt 2,1 | Motorola 040 Floating Point Software Package
|
/openbmc/qemu/target/hexagon/imported/ |
H A D | ldst.idef | 23 #define STD_LD_AMODES(TAG,OPER,DESCR,ATTRIB,SHFT,SEMANTICS,SCALE)\ 31 …+I:circ(Mu2))", ATTRIB,DESCR,{fEA_REG(RxV); fPM_CIRR(RxV,fREAD_IREG(MuV)<<SCALE,MuV); SEMANTICS;}) 104 #define STD_ST_AMODES(TAG,DEST,OPER,DESCR,ATTRIB,SHFT,SEMANTICS,SCALE)\ 112 …rc(Mu2))="DEST, ATTRIB,DESCR,{fEA_REG(RxV); fPM_CIRR(RxV,fREAD_IREG(MuV)<<SCALE,MuV); SEMANTICS;})
|
H A D | macros.def | 876 do { EA=REG+(REG2<<SCALE); fDOCHKPAGECROSS(REG,EA); } while (0), 882 do { EA=IMM+(REG<<SCALE); fDOCHKPAGECROSS(IMM,EA); } while (0),
|
/openbmc/linux/net/wireless/ |
H A D | util.c | 1445 #define SCALE 6144 in cfg80211_calculate_bitrate_he() macro 1516 tmp *= SCALE; in cfg80211_calculate_bitrate_he() 1530 #define SCALE 6144 in cfg80211_calculate_bitrate_eht() macro 1647 tmp *= SCALE; in cfg80211_calculate_bitrate_eht()
|
/openbmc/qemu/hw/timer/ |
H A D | sifive_pwm.c | 44 FIELD(CONFIG, SCALE, 0, 4)
|
/openbmc/linux/tools/perf/util/ |
H A D | event.c | 163 CASE(SCALE, scale) in perf_event__read_stat_config()
|
H A D | synthetic-events.c | 1377 ADD(SCALE, config->scale) in perf_event__synthesize_stat_config()
|
/openbmc/linux/Documentation/input/devices/ |
H A D | atarikbd.rst | 321 SET MOUSE SCALE
|
/openbmc/linux/arch/m68k/ifpsp060/src/ |
H A D | fpsp.S | 7201 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 D | fplsp.S | 7169 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)
|
/openbmc/linux/ |
H A D | MAINTAINERS | 10211 IIO LIGHT SENSOR GAIN-TIME-SCALE HELPERS
|