Lines Matching refs:context
84 s->context = ERR_PTR(-1); in amdtp_stream_init()
602 if (IS_ERR(s->context)) in queue_packet()
610 err = fw_iso_context_queue(s->context, &p, &s->buffer.iso_buffer, in queue_packet()
785 static void out_stream_callback(struct fw_iso_context *context, u32 cycle, in out_stream_callback() argument
803 fw_iso_context_queue_flush(s->context); in out_stream_callback()
806 static void in_stream_callback(struct fw_iso_context *context, u32 cycle, in in_stream_callback() argument
847 fw_iso_context_queue_flush(s->sync_slave->context); in in_stream_callback()
849 fw_iso_context_queue_flush(s->context); in in_stream_callback()
853 static void slave_stream_callback(struct fw_iso_context *context, u32 cycle, in slave_stream_callback() argument
861 static void amdtp_stream_first_callback(struct fw_iso_context *context, in amdtp_stream_first_callback() argument
875 context->callback.sc = in_stream_callback; in amdtp_stream_first_callback()
877 context->callback.sc = slave_stream_callback; in amdtp_stream_first_callback()
879 context->callback.sc = out_stream_callback; in amdtp_stream_first_callback()
881 context->callback.sc(context, cycle, header_length, header, s); in amdtp_stream_first_callback()
944 s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, in amdtp_stream_start()
947 if (IS_ERR(s->context)) { in amdtp_stream_start()
948 err = PTR_ERR(s->context); in amdtp_stream_start()
973 err = fw_iso_context_start(s->context, -1, 0, tag); in amdtp_stream_start()
982 fw_iso_context_destroy(s->context); in amdtp_stream_start()
983 s->context = ERR_PTR(-1); in amdtp_stream_start()
1003 fw_iso_context_flush_completions(s->context); in amdtp_stream_pcm_pointer()
1039 fw_iso_context_stop(s->context); in amdtp_stream_stop()
1040 fw_iso_context_destroy(s->context); in amdtp_stream_stop()
1041 s->context = ERR_PTR(-1); in amdtp_stream_stop()