Lines Matching refs:oper
206 struct sched_gate_list **oper) in switch_schedules() argument
211 if (*oper) in switch_schedules()
212 call_rcu(&(*oper)->rcu, taprio_free_sched_cb); in switch_schedules()
214 *oper = *admin; in switch_schedules()
866 static bool should_restart_cycle(const struct sched_gate_list *oper, in should_restart_cycle() argument
869 if (list_is_last(&entry->list, &oper->entries)) in should_restart_cycle()
872 if (ktime_compare(entry->end_time, oper->cycle_end_time) == 0) in should_restart_cycle()
879 const struct sched_gate_list *oper, in should_change_schedules() argument
900 extension_time = ktime_add_ns(end_time, oper->cycle_time_extension); in should_change_schedules()
917 struct sched_gate_list *oper, *admin; in advance_sched() local
927 oper = rcu_dereference_protected(q->oper_sched, in advance_sched()
932 if (!oper) in advance_sched()
933 switch_schedules(q, &admin, &oper); in advance_sched()
941 if (unlikely(!entry || entry->end_time == oper->base_time)) { in advance_sched()
942 next = list_first_entry(&oper->entries, struct sched_entry, in advance_sched()
948 if (should_restart_cycle(oper, entry)) { in advance_sched()
949 next = list_first_entry(&oper->entries, struct sched_entry, in advance_sched()
951 oper->cycle_end_time = ktime_add_ns(oper->cycle_end_time, in advance_sched()
952 oper->cycle_time); in advance_sched()
958 end_time = min_t(ktime_t, end_time, oper->cycle_end_time); in advance_sched()
961 if (next->gate_duration[tc] == oper->cycle_time) in advance_sched()
968 if (should_change_schedules(admin, oper, end_time)) { in advance_sched()
973 switch_schedules(q, &admin, &oper); in advance_sched()
977 taprio_set_budgets(q, oper, next); in advance_sched()
1314 struct sched_gate_list *oper, *admin; in taprio_dev_notifier() local
1331 oper = rtnl_dereference(q->oper_sched); in taprio_dev_notifier()
1332 if (oper) in taprio_dev_notifier()
1333 taprio_update_queue_max_sdu(q, oper, stab); in taprio_dev_notifier()
1413 struct sched_gate_list *oper, *admin; in taprio_offload_config_changed() local
1415 oper = rtnl_dereference(q->oper_sched); in taprio_offload_config_changed()
1418 switch_schedules(q, &admin, &oper); in taprio_offload_config_changed()
1808 struct sched_gate_list *oper, *admin, *new_admin; in taprio_change() local
1866 oper = rtnl_dereference(q->oper_sched); in taprio_change()
1873 if (mqprio && (oper || admin)) { in taprio_change()
1948 if (!oper) { in taprio_change()
2015 struct sched_gate_list *oper, *admin; in taprio_destroy() local
2038 oper = rtnl_dereference(q->oper_sched); in taprio_destroy()
2041 if (oper) in taprio_destroy()
2042 call_rcu(&oper->rcu, taprio_free_sched_cb); in taprio_destroy()
2373 struct sched_gate_list *oper, *admin; in taprio_dump() local
2399 oper = rtnl_dereference(q->oper_sched); in taprio_dump()
2402 if (oper && taprio_dump_tc_entries(skb, q, oper)) in taprio_dump()
2405 if (oper && dump_schedule(skb, oper)) in taprio_dump()