Home
last modified time | relevance | path

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

/linux-6.15/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-vchiq.c185 ret = vchiq_initialise(&mgmt->state, &vchi_ctx->instance); in bcm2835_new_vchi_ctx()
192 ret = vchiq_connect(vchi_ctx->instance); in bcm2835_new_vchi_ctx()
197 kfree(vchi_ctx->instance); in bcm2835_new_vchi_ctx()
198 vchi_ctx->instance = NULL; in bcm2835_new_vchi_ctx()
206 void bcm2835_free_vchi_ctx(struct bcm2835_vchi_ctx *vchi_ctx) in bcm2835_free_vchi_ctx() argument
209 WARN_ON(vchiq_shutdown(vchi_ctx->instance)); in bcm2835_free_vchi_ctx()
211 vchi_ctx->instance = NULL; in bcm2835_free_vchi_ctx()
216 struct bcm2835_vchi_ctx *vchi_ctx = alsa_stream->chip->vchi_ctx; in bcm2835_audio_open() local
229 err = vc_vchi_audio_init(vchi_ctx->instance, in bcm2835_audio_open()
336 struct bcm2835_vchi_ctx *vchi_ctx = alsa_stream->chip->vchi_ctx; in bcm2835_audio_write() local
[all …]
H A Dbcm2835.c25 struct bcm2835_vchi_ctx *vchi_ctx = res; in bcm2835_devm_free_vchi_ctx() local
27 bcm2835_free_vchi_ctx(vchi_ctx); in bcm2835_devm_free_vchi_ctx()
32 struct bcm2835_vchi_ctx *vchi_ctx; in bcm2835_devm_add_vchi_ctx() local
35 vchi_ctx = devres_alloc(bcm2835_devm_free_vchi_ctx, sizeof(*vchi_ctx), in bcm2835_devm_add_vchi_ctx()
37 if (!vchi_ctx) in bcm2835_devm_add_vchi_ctx()
40 ret = bcm2835_new_vchi_ctx(dev, vchi_ctx); in bcm2835_devm_add_vchi_ctx()
42 devres_free(vchi_ctx); in bcm2835_devm_add_vchi_ctx()
46 devres_add(dev, vchi_ctx); in bcm2835_devm_add_vchi_ctx()
156 chip->vchi_ctx = devres_find(dev, in snd_add_child_device()
158 if (!chip->vchi_ctx) { in snd_add_child_device()
H A Dbcm2835.h67 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);