Lines Matching full:hci
196 static int hda_signal_state_change(struct hda_codec_inst *hci);
197 static int hda_response(struct hda_codec_inst *hci, uint32_t response,
199 static int hda_transfer(struct hda_codec_inst *hci, uint8_t stream,
429 struct hda_codec_inst *hci = NULL; in hda_codec_constructor() local
434 hci = calloc(1, sizeof(struct hda_codec_inst)); in hda_codec_constructor()
435 if (!hci) in hda_codec_constructor()
438 hci->hda = sc; in hda_codec_constructor()
439 hci->hops = &hops; in hda_codec_constructor()
440 hci->cad = sc->codecs_no; in hda_codec_constructor()
441 hci->codec = codec; in hda_codec_constructor()
443 sc->codecs[sc->codecs_no++] = hci; in hda_codec_constructor()
450 return (codec->init(hci, play, rec)); in hda_codec_constructor()
471 struct hda_codec_inst *hci = NULL; in hda_send_command() local
480 hci = sc->codecs[cad]; in hda_send_command()
481 assert(hci); in hda_send_command()
483 codec = hci->codec; in hda_send_command()
491 return (codec->command(hci, verb)); in hda_send_command()
498 struct hda_codec_inst *hci = NULL; in hda_notify_codecs() local
505 hci = sc->codecs[i]; in hda_notify_codecs()
506 assert(hci); in hda_notify_codecs()
508 codec = hci->codec; in hda_notify_codecs()
512 err = codec->notify(hci, run, stream, dir); in hda_notify_codecs()
525 struct hda_codec_inst *hci = NULL; in hda_reset() local
532 hci = sc->codecs[i]; in hda_reset()
533 assert(hci); in hda_reset()
535 codec = hci->codec; in hda_reset()
539 codec->reset(hci); in hda_reset()
1055 hda_signal_state_change(struct hda_codec_inst *hci) in hda_signal_state_change() argument
1060 assert(hci); in hda_signal_state_change()
1061 assert(hci->hda); in hda_signal_state_change()
1063 DPRINTF("cad: 0x%x", hci->cad); in hda_signal_state_change()
1065 sc = hci->hda; in hda_signal_state_change()
1066 sdiwake = 1 << hci->cad; in hda_signal_state_change()
1075 hda_response(struct hda_codec_inst *hci, uint32_t response, uint8_t unsol) in hda_response() argument
1082 assert(hci); in hda_response()
1083 assert(hci->cad <= HDA_CODEC_MAX); in hda_response()
1085 response_ex = hci->cad | unsol; in hda_response()
1087 sc = hci->hda; in hda_response()
1114 hda_transfer(struct hda_codec_inst *hci, uint8_t stream, uint8_t dir, in hda_transfer() argument
1127 assert(hci); in hda_transfer()
1128 assert(hci->hda); in hda_transfer()
1137 sc = hci->hda; in hda_transfer()