Lines Matching refs:aux

139 	struct anx9805_aux *aux = anx9805_aux(base);  in anx9805_aux_xfer()  local
140 struct anx9805_pad *pad = aux->pad; in anx9805_aux_xfer()
146 AUX_DBG(&aux->base, "%02x %05x %d", type, addr, *size); in anx9805_aux_xfer()
153 nvkm_wri2cr(adap, aux->addr, 0xe4, 0x80); in anx9805_aux_xfer()
156 AUX_DBG(&aux->base, "%16ph", buf); in anx9805_aux_xfer()
158 nvkm_wri2cr(adap, aux->addr, 0xf0 + i, buf[i]); in anx9805_aux_xfer()
160 nvkm_wri2cr(adap, aux->addr, 0xe5, ((*size - 1) << 4) | type); in anx9805_aux_xfer()
161 nvkm_wri2cr(adap, aux->addr, 0xe6, (addr & 0x000ff) >> 0); in anx9805_aux_xfer()
162 nvkm_wri2cr(adap, aux->addr, 0xe7, (addr & 0x0ff00) >> 8); in anx9805_aux_xfer()
163 nvkm_wri2cr(adap, aux->addr, 0xe8, (addr & 0xf0000) >> 16); in anx9805_aux_xfer()
164 nvkm_wri2cr(adap, aux->addr, 0xe9, 0x01); in anx9805_aux_xfer()
167 while ((tmp = nvkm_rdi2cr(adap, aux->addr, 0xe9)) & 0x01) { in anx9805_aux_xfer()
180 buf[i] = nvkm_rdi2cr(adap, aux->addr, 0xf0 + i); in anx9805_aux_xfer()
181 AUX_DBG(&aux->base, "%16ph", buf); in anx9805_aux_xfer()
195 struct anx9805_aux *aux = anx9805_aux(base); in anx9805_aux_lnk_ctl() local
196 struct anx9805_pad *pad = aux->pad; in anx9805_aux_lnk_ctl()
200 AUX_DBG(&aux->base, "ANX9805 train %d %02x %d", in anx9805_aux_lnk_ctl()
203 nvkm_wri2cr(adap, aux->addr, 0xa0, link_bw); in anx9805_aux_lnk_ctl()
204 nvkm_wri2cr(adap, aux->addr, 0xa1, link_nr | (enh ? 0x80 : 0x00)); in anx9805_aux_lnk_ctl()
205 nvkm_wri2cr(adap, aux->addr, 0xa2, 0x01); in anx9805_aux_lnk_ctl()
206 nvkm_wri2cr(adap, aux->addr, 0xa8, 0x01); in anx9805_aux_lnk_ctl()
209 while ((tmp = nvkm_rdi2cr(adap, aux->addr, 0xa8)) & 0x01) { in anx9805_aux_lnk_ctl()
212 AUX_ERR(&aux->base, "link training timeout"); in anx9805_aux_lnk_ctl()
218 AUX_ERR(&aux->base, "link training failed"); in anx9805_aux_lnk_ctl()
236 struct anx9805_aux *aux; in anx9805_aux_new() local
239 if (!(aux = kzalloc(sizeof(*aux), GFP_KERNEL))) in anx9805_aux_new()
241 *pbus = &aux->base; in anx9805_aux_new()
242 aux->pad = pad; in anx9805_aux_new()
244 ret = nvkm_i2c_aux_ctor(&anx9805_aux_func, &pad->base, id, &aux->base); in anx9805_aux_new()
249 case 0x39: aux->addr = 0x38; break; in anx9805_aux_new()
250 case 0x3b: aux->addr = 0x3c; break; in anx9805_aux_new()