Lines Matching refs:admin

128 			     struct sched_gate_list **admin,  in switch_schedules()  argument
131 rcu_assign_pointer(q->oper_sched, *admin); in switch_schedules()
137 *oper = *admin; in switch_schedules()
138 *admin = NULL; in switch_schedules()
154 struct sched_gate_list *admin, in get_interval_end_time() argument
167 else if (admin && admin != sched && in get_interval_end_time()
168 ktime_after(admin->base_time, cycle_end) && in get_interval_end_time()
169 ktime_before(admin->base_time, cycle_ext_end)) in get_interval_end_time()
170 return admin->base_time; in get_interval_end_time()
187 struct sched_gate_list *admin, in find_entry_to_transmit() argument
218 curr_intv_end = get_interval_end_time(sched, admin, entry, in find_entry_to_transmit()
264 struct sched_gate_list *sched, *admin; in is_valid_interval() local
270 admin = rcu_dereference(q->admin_sched); in is_valid_interval()
272 entry = find_entry_to_transmit(skb, sch, sched, admin, skb->tstamp, in is_valid_interval()
346 struct sched_gate_list *sched, *admin; in get_packet_txtime() local
359 admin = rcu_dereference(q->admin_sched); in get_packet_txtime()
361 if (admin && ktime_after(minimum_time, admin->base_time)) in get_packet_txtime()
362 switch_schedules(q, &admin, &sched); in get_packet_txtime()
376 entry = find_entry_to_transmit(skb, sch, sched, admin, in get_packet_txtime()
389 if (admin && admin != sched && in get_packet_txtime()
390 ktime_after(txtime, admin->base_time)) { in get_packet_txtime()
391 sched = admin; in get_packet_txtime()
656 static bool should_change_schedules(const struct sched_gate_list *admin, in should_change_schedules() argument
662 if (!admin) in should_change_schedules()
665 next_base_time = sched_base_time(admin); in should_change_schedules()
694 struct sched_gate_list *oper, *admin; in advance_sched() local
704 admin = rcu_dereference_protected(q->admin_sched, in advance_sched()
708 switch_schedules(q, &admin, &oper); in advance_sched()
735 if (should_change_schedules(admin, oper, close_time)) { in advance_sched()
739 close_time = sched_base_time(admin); in advance_sched()
740 switch_schedules(q, &admin, &oper); in advance_sched()
1171 struct sched_gate_list *oper, *admin; in taprio_offload_config_changed() local
1177 admin = rcu_dereference_protected(q->admin_sched, in taprio_offload_config_changed()
1180 switch_schedules(q, &admin, &oper); in taprio_offload_config_changed()
1433 struct sched_gate_list *oper, *admin, *new_admin; in taprio_change() local
1469 admin = rcu_dereference(q->admin_sched); in taprio_change()
1476 if (mqprio && (oper || admin)) { in taprio_change()
1566 if (admin) in taprio_change()
1567 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_change()
1577 if (admin) in taprio_change()
1578 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_change()
1804 struct sched_gate_list *oper, *admin; in taprio_dump() local
1811 admin = rcu_dereference(q->admin_sched); in taprio_dump()
1842 if (!admin) in taprio_dump()
1849 if (dump_schedule(skb, admin)) in taprio_dump()