Lines Matching refs:base

24 #define g94_i2c_aux(p) container_of((p), struct g94_i2c_aux, base)
28 struct nvkm_i2c_aux base; member
35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_fini()
42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_init()
54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in g94_i2c_aux_init()
66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in g94_i2c_aux_init()
80 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_xfer()
81 const u32 base = aux->ch * 0x50; in g94_i2c_aux_xfer() local
86 AUX_TRACE(&aux->base, "%d: %08x %d", type, addr, size); in g94_i2c_aux_xfer()
92 stat = nvkm_rd32(device, 0x00e4e8 + base); in g94_i2c_aux_xfer()
94 AUX_TRACE(&aux->base, "sink not detected"); in g94_i2c_aux_xfer()
102 AUX_TRACE(&aux->base, "wr %08x", xbuf[i / 4]); in g94_i2c_aux_xfer()
103 nvkm_wr32(device, 0x00e4c0 + base + i, xbuf[i / 4]); in g94_i2c_aux_xfer()
107 ctrl = nvkm_rd32(device, 0x00e4e4 + base); in g94_i2c_aux_xfer()
111 nvkm_wr32(device, 0x00e4e0 + base, addr); in g94_i2c_aux_xfer()
116 nvkm_wr32(device, 0x00e4e4 + base, 0x80000000 | ctrl); in g94_i2c_aux_xfer()
117 nvkm_wr32(device, 0x00e4e4 + base, 0x00000000 | ctrl); in g94_i2c_aux_xfer()
122 nvkm_wr32(device, 0x00e4e4 + base, 0x00010000 | ctrl); in g94_i2c_aux_xfer()
126 ctrl = nvkm_rd32(device, 0x00e4e4 + base); in g94_i2c_aux_xfer()
129 AUX_ERR(&aux->base, "timeout %08x", ctrl); in g94_i2c_aux_xfer()
137 stat = nvkm_mask(device, 0x00e4e8 + base, 0, 0); in g94_i2c_aux_xfer()
146 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat); in g94_i2c_aux_xfer()
151 xbuf[i / 4] = nvkm_rd32(device, 0x00e4d0 + base + i); in g94_i2c_aux_xfer()
152 AUX_TRACE(&aux->base, "rd %08x", xbuf[i / 4]); in g94_i2c_aux_xfer()
175 *paux = &aux->base; in g94_i2c_aux_new()
177 nvkm_i2c_aux_ctor(&g94_i2c_aux_func, pad, index, &aux->base); in g94_i2c_aux_new()
179 aux->base.intr = 1 << aux->ch; in g94_i2c_aux_new()