Lines Matching refs:admin

130 			     struct sched_gate_list **admin,  in switch_schedules()  argument
133 rcu_assign_pointer(q->oper_sched, *admin); in switch_schedules()
139 *oper = *admin; in switch_schedules()
140 *admin = NULL; in switch_schedules()
156 struct sched_gate_list *admin, in get_interval_end_time() argument
169 else if (admin && admin != sched && in get_interval_end_time()
170 ktime_after(admin->base_time, cycle_end) && in get_interval_end_time()
171 ktime_before(admin->base_time, cycle_ext_end)) in get_interval_end_time()
172 return admin->base_time; in get_interval_end_time()
189 struct sched_gate_list *admin, in find_entry_to_transmit() argument
220 curr_intv_end = get_interval_end_time(sched, admin, entry, in find_entry_to_transmit()
266 struct sched_gate_list *sched, *admin; in is_valid_interval() local
272 admin = rcu_dereference(q->admin_sched); in is_valid_interval()
274 entry = find_entry_to_transmit(skb, sch, sched, admin, skb->tstamp, in is_valid_interval()
348 struct sched_gate_list *sched, *admin; in get_packet_txtime() local
361 admin = rcu_dereference(q->admin_sched); in get_packet_txtime()
363 if (admin && ktime_after(minimum_time, admin->base_time)) in get_packet_txtime()
364 switch_schedules(q, &admin, &sched); in get_packet_txtime()
378 entry = find_entry_to_transmit(skb, sch, sched, admin, in get_packet_txtime()
391 if (admin && admin != sched && in get_packet_txtime()
392 ktime_after(txtime, admin->base_time)) { in get_packet_txtime()
393 sched = admin; in get_packet_txtime()
671 static bool should_change_schedules(const struct sched_gate_list *admin, in should_change_schedules() argument
677 if (!admin) in should_change_schedules()
680 next_base_time = sched_base_time(admin); in should_change_schedules()
709 struct sched_gate_list *oper, *admin; in advance_sched() local
719 admin = rcu_dereference_protected(q->admin_sched, in advance_sched()
723 switch_schedules(q, &admin, &oper); in advance_sched()
750 if (should_change_schedules(admin, oper, close_time)) { in advance_sched()
754 close_time = sched_base_time(admin); in advance_sched()
755 switch_schedules(q, &admin, &oper); in advance_sched()
1192 struct sched_gate_list *oper, *admin; in taprio_offload_config_changed() local
1198 admin = rcu_dereference_protected(q->admin_sched, in taprio_offload_config_changed()
1201 switch_schedules(q, &admin, &oper); in taprio_offload_config_changed()
1457 struct sched_gate_list *oper, *admin, *new_admin; in taprio_change() local
1493 admin = rcu_dereference(q->admin_sched); in taprio_change()
1500 if (mqprio && (oper || admin)) { in taprio_change()
1592 if (admin) in taprio_change()
1593 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_change()
1603 if (admin) in taprio_change()
1604 call_rcu(&admin->rcu, taprio_free_sched_cb); in taprio_change()
1882 struct sched_gate_list *oper, *admin; in taprio_dump() local
1889 admin = rcu_dereference(q->admin_sched); in taprio_dump()
1920 if (!admin) in taprio_dump()
1927 if (dump_schedule(skb, admin)) in taprio_dump()