Searched refs:remain_q_num (Results 1 – 2 of 2) sorted by relevance
670 u32 remain_q_num, vfq_num; in qm_get_vf_qp_num() local677 remain_q_num = (qm->ctrl_qp_num - qm->qp_num) % num_vfs; in qm_get_vf_qp_num()678 if (vfq_num + remain_q_num <= qm->max_qp_num) in qm_get_vf_qp_num()679 return fun_num == num_vfs ? vfq_num + remain_q_num : vfq_num; in qm_get_vf_qp_num()685 return fun_num + remain_q_num > num_vfs ? vfq_num + 1 : vfq_num; in qm_get_vf_qp_num()
3407 u32 remain_q_num, vfs_q_num, act_q_num, q_num, i, j; in qm_vf_q_assign() local3422 remain_q_num = vfs_q_num % num_vfs; in qm_vf_q_assign()3429 if (i == num_vfs && q_num + remain_q_num <= max_qp_num) { in qm_vf_q_assign()3430 act_q_num = q_num + remain_q_num; in qm_vf_q_assign()3431 remain_q_num = 0; in qm_vf_q_assign()3432 } else if (remain_q_num > 0) { in qm_vf_q_assign()3434 remain_q_num--; in qm_vf_q_assign()