/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-alsa.h | 28 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); local 29 mutex_lock(&itv->serialize_lock); 34 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); local 35 mutex_unlock(&itv->serialize_lock);
|
H A D | ivtv-controls.c | 16 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); local 19 if (fmt && itv->vbi.sliced_mpeg_data[0] == NULL) { 24 itv->vbi.sliced_mpeg_data[i] = kmalloc(2049, GFP_KERNEL); 25 if (itv->vbi.sliced_mpeg_data[i] == NULL) { 27 kfree(itv->vbi.sliced_mpeg_data[i]); 28 itv->vbi.sliced_mpeg_data[i] = NULL; 35 itv->vbi.insert_mpeg = fmt; 37 if (itv->vbi.insert_mpeg == 0) { 41 if (ivtv_get_service_set(itv->vbi.sliced_in) == 0) { 42 if (itv 53 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); local 70 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); local 81 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); local 94 ivtv_g_pts_frame(struct ivtv *itv, s64 *pts, s64 *frame) argument 122 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); local 136 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); local [all...] |
H A D | ivtv-controls.h | 14 int ivtv_g_pts_frame(struct ivtv *itv, s64 *pts, s64 *frame);
|
H A D | ivtv-fileops.c | 34 struct ivtv *itv = id->itv; local 35 struct ivtv_stream *s = &itv->streams[type]; 61 ivtv_clear_irq_mask(itv, IVTV_IRQ_DEC_VBI_RE_INSERT); 71 itv->vbi.insert_mpeg && !ivtv_raw_vbi(itv)) { 76 s_vbi = &itv->streams[vbi_type]; 81 ivtv_clear_irq_mask(itv, IVTV_IRQ_DEC_VBI_RE_INSERT); 93 struct ivtv *itv = s->itv; local 140 ivtv_dualwatch(struct ivtv *itv) argument 161 ivtv_update_pgm_info(struct ivtv *itv) argument 195 struct ivtv *itv = s->itv; local 277 ivtv_setup_sliced_vbi_buf(struct ivtv *itv) argument 289 struct ivtv *itv = s->itv; local 348 struct ivtv *itv = s->itv; local 407 struct ivtv *itv = s->itv; local 417 struct ivtv *itv = id->itv; local 496 struct ivtv *itv = id->itv; local 513 struct ivtv *itv = id->itv; local 539 struct ivtv *itv = id->itv; local 711 struct ivtv *itv = id->itv; local 724 struct ivtv *itv = id->itv; local 759 struct ivtv *itv = id->itv; local 798 struct ivtv *itv = id->itv; local 837 struct ivtv *itv = id->itv; local 870 struct ivtv *itv = id->itv; local 935 struct ivtv *itv = s->itv; local 1046 ivtv_mute(struct ivtv *itv) argument 1053 ivtv_unmute(struct ivtv *itv) argument [all...] |
H A D | ivtv-fileops.h | 24 void ivtv_mute(struct ivtv *itv); 25 void ivtv_unmute(struct ivtv *itv);
|
H A D | ivtv-firmware.c | 40 static int load_fw_direct(const char *fn, volatile u8 __iomem *mem, struct ivtv *itv, long size) argument 46 if (retries && request_firmware(&fw, fn, &itv->pdev->dev) == 0) { 76 void ivtv_halt_firmware(struct ivtv *itv) argument 79 if (itv->has_cx23415 && itv->dec_mbox.mbox) 80 ivtv_vapi(itv, CX2341X_DEC_HALT_FW, 0); 81 if (itv->enc_mbox.mbox) 82 ivtv_vapi(itv, CX2341X_ENC_HALT_FW, 0); 85 itv->enc_mbox.mbox = itv 128 ivtv_firmware_versions(struct ivtv *itv) argument 146 ivtv_firmware_copy(struct ivtv *itv) argument 183 ivtv_firmware_init(struct ivtv *itv) argument 232 ivtv_init_mpeg_decoder(struct ivtv *itv) argument 267 ivtv_firmware_restart(struct ivtv *itv) argument 323 ivtv_firmware_check(struct ivtv *itv, char *where) argument [all...] |
H A D | ivtv-firmware.h | 13 int ivtv_firmware_init(struct ivtv *itv); 14 void ivtv_firmware_versions(struct ivtv *itv); 15 void ivtv_halt_firmware(struct ivtv *itv); 16 void ivtv_init_mpeg_decoder(struct ivtv *itv); 17 int ivtv_firmware_check(struct ivtv *itv, char *where);
|
H A D | ivtv-gpio.h | 13 int ivtv_gpio_init(struct ivtv *itv); 14 void ivtv_reset_ir_gpio(struct ivtv *itv);
|
H A D | ivtv-ioctl.h | 15 void ivtv_set_osd_alpha(struct ivtv *itv); 16 int ivtv_set_speed(struct ivtv *itv, int speed); 18 void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id std); 19 void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std);
|
H A D | ivtv-irq.c | 29 static void ivtv_pcm_work_handler(struct ivtv *itv) argument 31 struct ivtv_stream *s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; 50 itv->pcm_announce_callback(itv->alsa, 58 static void ivtv_pio_work_handler(struct ivtv *itv) argument 60 struct ivtv_stream *s = &itv->streams[itv->cur_pio_stream]; 65 if (itv->cur_pio_stream < 0 || itv->cur_pio_stream >= IVTV_MAX_STREAMS || 67 itv 92 struct ivtv *itv = container_of(work, struct ivtv, irq_work); local 113 struct ivtv *itv = s->itv; local 248 struct ivtv *itv = s->itv; local 339 struct ivtv *itv = s->itv; local 416 struct ivtv *itv = s->itv; local 432 struct ivtv *itv = s->itv; local 449 struct ivtv *itv = s->itv; local 510 struct ivtv *itv = s->itv; local 527 ivtv_irq_dma_read(struct ivtv *itv) argument 592 ivtv_irq_enc_dma_complete(struct ivtv *itv) argument 641 ivtv_irq_enc_pio_complete(struct ivtv *itv) argument 668 ivtv_irq_dma_err(struct ivtv *itv) argument 742 ivtv_irq_enc_start_cap(struct ivtv *itv) argument 762 ivtv_irq_enc_vbi_cap(struct ivtv *itv) argument 774 ivtv_irq_dec_vbi_reinsert(struct ivtv *itv) argument 786 ivtv_irq_dec_data_req(struct ivtv *itv) argument 822 ivtv_irq_vsync(struct ivtv *itv) argument 920 struct ivtv *itv = (struct ivtv *)dev_id; local 1067 struct ivtv *itv = from_timer(itv, t, dma_timer); local [all...] |
H A D | ivtv-mailbox.h | 17 int ivtv_api(struct ivtv *itv, int cmd, int args, u32 data[]); 18 int ivtv_vapi_result(struct ivtv *itv, u32 data[CX2341X_MBOX_MAX_DATA], int cmd, int args, ...); 19 int ivtv_vapi(struct ivtv *itv, int cmd, int args, ...); 21 void ivtv_mailbox_cache_invalidate(struct ivtv *itv);
|
H A D | ivtv-routing.c | 22 void ivtv_audio_set_io(struct ivtv *itv) argument 28 if (test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags)) 29 in = &itv->card->radio_input; 31 in = &itv->card->audio_inputs[itv->audio_input]; 35 if (itv->card->hw_muxer & IVTV_HW_M52790) 37 v4l2_subdev_call(itv->sd_muxer, audio, s_routing, 42 if (itv->card->hw_audio & IVTV_HW_MSP34XX) 44 ivtv_call_hw(itv, itv 50 ivtv_video_set_io(struct ivtv *itv) argument [all...] |
H A D | ivtv-routing.h | 12 void ivtv_audio_set_io(struct ivtv *itv); 13 void ivtv_video_set_io(struct ivtv *itv);
|
H A D | ivtv-streams.h | 12 int ivtv_streams_setup(struct ivtv *itv); 13 int ivtv_streams_register(struct ivtv *itv); 14 void ivtv_streams_cleanup(struct ivtv *itv); 22 void ivtv_stop_all_captures(struct ivtv *itv); 23 int ivtv_passthrough_mode(struct ivtv *itv, int enable);
|
H A D | ivtv-vbi.h | 12 ivtv_write_vbi_from_user(struct ivtv *itv, 15 void ivtv_process_vbi_data(struct ivtv *itv, struct ivtv_buffer *buf, 17 int ivtv_used_line(struct ivtv *itv, int line, int field); 18 void ivtv_disable_cc(struct ivtv *itv); 20 void ivtv_vbi_work_handler(struct ivtv *itv);
|
H A D | ivtv-yuv.h | 24 int ivtv_yuv_filter_check(struct ivtv *itv); 25 void ivtv_yuv_setup_stream_frame(struct ivtv *itv); 26 int ivtv_yuv_udma_stream_frame(struct ivtv *itv, void __user *src); 27 void ivtv_yuv_frame_complete(struct ivtv *itv); 28 int ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args); 29 void ivtv_yuv_close(struct ivtv *itv); 30 void ivtv_yuv_work_handler(struct ivtv *itv);
|
H A D | ivtv-alsa-main.c | 92 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); local 100 itv->instance); 105 itv->instance, itv->card_name); 112 struct ivtv *itv = to_ivtv(v4l2_dev); local 120 /* This is a no-op for us. We'll use the itv->instance */ 124 idx = index[itv->instance] == -1 ? SNDRV_DEFAULT_IDX1 : index[itv->instance]; 125 ret = snd_card_new(&itv->pdev->dev, 157 itv 181 ivtv_alsa_load(struct ivtv *itv) argument 228 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); local [all...] |
H A D | ivtv-alsa-pcm.c | 136 struct ivtv *itv = to_ivtv(v4l2_dev); local 144 if (ivtv_init_on_first_open(itv)) { 149 s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; 152 item.itv = itv; 174 runtime->private_data = itv; 176 itv->pcm_announce_callback = ivtv_alsa_announce_pcm_data; 190 struct ivtv *itv = to_ivtv(v4l2_dev); local 195 s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; 201 itv 249 struct ivtv *itv = to_ivtv(v4l2_dev); local [all...] |
H A D | ivtv-cards.c | 1293 int ivtv_get_input(struct ivtv *itv, u16 index, struct v4l2_input *input) argument 1295 const struct ivtv_card_video_input *card_input = itv->card->video_inputs + index; 1305 if (index >= itv->nof_inputs) 1312 input->audioset = (1 << itv->nof_audio_inputs) - 1; 1314 itv->tuner_std : V4L2_STD_ALL; 1318 int ivtv_get_output(struct ivtv *itv, u16 index, struct v4l2_output *output) argument 1320 const struct ivtv_card_output *card_output = itv->card->video_outputs + index; 1322 if (index >= itv->card->nof_outputs) 1332 int ivtv_get_audio_input(struct ivtv *itv, u16 index, struct v4l2_audio *audio) argument 1334 const struct ivtv_card_audio_input *aud_input = itv 1351 ivtv_get_audio_output(struct ivtv *itv, u16 index, struct v4l2_audioout *aud_output) argument [all...] |
H A D | ivtv-cards.h | 308 int ivtv_get_input(struct ivtv *itv, u16 index, struct v4l2_input *input); 309 int ivtv_get_output(struct ivtv *itv, u16 index, struct v4l2_output *output); 310 int ivtv_get_audio_input(struct ivtv *itv, u16 index, struct v4l2_audio *input); 311 int ivtv_get_audio_output(struct ivtv *itv, u16 index, struct v4l2_audioout *output);
|
H A D | ivtv-driver.c | 310 void ivtv_clear_irq_mask(struct ivtv *itv, u32 mask) argument 312 itv->irqmask &= ~mask; 313 write_reg_sync(itv->irqmask, IVTV_REG_IRQMASK); 316 void ivtv_set_irq_mask(struct ivtv *itv, u32 mask) argument 318 itv->irqmask |= mask; 319 write_reg_sync(itv->irqmask, IVTV_REG_IRQMASK); 322 int ivtv_set_output_mode(struct ivtv *itv, int mode) argument 326 spin_lock(&itv->lock); 327 old_mode = itv->output_mode; 329 itv 334 ivtv_get_output_stream(struct ivtv *itv) argument 375 ivtv_iounmap(struct ivtv *itv) argument 402 ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) argument 411 ivtv_process_eeprom(struct ivtv *itv) argument 545 ivtv_parse_std(struct ivtv *itv) argument 638 ivtv_process_options(struct ivtv *itv) argument 735 ivtv_init_struct1(struct ivtv *itv) argument 797 ivtv_init_struct2(struct ivtv *itv) argument 828 ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev, const struct pci_device_id *pci_id) argument 905 ivtv_load_and_init_modules(struct ivtv *itv) argument 999 struct ivtv *itv; local 1299 ivtv_init_on_first_open(struct ivtv *itv) argument 1394 struct ivtv *itv = to_ivtv(v4l2_dev); local [all...] |
H A D | ivtv-driver.h | 143 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \ 159 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \ 173 #define IVTV_ERR(fmt, args...) v4l2_err(&itv->v4l2_dev, fmt , ## args) 174 #define IVTV_WARN(fmt, args...) v4l2_warn(&itv->v4l2_dev, fmt , ## args) 175 #define IVTV_INFO(fmt, args...) v4l2_info(&itv->v4l2_dev, fmt , ## args) 330 struct ivtv *itv; /* for ease of use */ member in struct:ivtv_stream 383 struct ivtv *itv; member in struct:ivtv_open_id 754 void (*ivtvfb_restore)(struct ivtv *itv); /* Used for a warm start */ 771 void ivtv_set_irq_mask(struct ivtv *itv, u32 mask); 772 void ivtv_clear_irq_mask(struct ivtv *itv, u3 794 ivtv_raw_vbi(const struct ivtv *itv) argument [all...] |
H A D | ivtv-gpio.c | 94 void ivtv_reset_ir_gpio(struct ivtv *itv) argument 98 if (itv->card->type != IVTV_CARD_PVR_150) 119 struct ivtv *itv = algo->data; local 126 curout &= ~(1 << itv->card->xceive_pin); 130 curout |= 1 << itv->card->xceive_pin; 148 struct ivtv *itv = sd_to_ivtv(sd); local 151 mask = itv->card->gpio_audio_freq.mask; 154 data = itv->card->gpio_audio_freq.f32000; 157 data = itv->card->gpio_audio_freq.f44100; 161 data = itv 171 struct ivtv *itv = sd_to_ivtv(sd); local 185 struct ivtv *itv = sd_to_ivtv(sd); local 212 struct ivtv *itv = sd_to_ivtv(sd); local 225 struct ivtv *itv = sd_to_ivtv(sd); local 251 struct ivtv *itv = sd_to_ivtv(sd); local 269 struct ivtv *itv = sd_to_ivtv(sd); local 281 struct ivtv *itv = sd_to_ivtv(sd); local 328 ivtv_gpio_init(struct ivtv *itv) argument [all...] |
H A D | ivtv-i2c.c | 163 static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr) argument 166 struct i2c_adapter *adap = &itv->i2c_adap; 167 struct IR_i2c_init_data *init_data = &itv->ir_i2c_init_data; 171 if (itv->hw_flags & IVTV_HW_IR_ANY) 188 init_data->name = itv->card_name; 196 init_data->name = itv->card_name; 200 init_data->name = itv->card_name; 216 void ivtv_i2c_new_ir_legacy(struct ivtv *itv) argument 238 i2c_new_scanned_device(&itv->i2c_adap, &info, addr_list, NULL); 241 int ivtv_i2c_register(struct ivtv *itv, unsigne argument 303 ivtv_find_hw(struct ivtv *itv, u32 hw) argument 320 ivtv_setscl(struct ivtv *itv, int state) argument 328 ivtv_setsda(struct ivtv *itv, int state) argument 336 ivtv_getscl(struct ivtv *itv) argument 342 ivtv_getsda(struct ivtv *itv) argument 348 ivtv_scldelay(struct ivtv *itv) argument 357 ivtv_waitscl(struct ivtv *itv, int val) argument 370 ivtv_waitsda(struct ivtv *itv, int val) argument 383 ivtv_ack(struct ivtv *itv) argument 411 ivtv_sendbyte(struct ivtv *itv, unsigned char byte) argument 444 ivtv_readbyte(struct ivtv *itv, unsigned char *byte, int nack) argument 476 ivtv_start(struct ivtv *itv) argument 502 ivtv_stop(struct ivtv *itv) argument 539 ivtv_write(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len, int do_stop) argument 562 ivtv_read(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len) argument 587 struct ivtv *itv = to_ivtv(v4l2_dev); local 627 struct ivtv *itv = (struct ivtv *)data; local 641 struct ivtv *itv = (struct ivtv *)data; local 655 struct ivtv *itv = (struct ivtv *)data; local 662 struct ivtv *itv = (struct ivtv *)data; local 691 init_ivtv_i2c(struct ivtv *itv) argument 734 exit_ivtv_i2c(struct ivtv *itv) argument [all...] |
H A D | ivtv-i2c.h | 12 void ivtv_i2c_new_ir_legacy(struct ivtv *itv); 13 int ivtv_i2c_register(struct ivtv *itv, unsigned idx); 14 struct v4l2_subdev *ivtv_find_hw(struct ivtv *itv, u32 hw); 17 int init_ivtv_i2c(struct ivtv *itv); 18 void exit_ivtv_i2c(struct ivtv *itv);
|