goldfish_timer
struct goldfish_timer *timerdrv;
static struct goldfish_timer *ced_to_gf(struct clock_event_device *ced)
return container_of(ced, struct goldfish_timer, ced);
static struct goldfish_timer *cs_to_gf(struct clocksource *cs)
return container_of(cs, struct goldfish_timer, cs);
struct goldfish_timer *timerdrv = cs_to_gf(cs);
struct goldfish_timer *timerdrv = ced_to_gf(evt);
struct goldfish_timer *timerdrv = ced_to_gf(evt);
struct goldfish_timer *timerdrv = ced_to_gf(evt);
struct goldfish_timer *timerdrv = dev_id;