Lines Matching defs:qos
433 /* the qos step is 100 */
716 /* if qm enables clock gating in Kunpeng930, qos will be inaccurate. */
1108 * acc_shaper_para_calc() Get the IR value by the qos formula, the return value
1109 * is the expected qos calculated.
1255 u32 qos = qm->factor[fun_num].func_qos;
1258 ret = qm_get_shaper_para(qos * QM_QOS_RATE, &qm->factor[fun_num]);
1286 /* init default shaper qos val */
3466 static int qm_func_shaper_enable(struct hisi_qm *qm, u32 fun_index, u32 qos)
3469 u32 ir = qos * QM_QOS_RATE;
3476 qm->factor[fun_index].func_qos = qos;
3539 pci_err(qm->pdev, "error_rate: %u, get function qos is error!\n", error_rate);
3550 u32 qos;
3553 qos = qm_get_shaper_vft_qos(qm, fun_num);
3554 if (!qos) {
3555 dev_err(dev, "function(%u) failed to get qos by PF!\n", fun_num);
3559 mb_cmd = QM_PF_SET_QOS | (u64)qos << QM_MB_CMD_DATA_SHIFT;
3570 /* reset mailbox qos val */
3573 /* vf ping pf to get function qos */
3576 pci_err(qm->pdev, "failed to send cmd to PF to get qos!\n");
3608 pci_err(qm->pdev, "dev resetting, read alg qos failed!\n");
3651 pci_err(qm->pdev, "input qos value is error, please set 1~1000!\n");
3694 pci_err(qm->pdev, "dev resetting, write alg qos failed!\n");
3711 pci_info(qm->pdev, "the qos value of function%u is set to %lu.\n",
3730 * hisi_qm_set_algqos_init() - Initialize function qos debugfs files.
3733 * Create function qos debugfs files, VF ping PF to get function qos.