cryptodev: rename function to check device validity