Lines Matching refs:gma_encoder
409 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_intel_lvds_get_modes() local
413 ret = psb_intel_ddc_get_modes(connector, &gma_encoder->i2c_bus->adapter); in cdv_intel_lvds_get_modes()
445 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_intel_lvds_destroy() local
447 if (gma_encoder->i2c_bus) in cdv_intel_lvds_destroy()
448 psb_intel_i2c_destroy(gma_encoder->i2c_bus); in cdv_intel_lvds_destroy()
611 struct gma_encoder *gma_encoder; in cdv_intel_lvds_init() local
629 gma_encoder = kzalloc(sizeof(struct gma_encoder), in cdv_intel_lvds_init()
631 if (!gma_encoder) in cdv_intel_lvds_init()
643 gma_encoder->dev_priv = lvds_priv; in cdv_intel_lvds_init()
646 encoder = &gma_encoder->base; in cdv_intel_lvds_init()
658 gma_connector_attach_encoder(gma_connector, gma_encoder); in cdv_intel_lvds_init()
659 gma_encoder->type = INTEL_OUTPUT_LVDS; in cdv_intel_lvds_init()
680 gma_encoder->i2c_bus = psb_intel_i2c_create(dev, in cdv_intel_lvds_init()
683 if (!gma_encoder->i2c_bus) { in cdv_intel_lvds_init()
688 gma_encoder->i2c_bus->slave_addr = 0x2C; in cdv_intel_lvds_init()
689 dev_priv->lvds_i2c_bus = gma_encoder->i2c_bus; in cdv_intel_lvds_init()
702 gma_encoder->ddc_bus = psb_intel_i2c_create(dev, in cdv_intel_lvds_init()
705 if (!gma_encoder->ddc_bus) { in cdv_intel_lvds_init()
717 &gma_encoder->ddc_bus->adapter); in cdv_intel_lvds_init()
783 if (gma_encoder->ddc_bus) in cdv_intel_lvds_init()
784 psb_intel_i2c_destroy(gma_encoder->ddc_bus); in cdv_intel_lvds_init()
787 if (gma_encoder->i2c_bus) in cdv_intel_lvds_init()
788 psb_intel_i2c_destroy(gma_encoder->i2c_bus); in cdv_intel_lvds_init()
797 kfree(gma_encoder); in cdv_intel_lvds_init()