Lines Matching refs:qopt
333 struct tc_cbs_qopt_offload *qopt) in tc_setup_cbs() argument
337 u32 queue = qopt->queue; in tc_setup_cbs()
349 port_transmit_rate_kbps = qopt->idleslope - qopt->sendslope; in tc_setup_cbs()
351 if (qopt->enable) { in tc_setup_cbs()
376 if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) { in tc_setup_cbs()
382 } else if (!qopt->enable) { in tc_setup_cbs()
393 value = div_s64(qopt->idleslope * 1024ll * ptr, port_transmit_rate_kbps); in tc_setup_cbs()
396 value = div_s64(-qopt->sendslope * 1024ll * ptr, port_transmit_rate_kbps); in tc_setup_cbs()
399 value = qopt->hicredit * 1024ll * 8; in tc_setup_cbs()
402 value = qopt->locredit * 1024ll * 8; in tc_setup_cbs()
415 queue, qopt->sendslope, qopt->idleslope, in tc_setup_cbs()
416 qopt->hicredit, qopt->locredit); in tc_setup_cbs()
911 struct tc_taprio_qopt_offload *qopt) in tc_taprio_map_maxsdu_txq() argument
913 u32 num_tc = qopt->mqprio.qopt.num_tc; in tc_taprio_map_maxsdu_txq()
920 if (!qopt->max_sdu[i]) in tc_taprio_map_maxsdu_txq()
923 offset = qopt->mqprio.qopt.offset[i]; in tc_taprio_map_maxsdu_txq()
924 count = qopt->mqprio.qopt.count[i]; in tc_taprio_map_maxsdu_txq()
927 priv->est->max_sdu[j] = qopt->max_sdu[i] + ETH_HLEN - ETH_TLEN; in tc_taprio_map_maxsdu_txq()
932 struct tc_taprio_qopt_offload *qopt) in tc_taprio_configure() argument
935 struct netlink_ext_ack *extack = qopt->mqprio.extack; in tc_taprio_configure()
941 if (qopt->base_time < 0) in tc_taprio_configure()
981 if (qopt->cmd == TAPRIO_CMD_DESTROY) in tc_taprio_configure()
984 if (qopt->num_entries >= dep) in tc_taprio_configure()
986 if (!qopt->cycle_time) in tc_taprio_configure()
988 if (qopt->cycle_time_extension >= BIT(wid + 7)) in tc_taprio_configure()
1004 size = qopt->num_entries; in tc_taprio_configure()
1008 priv->est->enable = qopt->cmd == TAPRIO_CMD_REPLACE; in tc_taprio_configure()
1012 s64 delta_ns = qopt->entries[i].interval; in tc_taprio_configure()
1013 u32 gates = qopt->entries[i].gate_mask; in tc_taprio_configure()
1020 switch (qopt->entries[i].command) { in tc_taprio_configure()
1040 time = stmmac_calc_tas_basetime(qopt->base_time, current_time_ns, in tc_taprio_configure()
1041 qopt->cycle_time); in tc_taprio_configure()
1046 qopt_time = ktime_to_timespec64(qopt->base_time); in tc_taprio_configure()
1050 ctr = qopt->cycle_time; in tc_taprio_configure()
1054 priv->est->ter = qopt->cycle_time_extension; in tc_taprio_configure()
1056 tc_taprio_map_maxsdu_txq(priv, qopt); in tc_taprio_configure()
1067 qopt->mqprio.preemptible_tcs); in tc_taprio_configure()
1093 struct tc_taprio_qopt_offload *qopt) in tc_taprio_stats() argument
1101 qopt->stats.window_drops = window_drops; in tc_taprio_stats()
1104 qopt->stats.tx_overruns = 0; in tc_taprio_stats()
1108 struct tc_taprio_qopt_offload *qopt) in tc_taprio_queue_stats() argument
1110 struct tc_taprio_qopt_queue_stats *q_stats = &qopt->queue_stats; in tc_taprio_queue_stats()
1111 int queue = qopt->queue_stats.queue; in tc_taprio_queue_stats()
1121 struct tc_taprio_qopt_offload *qopt) in tc_setup_taprio() argument
1125 switch (qopt->cmd) { in tc_setup_taprio()
1128 err = tc_taprio_configure(priv, qopt); in tc_setup_taprio()
1131 tc_taprio_stats(priv, qopt); in tc_setup_taprio()
1134 tc_taprio_queue_stats(priv, qopt); in tc_setup_taprio()
1144 struct tc_taprio_qopt_offload *qopt) in tc_setup_taprio_without_fpe() argument
1146 if (!qopt->mqprio.preemptible_tcs) in tc_setup_taprio_without_fpe()
1147 return tc_setup_taprio(priv, qopt); in tc_setup_taprio_without_fpe()
1149 NL_SET_ERR_MSG_MOD(qopt->mqprio.extack, in tc_setup_taprio_without_fpe()
1156 struct tc_etf_qopt_offload *qopt) in tc_setup_etf() argument
1160 if (qopt->queue >= priv->plat->tx_queues_to_use) in tc_setup_etf()
1162 if (!(priv->dma_conf.tx_queue[qopt->queue].tbs & STMMAC_TBS_AVAIL)) in tc_setup_etf()
1165 if (qopt->enable) in tc_setup_etf()
1166 priv->dma_conf.tx_queue[qopt->queue].tbs |= STMMAC_TBS_EN; in tc_setup_etf()
1168 priv->dma_conf.tx_queue[qopt->queue].tbs &= ~STMMAC_TBS_EN; in tc_setup_etf()
1171 qopt->enable ? "enabled" : "disabled", qopt->queue); in tc_setup_etf()
1216 struct tc_mqprio_qopt *qopt = &mqprio->qopt; in tc_setup_dwmac510_mqprio() local
1219 u32 num_tc = qopt->num_tc; in tc_setup_dwmac510_mqprio()
1232 offset = qopt->offset[tc]; in tc_setup_dwmac510_mqprio()
1233 count = qopt->count[tc]; in tc_setup_dwmac510_mqprio()