Lines Matching full:aux
25 #include "aux.h"
78 struct nvkm_i2c_aux *aux; in nvkm_i2c_aux_find() local
80 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find()
81 if (aux->id == id) in nvkm_i2c_aux_find()
82 return aux; in nvkm_i2c_aux_find()
92 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); in nvkm_i2c_intr_fini() local
93 if (aux) in nvkm_i2c_intr_fini()
94 i2c->func->aux_mask(i2c, type, aux->intr, 0); in nvkm_i2c_intr_fini()
101 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); in nvkm_i2c_intr_init() local
102 if (aux) in nvkm_i2c_intr_init()
103 i2c->func->aux_mask(i2c, type, aux->intr, aux->intr); in nvkm_i2c_intr_init()
116 struct nvkm_i2c_aux *aux; in nvkm_i2c_intr() local
126 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_intr()
128 if (hi & aux->intr) mask |= NVKM_I2C_PLUG; in nvkm_i2c_intr()
129 if (lo & aux->intr) mask |= NVKM_I2C_UNPLUG; in nvkm_i2c_intr()
130 if (rq & aux->intr) mask |= NVKM_I2C_IRQ; in nvkm_i2c_intr()
131 if (tx & aux->intr) mask |= NVKM_I2C_DONE; in nvkm_i2c_intr()
133 nvkm_event_ntfy(&i2c->event, aux->id, mask); in nvkm_i2c_intr()
143 struct nvkm_i2c_aux *aux; in nvkm_i2c_fini() local
146 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_fini()
147 nvkm_i2c_aux_fini(aux); in nvkm_i2c_fini()
154 if ((mask = (1 << i2c->func->aux) - 1), i2c->func->aux_stat) { in nvkm_i2c_fini()
191 struct nvkm_i2c_aux *aux; in nvkm_i2c_init() local
201 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_init()
202 nvkm_i2c_aux_init(aux); in nvkm_i2c_init()
215 while (!list_empty(&i2c->aux)) { in nvkm_i2c_dtor()
216 struct nvkm_i2c_aux *aux = in nvkm_i2c_dtor() local
217 list_first_entry(&i2c->aux, typeof(*aux), head); in nvkm_i2c_dtor()
218 nvkm_i2c_aux_del(&aux); in nvkm_i2c_dtor()
263 struct nvkm_i2c_aux *aux; in nvkm_i2c_new_() local
276 INIT_LIST_HEAD(&i2c->aux); in nvkm_i2c_new_()
282 struct nvkm_i2c_aux *aux = NULL; in nvkm_i2c_new_() local
328 ccbE.auxch, &aux); in nvkm_i2c_new_()
334 nvkm_error(&i2c->subdev, "ccb %02x aux, %d\n", i, ret); in nvkm_i2c_new_()
335 nvkm_i2c_aux_del(&aux); in nvkm_i2c_new_()
338 if (ccbE.type != DCB_I2C_UNUSED && !bus && !aux) { in nvkm_i2c_new_()
387 /* create any i2c bus / aux channel required by the output */ in nvkm_i2c_new_()
390 struct nvkm_i2c_aux *aux = NULL; in nvkm_i2c_new_() local
391 ret = pad->func->aux_new_6(pad, id, 0, &aux); in nvkm_i2c_new_()
393 nvkm_error(&i2c->subdev, "dcb %02x aux, %d\n", in nvkm_i2c_new_()
395 nvkm_i2c_aux_del(&aux); in nvkm_i2c_new_()
411 list_for_each_entry(aux, &i2c->aux, head) in nvkm_i2c_new_()
412 ids = max(ids, aux->id + 1); in nvkm_i2c_new_()