Searched refs:TCON_OFFSET (Results 1 – 4 of 4) sorted by relevance
23 #define TCON_OFFSET(x) (((x) + 1) * (!!(x)) << 2) macro25 #define TCON_START(x) (1 << TCON_OFFSET(x))26 #define TCON_UPDATE(x) (1 << (TCON_OFFSET(x) + 1))27 #define TCON_INVERTER(x) (1 << (TCON_OFFSET(x) + 2))28 #define TCON_AUTO_RELOAD(x) (1 << (TCON_OFFSET(x) + 3))
23 #define TCON_OFFSET(x) ((x + 1) * (!!x) << 2) macro25 #define TCON_START(x) (1 << TCON_OFFSET(x))26 #define TCON_UPDATE(x) (1 << (TCON_OFFSET(x) + 1))27 #define TCON_INVERTER(x) (1 << (TCON_OFFSET(x) + 2))28 #define TCON_AUTO_RELOAD(x) (1 << (TCON_OFFSET(x) + 3))
217 val = readl(&pwm->tcon) & ~(0xf << TCON_OFFSET(pwm_id)); in pwm_init()
Completed in 4 milliseconds