Lines Matching defs:qopt
173 struct tc_taprio_qopt_offload *qopt,
219 static int lan966x_taprio_check(struct tc_taprio_qopt_offload *qopt)
225 if (qopt->cycle_time_extension)
231 if (qopt->num_entries > LAN966X_TAPRIO_NUM_GCL)
235 if (qopt->cycle_time < LAN966X_TAPRIO_MIN_CYCLE_TIME_NS ||
236 qopt->cycle_time > LAN966X_TAPRIO_MAX_CYCLE_TIME_NS)
239 for (i = 0; i < qopt->num_entries; ++i) {
240 struct tc_taprio_sched_entry *entry = &qopt->entries[i];
249 if (qopt->entries[i].command != TC_TAPRIO_CMD_SET_GATES)
252 total_time += qopt->entries[i].interval;
262 if (qopt->cycle_time < total_time)
328 struct tc_taprio_qopt_offload *qopt,
335 if (lan966x_taprio_gcl_free_get(port, free_list) < qopt->num_entries)
351 for (i = 0; i < qopt->num_entries; ++i) {
357 if (i == qopt->num_entries - 1)
363 lan966x_taprio_gcl_setup_entry(port, &qopt->entries[i], next);
442 struct tc_taprio_qopt_offload *qopt)
449 err = lan966x_taprio_check(qopt);
453 err = lan966x_taprio_find_list(port, qopt, &new_list, &obs_list);
457 err = lan966x_taprio_gcl_setup(port, qopt, new_list);
461 lan966x_taprio_new_base_time(lan966x, qopt->cycle_time,
462 qopt->base_time, &base_time);
474 lan_wr(qopt->cycle_time, lan966x, QSYS_TAS_CT_CFG);