Lines Matching refs:dinfo
57 struct intelfb_info *dinfo = chan->dinfo; in intelfb_gpio_setscl() local
68 struct intelfb_info *dinfo = chan->dinfo; in intelfb_gpio_setsda() local
79 struct intelfb_info *dinfo = chan->dinfo; in intelfb_gpio_getscl() local
91 struct intelfb_info *dinfo = chan->dinfo; in intelfb_gpio_getsda() local
100 static int intelfb_setup_i2c_bus(struct intelfb_info *dinfo, in intelfb_setup_i2c_bus() argument
107 chan->dinfo = dinfo; in intelfb_setup_i2c_bus()
114 chan->adapter.dev.parent = &chan->dinfo->pdev->dev; in intelfb_setup_i2c_bus()
138 void intelfb_create_i2c_busses(struct intelfb_info *dinfo) in intelfb_create_i2c_busses() argument
143 dinfo->num_outputs = 1; in intelfb_create_i2c_busses()
144 dinfo->output[i].type = INTELFB_OUTPUT_ANALOG; in intelfb_create_i2c_busses()
147 intelfb_setup_i2c_bus(dinfo, &dinfo->output[i].ddc_bus, GPIOA, in intelfb_create_i2c_busses()
155 switch(dinfo->chipset) { in intelfb_create_i2c_busses()
161 dinfo->output[i].type = INTELFB_OUTPUT_DVO; in intelfb_create_i2c_busses()
162 intelfb_setup_i2c_bus(dinfo, &dinfo->output[i].ddc_bus, in intelfb_create_i2c_busses()
164 intelfb_setup_i2c_bus(dinfo, &dinfo->output[i].i2c_bus, in intelfb_create_i2c_busses()
177 dinfo->output[i].type = INTELFB_OUTPUT_SDVO; in intelfb_create_i2c_busses()
178 intelfb_setup_i2c_bus(dinfo, &dinfo->output[i].i2c_bus, in intelfb_create_i2c_busses()
185 dinfo->output[i].type = INTELFB_OUTPUT_SDVO; in intelfb_create_i2c_busses()
186 dinfo->output[i].i2c_bus = dinfo->output[i - 1].i2c_bus; in intelfb_create_i2c_busses()
192 dinfo->num_outputs = i; in intelfb_create_i2c_busses()
195 void intelfb_delete_i2c_busses(struct intelfb_info *dinfo) in intelfb_delete_i2c_busses() argument
200 if (dinfo->output[i].i2c_bus.dinfo) { in intelfb_delete_i2c_busses()
201 i2c_del_adapter(&dinfo->output[i].i2c_bus.adapter); in intelfb_delete_i2c_busses()
202 dinfo->output[i].i2c_bus.dinfo = NULL; in intelfb_delete_i2c_busses()
204 if (dinfo->output[i].ddc_bus.dinfo) { in intelfb_delete_i2c_busses()
205 i2c_del_adapter(&dinfo->output[i].ddc_bus.adapter); in intelfb_delete_i2c_busses()
206 dinfo->output[i].ddc_bus.dinfo = NULL; in intelfb_delete_i2c_busses()