get_qp_bankid
hr_dev->qp_table.bank[get_qp_bankid(i)].inuse++;
hr_dev->qp_table.bank[get_qp_bankid(i)].min++;
bankid = get_qp_bankid(hr_qp->qpn);