Lines Matching refs:base

164 	struct fw_iso_context base;
2784 ctx->base.callback.sc(&ctx->base, ctx->last_timestamp,
2786 ctx->base.callback_data);
2794 if (ctx->header_length + ctx->base.header_size > PAGE_SIZE) {
2795 if (ctx->base.drop_overflow_headers)
2808 if (ctx->base.header_size > 0)
2810 if (ctx->base.header_size > 4)
2812 if (ctx->base.header_size > 8)
2813 memcpy(&ctx_hdr[2], &dma_hdr[2], ctx->base.header_size - 8);
2814 ctx->header_length += ctx->base.header_size;
2881 ctx->base.callback.mc(&ctx->base,
2883 ctx->base.callback_data);
2897 ctx->base.callback.mc(&ctx->base,
2899 ctx->base.callback_data);
2959 if (ctx->base.drop_overflow_headers)
3063 return &ctx->base;
3086 static int ohci_start_iso(struct fw_iso_context *base,
3089 struct iso_context *ctx = container_of(base, struct iso_context, base);
3098 switch (ctx->base.type) {
3116 match = (tags << 28) | (sync << 8) | ctx->base.channel;
3136 static int ohci_stop_iso(struct fw_iso_context *base)
3138 struct fw_ohci *ohci = fw_ohci(base->card);
3139 struct iso_context *ctx = container_of(base, struct iso_context, base);
3142 switch (ctx->base.type) {
3161 static void ohci_free_iso_context(struct fw_iso_context *base)
3163 struct fw_ohci *ohci = fw_ohci(base->card);
3164 struct iso_context *ctx = container_of(base, struct iso_context, base);
3168 ohci_stop_iso(base);
3174 switch (base->type) {
3183 ohci->ir_context_channels |= 1ULL << base->channel;
3198 static int ohci_set_iso_channels(struct fw_iso_context *base, u64 *channels)
3200 struct fw_ohci *ohci = fw_ohci(base->card);
3204 switch (base->type) {
3237 ohci_start_iso(&ctx->base, 0, ctx->sync, ctx->tags);
3243 ohci_start_iso(&ctx->base, 0, ctx->sync, ctx->tags);
3303 IT_HEADER_CHANNEL(ctx->base.channel) |
3304 IT_HEADER_SPEED(ctx->base.speed));
3368 packet_count = packet->header_length / ctx->base.header_size;
3369 header_size = max(ctx->base.header_size, (size_t)8);
3489 static int ohci_queue_iso(struct fw_iso_context *base,
3494 struct iso_context *ctx = container_of(base, struct iso_context, base);
3499 switch (base->type) {
3515 static void ohci_flush_queue_iso(struct fw_iso_context *base)
3518 &container_of(base, struct iso_context, base)->context;
3523 static int ohci_flush_iso_completions(struct fw_iso_context *base)
3525 struct iso_context *ctx = container_of(base, struct iso_context, base);
3533 switch (base->type) {