Searched refs:vchi_ctx (Results 1 – 3 of 3) sorted by relevance
59 struct bcm2835_vchi_ctx *vchi_ctx = res; in bcm2835_devm_free_vchi_ctx() local61 bcm2835_free_vchi_ctx(vchi_ctx); in bcm2835_devm_free_vchi_ctx()66 struct bcm2835_vchi_ctx *vchi_ctx; in bcm2835_devm_add_vchi_ctx() local69 vchi_ctx = devres_alloc(bcm2835_devm_free_vchi_ctx, sizeof(*vchi_ctx), in bcm2835_devm_add_vchi_ctx()71 if (!vchi_ctx) in bcm2835_devm_add_vchi_ctx()74 memset(vchi_ctx, 0, sizeof(*vchi_ctx)); in bcm2835_devm_add_vchi_ctx()76 ret = bcm2835_new_vchi_ctx(vchi_ctx); in bcm2835_devm_add_vchi_ctx()78 devres_free(vchi_ctx); in bcm2835_devm_add_vchi_ctx()82 devres_add(dev, vchi_ctx); in bcm2835_devm_add_vchi_ctx()153 chip->vchi_ctx = devres_find(card->dev->parent, in snd_bcm2835_create()[all …]
115 struct bcm2835_vchi_ctx *vchi_ctx; member154 int bcm2835_new_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx);155 void bcm2835_free_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx);
349 int bcm2835_new_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx) in bcm2835_new_vchi_ctx() argument354 ret = vchi_initialise(&vchi_ctx->vchi_instance); in bcm2835_new_vchi_ctx()362 ret = vchi_connect(NULL, 0, vchi_ctx->vchi_instance); in bcm2835_new_vchi_ctx()367 kfree(vchi_ctx->vchi_instance); in bcm2835_new_vchi_ctx()368 vchi_ctx->vchi_instance = NULL; in bcm2835_new_vchi_ctx()376 void bcm2835_free_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx) in bcm2835_free_vchi_ctx() argument379 WARN_ON(vchi_disconnect(vchi_ctx->vchi_instance)); in bcm2835_free_vchi_ctx()381 vchi_ctx->vchi_instance = NULL; in bcm2835_free_vchi_ctx()388 struct bcm2835_vchi_ctx *vhci_ctx = alsa_stream->chip->vchi_ctx; in bcm2835_audio_open_connection()