Lines Matching defs:qopt

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