Lines Matching refs:start
135 u64 start = gcl->base_time; in tsnep_gcl_start_after() local
138 if (start <= limit) { in tsnep_gcl_start_after()
139 n = div64_u64(limit - start, gcl->cycle_time); in tsnep_gcl_start_after()
140 start += (n + 1) * gcl->cycle_time; in tsnep_gcl_start_after()
143 return start; in tsnep_gcl_start_after()
148 u64 start = gcl->base_time; in tsnep_gcl_start_before() local
151 n = div64_u64(limit - start, gcl->cycle_time); in tsnep_gcl_start_before()
152 start += n * gcl->cycle_time; in tsnep_gcl_start_before()
153 if (start == limit) in tsnep_gcl_start_before()
154 start -= gcl->cycle_time; in tsnep_gcl_start_before()
156 return start; in tsnep_gcl_start_before()
219 static u64 tsnep_extend_gcl(struct tsnep_gcl *gcl, u64 start, u32 extension) in tsnep_extend_gcl() argument
224 start -= gcl->operation[ref].interval; in tsnep_extend_gcl()
226 return tsnep_insert_gcl_operation(gcl, ref, start, interval); in tsnep_extend_gcl()
229 static u64 tsnep_cut_gcl(struct tsnep_gcl *gcl, u64 start, u64 cycle_time) in tsnep_cut_gcl() argument
254 return tsnep_set_gcl_change(gcl, i, start + sum, false); in tsnep_cut_gcl()
256 return tsnep_insert_gcl_operation(gcl, i, start + sum, in tsnep_cut_gcl()