Lines Matching refs:h_stream

150 	u32 h_stream;  member
159 u32 h_stream, /* handle to outstream. */ in hpi_stream_host_buffer_attach() argument
166 unsigned int obj = hpi_handle_object(h_stream); in hpi_stream_host_buffer_attach()
168 if (!h_stream) in hpi_stream_host_buffer_attach()
175 hpi_handle_to_indexes(h_stream, &hm.adapter_index, in hpi_stream_host_buffer_attach()
185 static u16 hpi_stream_host_buffer_detach(u32 h_stream) in hpi_stream_host_buffer_detach() argument
189 unsigned int obj = hpi_handle_object(h_stream); in hpi_stream_host_buffer_detach()
191 if (!h_stream) in hpi_stream_host_buffer_detach()
199 hpi_handle_to_indexes(h_stream, &hm.adapter_index, in hpi_stream_host_buffer_detach()
206 static inline u16 hpi_stream_start(u32 h_stream) in hpi_stream_start() argument
208 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_start()
209 return hpi_outstream_start(h_stream); in hpi_stream_start()
211 return hpi_instream_start(h_stream); in hpi_stream_start()
214 static inline u16 hpi_stream_stop(u32 h_stream) in hpi_stream_stop() argument
216 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_stop()
217 return hpi_outstream_stop(h_stream); in hpi_stream_stop()
219 return hpi_instream_stop(h_stream); in hpi_stream_stop()
223 u32 h_stream, in hpi_stream_get_info_ex() argument
232 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_get_info_ex()
233 e = hpi_outstream_get_info_ex(h_stream, pw_state, in hpi_stream_get_info_ex()
237 e = hpi_instream_get_info_ex(h_stream, pw_state, in hpi_stream_get_info_ex()
245 u32 h_stream) in hpi_stream_group_add() argument
248 return hpi_outstream_group_add(h_master, h_stream); in hpi_stream_group_add()
250 return hpi_instream_group_add(h_master, h_stream); in hpi_stream_group_add()
253 static inline u16 hpi_stream_group_reset(u32 h_stream) in hpi_stream_group_reset() argument
255 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_group_reset()
256 return hpi_outstream_group_reset(h_stream); in hpi_stream_group_reset()
258 return hpi_instream_group_reset(h_stream); in hpi_stream_group_reset()
262 u32 h_stream, u32 *mo, u32 *mi) in hpi_stream_group_get_map() argument
264 if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) in hpi_stream_group_get_map()
265 return hpi_outstream_group_get_map(h_stream, mo, mi); in hpi_stream_group_get_map()
267 return hpi_instream_group_get_map(h_stream, mo, mi); in hpi_stream_group_get_map()
464 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
468 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
474 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
487 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
510 hpi_stream_host_buffer_detach(dpcm->h_stream); in snd_card_asihpi_hw_free()
617 ds->h_stream, in snd_card_asihpi_trigger()
627 dpcm->h_stream, in snd_card_asihpi_trigger()
628 ds->h_stream); in snd_card_asihpi_trigger()
642 hpi_handle_error(hpi_stream_start(dpcm->h_stream)); in snd_card_asihpi_trigger()
667 hpi_handle_error(hpi_stream_stop(dpcm->h_stream)); in snd_card_asihpi_trigger()
670 hpi_outstream_reset(dpcm->h_stream)); in snd_card_asihpi_trigger()
673 hpi_handle_error(hpi_stream_group_reset(dpcm->h_stream)); in snd_card_asihpi_trigger()
679 hpi_handle_error(hpi_stream_start(dpcm->h_stream)); in snd_card_asihpi_trigger()
684 hpi_handle_error(hpi_stream_stop(dpcm->h_stream)); in snd_card_asihpi_trigger()
771 ds->h_stream, &state, in snd_card_asihpi_timer_function()
785 hpi_handle_error(hpi_stream_start(ds->h_stream)); in snd_card_asihpi_timer_function()
885 ds->h_stream, pd, xfer1, in snd_card_asihpi_timer_function()
896 ds->h_stream, pd, in snd_card_asihpi_timer_function()
905 ds->h_stream, in snd_card_asihpi_timer_function()
913 ds->h_stream, in snd_card_asihpi_timer_function()
967 hpi_handle_error(hpi_outstream_reset(dpcm->h_stream)); in snd_card_asihpi_playback_prepare()
989 u32 h_stream) in snd_card_asihpi_playback_formats() argument
1014 err = hpi_outstream_query_format(h_stream, &hpi_format); in snd_card_asihpi_playback_formats()
1034 substream->number, &dpcm->h_stream); in snd_card_asihpi_playback_open()
1074 snd_card_asihpi_playback_formats(card, dpcm->h_stream); in snd_card_asihpi_playback_open()
1116 hpi_handle_error(hpi_outstream_close(dpcm->h_stream)); in snd_card_asihpi_playback_close()
1161 hpi_handle_error(hpi_instream_reset(dpcm->h_stream)); in snd_card_asihpi_capture_prepare()
1171 u32 h_stream) in snd_card_asihpi_capture_formats() argument
1196 err = hpi_instream_query_format(h_stream, &hpi_format); in snd_card_asihpi_capture_formats()
1220 substream->number, &dpcm->h_stream)); in snd_card_asihpi_capture_open()
1253 snd_card_asihpi_capture_formats(card, dpcm->h_stream); in snd_card_asihpi_capture_open()
1284 hpi_handle_error(hpi_instream_close(dpcm->h_stream)); in snd_card_asihpi_capture_close()
2836 u32 h_stream; in snd_asihpi_probe() local
2906 0, &h_stream)); in snd_asihpi_probe()
2908 err = hpi_instream_host_buffer_free(h_stream); in snd_asihpi_probe()
2911 hpi_handle_error(hpi_instream_close(h_stream)); in snd_asihpi_probe()