Lines Matching refs: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()
211 if (tas_data->offload[port]) { in sja1105_init_scheduling()
212 num_entries += tas_data->offload[port]->num_entries; in sja1105_init_scheduling()
273 const struct tc_taprio_qopt_offload *offload; in sja1105_init_scheduling() local
277 offload = tas_data->offload[port]; in sja1105_init_scheduling()
278 if (!offload) in sja1105_init_scheduling()
282 schedule_end_idx = k + offload->num_entries - 1; in sja1105_init_scheduling()
287 rbt = future_base_time(offload->base_time, in sja1105_init_scheduling()
288 offload->cycle_time, in sja1105_init_scheduling()
309 for (i = 0; i < offload->num_entries; i++, k++) { in sja1105_init_scheduling()
310 s64 delta_ns = offload->entries[i].interval; in sja1105_init_scheduling()
316 ~offload->entries[i].gate_mask; in sja1105_init_scheduling()
386 const struct tc_taprio_qopt_offload *offload; in sja1105_tas_check_conflicts() local
395 offload = tas_data->offload[port]; in sja1105_tas_check_conflicts()
396 if (!offload) in sja1105_tas_check_conflicts()
402 max_cycle_time = max(offload->cycle_time, admin->cycle_time); in sja1105_tas_check_conflicts()
403 min_cycle_time = min(offload->cycle_time, admin->cycle_time); in sja1105_tas_check_conflicts()
412 div_s64_rem(offload->base_time, offload->cycle_time, &rem); in sja1105_tas_check_conflicts()
424 i < offload->num_entries; in sja1105_tas_check_conflicts()
425 delta1 += offload->entries[i].interval, i++) { in sja1105_tas_check_conflicts()
438 t1 += offload->cycle_time) { in sja1105_tas_check_conflicts()
517 if (!!tas_data->offload[port] == admin->enable) in sja1105_setup_tc_taprio()
521 taprio_offload_free(tas_data->offload[port]); in sja1105_setup_tc_taprio()
522 tas_data->offload[port] = NULL; in sja1105_setup_tc_taprio()
570 tas_data->offload[port] = taprio_offload_get(admin); in sja1105_setup_tc_taprio()
883 struct tc_taprio_qopt_offload *offload; in sja1105_tas_teardown() local
889 offload = priv->tas_data.offload[port]; in sja1105_tas_teardown()
890 if (!offload) in sja1105_tas_teardown()
893 taprio_offload_free(offload); in sja1105_tas_teardown()