Lines Matching defs:dev

18 	struct au0828_dev *dev = priv;
20 au0828_set(dev, REG_000, 0x10);
22 au0828_clear(dev, REG_000, 0x10);
115 struct au0828_dev *dev = priv;
119 switch (dev->boardnr) {
127 au0828_clear(dev, REG_001, 2);
129 au0828_set(dev, REG_001, 2);
142 static void hauppauge_eeprom(struct au0828_dev *dev, u8 *eeprom_data)
147 dev->board.tuner_type = tv.tuner_type;
176 void au0828_card_analog_fe_setup(struct au0828_dev *dev);
178 void au0828_card_setup(struct au0828_dev *dev)
184 if (dev->i2c_rc == 0) {
185 dev->i2c_client.addr = 0xa0 >> 1;
186 tveeprom_read(&dev->i2c_client, eeprom, sizeof(eeprom));
189 switch (dev->boardnr) {
194 if (dev->i2c_rc == 0)
195 hauppauge_eeprom(dev, eeprom+0xa0);
199 au0828_card_analog_fe_setup(dev);
202 void au0828_card_analog_fe_setup(struct au0828_dev *dev)
213 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap,
220 if (dev->board.tuner_type != TUNER_ABSENT && dev->board.has_analog) {
222 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap,
223 "tuner", dev->board.tuner_addr, NULL);
228 tun_setup.type = dev->board.tuner_type;
229 tun_setup.addr = dev->board.tuner_addr;
231 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_type_addr,
242 void au0828_gpio_setup(struct au0828_dev *dev)
246 switch (dev->boardnr) {
262 au0828_write(dev, REG_003, 0x02);
263 au0828_write(dev, REG_002, 0x80 | 0x20 | 0x10);
266 au0828_write(dev, REG_001, 0x0);
267 au0828_write(dev, REG_000, 0x0);
271 au0828_write(dev, REG_000, 0x80);
276 au0828_write(dev, REG_001, 0x02); /* xc5000 */
277 au0828_write(dev, REG_000, 0x80 | 0x20); /* PS + au8522 */
289 au0828_write(dev, REG_003, 0x02);
290 au0828_write(dev, REG_002, 0xa0);
291 au0828_write(dev, REG_001, 0x0);
292 au0828_write(dev, REG_000, 0x0);
296 au0828_write(dev, REG_003, 0x02);
297 au0828_write(dev, REG_002, 0xa0);
298 au0828_write(dev, REG_001, 0x02);
299 au0828_write(dev, REG_000, 0xa0);