• Home
  • Raw
  • Download

Lines Matching refs:s

48 int amdtp_motu_set_parameters(struct amdtp_stream *s, unsigned int rate,  in amdtp_motu_set_parameters()  argument
52 struct amdtp_motu *p = s->protocol; in amdtp_motu_set_parameters()
57 if (amdtp_stream_running(s)) in amdtp_motu_set_parameters()
76 err = amdtp_stream_set_parameters(s, rate, data_block_quadlets); in amdtp_motu_set_parameters()
93 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument
97 struct amdtp_motu *p = s->protocol; in read_pcm_s32()
106 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in read_pcm_s32()
123 buffer += s->data_block_quadlets; in read_pcm_s32()
129 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
133 struct amdtp_motu *p = s->protocol; in write_pcm_s32()
142 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in write_pcm_s32()
160 buffer += s->data_block_quadlets; in write_pcm_s32()
166 static void write_pcm_silence(struct amdtp_stream *s, __be32 *buffer, in write_pcm_silence() argument
169 struct amdtp_motu *p = s->protocol; in write_pcm_silence()
185 buffer += s->data_block_quadlets; in write_pcm_silence()
189 int amdtp_motu_add_pcm_hw_constraints(struct amdtp_stream *s, in amdtp_motu_add_pcm_hw_constraints() argument
199 return amdtp_stream_add_pcm_hw_constraints(s, runtime); in amdtp_motu_add_pcm_hw_constraints()
202 void amdtp_motu_midi_trigger(struct amdtp_stream *s, unsigned int port, in amdtp_motu_midi_trigger() argument
205 struct amdtp_motu *p = s->protocol; in amdtp_motu_midi_trigger()
211 static void write_midi_messages(struct amdtp_stream *s, __be32 *buffer, in write_midi_messages() argument
214 struct amdtp_motu *p = s->protocol; in write_midi_messages()
230 buffer += s->data_block_quadlets; in write_midi_messages()
237 static void read_midi_messages(struct amdtp_stream *s, __be32 *buffer, in read_midi_messages() argument
240 struct amdtp_motu *p = s->protocol; in read_midi_messages()
252 buffer += s->data_block_quadlets; in read_midi_messages()
287 static void probe_tracepoints_events(struct amdtp_stream *s, in probe_tracepoints_events() argument
298 trace_data_block_sph(s, data_blocks, buf); in probe_tracepoints_events()
299 trace_data_block_message(s, data_blocks, buf); in probe_tracepoints_events()
331 static unsigned int process_ir_ctx_payloads(struct amdtp_stream *s, in process_ir_ctx_payloads() argument
336 struct amdtp_motu *p = s->protocol; in process_ir_ctx_payloads()
341 p->cache->tx_cycle_count = (s->domain->processing_cycle.tx_start % CYCLES_PER_SECOND); in process_ir_ctx_payloads()
349 cache_event_offsets(p->cache, buf, data_blocks, s->data_block_quadlets); in process_ir_ctx_payloads()
352 read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_ir_ctx_payloads()
357 read_midi_messages(s, buf, data_blocks); in process_ir_ctx_payloads()
363 probe_tracepoints_events(s, descs, packets); in process_ir_ctx_payloads()
390 static unsigned int process_it_ctx_payloads(struct amdtp_stream *s, in process_it_ctx_payloads() argument
395 struct amdtp_motu *p = s->protocol; in process_it_ctx_payloads()
400 p->cache->rx_cycle_count = (s->domain->processing_cycle.rx_start % CYCLES_PER_SECOND); in process_it_ctx_payloads()
409 write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_it_ctx_payloads()
412 write_pcm_silence(s, buf, data_blocks); in process_it_ctx_payloads()
416 write_midi_messages(s, buf, data_blocks); in process_it_ctx_payloads()
420 write_sph(p->cache, buf, data_blocks, s->data_block_quadlets); in process_it_ctx_payloads()
426 probe_tracepoints_events(s, descs, packets); in process_it_ctx_payloads()
431 int amdtp_motu_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_motu_init() argument
466 err = amdtp_stream_init(s, unit, dir, flags, fmt, process_ctx_payloads, in amdtp_motu_init()
471 s->sph = 1; in amdtp_motu_init()
475 s->ctx_data.rx.fdf = MOTU_FDF_AM824; in amdtp_motu_init()
478 p = s->protocol; in amdtp_motu_init()