Lines Matching refs:s
123 void (*transfer_samples)(struct amdtp_stream *s,
164 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit,
167 void amdtp_stream_destroy(struct amdtp_stream *s);
169 void amdtp_stream_set_parameters(struct amdtp_stream *s,
173 unsigned int amdtp_stream_get_max_payload(struct amdtp_stream *s);
175 int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed);
176 void amdtp_stream_update(struct amdtp_stream *s);
177 void amdtp_stream_stop(struct amdtp_stream *s);
179 int amdtp_stream_add_pcm_hw_constraints(struct amdtp_stream *s,
181 void amdtp_stream_set_pcm_format(struct amdtp_stream *s,
183 void amdtp_stream_pcm_prepare(struct amdtp_stream *s);
184 unsigned long amdtp_stream_pcm_pointer(struct amdtp_stream *s);
185 void amdtp_stream_pcm_abort(struct amdtp_stream *s);
196 static inline bool amdtp_stream_running(struct amdtp_stream *s) in amdtp_stream_running() argument
198 return !IS_ERR(s->context); in amdtp_stream_running()
208 static inline bool amdtp_streaming_error(struct amdtp_stream *s) in amdtp_streaming_error() argument
210 return s->packet_index < 0; in amdtp_streaming_error()
219 static inline bool amdtp_stream_pcm_running(struct amdtp_stream *s) in amdtp_stream_pcm_running() argument
221 return !!s->pcm; in amdtp_stream_pcm_running()
233 static inline void amdtp_stream_pcm_trigger(struct amdtp_stream *s, in amdtp_stream_pcm_trigger() argument
236 ACCESS_ONCE(s->pcm) = pcm; in amdtp_stream_pcm_trigger()
249 static inline void amdtp_stream_midi_trigger(struct amdtp_stream *s, in amdtp_stream_midi_trigger() argument
253 if (port < s->midi_ports) in amdtp_stream_midi_trigger()
254 ACCESS_ONCE(s->midi[port]) = midi; in amdtp_stream_midi_trigger()
286 static inline bool amdtp_stream_wait_callback(struct amdtp_stream *s, in amdtp_stream_wait_callback() argument
289 return wait_event_timeout(s->callback_wait, in amdtp_stream_wait_callback()
290 s->callbacked == true, in amdtp_stream_wait_callback()