Lines Matching defs:fun_index
3560 static int qm_func_shaper_enable(struct hisi_qm *qm, u32 fun_index, u32 qos)
3567 if (fun_index > total_vfs)
3570 qm->factor[fun_index].func_qos = qos;
3572 ret = qm_get_shaper_para(ir, &qm->factor[fun_index]);
3580 ret = qm_set_vft_common(qm, SHAPER_VFT, fun_index, i, 1);
3590 static u32 qm_get_shaper_vft_qos(struct hisi_qm *qm, u32 fun_index)
3606 writel(fun_index, qm->io_base + QM_VFT_CFG);
3629 ir = qm->factor[fun_index].func_qos * QM_QOS_RATE;
3730 unsigned int *fun_index)
3757 *fun_index = pdev->devfn;
3767 unsigned int fun_index;
3782 ret = qm_get_qos_value(qm, tbuf, &val, &fun_index);
3798 ret = qm_func_shaper_enable(qm, fun_index, val);
3806 fun_index, val);