Lines Matching refs:s
96 struct amdtp_stream *s,
147 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit,
152 void amdtp_stream_destroy(struct amdtp_stream *s);
154 int amdtp_stream_set_parameters(struct amdtp_stream *s, unsigned int rate,
156 unsigned int amdtp_stream_get_max_payload(struct amdtp_stream *s);
158 int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed);
159 void amdtp_stream_update(struct amdtp_stream *s);
160 void amdtp_stream_stop(struct amdtp_stream *s);
162 int amdtp_stream_add_pcm_hw_constraints(struct amdtp_stream *s,
165 void amdtp_stream_pcm_prepare(struct amdtp_stream *s);
166 unsigned long amdtp_stream_pcm_pointer(struct amdtp_stream *s);
167 void amdtp_stream_pcm_abort(struct amdtp_stream *s);
178 static inline bool amdtp_stream_running(struct amdtp_stream *s) in amdtp_stream_running() argument
180 return !IS_ERR(s->context); in amdtp_stream_running()
190 static inline bool amdtp_streaming_error(struct amdtp_stream *s) in amdtp_streaming_error() argument
192 return s->packet_index < 0; in amdtp_streaming_error()
201 static inline bool amdtp_stream_pcm_running(struct amdtp_stream *s) in amdtp_stream_pcm_running() argument
203 return !!s->pcm; in amdtp_stream_pcm_running()
215 static inline void amdtp_stream_pcm_trigger(struct amdtp_stream *s, in amdtp_stream_pcm_trigger() argument
218 ACCESS_ONCE(s->pcm) = pcm; in amdtp_stream_pcm_trigger()
250 static inline bool amdtp_stream_wait_callback(struct amdtp_stream *s, in amdtp_stream_wait_callback() argument
253 return wait_event_timeout(s->callback_wait, in amdtp_stream_wait_callback()
254 s->callbacked == true, in amdtp_stream_wait_callback()