Lines Matching refs:cookie
119 struct omap_dm_timer cookie; member
385 static struct dmtimer *to_dmtimer(struct omap_dm_timer *cookie) in to_dmtimer() argument
387 if (!cookie) in to_dmtimer()
390 return container_of(cookie, struct dmtimer, cookie); in to_dmtimer()
393 static int omap_dm_timer_set_source(struct omap_dm_timer *cookie, int source) in omap_dm_timer_set_source() argument
401 timer = to_dmtimer(cookie); in omap_dm_timer_set_source()
451 static void omap_dm_timer_enable(struct omap_dm_timer *cookie) in omap_dm_timer_enable() argument
453 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_enable()
462 static void omap_dm_timer_disable(struct omap_dm_timer *cookie) in omap_dm_timer_disable() argument
464 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_disable()
590 return &timer->cookie; in omap_dm_timer_request()
608 return &timer->cookie; in omap_dm_timer_request_specific()
629 return &timer->cookie; in omap_dm_timer_request_by_node()
632 static int omap_dm_timer_free(struct omap_dm_timer *cookie) in omap_dm_timer_free() argument
638 timer = to_dmtimer(cookie); in omap_dm_timer_free()
658 static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie) in omap_dm_timer_get_irq() argument
660 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_get_irq()
669 static struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *cookie) in omap_dm_timer_get_fclk() argument
709 static struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *cookie) in omap_dm_timer_get_fclk() argument
711 struct dmtimer *timer = to_dmtimer(cookie); in omap_dm_timer_get_fclk()
727 static int omap_dm_timer_start(struct omap_dm_timer *cookie) in omap_dm_timer_start() argument
734 timer = to_dmtimer(cookie); in omap_dm_timer_start()
753 static int omap_dm_timer_stop(struct omap_dm_timer *cookie) in omap_dm_timer_stop() argument
759 timer = to_dmtimer(cookie); in omap_dm_timer_stop()
775 static int omap_dm_timer_set_load(struct omap_dm_timer *cookie, in omap_dm_timer_set_load() argument
782 timer = to_dmtimer(cookie); in omap_dm_timer_set_load()
798 static int omap_dm_timer_set_match(struct omap_dm_timer *cookie, int enable, in omap_dm_timer_set_match() argument
806 timer = to_dmtimer(cookie); in omap_dm_timer_set_match()
828 static int omap_dm_timer_set_pwm(struct omap_dm_timer *cookie, int def_on, in omap_dm_timer_set_pwm() argument
836 timer = to_dmtimer(cookie); in omap_dm_timer_set_pwm()
862 static int omap_dm_timer_get_pwm_status(struct omap_dm_timer *cookie) in omap_dm_timer_get_pwm_status() argument
869 timer = to_dmtimer(cookie); in omap_dm_timer_get_pwm_status()
885 static int omap_dm_timer_set_prescaler(struct omap_dm_timer *cookie, in omap_dm_timer_set_prescaler() argument
893 timer = to_dmtimer(cookie); in omap_dm_timer_set_prescaler()
915 static int omap_dm_timer_set_int_enable(struct omap_dm_timer *cookie, in omap_dm_timer_set_int_enable() argument
922 timer = to_dmtimer(cookie); in omap_dm_timer_set_int_enable()
945 static int omap_dm_timer_set_int_disable(struct omap_dm_timer *cookie, u32 mask) in omap_dm_timer_set_int_disable() argument
952 timer = to_dmtimer(cookie); in omap_dm_timer_set_int_disable()
973 static unsigned int omap_dm_timer_read_status(struct omap_dm_timer *cookie) in omap_dm_timer_read_status() argument
978 timer = to_dmtimer(cookie); in omap_dm_timer_read_status()
989 static int omap_dm_timer_write_status(struct omap_dm_timer *cookie, unsigned int value) in omap_dm_timer_write_status() argument
993 timer = to_dmtimer(cookie); in omap_dm_timer_write_status()
1002 static unsigned int omap_dm_timer_read_counter(struct omap_dm_timer *cookie) in omap_dm_timer_read_counter() argument
1006 timer = to_dmtimer(cookie); in omap_dm_timer_read_counter()
1015 static int omap_dm_timer_write_counter(struct omap_dm_timer *cookie, unsigned int value) in omap_dm_timer_write_counter() argument
1019 timer = to_dmtimer(cookie); in omap_dm_timer_write_counter()