Searched refs:dw_cs (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/drivers/clocksource/ |
H A D | dw_apb_timer.c | 315 * @dw_cs: The clocksource to start. 320 void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs) dw_apb_clocksource_start() argument 326 unsigned long ctrl = apbt_readl(&dw_cs->timer, APBTMR_N_CONTROL); dw_apb_clocksource_start() 329 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); dw_apb_clocksource_start() 330 apbt_writel(&dw_cs->timer, ~0, APBTMR_N_LOAD_COUNT); dw_apb_clocksource_start() 334 apbt_writel(&dw_cs->timer, ctrl, APBTMR_N_CONTROL); dw_apb_clocksource_start() 336 dw_apb_clocksource_read(dw_cs); dw_apb_clocksource_start() 342 struct dw_apb_clocksource *dw_cs = __apbt_read_clocksource() local 345 current_count = apbt_readl(&dw_cs->timer, APBTMR_N_CURRENT_VALUE); __apbt_read_clocksource() 352 struct dw_apb_clocksource *dw_cs = apbt_restart_clocksource() local 355 dw_apb_clocksource_start(dw_cs); apbt_restart_clocksource() 374 struct dw_apb_clocksource *dw_cs = kzalloc(sizeof(*dw_cs), GFP_KERNEL); dw_apb_clocksource_init() local 376 if (!dw_cs) dw_apb_clocksource_init() 379 dw_cs->timer.base = base; dw_apb_clocksource_init() 380 dw_cs->timer.freq = freq; dw_apb_clocksource_init() 381 dw_cs->cs.name = name; dw_apb_clocksource_init() 382 dw_cs->cs.rating = rating; dw_apb_clocksource_init() 383 dw_cs->cs.read = __apbt_read_clocksource; dw_apb_clocksource_init() 384 dw_cs->cs.mask = CLOCKSOURCE_MASK(32); dw_apb_clocksource_init() 385 dw_cs->cs.flags = CLOCK_SOURCE_IS_CONTINUOUS; dw_apb_clocksource_init() 386 dw_cs->cs.resume = apbt_restart_clocksource; dw_apb_clocksource_init() 388 return dw_cs; dw_apb_clocksource_init() 394 * @dw_cs: The clocksource to register. 396 void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs) dw_apb_clocksource_register() argument 398 clocksource_register_hz(&dw_cs->cs, dw_cs->timer.freq); dw_apb_clocksource_register() 404 * @dw_cs: The clocksource to read. 406 cycle_t dw_apb_clocksource_read(struct dw_apb_clocksource *dw_cs) dw_apb_clocksource_read() argument 408 return (cycle_t)~apbt_readl(&dw_cs->timer, APBTMR_N_CURRENT_VALUE); dw_apb_clocksource_read()
|
/linux-4.4.14/include/linux/ |
H A D | dw_apb_timer.h | 51 void dw_apb_clocksource_register(struct dw_apb_clocksource *dw_cs); 52 void dw_apb_clocksource_start(struct dw_apb_clocksource *dw_cs); 53 cycle_t dw_apb_clocksource_read(struct dw_apb_clocksource *dw_cs);
|
Completed in 86 milliseconds