Lines Matching refs:num_timers
108 int num_timers; member
278 int num_timers = oproc->num_timers + oproc->num_wd_timers; in omap_rproc_watchdog_isr() local
281 for (i = oproc->num_timers; i < num_timers; i++) { in omap_rproc_watchdog_isr()
323 int num_timers = oproc->num_timers + oproc->num_wd_timers; in omap_rproc_enable_timers() local
325 if (!num_timers) in omap_rproc_enable_timers()
331 for (i = 0; i < num_timers; i++) { in omap_rproc_enable_timers()
332 if (i < oproc->num_timers) in omap_rproc_enable_timers()
337 (i - oproc->num_timers)); in omap_rproc_enable_timers()
341 i < oproc->num_timers ? i : in omap_rproc_enable_timers()
342 i - oproc->num_timers, ret); in omap_rproc_enable_timers()
382 if (i >= oproc->num_timers) { in omap_rproc_enable_timers()
407 for (i = 0; i < num_timers; i++) { in omap_rproc_enable_timers()
429 if (i >= oproc->num_timers) in omap_rproc_enable_timers()
457 int num_timers = oproc->num_timers + oproc->num_wd_timers; in omap_rproc_disable_timers() local
459 if (!num_timers) in omap_rproc_disable_timers()
462 for (i = 0; i < num_timers; i++) { in omap_rproc_disable_timers()
465 if (i >= oproc->num_timers) in omap_rproc_disable_timers()
1249 int num_timers; in omap_rproc_of_get_timers() local
1255 oproc->num_timers = of_count_phandle_with_args(np, "ti,timers", NULL); in omap_rproc_of_get_timers()
1256 if (oproc->num_timers <= 0) { in omap_rproc_of_get_timers()
1258 oproc->num_timers); in omap_rproc_of_get_timers()
1259 oproc->num_timers = 0; in omap_rproc_of_get_timers()
1264 num_timers = oproc->num_timers + oproc->num_wd_timers; in omap_rproc_of_get_timers()
1265 if (num_timers) { in omap_rproc_of_get_timers()
1266 oproc->timers = devm_kcalloc(dev, num_timers, in omap_rproc_of_get_timers()
1273 oproc->num_timers, oproc->num_wd_timers); in omap_rproc_of_get_timers()