Lines Matching refs:port
25 #include "port.h"
34 anx9805_train(struct nouveau_i2c_port *port, int link_nr, int link_bw, bool enh)
36 struct anx9805_i2c_port *chan = (void *)port;
51 nv_error(port, "link training timed out\n");
57 nv_error(port, "link training failed: 0x%02x\n", tmp);
65 anx9805_aux(struct nouveau_i2c_port *port, bool retry,
68 struct anx9805_i2c_port *chan = (void *)port;
173 struct anx9805_i2c_port *port = adap->algo_data;
174 struct nouveau_i2c_port *mast = (void *)nv_object(port)->parent;
180 tmp = nv_rdi2cr(mast, port->ctrl, 0x07) & ~0x10;
181 nv_wri2cr(mast, port->ctrl, 0x07, tmp | 0x10);
182 nv_wri2cr(mast, port->ctrl, 0x07, tmp);
183 nv_wri2cr(mast, port->addr, 0x43, 0x05);
188 nv_wri2cr(mast, port->addr, 0x40, msg->addr << 1);
189 nv_wri2cr(mast, port->addr, 0x41, seg);
190 nv_wri2cr(mast, port->addr, 0x42, off);
191 nv_wri2cr(mast, port->addr, 0x44, msg->len);
192 nv_wri2cr(mast, port->addr, 0x45, 0x00);
193 nv_wri2cr(mast, port->addr, 0x43, 0x01);
196 while (nv_rdi2cr(mast, port->addr, 0x46) & 0x10) {
201 msg->buf[i] = nv_rdi2cr(mast, port->addr, 0x47);
220 nv_wri2cr(mast, port->addr, 0x43, 0x00);
247 struct anx9805_i2c_port *port;
252 &port);
253 *pobject = nv_object(port);
259 port->addr = 0x3d;
260 port->ctrl = 0x39;
263 port->addr = 0x3f;
264 port->ctrl = 0x3b;