Lines Matching refs:port
30 struct nv50_i2c_port *port = (void *)base; in nv50_i2c_drive_scl() local
31 if (state) port->state |= 0x01; in nv50_i2c_drive_scl()
32 else port->state &= 0xfe; in nv50_i2c_drive_scl()
33 nv_wr32(priv, port->addr, port->state); in nv50_i2c_drive_scl()
40 struct nv50_i2c_port *port = (void *)base; in nv50_i2c_drive_sda() local
41 if (state) port->state |= 0x02; in nv50_i2c_drive_sda()
42 else port->state &= 0xfd; in nv50_i2c_drive_sda()
43 nv_wr32(priv, port->addr, port->state); in nv50_i2c_drive_sda()
50 struct nv50_i2c_port *port = (void *)base; in nv50_i2c_sense_scl() local
51 return !!(nv_rd32(priv, port->addr) & 0x00000001); in nv50_i2c_sense_scl()
58 struct nv50_i2c_port *port = (void *)base; in nv50_i2c_sense_sda() local
59 return !!(nv_rd32(priv, port->addr) & 0x00000002); in nv50_i2c_sense_sda()
83 struct nv50_i2c_port *port; in nv50_i2c_port_ctor() local
87 &nvkm_i2c_bit_algo, &nv50_i2c_func, &port); in nv50_i2c_port_ctor()
88 *pobject = nv_object(port); in nv50_i2c_port_ctor()
95 port->state = 0x00000007; in nv50_i2c_port_ctor()
96 port->addr = nv50_i2c_addr[info->drive]; in nv50_i2c_port_ctor()
104 struct nv50_i2c_port *port = (void *)object; in nv50_i2c_port_init() local
105 nv_wr32(priv, port->addr, port->state); in nv50_i2c_port_init()
106 return nvkm_i2c_port_init(&port->base); in nv50_i2c_port_init()