Lines Matching defs:entry
157 nouveau_i2c_init(struct drm_device *dev, struct dcb_i2c_entry *entry, int index)
163 if (entry->chan)
166 if (dev_priv->card_type >= NV_50 && entry->read >= NV50_I2C_PORTS) {
167 NV_ERROR(dev, "unknown i2c port %d\n", entry->read);
175 switch (entry->port_type) {
181 i2c->rd = entry->read;
182 i2c->wr = entry->write;
189 i2c->rd = 0x600800 + entry->read;
190 i2c->wr = 0x600800 + entry->write;
197 i2c->rd = nv50_i2c_port[entry->read];
201 i2c->rd = entry->read;
202 i2c->wr = entry->write;
206 entry->port_type);
218 if (entry->port_type < 6) {
235 entry->chan = i2c;
240 nouveau_i2c_fini(struct drm_device *dev, struct dcb_i2c_entry *entry)
242 if (!entry->chan)
245 i2c_del_adapter(&entry->chan->adapter);
246 kfree(entry->chan);
247 entry->chan = NULL;
259 if (dev_priv->chipset >= NV_50 && (i2c->entry & 0x00000100)) {
266 reg += ((i2c->entry & 0x1e00) >> 9) * 0x50;