Lines Matching full:aux

25 #include "aux.h"
33 gm200_i2c_aux_fini(struct gm200_i2c_aux *aux) in gm200_i2c_aux_fini() argument
35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_fini()
36 nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00310000, 0x00000000); in gm200_i2c_aux_fini()
40 gm200_i2c_aux_init(struct gm200_i2c_aux *aux) in gm200_i2c_aux_init() argument
42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_init()
51 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init()
54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in gm200_i2c_aux_init()
60 nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00300000, ureq); in gm200_i2c_aux_init()
63 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init()
66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in gm200_i2c_aux_init()
67 gm200_i2c_aux_fini(aux); in gm200_i2c_aux_init()
79 struct gm200_i2c_aux *aux = gm200_i2c_aux(obj); in gm200_i2c_aux_xfer() local
80 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_xfer()
81 const u32 base = aux->ch * 0x50; in gm200_i2c_aux_xfer()
86 AUX_TRACE(&aux->base, "%d: %08x %d", type, addr, *size); in gm200_i2c_aux_xfer()
88 ret = gm200_i2c_aux_init(aux); in gm200_i2c_aux_xfer()
94 AUX_TRACE(&aux->base, "sink not detected"); in gm200_i2c_aux_xfer()
102 AUX_TRACE(&aux->base, "wr %08x", xbuf[i / 4]); in gm200_i2c_aux_xfer()
129 AUX_ERR(&aux->base, "timeout %08x", ctrl); in gm200_i2c_aux_xfer()
146 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat); in gm200_i2c_aux_xfer()
152 AUX_TRACE(&aux->base, "rd %08x", xbuf[i / 4]); in gm200_i2c_aux_xfer()
159 gm200_i2c_aux_fini(aux); in gm200_i2c_aux_xfer()
173 struct gm200_i2c_aux *aux; in gm200_i2c_aux_new() local
175 if (!(aux = kzalloc(sizeof(*aux), GFP_KERNEL))) in gm200_i2c_aux_new()
177 *paux = &aux->base; in gm200_i2c_aux_new()
179 nvkm_i2c_aux_ctor(&gm200_i2c_aux_func, pad, index, &aux->base); in gm200_i2c_aux_new()
180 aux->ch = drive; in gm200_i2c_aux_new()
181 aux->base.intr = 1 << aux->ch; in gm200_i2c_aux_new()