Lines Matching refs:admin

198 			     struct sched_gate_list **admin,  in switch_schedules()  argument
201 rcu_assign_pointer(q->oper_sched, *admin); in switch_schedules()
207 *oper = *admin; in switch_schedules()
208 *admin = NULL; in switch_schedules()
224 struct sched_gate_list *admin, in get_interval_end_time() argument
237 else if (admin && admin != sched && in get_interval_end_time()
238 ktime_after(admin->base_time, cycle_end) && in get_interval_end_time()
239 ktime_before(admin->base_time, cycle_ext_end)) in get_interval_end_time()
240 return admin->base_time; in get_interval_end_time()
314 struct sched_gate_list *admin, in find_entry_to_transmit() argument
345 curr_intv_end = get_interval_end_time(sched, admin, entry, in find_entry_to_transmit()
391 struct sched_gate_list *sched, *admin; in is_valid_interval() local
397 admin = rcu_dereference(q->admin_sched); in is_valid_interval()
399 entry = find_entry_to_transmit(skb, sch, sched, admin, skb->tstamp, in is_valid_interval()
473 struct sched_gate_list *sched, *admin; in get_packet_txtime() local
486 admin = rcu_dereference(q->admin_sched); in get_packet_txtime()
488 if (admin && ktime_after(minimum_time, admin->base_time)) in get_packet_txtime()
489 switch_schedules(q, &admin, &sched); in get_packet_txtime()
503 entry = find_entry_to_transmit(skb, sch, sched, admin, in get_packet_txtime()
516 if (admin && admin != sched && in get_packet_txtime()
517 ktime_after(txtime, admin->base_time)) { in get_packet_txtime()
518 sched = admin; in get_packet_txtime()
881 static bool should_change_schedules(const struct sched_gate_list *admin, in should_change_schedules() argument
887 if (!admin) in should_change_schedules()
890 next_base_time = sched_base_time(admin); in should_change_schedules()
920 struct sched_gate_list *oper, *admin; in advance_sched() local
932 admin = rcu_dereference_protected(q->admin_sched, in advance_sched()
936 switch_schedules(q, &admin, &oper); in advance_sched()
971 if (should_change_schedules(admin, oper, end_time)) { in advance_sched()
975 end_time = sched_base_time(admin); in advance_sched()
976 switch_schedules(q, &admin, &oper); in advance_sched()
1304 struct sched_gate_list *oper, *admin; in taprio_dev_notifier() local
1325 admin = rtnl_dereference(q->admin_sched); in taprio_dev_notifier()
1326 if (admin) in taprio_dev_notifier()
1327 taprio_update_queue_max_sdu(q, admin, stab); in taprio_dev_notifier()
1403 struct sched_gate_list *oper, *admin; in taprio_offload_config_changed() local
1406 admin = rtnl_dereference(q->admin_sched); in taprio_offload_config_changed()
1408 switch_schedules(q, &admin, &oper); in taprio_offload_config_changed()
1793 struct sched_gate_list *oper, *admin, *new_admin; in taprio_change() local
1832 admin = rtnl_dereference(q->admin_sched); in taprio_change()
1838 if (mqprio && (oper || admin)) { in taprio_change()
1922 if (admin) in taprio_change()
1923 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_change()
1933 if (admin) in taprio_change()
1934 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_change()
1978 struct sched_gate_list *oper, *admin; in taprio_destroy() local
2002 admin = rtnl_dereference(q->admin_sched); in taprio_destroy()
2007 if (admin) in taprio_destroy()
2008 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_destroy()
2249 struct sched_gate_list *oper, *admin; in taprio_dump() local
2254 admin = rtnl_dereference(q->admin_sched); in taprio_dump()
2282 if (!admin) in taprio_dump()
2289 if (dump_schedule(skb, admin)) in taprio_dump()