Lines Matching refs:ctx
167 struct fw_iso_context *ctx; in fw_iso_context_create() local
169 ctx = card->driver->allocate_iso_context(card, in fw_iso_context_create()
171 if (IS_ERR(ctx)) in fw_iso_context_create()
172 return ctx; in fw_iso_context_create()
174 ctx->card = card; in fw_iso_context_create()
175 ctx->type = type; in fw_iso_context_create()
176 ctx->channel = channel; in fw_iso_context_create()
177 ctx->speed = speed; in fw_iso_context_create()
178 ctx->header_size = header_size; in fw_iso_context_create()
179 ctx->callback.sc = callback; in fw_iso_context_create()
180 ctx->callback_data = callback_data; in fw_iso_context_create()
182 return ctx; in fw_iso_context_create()
186 void fw_iso_context_destroy(struct fw_iso_context *ctx) in fw_iso_context_destroy() argument
188 ctx->card->driver->free_iso_context(ctx); in fw_iso_context_destroy()
192 int fw_iso_context_start(struct fw_iso_context *ctx, in fw_iso_context_start() argument
195 return ctx->card->driver->start_iso(ctx, cycle, sync, tags); in fw_iso_context_start()
199 int fw_iso_context_set_channels(struct fw_iso_context *ctx, u64 *channels) in fw_iso_context_set_channels() argument
201 return ctx->card->driver->set_iso_channels(ctx, channels); in fw_iso_context_set_channels()
204 int fw_iso_context_queue(struct fw_iso_context *ctx, in fw_iso_context_queue() argument
209 return ctx->card->driver->queue_iso(ctx, packet, buffer, payload); in fw_iso_context_queue()
213 void fw_iso_context_queue_flush(struct fw_iso_context *ctx) in fw_iso_context_queue_flush() argument
215 ctx->card->driver->flush_queue_iso(ctx); in fw_iso_context_queue_flush()
219 int fw_iso_context_flush_completions(struct fw_iso_context *ctx) in fw_iso_context_flush_completions() argument
221 return ctx->card->driver->flush_iso_completions(ctx); in fw_iso_context_flush_completions()
225 int fw_iso_context_stop(struct fw_iso_context *ctx) in fw_iso_context_stop() argument
227 return ctx->card->driver->stop_iso(ctx); in fw_iso_context_stop()