Lines Matching full:id
53 /* Allocates an SPU interval timer and returns the timer ID. Must be called
56 Returns the timer ID on success or <0 on Failure:
63 int id; in spu_timer_alloc() local
69 /* Get id of next available timer. */ in spu_timer_alloc()
70 id = spu_extract ((spu_sub ((unsigned) 31, in spu_timer_alloc()
75 if (id == -1) in spu_timer_alloc()
79 __spu_timers_avail &= ~(1 << (id)); in spu_timer_alloc()
80 id = (SPU_TIMER_NTIMERS - 1) - id; in spu_timer_alloc()
83 (__spu_timers + id)->func = func; in spu_timer_alloc()
84 (__spu_timers + id)->intvl = interval; in spu_timer_alloc()
85 (__spu_timers + id)->id = id; in spu_timer_alloc()
86 (__spu_timers + id)->state = SPU_TIMER_STOPPED; in spu_timer_alloc()
89 (__spu_timers + id)->next = __spu_timers_stopped; in spu_timer_alloc()
90 __spu_timers_stopped = &__spu_timers[id]; in spu_timer_alloc()
94 return id; in spu_timer_alloc()
99 * SPU_TIMER_ERR_INVALID_ID - invalid id
103 spu_timer_start (int id) in spu_timer_start() argument
105 if (id < 0 || id >= SPU_TIMER_NTIMERS) in spu_timer_start()
111 if (__spu_timers[id].state != SPU_TIMER_STOPPED) in spu_timer_start()
114 __spu_timer_start (id, 1); in spu_timer_start()