Lines Matching defs:qopt
11 static int tsnep_validate_gcl(struct tc_taprio_qopt_offload *qopt)
16 if (!qopt->cycle_time)
18 if (qopt->num_entries > TSNEP_MAX_GCL_NUM)
21 for (i = 0; i < qopt->num_entries; i++) {
22 if (qopt->entries[i].command != TC_TAPRIO_CMD_SET_GATES)
24 if (qopt->entries[i].gate_mask & ~TSNEP_GCL_MASK)
26 if (qopt->entries[i].interval < TSNEP_GCL_MIN_INTERVAL)
28 cycle_time += qopt->entries[i].interval;
30 if (qopt->cycle_time != cycle_time)
32 if (qopt->cycle_time_extension >= qopt->cycle_time)
88 struct tc_taprio_qopt_offload *qopt)
95 gcl->base_time = ktime_to_ns(qopt->base_time);
96 gcl->cycle_time = qopt->cycle_time;
97 gcl->cycle_time_extension = qopt->cycle_time_extension;
99 for (i = 0; i < qopt->num_entries; i++) {
100 properties = qopt->entries[i].gate_mask;
101 if (i == (qopt->num_entries - 1))
105 qopt->entries[i].interval, true);
107 gcl->count = qopt->num_entries;
319 struct tc_taprio_qopt_offload *qopt)
328 if (qopt->cmd == TAPRIO_CMD_DESTROY) {
340 } else if (qopt->cmd != TAPRIO_CMD_REPLACE) {
344 retval = tsnep_validate_gcl(qopt);
351 tsnep_write_gcl(gcl, qopt);