Home
last modified time | relevance | path

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

/openbmc/qemu/hw/adc/
H A Daspeed_adc.c34 #define ASPEED_ADC_L_MASK ((1 << 10) - 1) macro
35 #define ASPEED_ADC_L(x) ((x) & ASPEED_ADC_L_MASK)
36 #define ASPEED_ADC_H(x) (((x) >> 16) & ASPEED_ADC_L_MASK)
37 #define ASPEED_ADC_LH_MASK (ASPEED_ADC_L_MASK << 16 | ASPEED_ADC_L_MASK)
65 return ((((current >> 16) & ASPEED_ADC_L_MASK) + 7) << 16) | in update_channels()
66 ((current + 5) & ASPEED_ADC_L_MASK); in update_channels()