Lines Matching refs:cad

958 	nid_t cad;  in hdac_rirb_flush()  local
975 cad = HDAC_RIRB_RESPONSE_EX_SDATA_IN(resp_ex); in hdac_rirb_flush()
979 sc->unsolq[sc->unsolq_wp++] = cad; in hdac_rirb_flush()
981 } else if (sc->codecs[cad].pending <= 0) { in hdac_rirb_flush()
983 "response from address %d: %08x\n", cad, resp); in hdac_rirb_flush()
985 sc->codecs[cad].response = resp; in hdac_rirb_flush()
986 sc->codecs[cad].pending--; in hdac_rirb_flush()
1000 nid_t cad; in hdac_unsolq_flush() local
1009 cad = sc->unsolq[sc->unsolq_rp++]; in hdac_unsolq_flush()
1011 if ((child = sc->codecs[cad].dev) != NULL && in hdac_unsolq_flush()
1028 hdac_send_command(struct hdac_softc *sc, nid_t cad, uint32_t verb) in hdac_send_command() argument
1035 verb |= ((uint32_t)cad) << HDA_CMD_CAD_SHIFT; in hdac_send_command()
1036 sc->codecs[cad].response = HDA_INVALID; in hdac_send_command()
1038 sc->codecs[cad].pending++; in hdac_send_command()
1053 } while (sc->codecs[cad].pending != 0 && --timeout); in hdac_send_command()
1055 if (sc->codecs[cad].pending != 0) { in hdac_send_command()
1057 verb, cad); in hdac_send_command()
1058 sc->codecs[cad].pending = 0; in hdac_send_command()
1063 return (sc->codecs[cad].response); in hdac_send_command()
1740 int cad, i, devcount, error; in hdac_detach() local
1745 cad = (intptr_t)device_get_ivars(devlist[i]); in hdac_detach()
1750 sc->codecs[cad].dev = NULL; in hdac_detach()
1808 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_child_pnpinfo_str_method() local
1812 sc->codecs[cad].vendor_id, sc->codecs[cad].device_id, in hdac_child_pnpinfo_str_method()
1813 sc->codecs[cad].revision_id, sc->codecs[cad].stepping_id); in hdac_child_pnpinfo_str_method()
1821 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_read_ivar() local
1825 *result = cad; in hdac_read_ivar()
1828 *result = sc->codecs[cad].vendor_id; in hdac_read_ivar()
1831 *result = sc->codecs[cad].device_id; in hdac_read_ivar()
1834 *result = sc->codecs[cad].revision_id; in hdac_read_ivar()
1837 *result = sc->codecs[cad].stepping_id; in hdac_read_ivar()
1913 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_stream_alloc() local
1930 prevbw = sc->codecs[cad].sdi_bw_used; in hdac_stream_alloc()
1943 sc->codecs[cad].sdi_bw_used += bw; in hdac_stream_alloc()
1972 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_stream_free() local
1981 sc->codecs[cad].sdi_bw_used -= sc->streams[ss].bw; in hdac_stream_free()