Searched refs:timer_id (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/arch/blackfin/kernel/
H A Dgptimers.c128 void set_gptimer_pwidth(unsigned int timer_id, uint32_t value) set_gptimer_pwidth() argument
130 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); set_gptimer_pwidth()
131 bfin_write(&timer_regs[timer_id]->width, value); set_gptimer_pwidth()
136 uint32_t get_gptimer_pwidth(unsigned int timer_id) get_gptimer_pwidth() argument
138 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_pwidth()
139 return bfin_read(&timer_regs[timer_id]->width); get_gptimer_pwidth()
143 void set_gptimer_period(unsigned int timer_id, uint32_t period) set_gptimer_period() argument
145 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); set_gptimer_period()
146 bfin_write(&timer_regs[timer_id]->period, period); set_gptimer_period()
151 uint32_t get_gptimer_period(unsigned int timer_id) get_gptimer_period() argument
153 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_period()
154 return bfin_read(&timer_regs[timer_id]->period); get_gptimer_period()
158 uint32_t get_gptimer_count(unsigned int timer_id) get_gptimer_count() argument
160 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_count()
161 return bfin_read(&timer_regs[timer_id]->counter); get_gptimer_count()
166 void set_gptimer_delay(unsigned int timer_id, uint32_t delay) set_gptimer_delay() argument
168 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); set_gptimer_delay()
169 bfin_write(&timer_regs[timer_id]->delay, delay); set_gptimer_delay()
174 uint32_t get_gptimer_delay(unsigned int timer_id) get_gptimer_delay() argument
176 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_delay()
177 return bfin_read(&timer_regs[timer_id]->delay); get_gptimer_delay()
183 int get_gptimer_intr(unsigned int timer_id) get_gptimer_intr() argument
185 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_intr()
186 return !!(bfin_read(&group_regs[BFIN_TIMER_OCTET(timer_id)]->data_ilat) & timil_mask[timer_id]); get_gptimer_intr()
190 void clear_gptimer_intr(unsigned int timer_id) clear_gptimer_intr() argument
192 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); clear_gptimer_intr()
193 bfin_write(&group_regs[BFIN_TIMER_OCTET(timer_id)]->data_ilat, timil_mask[timer_id]); clear_gptimer_intr()
197 int get_gptimer_over(unsigned int timer_id) get_gptimer_over() argument
199 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_over()
200 return !!(bfin_read(&group_regs[BFIN_TIMER_OCTET(timer_id)]->stat_ilat) & tovf_mask[timer_id]); get_gptimer_over()
204 void clear_gptimer_over(unsigned int timer_id) clear_gptimer_over() argument
206 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); clear_gptimer_over()
207 bfin_write(&group_regs[BFIN_TIMER_OCTET(timer_id)]->stat_ilat, tovf_mask[timer_id]); clear_gptimer_over()
211 int get_gptimer_run(unsigned int timer_id) get_gptimer_run() argument
213 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_run()
214 return !!(bfin_read(&group_regs[BFIN_TIMER_OCTET(timer_id)]->run) & trun_mask[timer_id]); get_gptimer_run()
248 static uint32_t read_gptimer_status(unsigned int timer_id) read_gptimer_status() argument
250 return bfin_read(&group_regs[BFIN_TIMER_OCTET(timer_id)]->status); read_gptimer_status()
253 int get_gptimer_intr(unsigned int timer_id) get_gptimer_intr() argument
255 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_intr()
256 return !!(read_gptimer_status(timer_id) & timil_mask[timer_id]); get_gptimer_intr()
260 void clear_gptimer_intr(unsigned int timer_id) clear_gptimer_intr() argument
262 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); clear_gptimer_intr()
263 bfin_write(&group_regs[BFIN_TIMER_OCTET(timer_id)]->status, timil_mask[timer_id]); clear_gptimer_intr()
267 int get_gptimer_over(unsigned int timer_id) get_gptimer_over() argument
269 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_over()
270 return !!(read_gptimer_status(timer_id) & tovf_mask[timer_id]); get_gptimer_over()
274 void clear_gptimer_over(unsigned int timer_id) clear_gptimer_over() argument
276 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); clear_gptimer_over()
277 bfin_write(&group_regs[BFIN_TIMER_OCTET(timer_id)]->status, tovf_mask[timer_id]); clear_gptimer_over()
281 int get_gptimer_run(unsigned int timer_id) get_gptimer_run() argument
283 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_run()
284 return !!(read_gptimer_status(timer_id) & trun_mask[timer_id]); get_gptimer_run()
289 void set_gptimer_config(unsigned int timer_id, uint16_t config) set_gptimer_config() argument
291 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); set_gptimer_config()
292 bfin_write(&timer_regs[timer_id]->config, config); set_gptimer_config()
297 uint16_t get_gptimer_config(unsigned int timer_id) get_gptimer_config() argument
299 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); get_gptimer_config()
300 return bfin_read(&timer_regs[timer_id]->config); get_gptimer_config()
355 void set_gptimer_pulse_hi(unsigned int timer_id) set_gptimer_pulse_hi() argument
357 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); set_gptimer_pulse_hi()
358 bfin_write_or(&timer_regs[timer_id]->config, TIMER_PULSE_HI); set_gptimer_pulse_hi()
363 void clear_gptimer_pulse_hi(unsigned int timer_id) clear_gptimer_pulse_hi() argument
365 tassert(timer_id < MAX_BLACKFIN_GPTIMERS); clear_gptimer_pulse_hi()
366 bfin_write_and(&timer_regs[timer_id]->config, ~TIMER_PULSE_HI); clear_gptimer_pulse_hi()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dgptimers.h250 void set_gptimer_pwidth(unsigned int timer_id, uint32_t width);
251 uint32_t get_gptimer_pwidth(unsigned int timer_id);
252 void set_gptimer_period(unsigned int timer_id, uint32_t period);
253 uint32_t get_gptimer_period(unsigned int timer_id);
255 void set_gptimer_delay(unsigned int timer_id, uint32_t delay);
256 uint32_t get_gptimer_delay(unsigned int timer_id);
258 uint32_t get_gptimer_count(unsigned int timer_id);
259 int get_gptimer_intr(unsigned int timer_id);
260 void clear_gptimer_intr(unsigned int timer_id);
261 int get_gptimer_over(unsigned int timer_id);
262 void clear_gptimer_over(unsigned int timer_id);
263 void set_gptimer_config(unsigned int timer_id, uint16_t config);
264 uint16_t get_gptimer_config(unsigned int timer_id);
265 int get_gptimer_run(unsigned int timer_id);
266 void set_gptimer_pulse_hi(unsigned int timer_id);
267 void clear_gptimer_pulse_hi(unsigned int timer_id);
275 static inline void enable_gptimer(unsigned int timer_id) enable_gptimer() argument
277 enable_gptimers(1 << timer_id); enable_gptimer()
280 static inline void disable_gptimer(unsigned int timer_id) disable_gptimer() argument
282 disable_gptimers(1 << timer_id); disable_gptimer()
/linux-4.1.27/drivers/clocksource/
H A Dtimer-digicolor.c63 int timer_id; /* one of TIMER_* */ member in struct:digicolor_timer
74 writeb(CONTROL_DISABLE, dt->base + CONTROL(dt->timer_id)); dc_timer_disable()
80 writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); dc_timer_enable()
87 writel(count, dt->base + COUNT(dt->timer_id)); dc_timer_set_count()
131 .timer_id = TIMER_C,
164 irq = irq_of_parse_and_map(node, dc_timer_dev.timer_id); digicolor_timer_init()
/linux-4.1.27/kernel/time/
H A Dposix-timers.c142 static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags);
686 static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags) __lock_timer() argument
692 * @timer_id outside positive int range fails lookup. __lock_timer()
694 if ((unsigned long long)timer_id > INT_MAX) __lock_timer()
698 timr = posix_timer_by_id(timer_id); __lock_timer()
770 SYSCALL_DEFINE2(timer_gettime, timer_t, timer_id, SYSCALL_DEFINE2()
779 timr = lock_timer(timer_id, &flags); SYSCALL_DEFINE2()
806 SYSCALL_DEFINE1(timer_getoverrun, timer_t, timer_id) SYSCALL_DEFINE1()
812 timr = lock_timer(timer_id, &flags); SYSCALL_DEFINE1()
874 SYSCALL_DEFINE4(timer_settime, timer_t, timer_id, int, flags, SYSCALL_DEFINE4()
895 timr = lock_timer(timer_id, &flag); SYSCALL_DEFINE4()
937 SYSCALL_DEFINE1(timer_delete, timer_t, timer_id) SYSCALL_DEFINE1()
943 timer = lock_timer(timer_id, &flags); SYSCALL_DEFINE1()
/linux-4.1.27/kernel/
H A Dcompat.c700 COMPAT_SYSCALL_DEFINE4(timer_settime, timer_t, timer_id, int, flags, COMPAT_SYSCALL_DEFINE4()
714 err = sys_timer_settime(timer_id, flags, COMPAT_SYSCALL_DEFINE4()
723 COMPAT_SYSCALL_DEFINE2(timer_gettime, timer_t, timer_id, COMPAT_SYSCALL_DEFINE2()
732 err = sys_timer_gettime(timer_id, COMPAT_SYSCALL_DEFINE2()
/linux-4.1.27/include/linux/
H A Dcompat.h603 asmlinkage long compat_sys_timer_settime(timer_t timer_id, int flags,
606 asmlinkage long compat_sys_timer_gettime(timer_t timer_id,
H A Dsyscalls.h268 asmlinkage long sys_timer_gettime(timer_t timer_id,
270 asmlinkage long sys_timer_getoverrun(timer_t timer_id);
271 asmlinkage long sys_timer_settime(timer_t timer_id, int flags,
274 asmlinkage long sys_timer_delete(timer_t timer_id);
/linux-4.1.27/arch/s390/kernel/
H A Dcompat_wrapper.c169 COMPAT_SYSCALL_WRAP1(timer_getoverrun, timer_t, timer_id);
/linux-4.1.27/arch/arm/plat-omap/include/plat/
H A Ddmtimer.h129 struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id);

Completed in 443 milliseconds