Lines Matching +full:0 +full:x43

51 	u8 seg = 0x00, off = 0x00, tmp;  in anx9805_bus_xfer()
53 tmp = nvkm_rdi2cr(adap, pad->addr, 0x07) & ~0x10; in anx9805_bus_xfer()
54 nvkm_wri2cr(adap, pad->addr, 0x07, tmp | 0x10); in anx9805_bus_xfer()
55 nvkm_wri2cr(adap, pad->addr, 0x07, tmp); in anx9805_bus_xfer()
56 nvkm_wri2cr(adap, bus->addr, 0x43, 0x05); in anx9805_bus_xfer()
60 if ( (msg->flags & I2C_M_RD) && msg->addr == 0x50) { in anx9805_bus_xfer()
61 nvkm_wri2cr(adap, bus->addr, 0x40, msg->addr << 1); in anx9805_bus_xfer()
62 nvkm_wri2cr(adap, bus->addr, 0x41, seg); in anx9805_bus_xfer()
63 nvkm_wri2cr(adap, bus->addr, 0x42, off); in anx9805_bus_xfer()
64 nvkm_wri2cr(adap, bus->addr, 0x44, msg->len); in anx9805_bus_xfer()
65 nvkm_wri2cr(adap, bus->addr, 0x45, 0x00); in anx9805_bus_xfer()
66 nvkm_wri2cr(adap, bus->addr, 0x43, 0x01); in anx9805_bus_xfer()
67 for (i = 0; i < msg->len; i++) { in anx9805_bus_xfer()
68 j = 0; in anx9805_bus_xfer()
69 while (nvkm_rdi2cr(adap, bus->addr, 0x46) & 0x10) { in anx9805_bus_xfer()
74 msg->buf[i] = nvkm_rdi2cr(adap, bus->addr, 0x47); in anx9805_bus_xfer()
78 if (msg->addr == 0x50 && msg->len == 0x01) { in anx9805_bus_xfer()
79 off = msg->buf[0]; in anx9805_bus_xfer()
81 if (msg->addr == 0x30 && msg->len == 0x01) { in anx9805_bus_xfer()
82 seg = msg->buf[0]; in anx9805_bus_xfer()
93 nvkm_wri2cr(adap, bus->addr, 0x43, 0x00); in anx9805_bus_xfer()
120 case 0x39: bus->addr = 0x3d; break; in anx9805_bus_new()
121 case 0x3b: bus->addr = 0x3f; break; in anx9805_bus_new()
126 return 0; in anx9805_bus_new()
148 tmp = nvkm_rdi2cr(adap, pad->addr, 0x07) & ~0x04; in anx9805_aux_xfer()
149 nvkm_wri2cr(adap, pad->addr, 0x07, tmp | 0x04); in anx9805_aux_xfer()
150 nvkm_wri2cr(adap, pad->addr, 0x07, tmp); in anx9805_aux_xfer()
151 nvkm_wri2cr(adap, pad->addr, 0xf7, 0x01); in anx9805_aux_xfer()
153 nvkm_wri2cr(adap, aux->addr, 0xe4, 0x80); in anx9805_aux_xfer()
157 for (i = 0; i < *size; i++) 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()
166 i = 0; in anx9805_aux_xfer()
167 while ((tmp = nvkm_rdi2cr(adap, aux->addr, 0xe9)) & 0x01) { in anx9805_aux_xfer()
173 if ((tmp = nvkm_rdi2cr(adap, pad->addr, 0xf7)) & 0x01) { in anx9805_aux_xfer()
179 for (i = 0; i < *size; i++) in anx9805_aux_xfer()
180 buf[i] = nvkm_rdi2cr(adap, aux->addr, 0xf0 + i); in anx9805_aux_xfer()
185 ret = 0; in anx9805_aux_xfer()
187 nvkm_wri2cr(adap, pad->addr, 0xf7, 0x01); in anx9805_aux_xfer()
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()
208 i = 0; in anx9805_aux_lnk_ctl()
209 while ((tmp = nvkm_rdi2cr(adap, aux->addr, 0xa8)) & 0x01) { in anx9805_aux_lnk_ctl()
217 if (tmp & 0x70) { in anx9805_aux_lnk_ctl()
222 return 0; in anx9805_aux_lnk_ctl()
249 case 0x39: aux->addr = 0x38; break; in anx9805_aux_new()
250 case 0x3b: aux->addr = 0x3c; break; in anx9805_aux_new()
255 return 0; in anx9805_aux_new()
277 return 0; in anx9805_pad_new()