USB: ub: use USB API functions rather than constants