Lines Matching refs:go
136 static int saa7134_go7007_interface_reset(struct go7007 *go) in saa7134_go7007_interface_reset() argument
138 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_interface_reset()
172 if (go7007_read_interrupt(go, &intr_val, &intr_data) < 0 || in saa7134_go7007_interface_reset()
180 static int saa7134_go7007_write_interrupt(struct go7007 *go, int addr, int data) in saa7134_go7007_write_interrupt() argument
182 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_write_interrupt()
208 static int saa7134_go7007_read_interrupt(struct go7007 *go) in saa7134_go7007_read_interrupt() argument
210 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_read_interrupt()
214 go->interrupt_available = 1; in saa7134_go7007_read_interrupt()
215 gpio_read(dev, HPI_ADDR_INTR_RET_VALUE, &go->interrupt_value); in saa7134_go7007_read_interrupt()
216 gpio_read(dev, HPI_ADDR_INTR_RET_DATA, &go->interrupt_data); in saa7134_go7007_read_interrupt()
219 go->interrupt_value, go->interrupt_data); in saa7134_go7007_read_interrupt()
227 struct go7007 *go = video_get_drvdata(dev->empress_dev); in saa7134_go7007_irq_ts_done() local
228 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_irq_ts_done()
230 if (!vb2_is_streaming(&go->vidq)) in saa7134_go7007_irq_ts_done()
238 go7007_parse_video_stream(go, saa->bottom, PAGE_SIZE); in saa7134_go7007_irq_ts_done()
243 go7007_parse_video_stream(go, saa->top, PAGE_SIZE); in saa7134_go7007_irq_ts_done()
248 static int saa7134_go7007_stream_start(struct go7007 *go) in saa7134_go7007_stream_start() argument
250 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_stream_start()
306 static int saa7134_go7007_stream_stop(struct go7007 *go) in saa7134_go7007_stream_stop() argument
308 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_stream_stop()
335 static int saa7134_go7007_send_firmware(struct go7007 *go, u8 *data, int len) in saa7134_go7007_send_firmware() argument
337 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_send_firmware()
412 struct go7007 *go; in saa7134_go7007_init() local
418 go = go7007_alloc(&board_voyager, &dev->pci->dev); in saa7134_go7007_init()
419 if (go == NULL) in saa7134_go7007_init()
424 kfree(go); in saa7134_go7007_init()
428 go->board_id = GO7007_BOARDID_PCI_VOYAGER; in saa7134_go7007_init()
429 snprintf(go->bus_info, sizeof(go->bus_info), "PCI:%s", pci_name(dev->pci)); in saa7134_go7007_init()
430 strscpy(go->name, saa7134_boards[dev->board].name, sizeof(go->name)); in saa7134_go7007_init()
431 go->hpi_ops = &saa7134_go7007_hpi_ops; in saa7134_go7007_init()
432 go->hpi_context = saa; in saa7134_go7007_init()
450 if (go7007_boot_encoder(go, go->board_info->flags & in saa7134_go7007_init()
456 if (go7007_register_encoder(go, go->board_info->num_i2c_devs) < 0) in saa7134_go7007_init()
460 if (v4l2_device_register_subdev(&go->v4l2_dev, sd) < 0) in saa7134_go7007_init()
463 dev->empress_dev = &go->vdev; in saa7134_go7007_init()
465 go->status = STATUS_ONLINE; in saa7134_go7007_init()
474 kfree(go); in saa7134_go7007_init()
480 struct go7007 *go; in saa7134_go7007_fini() local
486 go = video_get_drvdata(dev->empress_dev); in saa7134_go7007_fini()
487 if (go->audio_enabled) in saa7134_go7007_fini()
488 go7007_snd_remove(go); in saa7134_go7007_fini()
490 saa = go->hpi_context; in saa7134_go7007_fini()
491 go->status = STATUS_SHUTDOWN; in saa7134_go7007_fini()
496 vb2_video_unregister_device(&go->vdev); in saa7134_go7007_fini()
498 v4l2_device_put(&go->v4l2_dev); in saa7134_go7007_fini()