Lines Matching refs:qopt
310 struct tc_cbs_qopt_offload *qopt) in tc_setup_cbs() argument
313 u32 queue = qopt->queue; in tc_setup_cbs()
352 if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) { in tc_setup_cbs()
358 } else if (!qopt->enable) { in tc_setup_cbs()
368 value = div_s64(qopt->idleslope * 1024ll * ptr, speed_div); in tc_setup_cbs()
371 value = div_s64(-qopt->sendslope * 1024ll * ptr, speed_div); in tc_setup_cbs()
374 value = qopt->hicredit * 1024ll * 8; in tc_setup_cbs()
377 value = qopt->locredit * 1024ll * 8; in tc_setup_cbs()
390 queue, qopt->sendslope, qopt->idleslope, in tc_setup_cbs()
391 qopt->hicredit, qopt->locredit); in tc_setup_cbs()
631 struct tc_taprio_qopt_offload *qopt) in tc_setup_taprio() argument
678 if (!qopt->enable) in tc_setup_taprio()
680 if (qopt->num_entries >= dep) in tc_setup_taprio()
682 if (!qopt->cycle_time) in tc_setup_taprio()
696 size = qopt->num_entries; in tc_setup_taprio()
700 priv->plat->est->enable = qopt->enable; in tc_setup_taprio()
704 s64 delta_ns = qopt->entries[i].interval; in tc_setup_taprio()
705 u32 gates = qopt->entries[i].gate_mask; in tc_setup_taprio()
712 switch (qopt->entries[i].command) { in tc_setup_taprio()
736 if (ktime_after(qopt->base_time, current_time_ns)) { in tc_setup_taprio()
737 time = ktime_to_timespec64(qopt->base_time); in tc_setup_taprio()
742 n = div64_s64(ktime_sub_ns(current_time_ns, qopt->base_time), in tc_setup_taprio()
743 qopt->cycle_time); in tc_setup_taprio()
744 base_time = ktime_add_ns(qopt->base_time, in tc_setup_taprio()
745 (n + 1) * qopt->cycle_time); in tc_setup_taprio()
753 ctr = qopt->cycle_time; in tc_setup_taprio()
795 struct tc_etf_qopt_offload *qopt) in tc_setup_etf() argument
799 if (qopt->queue >= priv->plat->tx_queues_to_use) in tc_setup_etf()
801 if (!(priv->tx_queue[qopt->queue].tbs & STMMAC_TBS_AVAIL)) in tc_setup_etf()
804 if (qopt->enable) in tc_setup_etf()
805 priv->tx_queue[qopt->queue].tbs |= STMMAC_TBS_EN; in tc_setup_etf()
807 priv->tx_queue[qopt->queue].tbs &= ~STMMAC_TBS_EN; in tc_setup_etf()
810 qopt->enable ? "enabled" : "disabled", qopt->queue); in tc_setup_etf()