crypto/qat: move generic qp function to qp file