• Home
  • Raw
  • Download

Lines Matching refs:hstream

135 	struct hdac_stream *hstream = &stream->hstream;  in hda_dsp_stream_spib_config()  local
143 mask = (1 << hstream->index); in hda_dsp_stream_spib_config()
148 enable << hstream->index); in hda_dsp_stream_spib_config()
257 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_trigger() local
258 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_trigger()
269 1 << hstream->index, in hda_dsp_stream_trigger()
270 1 << hstream->index); in hda_dsp_stream_trigger()
293 hstream->running = true; in hda_dsp_stream_trigger()
320 hstream->running = false; in hda_dsp_stream_trigger()
322 1 << hstream->index, 0x0); in hda_dsp_stream_trigger()
338 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_iccmax_stream_hw_params() local
339 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_iccmax_stream_hw_params()
341 u32 mask = 0x1 << hstream->index; in hda_dsp_iccmax_stream_hw_params()
348 if (hstream->posbuf) in hda_dsp_iccmax_stream_hw_params()
349 *hstream->posbuf = 0; in hda_dsp_iccmax_stream_hw_params()
359 hstream->frags = 0; in hda_dsp_iccmax_stream_hw_params()
361 ret = hda_dsp_stream_setup_bdl(sdev, dmab, hstream); in hda_dsp_iccmax_stream_hw_params()
370 (u32)hstream->bdl.addr); in hda_dsp_iccmax_stream_hw_params()
373 upper_32_bits(hstream->bdl.addr)); in hda_dsp_iccmax_stream_hw_params()
378 hstream->bufsize); in hda_dsp_iccmax_stream_hw_params()
383 0xffff, (hstream->frags - 1)); in hda_dsp_iccmax_stream_hw_params()
409 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_hw_params() local
410 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_hw_params()
422 mask = 0x1 << hstream->index; in hda_dsp_stream_hw_params()
486 if (hstream->posbuf) in hda_dsp_stream_hw_params()
487 *hstream->posbuf = 0; in hda_dsp_stream_hw_params()
520 hstream->frags = 0; in hda_dsp_stream_hw_params()
522 ret = hda_dsp_stream_setup_bdl(sdev, dmab, hstream); in hda_dsp_stream_hw_params()
531 hstream->stream_tag << in hda_dsp_stream_hw_params()
537 hstream->bufsize); in hda_dsp_stream_hw_params()
558 0xffff, hstream->format_val); in hda_dsp_stream_hw_params()
567 0xffff, (hstream->frags - 1)); in hda_dsp_stream_hw_params()
572 (u32)hstream->bdl.addr); in hda_dsp_stream_hw_params()
575 upper_32_bits(hstream->bdl.addr)); in hda_dsp_stream_hw_params()
593 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) { in hda_dsp_stream_hw_params()
594 hstream->fifo_size = in hda_dsp_stream_hw_params()
598 hstream->fifo_size &= 0xffff; in hda_dsp_stream_hw_params()
599 hstream->fifo_size += 1; in hda_dsp_stream_hw_params()
601 hstream->fifo_size = 0; in hda_dsp_stream_hw_params()
613 hstream); in hda_dsp_stream_hw_free()
651 hda_dsp_set_bytes_transferred(struct hdac_stream *hstream, u64 buffer_size) in hda_dsp_set_bytes_transferred() argument
655 div64_u64_rem(hstream->curr_pos, buffer_size, &prev_pos); in hda_dsp_set_bytes_transferred()
656 pos = snd_hdac_stream_get_pos_posbuf(hstream); in hda_dsp_set_bytes_transferred()
663 hstream->curr_pos += num_bytes; in hda_dsp_set_bytes_transferred()
753 struct hdac_stream *hstream; in hda_dsp_stream_init() local
836 hstream = &stream->hstream; in hda_dsp_stream_init()
837 hstream->bus = bus; in hda_dsp_stream_init()
838 hstream->sd_int_sta_mask = 1 << i; in hda_dsp_stream_init()
839 hstream->index = i; in hda_dsp_stream_init()
840 sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_init()
841 hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset; in hda_dsp_stream_init()
842 hstream->stream_tag = i + 1; in hda_dsp_stream_init()
843 hstream->opened = false; in hda_dsp_stream_init()
844 hstream->running = false; in hda_dsp_stream_init()
845 hstream->direction = SNDRV_PCM_STREAM_CAPTURE; in hda_dsp_stream_init()
849 HDA_DSP_BDL_SIZE, &hstream->bdl); in hda_dsp_stream_init()
854 hstream->posbuf = (__le32 *)(bus->posbuf.area + in hda_dsp_stream_init()
855 (hstream->index) * 8); in hda_dsp_stream_init()
857 list_add_tail(&hstream->list, &bus->stream_list); in hda_dsp_stream_init()
892 hstream = &stream->hstream; in hda_dsp_stream_init()
893 hstream->bus = bus; in hda_dsp_stream_init()
894 hstream->sd_int_sta_mask = 1 << i; in hda_dsp_stream_init()
895 hstream->index = i; in hda_dsp_stream_init()
896 sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_init()
897 hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset; in hda_dsp_stream_init()
898 hstream->stream_tag = i - num_capture + 1; in hda_dsp_stream_init()
899 hstream->opened = false; in hda_dsp_stream_init()
900 hstream->running = false; in hda_dsp_stream_init()
901 hstream->direction = SNDRV_PCM_STREAM_PLAYBACK; in hda_dsp_stream_init()
905 HDA_DSP_BDL_SIZE, &hstream->bdl); in hda_dsp_stream_init()
911 hstream->posbuf = (__le32 *)(bus->posbuf.area + in hda_dsp_stream_init()
912 (hstream->index) * 8); in hda_dsp_stream_init()
914 list_add_tail(&hstream->list, &bus->stream_list); in hda_dsp_stream_init()