Lines Matching refs:hda_softc

74 struct hda_softc;
76 typedef void (*hda_set_reg_handler)(struct hda_softc *sc, uint32_t offset,
115 struct hda_softc { struct
140 static inline void hda_set_reg_by_offset(struct hda_softc *sc, uint32_t offset, argument
142 static inline uint32_t hda_get_reg_by_offset(struct hda_softc *sc,
144 static inline void hda_set_field_by_offset(struct hda_softc *sc,
147 static struct hda_softc *hda_init(nvlist_t *nvl);
148 static void hda_update_intr(struct hda_softc *sc);
149 static void hda_response_interrupt(struct hda_softc *sc);
150 static int hda_codec_constructor(struct hda_softc *sc,
154 static int hda_send_command(struct hda_softc *sc, uint32_t verb);
155 static int hda_notify_codecs(struct hda_softc *sc, uint8_t run,
157 static void hda_reset(struct hda_softc *sc);
158 static void hda_reset_regs(struct hda_softc *sc);
159 static void hda_stream_reset(struct hda_softc *sc, uint8_t stream_ind);
160 static int hda_stream_start(struct hda_softc *sc, uint8_t stream_ind);
161 static int hda_stream_stop(struct hda_softc *sc, uint8_t stream_ind);
162 static uint32_t hda_read(struct hda_softc *sc, uint32_t offset);
163 static int hda_write(struct hda_softc *sc, uint32_t offset, uint8_t size,
167 static int hda_corb_start(struct hda_softc *sc);
168 static int hda_corb_run(struct hda_softc *sc);
169 static int hda_rirb_start(struct hda_softc *sc);
171 static void *hda_dma_get_vaddr(struct hda_softc *sc, uint64_t dma_paddr,
180 static void hda_set_gctl(struct hda_softc *sc, uint32_t offset, uint32_t old);
181 static void hda_set_statests(struct hda_softc *sc, uint32_t offset,
183 static void hda_set_corbwp(struct hda_softc *sc, uint32_t offset, uint32_t old);
184 static void hda_set_corbctl(struct hda_softc *sc, uint32_t offset,
186 static void hda_set_rirbctl(struct hda_softc *sc, uint32_t offset,
188 static void hda_set_rirbsts(struct hda_softc *sc, uint32_t offset,
190 static void hda_set_dpiblbase(struct hda_softc *sc, uint32_t offset,
192 static void hda_set_sdctl(struct hda_softc *sc, uint32_t offset, uint32_t old);
193 static void hda_set_sdctl2(struct hda_softc *sc, uint32_t offset, uint32_t old);
194 static void hda_set_sdsts(struct hda_softc *sc, uint32_t offset, uint32_t old);
202 static void hda_set_pib(struct hda_softc *sc, uint8_t stream_ind, uint32_t pib);
286 hda_set_reg_by_offset(struct hda_softc *sc, uint32_t offset, uint32_t value) in hda_set_reg_by_offset()
293 hda_get_reg_by_offset(struct hda_softc *sc, uint32_t offset) in hda_get_reg_by_offset()
300 hda_set_field_by_offset(struct hda_softc *sc, uint32_t offset, in hda_set_field_by_offset()
313 static struct hda_softc *
316 struct hda_softc *sc = NULL; in hda_init()
362 hda_update_intr(struct hda_softc *sc) in hda_update_intr()
413 hda_response_interrupt(struct hda_softc *sc) in hda_response_interrupt()
426 hda_codec_constructor(struct hda_softc *sc, struct hda_codec_class *codec, in hda_codec_constructor()
469 hda_send_command(struct hda_softc *sc, uint32_t verb) in hda_send_command()
495 hda_notify_codecs(struct hda_softc *sc, uint8_t run, uint8_t stream, in hda_notify_codecs()
522 hda_reset(struct hda_softc *sc) in hda_reset()
546 hda_reset_regs(struct hda_softc *sc) in hda_reset_regs()
574 hda_stream_reset(struct hda_softc *sc, uint8_t stream_ind) in hda_stream_reset()
594 hda_stream_start(struct hda_softc *sc, uint8_t stream_ind) in hda_stream_start()
682 hda_stream_stop(struct hda_softc *sc, uint8_t stream_ind) in hda_stream_stop()
698 hda_read(struct hda_softc *sc, uint32_t offset) in hda_read()
708 hda_write(struct hda_softc *sc, uint32_t offset, uint8_t size, uint32_t value) in hda_write()
741 hda_corb_start(struct hda_softc *sc) in hda_corb_start()
784 hda_corb_run(struct hda_softc *sc) in hda_corb_run()
817 hda_rirb_start(struct hda_softc *sc) in hda_rirb_start()
860 hda_dma_get_vaddr(struct hda_softc *sc, uint64_t dma_paddr, size_t len) in hda_dma_get_vaddr()
898 hda_set_gctl(struct hda_softc *sc, uint32_t offset, uint32_t old __unused) in hda_set_gctl()
908 hda_set_statests(struct hda_softc *sc, uint32_t offset, uint32_t old) in hda_set_statests()
921 hda_set_corbwp(struct hda_softc *sc, uint32_t offset __unused, in hda_set_corbwp()
928 hda_set_corbctl(struct hda_softc *sc, uint32_t offset, uint32_t old) in hda_set_corbctl()
948 hda_set_rirbctl(struct hda_softc *sc, uint32_t offset, uint32_t old __unused) in hda_set_rirbctl()
964 hda_set_rirbsts(struct hda_softc *sc, uint32_t offset, uint32_t old) in hda_set_rirbsts()
977 hda_set_dpiblbase(struct hda_softc *sc, uint32_t offset, uint32_t old) in hda_set_dpiblbase()
1009 hda_set_sdctl(struct hda_softc *sc, uint32_t offset, uint32_t old) in hda_set_sdctl()
1034 hda_set_sdctl2(struct hda_softc *sc, uint32_t offset, uint32_t old __unused) in hda_set_sdctl2()
1042 hda_set_sdsts(struct hda_softc *sc, uint32_t offset, uint32_t old) in hda_set_sdsts()
1057 struct hda_softc *sc = NULL; in hda_signal_state_change()
1077 struct hda_softc *sc = NULL; in hda_response()
1117 struct hda_softc *sc = NULL; in hda_transfer()
1205 hda_set_pib(struct hda_softc *sc, uint8_t stream_ind, uint32_t pib) in hda_set_pib()
1234 struct hda_softc *sc = NULL; in pci_hda_init()
1267 struct hda_softc *sc = pi->pi_arg; in pci_hda_write()
1283 struct hda_softc *sc = pi->pi_arg; in pci_hda_read()