Lines Matching refs:cookie

120 	struct omap_dm_timer cookie;  member
401 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument
403 if (!cookie) in to_dmtimer()
406 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer()
409 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument
417 timer = to_dmtimer(cookie); in omap_dm_timer_set_source()
467 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument
469 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable()
478 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument
480 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_disable()
606 return &timer->cookie; in omap_dm_timer_request()
624 return &timer->cookie; in omap_dm_timer_request_specific()
645 return &timer->cookie; in omap_dm_timer_request_by_node()
648 static int omap_dm_timer_free(struct omap_dm_timer *cookie) in omap_dm_timer_free() argument
654 timer = to_dmtimer(cookie); in omap_dm_timer_free()
674 static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie) in omap_dm_timer_get_irq() argument
676 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_get_irq()
685 static struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *cookie) in omap_dm_timer_get_fclk() argument
725 static struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *cookie) in omap_dm_timer_get_fclk() argument
727 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_get_fclk()
743 static int omap_dm_timer_start(struct omap_dm_timer *cookie) in omap_dm_timer_start() argument
750 timer = to_dmtimer(cookie); in omap_dm_timer_start()
769 static int omap_dm_timer_stop(struct omap_dm_timer *cookie) in omap_dm_timer_stop() argument
774 timer = to_dmtimer(cookie); in omap_dm_timer_stop()
787 static int omap_dm_timer_set_load(struct omap_dm_timer *cookie, in omap_dm_timer_set_load() argument
794 timer = to_dmtimer(cookie); in omap_dm_timer_set_load()
810 static int omap_dm_timer_set_match(struct omap_dm_timer *cookie, int enable, in omap_dm_timer_set_match() argument
818 timer = to_dmtimer(cookie); in omap_dm_timer_set_match()
840 static int omap_dm_timer_set_cap(struct omap_dm_timer *cookie, in omap_dm_timer_set_cap() argument
848 timer = to_dmtimer(cookie); in omap_dm_timer_set_cap()
882 static int omap_dm_timer_set_pwm(struct omap_dm_timer *cookie, int def_on, in omap_dm_timer_set_pwm() argument
890 timer = to_dmtimer(cookie); in omap_dm_timer_set_pwm()
916 static int omap_dm_timer_get_pwm_status(struct omap_dm_timer *cookie) in omap_dm_timer_get_pwm_status() argument
923 timer = to_dmtimer(cookie); in omap_dm_timer_get_pwm_status()
939 static int omap_dm_timer_set_prescaler(struct omap_dm_timer *cookie, in omap_dm_timer_set_prescaler() argument
947 timer = to_dmtimer(cookie); in omap_dm_timer_set_prescaler()
969 static int omap_dm_timer_set_int_enable(struct omap_dm_timer *cookie, in omap_dm_timer_set_int_enable() argument
976 timer = to_dmtimer(cookie); in omap_dm_timer_set_int_enable()
999 static int omap_dm_timer_set_int_disable(struct omap_dm_timer *cookie, u32 mask) in omap_dm_timer_set_int_disable() argument
1006 timer = to_dmtimer(cookie); in omap_dm_timer_set_int_disable()
1027 static unsigned int omap_dm_timer_read_status(struct omap_dm_timer *cookie) in omap_dm_timer_read_status() argument
1032 timer = to_dmtimer(cookie); in omap_dm_timer_read_status()
1043 static int omap_dm_timer_write_status(struct omap_dm_timer *cookie, unsigned int value) in omap_dm_timer_write_status() argument
1047 timer = to_dmtimer(cookie); in omap_dm_timer_write_status()
1056 static unsigned int omap_dm_timer_read_counter(struct omap_dm_timer *cookie) in omap_dm_timer_read_counter() argument
1060 timer = to_dmtimer(cookie); in omap_dm_timer_read_counter()
1075 static int omap_dm_timer_write_counter(struct omap_dm_timer *cookie, unsigned int value) in omap_dm_timer_write_counter() argument
1080 timer = to_dmtimer(cookie); in omap_dm_timer_write_counter()
1105 static unsigned int omap_dm_timer_cap_counter(struct omap_dm_timer *cookie, bool is_period) in omap_dm_timer_cap_counter() argument
1112 timer = to_dmtimer(cookie); in omap_dm_timer_cap_counter()
1119 omap_dm_timer_stop(cookie); in omap_dm_timer_cap_counter()
1122 ret = omap_dm_timer_write_counter(cookie, 0); in omap_dm_timer_cap_counter()
1127 ret = omap_dm_timer_set_cap(cookie, true, is_period); in omap_dm_timer_cap_counter()
1133 omap_dm_timer_start(cookie); in omap_dm_timer_cap_counter()