Lines Matching full:offload
31 const struct tc_taprio_qopt_offload *offload; in sja1105_tas_set_runtime_params() local
33 offload = tas_data->offload[port]; in sja1105_tas_set_runtime_params()
34 if (!offload) in sja1105_tas_set_runtime_params()
39 if (max_cycle_time < offload->cycle_time) in sja1105_tas_set_runtime_params()
40 max_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params()
41 if (latest_base_time < offload->base_time) in sja1105_tas_set_runtime_params()
42 latest_base_time = offload->base_time; in sja1105_tas_set_runtime_params()
43 if (earliest_base_time > offload->base_time) { in sja1105_tas_set_runtime_params()
44 earliest_base_time = offload->base_time; in sja1105_tas_set_runtime_params()
45 its_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params()
212 if (tas_data->offload[port]) { in sja1105_init_scheduling()
213 num_entries += tas_data->offload[port]->num_entries; in sja1105_init_scheduling()
274 const struct tc_taprio_qopt_offload *offload; in sja1105_init_scheduling() local
278 offload = tas_data->offload[port]; in sja1105_init_scheduling()
279 if (!offload) in sja1105_init_scheduling()
283 schedule_end_idx = k + offload->num_entries - 1; in sja1105_init_scheduling()
288 rbt = future_base_time(offload->base_time, in sja1105_init_scheduling()
289 offload->cycle_time, in sja1105_init_scheduling()
310 for (i = 0; i < offload->num_entries; i++, k++) { in sja1105_init_scheduling()
311 s64 delta_ns = offload->entries[i].interval; in sja1105_init_scheduling()
317 ~offload->entries[i].gate_mask; in sja1105_init_scheduling()
366 * So here we are with the task of validating whether the new @admin offload
368 * tas_data->offload. We already know the other ports are in harmony with one
387 const struct tc_taprio_qopt_offload *offload; in sja1105_tas_check_conflicts() local
396 offload = tas_data->offload[port]; in sja1105_tas_check_conflicts()
397 if (!offload) in sja1105_tas_check_conflicts()
403 max_cycle_time = max(offload->cycle_time, admin->cycle_time); in sja1105_tas_check_conflicts()
404 min_cycle_time = min(offload->cycle_time, admin->cycle_time); in sja1105_tas_check_conflicts()
413 div_s64_rem(offload->base_time, offload->cycle_time, &rem); in sja1105_tas_check_conflicts()
425 i < offload->num_entries; in sja1105_tas_check_conflicts()
426 delta1 += offload->entries[i].interval, i++) { in sja1105_tas_check_conflicts()
439 t1 += offload->cycle_time) { in sja1105_tas_check_conflicts()
464 * convert the gating configuration to a dummy tc-taprio offload structure.
519 if ((!!tas_data->offload[port] && admin->cmd == TAPRIO_CMD_REPLACE) || in sja1105_setup_tc_taprio()
520 (!tas_data->offload[port] && admin->cmd == TAPRIO_CMD_DESTROY)) in sja1105_setup_tc_taprio()
524 taprio_offload_free(tas_data->offload[port]); in sja1105_setup_tc_taprio()
525 tas_data->offload[port] = NULL; in sja1105_setup_tc_taprio()
575 tas_data->offload[port] = taprio_offload_get(admin); in sja1105_setup_tc_taprio()
888 struct tc_taprio_qopt_offload *offload; in sja1105_tas_teardown() local
894 offload = priv->tas_data.offload[port]; in sja1105_tas_teardown()
895 if (!offload) in sja1105_tas_teardown()
898 taprio_offload_free(offload); in sja1105_tas_teardown()