dw_cs 331 drivers/clocksource/dw_apb_timer.c void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs) dw_cs 337 drivers/clocksource/dw_apb_timer.c u32 ctrl = apbt_readl(&dw_cs->timer, APBTMR_N_CONTROL); dw_cs 340 drivers/clocksource/dw_apb_timer.c apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); dw_cs 341 drivers/clocksource/dw_apb_timer.c apbt_writel(&dw_cs->timer, ~0, APBTMR_N_LOAD_COUNT); dw_cs 345 drivers/clocksource/dw_apb_timer.c apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); dw_cs 347 drivers/clocksource/dw_apb_timer.c dw_apb_clocksource_read(dw_cs); dw_cs 353 drivers/clocksource/dw_apb_timer.c struct dw_apb_clocksource *dw_cs = dw_cs 356 drivers/clocksource/dw_apb_timer.c current_count = apbt_readl_relaxed(&dw_cs->timer, dw_cs 364 drivers/clocksource/dw_apb_timer.c struct dw_apb_clocksource *dw_cs = dw_cs 367 drivers/clocksource/dw_apb_timer.c dw_apb_clocksource_start(dw_cs); dw_cs 386 drivers/clocksource/dw_apb_timer.c struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL); dw_cs 388 drivers/clocksource/dw_apb_timer.c if (!dw_cs) dw_cs 391 drivers/clocksource/dw_apb_timer.c dw_cs->timer.base = base; dw_cs 392 drivers/clocksource/dw_apb_timer.c dw_cs->timer.freq = freq; dw_cs 393 drivers/clocksource/dw_apb_timer.c dw_cs->cs.name = name; dw_cs 394 drivers/clocksource/dw_apb_timer.c dw_cs->cs.rating = rating; dw_cs 395 drivers/clocksource/dw_apb_timer.c dw_cs->cs.read = __apbt_read_clocksource; dw_cs 396 drivers/clocksource/dw_apb_timer.c dw_cs->cs.mask = CLOCKSOURCE_MASK(32); dw_cs 397 drivers/clocksource/dw_apb_timer.c dw_cs->cs.flags = CLOCK_SOURCE_IS_CONTINUOUS; dw_cs 398 drivers/clocksource/dw_apb_timer.c dw_cs->cs.resume = apbt_restart_clocksource; dw_cs 400 drivers/clocksource/dw_apb_timer.c return dw_cs; dw_cs 408 drivers/clocksource/dw_apb_timer.c void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs) dw_cs 410 drivers/clocksource/dw_apb_timer.c clocksource_register_hz(&dw_cs->cs, dw_cs->timer.freq); dw_cs 418 drivers/clocksource/dw_apb_timer.c u64 dw_apb_clocksource_read(struct dw_apb_clocksource *dw_cs) dw_cs 420 drivers/clocksource/dw_apb_timer.c return (u64)~apbt_readl(&dw_cs->timer, APBTMR_N_CURRENT_VALUE); dw_cs 48 include/linux/dw_apb_timer.h void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs); dw_cs 49 include/linux/dw_apb_timer.h void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs); dw_cs 50 include/linux/dw_apb_timer.h u64 dw_apb_clocksource_read(struct dw_apb_clocksource *dw_cs);