Lines Matching refs:gma_encoder
395 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_intel_lvds_get_modes() local
399 ret = psb_intel_ddc_get_modes(connector, &gma_encoder->i2c_bus->adapter); in cdv_intel_lvds_get_modes()
423 struct gma_encoder *gma_encoder = gma_attached_encoder(connector); in cdv_intel_lvds_destroy() local
425 psb_intel_i2c_destroy(gma_encoder->i2c_bus); in cdv_intel_lvds_destroy()
585 struct gma_encoder *gma_encoder; in cdv_intel_lvds_init() local
603 gma_encoder = kzalloc(sizeof(struct gma_encoder), in cdv_intel_lvds_init()
605 if (!gma_encoder) in cdv_intel_lvds_init()
617 gma_encoder->dev_priv = lvds_priv; in cdv_intel_lvds_init()
622 encoder = &gma_encoder->base; in cdv_intel_lvds_init()
634 gma_connector_attach_encoder(gma_connector, gma_encoder); in cdv_intel_lvds_init()
635 gma_encoder->type = INTEL_OUTPUT_LVDS; in cdv_intel_lvds_init()
656 gma_encoder->i2c_bus = psb_intel_i2c_create(dev, in cdv_intel_lvds_init()
659 if (!gma_encoder->i2c_bus) { in cdv_intel_lvds_init()
664 gma_encoder->i2c_bus->slave_addr = 0x2C; in cdv_intel_lvds_init()
665 dev_priv->lvds_i2c_bus = gma_encoder->i2c_bus; in cdv_intel_lvds_init()
678 gma_encoder->ddc_bus = psb_intel_i2c_create(dev, in cdv_intel_lvds_init()
681 if (!gma_encoder->ddc_bus) { in cdv_intel_lvds_init()
693 &gma_encoder->ddc_bus->adapter); in cdv_intel_lvds_init()
759 psb_intel_i2c_destroy(gma_encoder->ddc_bus); in cdv_intel_lvds_init()
762 psb_intel_i2c_destroy(gma_encoder->i2c_bus); in cdv_intel_lvds_init()
771 kfree(gma_encoder); in cdv_intel_lvds_init()