Lines Matching defs:context

99 struct context;
101 typedef int (*descriptor_callback_t)(struct context *ctx,
117 struct context {
165 struct context context;
206 struct context at_request_ctx;
207 struct context at_response_ctx;
216 u64 mc_channels; /* channels in use by the multichannel IR context */
1095 struct context *ctx = (struct context *) data;
1138 * context. Must be called with ohci->lock held.
1140 static int context_add_buffer(struct context *ctx)
1175 static int context_init(struct context *ctx, struct fw_ohci *ohci,
1208 static void context_release(struct context *ctx)
1220 static struct descriptor *context_get_descriptors(struct context *ctx,
1251 static void context_run(struct context *ctx, u32 extra)
1263 static void context_append(struct context *ctx,
1299 static void context_stop(struct context *ctx)
1316 ohci_err(ohci, "DMA context still active (0x%08x)\n", reg);
1329 static int at_context_queue_packet(struct context *ctx,
1459 static void at_context_flush(struct context *ctx)
1470 static int handle_at_packet(struct context *context,
1476 struct fw_ohci *ohci = context->ohci;
1479 if (last->transfer_status == 0 && !context->flushing)
1513 if (context->flushing)
1535 if (context->flushing) {
1632 static void handle_local_request(struct context *ctx, struct fw_packet *packet)
1671 static void at_context_transmit(struct context *ctx, struct fw_packet *packet)
1700 ohci_err(ohci, "DMA context %s has stopped, error code: %s\n",
2057 * This next bit is unrelated to the AT context stuff but we
2147 &ohci->ir_context_list[i].context.tasklet);
2159 &ohci->it_context_list[i].context.tasklet);
2592 struct context *ctx = &ohci->at_request_ctx;
2805 static int handle_ir_packet_per_buffer(struct context *context,
2810 container_of(context, struct iso_context, context);
2824 dma_sync_single_range_for_cpu(context->ohci->card.device,
2840 static int handle_ir_buffer_fill(struct context *context,
2845 container_of(context, struct iso_context, context);
2863 dma_sync_single_range_for_cpu(context->ohci->card.device,
2880 dma_sync_single_range_for_cpu(ctx->context.ohci->card.device,
2891 static inline void sync_it_packet_for_cpu(struct context *context,
2906 * data buffer is in the context program's coherent page and must not
2910 (context->current_bus & PAGE_MASK)) {
2918 dma_sync_single_range_for_cpu(context->ohci->card.device,
2928 static int handle_it_packet(struct context *context,
2933 container_of(context, struct iso_context, context);
2944 sync_it_packet_for_cpu(context, d);
3042 ret = context_init(&ctx->context, ohci, regs, callback);
3078 struct fw_ohci *ohci = ctx->context.ohci;
3083 if (ctx->context.last->branch_address == 0)
3096 context_run(&ctx->context, match);
3112 reg_write(ohci, CONTEXT_MATCH(ctx->context.regs), match);
3113 context_run(&ctx->context, control);
3143 context_stop(&ctx->context);
3144 tasklet_kill(&ctx->context.tasklet);
3157 context_release(&ctx->context);
3224 if (ctx->context.running)
3230 if (ctx->context.running)
3271 d = context_get_descriptors(&ctx->context, z + header_z, &d_bus);
3280 * a context to skip a cycle whenever lost cycles or FIFO
3283 * FIXME: Make the context's cycle-lost behaviour configurable?
3317 dma_sync_single_range_for_device(ctx->context.ohci->card.device,
3335 context_append(&ctx->context, d, z, header_z);
3345 struct device *device = ctx->context.ohci->card.device;
3368 d = context_get_descriptors(&ctx->context,
3415 context_append(&ctx->context, d, z, header_z);
3441 d = context_get_descriptors(&ctx->context, 1, &d_bus);
3463 dma_sync_single_range_for_device(ctx->context.ohci->card.device,
3471 context_append(&ctx->context, d, 1, 0);
3486 spin_lock_irqsave(&ctx->context.ohci->lock, flags);
3498 spin_unlock_irqrestore(&ctx->context.ohci->lock, flags);
3505 struct context *ctx =
3506 &container_of(base, struct iso_context, base)->context;
3516 tasklet_disable(&ctx->context.tasklet);
3519 context_tasklet((unsigned long)&ctx->context);
3539 tasklet_enable(&ctx->context.tasklet);