Lines Matching refs:tfp410_encoder
52 struct tfp410_encoder { struct
57 #define to_tfp410_encoder(x) container_of(x, struct tfp410_encoder, base) argument
61 struct tfp410_encoder *tfp410_encoder = to_tfp410_encoder(encoder); in tfp410_encoder_dpms() local
63 if (tfp410_encoder->dpms == mode) in tfp410_encoder_dpms()
68 gpio_direction_output(tfp410_encoder->mod->gpio, 1); in tfp410_encoder_dpms()
71 gpio_direction_output(tfp410_encoder->mod->gpio, 0); in tfp410_encoder_dpms()
74 tfp410_encoder->dpms = mode; in tfp410_encoder_dpms()
108 struct tfp410_encoder *tfp410_encoder; in tfp410_encoder_create() local
112 tfp410_encoder = devm_kzalloc(dev->dev, sizeof(*tfp410_encoder), in tfp410_encoder_create()
114 if (!tfp410_encoder) in tfp410_encoder_create()
117 tfp410_encoder->dpms = DRM_MODE_DPMS_OFF; in tfp410_encoder_create()
118 tfp410_encoder->mod = mod; in tfp410_encoder_create()
120 encoder = &tfp410_encoder->base; in tfp410_encoder_create()