Lines Matching refs:cfg
31 unsigned int cfg = smbus_read(offset); in smbus_enable() local
33 cfg |= bit; in smbus_enable()
34 smbus_write(offset, cfg); in smbus_enable()
49 unsigned int cfg = hpet_read(HPET_CFG); in hpet_start_counter() local
51 cfg |= HPET_CFG_ENABLE; in hpet_start_counter()
52 hpet_write(HPET_CFG, cfg); in hpet_start_counter()
57 unsigned int cfg = hpet_read(HPET_CFG); in hpet_stop_counter() local
59 cfg &= ~HPET_CFG_ENABLE; in hpet_stop_counter()
60 hpet_write(HPET_CFG, cfg); in hpet_stop_counter()
84 int cfg = 0; in hpet_set_mode() local
94 cfg = hpet_read(HPET_T0_CFG); in hpet_set_mode()
95 cfg &= ~HPET_TN_LEVEL; in hpet_set_mode()
96 cfg |= HPET_TN_ENABLE | HPET_TN_PERIODIC | in hpet_set_mode()
98 hpet_write(HPET_T0_CFG, cfg); in hpet_set_mode()
110 cfg = hpet_read(HPET_T0_CFG); in hpet_set_mode()
111 cfg &= ~HPET_TN_ENABLE; in hpet_set_mode()
112 hpet_write(HPET_T0_CFG, cfg); in hpet_set_mode()
116 cfg = hpet_read(HPET_T0_CFG); in hpet_set_mode()
121 cfg &= ~HPET_TN_PERIODIC; in hpet_set_mode()
122 cfg |= HPET_TN_ENABLE | HPET_TN_32BIT; in hpet_set_mode()
123 hpet_write(HPET_T0_CFG, cfg); in hpet_set_mode()