Lines Matching refs:cfg
34 unsigned int cfg = smbus_read(offset); in smbus_enable() local
36 cfg |= bit; in smbus_enable()
37 smbus_write(offset, cfg); in smbus_enable()
52 unsigned int cfg = hpet_read(HPET_CFG); in hpet_start_counter() local
54 cfg |= HPET_CFG_ENABLE; in hpet_start_counter()
55 hpet_write(HPET_CFG, cfg); in hpet_start_counter()
60 unsigned int cfg = hpet_read(HPET_CFG); in hpet_stop_counter() local
62 cfg &= ~HPET_CFG_ENABLE; in hpet_stop_counter()
63 hpet_write(HPET_CFG, cfg); in hpet_stop_counter()
86 int cfg; in hpet_set_state_periodic() local
95 cfg = hpet_read(HPET_T0_CFG); in hpet_set_state_periodic()
96 cfg &= ~HPET_TN_LEVEL; in hpet_set_state_periodic()
97 cfg |= HPET_TN_ENABLE | HPET_TN_PERIODIC | HPET_TN_SETVAL | in hpet_set_state_periodic()
99 hpet_write(HPET_T0_CFG, cfg); in hpet_set_state_periodic()
115 int cfg; in hpet_set_state_shutdown() local
119 cfg = hpet_read(HPET_T0_CFG); in hpet_set_state_shutdown()
120 cfg &= ~HPET_TN_ENABLE; in hpet_set_state_shutdown()
121 hpet_write(HPET_T0_CFG, cfg); in hpet_set_state_shutdown()
129 int cfg; in hpet_set_state_oneshot() local
134 cfg = hpet_read(HPET_T0_CFG); in hpet_set_state_oneshot()
140 cfg &= ~HPET_TN_PERIODIC; in hpet_set_state_oneshot()
141 cfg |= HPET_TN_ENABLE | HPET_TN_32BIT; in hpet_set_state_oneshot()
142 hpet_write(HPET_T0_CFG, cfg); in hpet_set_state_oneshot()