Lines Matching refs:context

83 	s->context = ERR_PTR(-1);  in amdtp_stream_init()
373 if (IS_ERR(s->context)) in queue_packet()
381 err = fw_iso_context_queue(s->context, &p, &s->buffer.iso_buffer, in queue_packet()
547 static void out_stream_callback(struct fw_iso_context *context, u32 cycle, in out_stream_callback() argument
576 fw_iso_context_queue_flush(s->context); in out_stream_callback()
579 static void in_stream_callback(struct fw_iso_context *context, u32 cycle, in in_stream_callback() argument
643 fw_iso_context_queue_flush(s->sync_slave->context); in in_stream_callback()
645 fw_iso_context_queue_flush(s->context); in in_stream_callback()
649 static void slave_stream_callback(struct fw_iso_context *context, u32 cycle, in slave_stream_callback() argument
657 static void amdtp_stream_first_callback(struct fw_iso_context *context, in amdtp_stream_first_callback() argument
671 context->callback.sc = in_stream_callback; in amdtp_stream_first_callback()
673 context->callback.sc = slave_stream_callback; in amdtp_stream_first_callback()
675 context->callback.sc = out_stream_callback; in amdtp_stream_first_callback()
677 context->callback.sc(context, cycle, header_length, header, s); in amdtp_stream_first_callback()
740 s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, in amdtp_stream_start()
743 if (IS_ERR(s->context)) { in amdtp_stream_start()
744 err = PTR_ERR(s->context); in amdtp_stream_start()
769 err = fw_iso_context_start(s->context, -1, 0, tag); in amdtp_stream_start()
778 fw_iso_context_destroy(s->context); in amdtp_stream_start()
779 s->context = ERR_PTR(-1); in amdtp_stream_start()
799 fw_iso_context_flush_completions(s->context); in amdtp_stream_pcm_pointer()
837 fw_iso_context_stop(s->context); in amdtp_stream_stop()
838 fw_iso_context_destroy(s->context); in amdtp_stream_stop()
839 s->context = ERR_PTR(-1); in amdtp_stream_stop()