common/cpt: add PMD ops helper functions