Lines Matching refs:base
164 struct fw_iso_context base;
2772 ctx->base.callback.sc(&ctx->base, ctx->last_timestamp,
2774 ctx->base.callback_data);
2782 if (ctx->header_length + ctx->base.header_size > PAGE_SIZE) {
2783 if (ctx->base.drop_overflow_headers)
2796 if (ctx->base.header_size > 0)
2798 if (ctx->base.header_size > 4)
2800 if (ctx->base.header_size > 8)
2801 memcpy(&ctx_hdr[2], &dma_hdr[2], ctx->base.header_size - 8);
2802 ctx->header_length += ctx->base.header_size;
2869 ctx->base.callback.mc(&ctx->base,
2871 ctx->base.callback_data);
2885 ctx->base.callback.mc(&ctx->base,
2887 ctx->base.callback_data);
2947 if (ctx->base.drop_overflow_headers)
3051 return &ctx->base;
3074 static int ohci_start_iso(struct fw_iso_context *base,
3077 struct iso_context *ctx = container_of(base, struct iso_context, base);
3086 switch (ctx->base.type) {
3104 match = (tags << 28) | (sync << 8) | ctx->base.channel;
3124 static int ohci_stop_iso(struct fw_iso_context *base)
3126 struct fw_ohci *ohci = fw_ohci(base->card);
3127 struct iso_context *ctx = container_of(base, struct iso_context, base);
3130 switch (ctx->base.type) {
3149 static void ohci_free_iso_context(struct fw_iso_context *base)
3151 struct fw_ohci *ohci = fw_ohci(base->card);
3152 struct iso_context *ctx = container_of(base, struct iso_context, base);
3156 ohci_stop_iso(base);
3162 switch (base->type) {
3171 ohci->ir_context_channels |= 1ULL << base->channel;
3186 static int ohci_set_iso_channels(struct fw_iso_context *base, u64 *channels)
3188 struct fw_ohci *ohci = fw_ohci(base->card);
3192 switch (base->type) {
3225 ohci_start_iso(&ctx->base, 0, ctx->sync, ctx->tags);
3231 ohci_start_iso(&ctx->base, 0, ctx->sync, ctx->tags);
3291 IT_HEADER_CHANNEL(ctx->base.channel) |
3292 IT_HEADER_SPEED(ctx->base.speed));
3356 packet_count = packet->header_length / ctx->base.header_size;
3357 header_size = max(ctx->base.header_size, (size_t)8);
3477 static int ohci_queue_iso(struct fw_iso_context *base,
3482 struct iso_context *ctx = container_of(base, struct iso_context, base);
3487 switch (base->type) {
3503 static void ohci_flush_queue_iso(struct fw_iso_context *base)
3506 &container_of(base, struct iso_context, base)->context;
3511 static int ohci_flush_iso_completions(struct fw_iso_context *base)
3513 struct iso_context *ctx = container_of(base, struct iso_context, base);
3521 switch (base->type) {