Lines Matching full:pad
27 #include "pad.h"
38 struct nvkm_i2c_pad *pad; in nvkm_i2c_pad_find() local
40 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find()
41 if (pad->id == id) in nvkm_i2c_pad_find()
42 return pad; in nvkm_i2c_pad_find()
162 struct nvkm_i2c_pad *pad; in nvkm_i2c_fini() local
180 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_fini()
181 nvkm_i2c_pad_fini(pad); in nvkm_i2c_fini()
192 struct nvkm_i2c_pad *pad; in nvkm_i2c_preinit() local
198 list_for_each_entry(pad, &i2c->pad, head) in nvkm_i2c_preinit()
199 nvkm_i2c_pad_init(pad); in nvkm_i2c_preinit()
211 struct nvkm_i2c_pad *pad; in nvkm_i2c_init() local
214 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_init()
215 nvkm_i2c_pad_init(pad); in nvkm_i2c_init()
248 while (!list_empty(&i2c->pad)) { in nvkm_i2c_dtor()
249 struct nvkm_i2c_pad *pad = in nvkm_i2c_dtor() local
250 list_first_entry(&i2c->pad, typeof(*pad), head); in nvkm_i2c_dtor()
251 nvkm_i2c_pad_del(&pad); in nvkm_i2c_dtor()
294 INIT_LIST_HEAD(&i2c->pad); in nvkm_i2c_new_()
300 struct nvkm_i2c_pad *pad = NULL; in nvkm_i2c_new_() local
310 if (!(pad = nvkm_i2c_pad_find(i2c, id))) in nvkm_i2c_new_()
311 ret = func->pad_s_new(i2c, id, &pad); in nvkm_i2c_new_()
315 ret = func->pad_x_new(i2c, NVKM_I2C_PAD_CCB(i), &pad); in nvkm_i2c_new_()
319 nvkm_error(&i2c->subdev, "ccb %02x pad, %d\n", i, ret); in nvkm_i2c_new_()
320 nvkm_i2c_pad_del(&pad); in nvkm_i2c_new_()
324 if (pad->func->bus_new_0 && ccbE.type == DCB_I2C_NV04_BIT) { in nvkm_i2c_new_()
325 ret = pad->func->bus_new_0(pad, NVKM_I2C_BUS_CCB(i), in nvkm_i2c_new_()
329 if (pad->func->bus_new_4 && in nvkm_i2c_new_()
334 ret = pad->func->bus_new_4(pad, NVKM_I2C_BUS_CCB(i), in nvkm_i2c_new_()
343 if (pad->func->aux_new_6 && in nvkm_i2c_new_()
347 ret = pad->func->aux_new_6(pad, NVKM_I2C_BUS_CCB(i), in nvkm_i2c_new_()
368 struct nvkm_i2c_pad *pad; in nvkm_i2c_new_() local
395 pad = nvkm_i2c_pad_find(i2c, NVKM_I2C_PAD_EXT(dcbE.extdev)); in nvkm_i2c_new_()
396 if (!pad) { in nvkm_i2c_new_()
398 ret = drv->pad_new(bus, id, drv->addr, &pad); in nvkm_i2c_new_()
400 nvkm_error(&i2c->subdev, "dcb %02x pad, %d\n", in nvkm_i2c_new_()
402 nvkm_i2c_pad_del(&pad); in nvkm_i2c_new_()
408 if (pad->func->aux_new_6 && dcbE.type == DCB_OUTPUT_DP) { in nvkm_i2c_new_()
411 ret = pad->func->aux_new_6(pad, id, 0, &aux); in nvkm_i2c_new_()
418 if (pad->func->bus_new_4) { in nvkm_i2c_new_()
421 ret = pad->func->bus_new_4(pad, id, 0, &bus); in nvkm_i2c_new_()