cryptodev: move vdev functions to a separate file