Lines Matching refs:aux

79 	struct nvkm_i2c_aux *aux;  in nvkm_i2c_aux_find()  local
81 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find()
82 if (aux->id == id) in nvkm_i2c_aux_find()
83 return aux; in nvkm_i2c_aux_find()
93 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); in nvkm_i2c_intr_fini() local
94 if (aux) in nvkm_i2c_intr_fini()
95 i2c->func->aux_mask(i2c, type, aux->intr, 0); in nvkm_i2c_intr_fini()
102 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); in nvkm_i2c_intr_init() local
103 if (aux) in nvkm_i2c_intr_init()
104 i2c->func->aux_mask(i2c, type, aux->intr, aux->intr); in nvkm_i2c_intr_init()
132 struct nvkm_i2c_aux *aux; in nvkm_i2c_intr() local
142 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_intr()
144 if (hi & aux->intr) mask |= NVKM_I2C_PLUG; in nvkm_i2c_intr()
145 if (lo & aux->intr) mask |= NVKM_I2C_UNPLUG; in nvkm_i2c_intr()
146 if (rq & aux->intr) mask |= NVKM_I2C_IRQ; in nvkm_i2c_intr()
147 if (tx & aux->intr) mask |= NVKM_I2C_DONE; in nvkm_i2c_intr()
152 nvkm_event_send(&i2c->event, rep.mask, aux->id, in nvkm_i2c_intr()
164 struct nvkm_i2c_aux *aux; in nvkm_i2c_fini() local
167 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_fini()
168 nvkm_i2c_aux_fini(aux); in nvkm_i2c_fini()
175 if ((mask = (1 << i2c->func->aux) - 1), i2c->func->aux_stat) { in nvkm_i2c_fini()
212 struct nvkm_i2c_aux *aux; in nvkm_i2c_init() local
222 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_init()
223 nvkm_i2c_aux_init(aux); in nvkm_i2c_init()
236 while (!list_empty(&i2c->aux)) { in nvkm_i2c_dtor()
237 struct nvkm_i2c_aux *aux = in nvkm_i2c_dtor() local
238 list_first_entry(&i2c->aux, typeof(*aux), head); in nvkm_i2c_dtor()
239 nvkm_i2c_aux_del(&aux); in nvkm_i2c_dtor()
296 INIT_LIST_HEAD(&i2c->aux); in nvkm_i2c_new_()
302 struct nvkm_i2c_aux *aux = NULL; in nvkm_i2c_new_() local
348 ccbE.auxch, &aux); in nvkm_i2c_new_()
355 nvkm_i2c_aux_del(&aux); in nvkm_i2c_new_()
358 if (ccbE.type != DCB_I2C_UNUSED && !bus && !aux) { in nvkm_i2c_new_()
410 struct nvkm_i2c_aux *aux = NULL; in nvkm_i2c_new_() local
411 ret = pad->func->aux_new_6(pad, id, 0, &aux); in nvkm_i2c_new_()
415 nvkm_i2c_aux_del(&aux); in nvkm_i2c_new_()