Lines Matching refs:mode
27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument
29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked()
30 (mode == NVKM_I2C_PAD_I2C) ? "i2c" : "off"); in nvkm_i2c_pad_mode_locked()
31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked()
32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked()
36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument
38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode()
40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode()
41 pad->mode = mode; in nvkm_i2c_pad_mode()
49 if (pad->mode == NVKM_I2C_PAD_OFF) in nvkm_i2c_pad_release()
50 nvkm_i2c_pad_mode_locked(pad, pad->mode); in nvkm_i2c_pad_release()
55 nvkm_i2c_pad_acquire(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_acquire() argument
59 if (pad->mode != mode) { in nvkm_i2c_pad_acquire()
60 if (pad->mode != NVKM_I2C_PAD_OFF) { in nvkm_i2c_pad_acquire()
64 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_acquire()
80 nvkm_i2c_pad_mode_locked(pad, pad->mode); in nvkm_i2c_pad_init()
102 pad->mode = NVKM_I2C_PAD_OFF; in nvkm_i2c_pad_ctor()