Lines Matching refs:cad

957 	nid_t cad;  in hdac_rirb_flush()  local
974 cad = HDAC_RIRB_RESPONSE_EX_SDATA_IN(resp_ex); in hdac_rirb_flush()
978 sc->unsolq[sc->unsolq_wp++] = cad; in hdac_rirb_flush()
980 } else if (sc->codecs[cad].pending <= 0) { in hdac_rirb_flush()
982 "response from address %d: %08x\n", cad, resp); in hdac_rirb_flush()
984 sc->codecs[cad].response = resp; in hdac_rirb_flush()
985 sc->codecs[cad].pending--; in hdac_rirb_flush()
999 nid_t cad; in hdac_unsolq_flush() local
1008 cad = sc->unsolq[sc->unsolq_rp++]; in hdac_unsolq_flush()
1010 if ((child = sc->codecs[cad].dev) != NULL && in hdac_unsolq_flush()
1027 hdac_send_command(struct hdac_softc *sc, nid_t cad, uint32_t verb) in hdac_send_command() argument
1034 verb |= ((uint32_t)cad) << HDA_CMD_CAD_SHIFT; in hdac_send_command()
1035 sc->codecs[cad].response = HDA_INVALID; in hdac_send_command()
1037 sc->codecs[cad].pending++; in hdac_send_command()
1052 } while (sc->codecs[cad].pending != 0 && --timeout); in hdac_send_command()
1054 if (sc->codecs[cad].pending != 0) { in hdac_send_command()
1056 verb, cad); in hdac_send_command()
1057 sc->codecs[cad].pending = 0; in hdac_send_command()
1062 return (sc->codecs[cad].response); in hdac_send_command()
1835 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_child_pnpinfo_method() local
1839 sc->codecs[cad].vendor_id, sc->codecs[cad].device_id, in hdac_child_pnpinfo_method()
1840 sc->codecs[cad].revision_id, sc->codecs[cad].stepping_id); in hdac_child_pnpinfo_method()
1848 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_read_ivar() local
1852 *result = cad; in hdac_read_ivar()
1855 *result = sc->codecs[cad].vendor_id; in hdac_read_ivar()
1858 *result = sc->codecs[cad].device_id; in hdac_read_ivar()
1861 *result = sc->codecs[cad].revision_id; in hdac_read_ivar()
1864 *result = sc->codecs[cad].stepping_id; in hdac_read_ivar()
1940 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_stream_alloc() local
1957 prevbw = sc->codecs[cad].sdi_bw_used; in hdac_stream_alloc()
1970 sc->codecs[cad].sdi_bw_used += bw; in hdac_stream_alloc()
1999 nid_t cad = (uintptr_t)device_get_ivars(child); in hdac_stream_free() local
2008 sc->codecs[cad].sdi_bw_used -= sc->streams[ss].bw; in hdac_stream_free()