Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835.c29 struct bcm2835_vchi_ctx *vchi_ctx = res; in bcm2835_devm_free_vchi_ctx() local
31 bcm2835_free_vchi_ctx(vchi_ctx); in bcm2835_devm_free_vchi_ctx()
36 struct bcm2835_vchi_ctx *vchi_ctx; in bcm2835_devm_add_vchi_ctx() local
39 vchi_ctx = devres_alloc(bcm2835_devm_free_vchi_ctx, sizeof(*vchi_ctx), in bcm2835_devm_add_vchi_ctx()
41 if (!vchi_ctx) in bcm2835_devm_add_vchi_ctx()
44 ret = bcm2835_new_vchi_ctx(dev, vchi_ctx); in bcm2835_devm_add_vchi_ctx()
46 devres_free(vchi_ctx); in bcm2835_devm_add_vchi_ctx()
50 devres_add(dev, vchi_ctx); in bcm2835_devm_add_vchi_ctx()
181 chip->vchi_ctx = devres_find(dev, in snd_add_child_device()
183 if (!chip->vchi_ctx) { in snd_add_child_device()
Dbcm2835-vchiq.c168 int bcm2835_new_vchi_ctx(struct device *dev, struct bcm2835_vchi_ctx *vchi_ctx) in bcm2835_new_vchi_ctx() argument
173 ret = vchi_initialise(&vchi_ctx->vchi_instance); in bcm2835_new_vchi_ctx()
180 ret = vchi_connect(vchi_ctx->vchi_instance); in bcm2835_new_vchi_ctx()
185 kfree(vchi_ctx->vchi_instance); in bcm2835_new_vchi_ctx()
186 vchi_ctx->vchi_instance = NULL; in bcm2835_new_vchi_ctx()
194 void bcm2835_free_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx) in bcm2835_free_vchi_ctx() argument
197 WARN_ON(vchi_disconnect(vchi_ctx->vchi_instance)); in bcm2835_free_vchi_ctx()
199 vchi_ctx->vchi_instance = NULL; in bcm2835_free_vchi_ctx()
204 struct bcm2835_vchi_ctx *vchi_ctx = alsa_stream->chip->vchi_ctx; in bcm2835_audio_open() local
217 err = vc_vchi_audio_init(vchi_ctx->vchi_instance, in bcm2835_audio_open()
Dbcm2835.h66 struct bcm2835_vchi_ctx *vchi_ctx; member
94 int bcm2835_new_vchi_ctx(struct device *dev, struct bcm2835_vchi_ctx *vchi_ctx);
95 void bcm2835_free_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx);