Lines Matching defs:fun_num

1251 			     u32 fun_num, u32 base, u32 number)
1258 factor = &qm->factor[fun_num];
1269 fun_num |= base << QM_SHAPER_VFT_OFFSET;
1271 writel(fun_num, qm->io_base + QM_VFT_CFG);
1283 static int qm_shaper_init_vft(struct hisi_qm *qm, u32 fun_num)
1285 u32 qos = qm->factor[fun_num].func_qos;
1288 ret = qm_get_shaper_para(qos * QM_QOS_RATE, &qm->factor[fun_num]);
1296 ret = qm_set_vft_common(qm, SHAPER_VFT, fun_num, i, 1);
1305 static int qm_set_sqc_cqc_vft(struct hisi_qm *qm, u32 fun_num, u32 base,
1311 ret = qm_set_vft_common(qm, i, fun_num, base, number);
1318 ret = qm_shaper_init_vft(qm, fun_num);
1326 qm_set_vft_common(qm, i, fun_num, 0, 0);
1512 static int qm_get_mb_cmd(struct hisi_qm *qm, u64 *msg, u16 fun_num)
1517 qm_mb_pre_init(&mailbox, QM_MB_CMD_DST, 0, fun_num, 0);
1613 static void qm_trigger_vf_interrupt(struct hisi_qm *qm, u32 fun_num)
1619 val |= fun_num;
1636 static int qm_ping_single_vf(struct hisi_qm *qm, u64 cmd, u32 fun_num)
1644 qm_mb_pre_init(&mailbox, QM_MB_CMD_SRC, cmd, fun_num, 0);
1648 dev_err(dev, "failed to send command to vf(%u)!\n", fun_num);
1652 qm_trigger_vf_interrupt(qm, fun_num);
1657 if (!(val & BIT(fun_num)))
1661 dev_err(dev, "failed to get response from VF(%u)!\n", fun_num);
2992 * @fun_num: The function number.
3003 static int hisi_qm_set_vft(struct hisi_qm *qm, u32 fun_num, u32 base,
3012 return qm_set_sqc_cqc_vft(qm, fun_num, base, number);
3640 static void qm_vf_get_qos(struct hisi_qm *qm, u32 fun_num)
3647 qos = qm_get_shaper_vft_qos(qm, fun_num);
3649 dev_err(dev, "function(%u) failed to get qos by PF!\n", fun_num);
3654 ret = qm_ping_single_vf(qm, mb_cmd, fun_num);
3656 dev_err(dev, "failed to send cmd to VF(%u)!\n", fun_num);
4825 static void qm_handle_cmd_msg(struct hisi_qm *qm, u32 fun_num)
4836 ret = qm_get_mb_cmd(qm, &msg, fun_num);
4837 qm_clear_cmd_interrupt(qm, BIT(fun_num));
4852 qm_vf_get_qos(qm, fun_num);
4858 dev_err(dev, "unsupported cmd %u sent by function(%u)!\n", cmd, fun_num);