virtio_crypto_check_cryptodev_is_used(Object *obj, const char *name,

                                      Object *val, Error **errp)

{

    if (cryptodev_backend_is_used(CRYPTODEV_BACKEND(val))) {

        char *path = object_get_canonical_path_component(val);

        error_setg(errp,

            "can't use already used cryptodev backend: %s", path);

        g_free(path);

    } else {

        qdev_prop_allow_set_link_before_realize(obj, name, val, errp);

    }

}

virtio_crypto_check_cryptodev_is_used(Object *obj, const char *name,

                                      Object *val, Error **errp)

{

    if (cryptodev_backend_is_used(CRYPTODEV_BACKEND(val))) {

        char *path = object_get_canonical_path_component(val);

        error_setg(errp,

            "can't use already used cryptodev backend: %s", path);

        g_free(path);

    } else {

        qdev_prop_allow_set_link_before_realize(obj, name, val, errp);

    }

}

virtio_crypto_check_cryptodev_is_used(Object *obj, const char *name,
FUNC_0(Object *VAR_0, const char *VAR_1,

                                      Object *VAR_2, Error **VAR_3)

{

    if (cryptodev_backend_is_used(CRYPTODEV_BACKEND(VAR_2))) {

        char *VAR_4 = object_get_canonical_path_component(VAR_2);

        error_setg(VAR_3,

            "can't use already used cryptodev backend: %s", VAR_4);

        g_free(VAR_4);

    } else {

        qdev_prop_allow_set_link_before_realize(VAR_0, VAR_1, VAR_2, VAR_3);

    }

}

FUNC_0(Object *VAR_0, const char *VAR_1,
Object *VAR_2, Error **VAR_3)
{ if (cryptodev_backend_is_used(CRYPTODEV_BACKEND(VAR_2))) { char *VAR_4 = object_get_canonical_path_component(VAR_2); error_setg(VAR_3,
"can't use already used cryptodev backend: %s", VAR_4); g_free(VAR_4); } else { qdev_prop_allow_set_link_before_realize(VAR_0, VAR_1, VAR_2, VAR_3); } }