Home
last modified time | relevance | path

Searched refs:vchi_ctx (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835.c59 struct bcm2835_vchi_ctx *vchi_ctx = res; in bcm2835_devm_free_vchi_ctx() local
61 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() local
69 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 …]
Dbcm2835.h115 struct bcm2835_vchi_ctx *vchi_ctx; member
154 int bcm2835_new_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx);
155 void bcm2835_free_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx);
Dbcm2835-vchiq.c349 int bcm2835_new_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx) in bcm2835_new_vchi_ctx() argument
354 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() argument
379 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()