Home
last modified time | relevance | path

Searched refs:itv (Results 1 - 25 of 75) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/media/pci/ivtv/
H A Divtv-driver.c310 void ivtv_clear_irq_mask(struct ivtv *itv, u32 mask) in ivtv_clear_irq_mask() argument
312 itv->irqmask &= ~mask; in ivtv_clear_irq_mask()
313 write_reg_sync(itv->irqmask, IVTV_REG_IRQMASK); in ivtv_clear_irq_mask()
316 void ivtv_set_irq_mask(struct ivtv *itv, u32 mask) in ivtv_set_irq_mask() argument
318 itv->irqmask |= mask; in ivtv_set_irq_mask()
319 write_reg_sync(itv->irqmask, IVTV_REG_IRQMASK); in ivtv_set_irq_mask()
322 int ivtv_set_output_mode(struct ivtv *itv, int mode) in ivtv_set_output_mode() argument
326 spin_lock(&itv->lock); in ivtv_set_output_mode()
327 old_mode = itv->output_mode; in ivtv_set_output_mode()
329 itv in ivtv_set_output_mode()
334 ivtv_get_output_stream(struct ivtv *itv) ivtv_get_output_stream() argument
375 ivtv_iounmap(struct ivtv *itv) ivtv_iounmap() argument
402 ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) ivtv_read_eeprom() argument
411 ivtv_process_eeprom(struct ivtv *itv) ivtv_process_eeprom() argument
545 ivtv_parse_std(struct ivtv *itv) ivtv_parse_std() argument
638 ivtv_process_options(struct ivtv *itv) ivtv_process_options() argument
735 ivtv_init_struct1(struct ivtv *itv) ivtv_init_struct1() argument
797 ivtv_init_struct2(struct ivtv *itv) ivtv_init_struct2() argument
828 ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev, const struct pci_device_id *pci_id) ivtv_setup_pci() argument
905 ivtv_load_and_init_modules(struct ivtv *itv) ivtv_load_and_init_modules() argument
999 struct ivtv *itv; ivtv_probe() local
1299 ivtv_init_on_first_open(struct ivtv *itv) ivtv_init_on_first_open() argument
1394 struct ivtv *itv = to_ivtv(v4l2_dev); ivtv_remove() local
[all...]
H A Divtv-i2c.c163 static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr) in ivtv_i2c_new_ir() argument
166 struct i2c_adapter *adap = &itv->i2c_adap; in ivtv_i2c_new_ir()
167 struct IR_i2c_init_data *init_data = &itv->ir_i2c_init_data; in ivtv_i2c_new_ir()
171 if (itv->hw_flags & IVTV_HW_IR_ANY) in ivtv_i2c_new_ir()
188 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
196 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
200 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
216 void ivtv_i2c_new_ir_legacy(struct ivtv *itv) in ivtv_i2c_new_ir_legacy() argument
238 i2c_new_scanned_device(&itv->i2c_adap, &info, addr_list, NULL); in ivtv_i2c_new_ir_legacy()
241 int ivtv_i2c_register(struct ivtv *itv, unsigne argument
303 ivtv_find_hw(struct ivtv *itv, u32 hw) ivtv_find_hw() argument
320 ivtv_setscl(struct ivtv *itv, int state) ivtv_setscl() argument
328 ivtv_setsda(struct ivtv *itv, int state) ivtv_setsda() argument
336 ivtv_getscl(struct ivtv *itv) ivtv_getscl() argument
342 ivtv_getsda(struct ivtv *itv) ivtv_getsda() argument
348 ivtv_scldelay(struct ivtv *itv) ivtv_scldelay() argument
357 ivtv_waitscl(struct ivtv *itv, int val) ivtv_waitscl() argument
370 ivtv_waitsda(struct ivtv *itv, int val) ivtv_waitsda() argument
383 ivtv_ack(struct ivtv *itv) ivtv_ack() argument
411 ivtv_sendbyte(struct ivtv *itv, unsigned char byte) ivtv_sendbyte() argument
444 ivtv_readbyte(struct ivtv *itv, unsigned char *byte, int nack) ivtv_readbyte() argument
476 ivtv_start(struct ivtv *itv) ivtv_start() argument
502 ivtv_stop(struct ivtv *itv) ivtv_stop() argument
539 ivtv_write(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len, int do_stop) ivtv_write() argument
562 ivtv_read(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len) ivtv_read() argument
587 struct ivtv *itv = to_ivtv(v4l2_dev); ivtv_xfer() local
627 struct ivtv *itv = (struct ivtv *)data; ivtv_setscl_old() local
641 struct ivtv *itv = (struct ivtv *)data; ivtv_setsda_old() local
655 struct ivtv *itv = (struct ivtv *)data; ivtv_getscl_old() local
662 struct ivtv *itv = (struct ivtv *)data; ivtv_getsda_old() local
691 init_ivtv_i2c(struct ivtv *itv) init_ivtv_i2c() argument
734 exit_ivtv_i2c(struct ivtv *itv) exit_ivtv_i2c() argument
[all...]
H A Divtv-streams.c168 static void ivtv_stream_init(struct ivtv *itv, int type) in ivtv_stream_init() argument
170 struct ivtv_stream *s = &itv->streams[type]; in ivtv_stream_init()
176 s->itv = itv; in ivtv_stream_init()
185 s->buf_size = itv->stream_buf_size[type]; in ivtv_stream_init()
187 s->buffers = (itv->options.kilobytes[type] * 1024 + s->buf_size - 1) / s->buf_size; in ivtv_stream_init()
198 static int ivtv_prep_dev(struct ivtv *itv, int type) in ivtv_prep_dev() argument
200 struct ivtv_stream *s = &itv->streams[type]; in ivtv_prep_dev()
202 int num = itv->instance + ivtv_first_minor + num_offset; in ivtv_prep_dev()
208 s->itv in ivtv_prep_dev()
259 ivtv_streams_setup(struct ivtv *itv) ivtv_streams_setup() argument
284 ivtv_reg_dev(struct ivtv *itv, int type) ivtv_reg_dev() argument
339 ivtv_streams_register(struct ivtv *itv) ivtv_streams_register() argument
357 ivtv_streams_cleanup(struct ivtv *itv) ivtv_streams_cleanup() argument
374 ivtv_vbi_setup(struct ivtv *itv) ivtv_vbi_setup() argument
490 struct ivtv *itv = s->itv; ivtv_start_v4l2_encode_stream() local
658 struct ivtv *itv = s->itv; ivtv_setup_v4l2_decode_stream() local
722 struct ivtv *itv = s->itv; ivtv_start_v4l2_decode_stream() local
773 ivtv_stop_all_captures(struct ivtv *itv) ivtv_stop_all_captures() argument
790 struct ivtv *itv = s->itv; ivtv_stop_v4l2_encode_stream() local
917 struct ivtv *itv = s->itv; ivtv_stop_v4l2_decode_stream() local
979 ivtv_passthrough_mode(struct ivtv *itv, int enable) ivtv_passthrough_mode() argument
[all...]
H A Divtv-firmware.c40 static int load_fw_direct(const char *fn, volatile u8 __iomem *mem, struct ivtv *itv, long size) in load_fw_direct() argument
46 if (retries && request_firmware(&fw, fn, &itv->pdev->dev) == 0) { in load_fw_direct()
76 void ivtv_halt_firmware(struct ivtv *itv) in ivtv_halt_firmware() argument
79 if (itv->has_cx23415 && itv->dec_mbox.mbox) in ivtv_halt_firmware()
80 ivtv_vapi(itv, CX2341X_DEC_HALT_FW, 0); in ivtv_halt_firmware()
81 if (itv->enc_mbox.mbox) in ivtv_halt_firmware()
82 ivtv_vapi(itv, CX2341X_ENC_HALT_FW, 0); in ivtv_halt_firmware()
85 itv->enc_mbox.mbox = itv in ivtv_halt_firmware()
128 ivtv_firmware_versions(struct ivtv *itv) ivtv_firmware_versions() argument
146 ivtv_firmware_copy(struct ivtv *itv) ivtv_firmware_copy() argument
183 ivtv_firmware_init(struct ivtv *itv) ivtv_firmware_init() argument
232 ivtv_init_mpeg_decoder(struct ivtv *itv) ivtv_init_mpeg_decoder() argument
267 ivtv_firmware_restart(struct ivtv *itv) ivtv_firmware_restart() argument
323 ivtv_firmware_check(struct ivtv *itv, char *where) ivtv_firmware_check() argument
[all...]
H A Divtv-ioctl.c114 void ivtv_set_osd_alpha(struct ivtv *itv) in ivtv_set_osd_alpha() argument
116 ivtv_vapi(itv, CX2341X_OSD_SET_GLOBAL_ALPHA, 3, in ivtv_set_osd_alpha()
117 itv->osd_global_alpha_state, itv->osd_global_alpha, !itv->osd_local_alpha_state); in ivtv_set_osd_alpha()
118 ivtv_vapi(itv, CX2341X_OSD_SET_CHROMA_KEY, 2, itv->osd_chroma_key_state, itv->osd_chroma_key); in ivtv_set_osd_alpha()
121 int ivtv_set_speed(struct ivtv *itv, int speed) in ivtv_set_speed() argument
130 if (speed == itv in ivtv_set_speed()
231 ivtv_video_command(struct ivtv *itv, struct ivtv_open_id *id, struct v4l2_decoder_cmd *dc, int try) ivtv_video_command() argument
311 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fmt_sliced_vbi_out() local
334 struct ivtv *itv = id->itv; ivtv_g_fmt_vid_cap() local
356 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fmt_vbi_cap() local
376 struct ivtv *itv = id->itv; ivtv_g_fmt_sliced_vbi_cap() local
398 struct ivtv *itv = id->itv; ivtv_g_fmt_vid_out() local
437 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fmt_vid_out_overlay() local
465 struct ivtv *itv = id->itv; ivtv_try_fmt_vid_cap() local
494 struct ivtv *itv = id->itv; ivtv_try_fmt_sliced_vbi_cap() local
547 struct ivtv *itv = fh2id(fh)->itv; ivtv_try_fmt_vid_out_overlay() local
570 struct ivtv *itv = id->itv; ivtv_s_fmt_vid_cap() local
600 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_fmt_vbi_cap() local
614 struct ivtv *itv = id->itv; ivtv_s_fmt_sliced_vbi_cap() local
632 struct ivtv *itv = id->itv; ivtv_s_fmt_vid_out() local
676 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_fmt_vid_out_overlay() local
688 ivtv_itvc(struct ivtv *itv, bool get, u64 reg, u64 *val) ivtv_itvc() argument
713 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_register() local
721 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_register() local
731 struct ivtv *itv = id->itv; ivtv_querycap() local
741 struct ivtv *itv = fh2id(fh)->itv; ivtv_enumaudio() local
748 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_audio() local
756 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_audio() local
769 struct ivtv *itv = fh2id(fh)->itv; ivtv_enumaudout() local
777 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_audout() local
785 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_audout() local
794 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_input() local
802 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_output() local
811 struct ivtv *itv = id->itv; ivtv_g_pixelaspect() local
829 struct ivtv *itv = id->itv; ivtv_s_selection() local
872 struct ivtv *itv = id->itv; ivtv_g_selection() local
927 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_fmt_vid_cap() local
954 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_fmt_vid_out() local
970 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_input() local
979 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_input() local
1022 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_output() local
1034 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_output() local
1056 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_frequency() local
1070 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_frequency() local
1087 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_std() local
1093 ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id std) ivtv_s_std_enc() argument
1112 ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std) ivtv_s_std_dec() argument
1160 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_std() local
1189 struct ivtv *itv = id->itv; ivtv_s_tuner() local
1201 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_tuner() local
1217 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_sliced_vbi_cap() local
1252 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_enc_index() local
1279 struct ivtv *itv = id->itv; ivtv_encoder_cmd() local
1330 struct ivtv *itv = fh2id(fh)->itv; ivtv_try_encoder_cmd() local
1360 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fbuf() local
1448 struct ivtv *itv = id->itv; ivtv_s_fbuf() local
1469 struct ivtv *itv = id->itv; ivtv_overlay() local
1495 struct ivtv *itv = fh2id(fh)->itv; ivtv_log_status() local
1588 struct ivtv *itv = id->itv; ivtv_decoder_cmd() local
1597 struct ivtv *itv = id->itv; ivtv_try_decoder_cmd() local
1606 struct ivtv *itv = id->itv; ivtv_decoder_ioctls() local
1648 struct ivtv *itv = fh2id(fh)->itv; ivtv_default() local
[all...]
H A Divtv-irq.c29 static void ivtv_pcm_work_handler(struct ivtv *itv) in ivtv_pcm_work_handler() argument
31 struct ivtv_stream *s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; in ivtv_pcm_work_handler()
50 itv->pcm_announce_callback(itv->alsa, in ivtv_pcm_work_handler()
58 static void ivtv_pio_work_handler(struct ivtv *itv) in ivtv_pio_work_handler() argument
60 struct ivtv_stream *s = &itv->streams[itv->cur_pio_stream]; in ivtv_pio_work_handler()
65 if (itv->cur_pio_stream < 0 || itv->cur_pio_stream >= IVTV_MAX_STREAMS || in ivtv_pio_work_handler()
67 itv in ivtv_pio_work_handler()
92 struct ivtv *itv = container_of(work, struct ivtv, irq_work); ivtv_irq_work_handler() local
113 struct ivtv *itv = s->itv; stream_enc_dma_append() local
248 struct ivtv *itv = s->itv; dma_post() local
339 struct ivtv *itv = s->itv; ivtv_dma_stream_dec_prepare() local
416 struct ivtv *itv = s->itv; ivtv_dma_enc_start_xfer() local
432 struct ivtv *itv = s->itv; ivtv_dma_dec_start_xfer() local
449 struct ivtv *itv = s->itv; ivtv_dma_enc_start() local
510 struct ivtv *itv = s->itv; ivtv_dma_dec_start() local
527 ivtv_irq_dma_read(struct ivtv *itv) ivtv_irq_dma_read() argument
592 ivtv_irq_enc_dma_complete(struct ivtv *itv) ivtv_irq_enc_dma_complete() argument
641 ivtv_irq_enc_pio_complete(struct ivtv *itv) ivtv_irq_enc_pio_complete() argument
668 ivtv_irq_dma_err(struct ivtv *itv) ivtv_irq_dma_err() argument
742 ivtv_irq_enc_start_cap(struct ivtv *itv) ivtv_irq_enc_start_cap() argument
762 ivtv_irq_enc_vbi_cap(struct ivtv *itv) ivtv_irq_enc_vbi_cap() argument
774 ivtv_irq_dec_vbi_reinsert(struct ivtv *itv) ivtv_irq_dec_vbi_reinsert() argument
786 ivtv_irq_dec_data_req(struct ivtv *itv) ivtv_irq_dec_data_req() argument
822 ivtv_irq_vsync(struct ivtv *itv) ivtv_irq_vsync() argument
920 struct ivtv *itv = (struct ivtv *)dev_id; ivtv_irq_handler() local
1067 struct ivtv *itv = from_timer(itv, t, dma_timer); ivtv_unfinished_dma() local
[all...]
H A Divtv-controls.c16 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_stream_vbi_fmt() local
19 if (fmt && itv->vbi.sliced_mpeg_data[0] == NULL) { in ivtv_s_stream_vbi_fmt()
24 itv->vbi.sliced_mpeg_data[i] = kmalloc(2049, GFP_KERNEL); in ivtv_s_stream_vbi_fmt()
25 if (itv->vbi.sliced_mpeg_data[i] == NULL) { in ivtv_s_stream_vbi_fmt()
27 kfree(itv->vbi.sliced_mpeg_data[i]); in ivtv_s_stream_vbi_fmt()
28 itv->vbi.sliced_mpeg_data[i] = NULL; in ivtv_s_stream_vbi_fmt()
35 itv->vbi.insert_mpeg = fmt; in ivtv_s_stream_vbi_fmt()
37 if (itv->vbi.insert_mpeg == 0) { in ivtv_s_stream_vbi_fmt()
41 if (ivtv_get_service_set(itv->vbi.sliced_in) == 0) { in ivtv_s_stream_vbi_fmt()
42 if (itv in ivtv_s_stream_vbi_fmt()
53 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); ivtv_s_video_encoding() local
70 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); ivtv_s_audio_sampling_freq() local
81 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); ivtv_s_audio_mode() local
94 ivtv_g_pts_frame(struct ivtv *itv, s64 *pts, s64 *frame) ivtv_g_pts_frame() argument
122 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); ivtv_g_volatile_ctrl() local
136 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); ivtv_s_ctrl() local
[all...]
H A Divtv-fileops.c34 struct ivtv *itv = id->itv; in ivtv_claim_stream() local
35 struct ivtv_stream *s = &itv->streams[type]; in ivtv_claim_stream()
61 ivtv_clear_irq_mask(itv, IVTV_IRQ_DEC_VBI_RE_INSERT); in ivtv_claim_stream()
71 itv->vbi.insert_mpeg && !ivtv_raw_vbi(itv)) { in ivtv_claim_stream()
76 s_vbi = &itv->streams[vbi_type]; in ivtv_claim_stream()
81 ivtv_clear_irq_mask(itv, IVTV_IRQ_DEC_VBI_RE_INSERT); in ivtv_claim_stream()
93 struct ivtv *itv = s->itv; in ivtv_release_stream() local
140 ivtv_dualwatch(struct ivtv *itv) ivtv_dualwatch() argument
161 ivtv_update_pgm_info(struct ivtv *itv) ivtv_update_pgm_info() argument
195 struct ivtv *itv = s->itv; ivtv_get_buffer() local
277 ivtv_setup_sliced_vbi_buf(struct ivtv *itv) ivtv_setup_sliced_vbi_buf() argument
289 struct ivtv *itv = s->itv; ivtv_copy_buf_to_user() local
348 struct ivtv *itv = s->itv; ivtv_read() local
407 struct ivtv *itv = s->itv; ivtv_read_pos() local
417 struct ivtv *itv = id->itv; ivtv_start_capture() local
496 struct ivtv *itv = id->itv; ivtv_v4l2_read() local
513 struct ivtv *itv = id->itv; ivtv_start_decoding() local
539 struct ivtv *itv = id->itv; ivtv_write() local
711 struct ivtv *itv = id->itv; ivtv_v4l2_write() local
724 struct ivtv *itv = id->itv; ivtv_v4l2_dec_poll() local
759 struct ivtv *itv = id->itv; ivtv_v4l2_enc_poll() local
798 struct ivtv *itv = id->itv; ivtv_stop_capture() local
837 struct ivtv *itv = id->itv; ivtv_stop_decoding() local
870 struct ivtv *itv = id->itv; ivtv_v4l2_close() local
935 struct ivtv *itv = s->itv; global() local
1046 ivtv_mute(struct ivtv *itv) global() argument
1053 ivtv_unmute(struct ivtv *itv) global() argument
[all...]
H A Divtv-vbi.c15 static void ivtv_set_vps(struct ivtv *itv, int enabled) in ivtv_set_vps() argument
19 if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) in ivtv_set_vps()
24 data.data[2] = itv->vbi.vps_payload.data[0]; in ivtv_set_vps()
25 data.data[8] = itv->vbi.vps_payload.data[1]; in ivtv_set_vps()
26 data.data[9] = itv->vbi.vps_payload.data[2]; in ivtv_set_vps()
27 data.data[10] = itv->vbi.vps_payload.data[3]; in ivtv_set_vps()
28 data.data[11] = itv->vbi.vps_payload.data[4]; in ivtv_set_vps()
29 ivtv_call_hw(itv, IVTV_HW_SAA7127, vbi, s_vbi_data, &data); in ivtv_set_vps()
32 static void ivtv_set_cc(struct ivtv *itv, int mode, const struct vbi_cc *cc) in ivtv_set_cc() argument
36 if (!(itv in ivtv_set_cc()
51 ivtv_set_wss(struct ivtv *itv, int enabled, int mode) ivtv_set_wss() argument
83 ivtv_write_vbi_line(struct ivtv *itv, const struct v4l2_sliced_vbi_data *d, struct vbi_cc *cc, int *found_cc) ivtv_write_vbi_line() argument
121 ivtv_write_vbi_cc_lines(struct ivtv *itv, const struct vbi_cc *cc) ivtv_write_vbi_cc_lines() argument
133 ivtv_write_vbi(struct ivtv *itv, const struct v4l2_sliced_vbi_data *sliced, size_t cnt) ivtv_write_vbi() argument
149 ivtv_write_vbi_from_user(struct ivtv *itv, const struct v4l2_sliced_vbi_data __user *sliced, size_t cnt) ivtv_write_vbi_from_user() argument
174 copy_vbi_data(struct ivtv *itv, int lines, u32 pts_stamp) copy_vbi_data() argument
234 ivtv_convert_ivtv_vbi(struct ivtv *itv, u8 *p) ivtv_convert_ivtv_vbi() argument
299 compress_raw_buf(struct ivtv *itv, u8 *buf, u32 size) compress_raw_buf() argument
325 compress_sliced_buf(struct ivtv *itv, u32 line, u8 *buf, u32 size, u8 sav) compress_sliced_buf() argument
363 ivtv_process_vbi_data(struct ivtv *itv, struct ivtv_buffer *buf, u64 pts_stamp, int streamtype) ivtv_process_vbi_data() argument
452 ivtv_disable_cc(struct ivtv *itv) ivtv_disable_cc() argument
462 ivtv_vbi_work_handler(struct ivtv *itv) ivtv_vbi_work_handler() argument
[all...]
H A Divtv-gpio.c94 void ivtv_reset_ir_gpio(struct ivtv *itv) in ivtv_reset_ir_gpio() argument
98 if (itv->card->type != IVTV_CARD_PVR_150) in ivtv_reset_ir_gpio()
119 struct ivtv *itv = algo->data; in ivtv_reset_tuner_gpio() local
126 curout &= ~(1 << itv->card->xceive_pin); in ivtv_reset_tuner_gpio()
130 curout |= 1 << itv->card->xceive_pin; in ivtv_reset_tuner_gpio()
148 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_clock_freq() local
151 mask = itv->card->gpio_audio_freq.mask; in subdev_s_clock_freq()
154 data = itv->card->gpio_audio_freq.f32000; in subdev_s_clock_freq()
157 data = itv->card->gpio_audio_freq.f44100; in subdev_s_clock_freq()
161 data = itv in subdev_s_clock_freq()
171 struct ivtv *itv = sd_to_ivtv(sd); subdev_g_tuner() local
185 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_tuner() local
212 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_radio() local
225 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_audio_routing() local
251 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_ctrl() local
269 struct ivtv *itv = sd_to_ivtv(sd); subdev_log_status() local
281 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_video_routing() local
328 ivtv_gpio_init(struct ivtv *itv) ivtv_gpio_init() argument
[all...]
H A Divtv-udma.c80 void ivtv_udma_alloc(struct ivtv *itv) in ivtv_udma_alloc() argument
82 if (itv->udma.SG_handle == 0) { in ivtv_udma_alloc()
84 itv->udma.SG_handle = dma_map_single(&itv->pdev->dev, in ivtv_udma_alloc()
85 itv->udma.SGarray, in ivtv_udma_alloc()
86 sizeof(itv->udma.SGarray), in ivtv_udma_alloc()
88 ivtv_udma_sync_for_cpu(itv); in ivtv_udma_alloc()
92 int ivtv_udma_setup(struct ivtv *itv, unsigned long ivtv_dest_addr, in ivtv_udma_setup() argument
96 struct ivtv_user_dma *dma = &itv->udma; in ivtv_udma_setup()
140 dma->SG_length = dma_map_sg(&itv in ivtv_udma_setup()
153 ivtv_udma_unmap(struct ivtv *itv) ivtv_udma_unmap() argument
176 ivtv_udma_free(struct ivtv *itv) ivtv_udma_free() argument
198 ivtv_udma_start(struct ivtv *itv) ivtv_udma_start() argument
208 ivtv_udma_prepare(struct ivtv *itv) ivtv_udma_prepare() argument
[all...]
H A Divtvfb.c117 printk(KERN_INFO "ivtvfb%d " type ": " fmt, itv->instance , ## args); \
123 #define IVTVFB_ERR(fmt, args...) printk(KERN_ERR "ivtvfb%d: " fmt, itv->instance , ## args)
124 #define IVTVFB_WARN(fmt, args...) printk(KERN_WARNING "ivtvfb%d: " fmt, itv->instance , ## args)
125 #define IVTVFB_INFO(fmt, args...) printk(KERN_INFO "ivtvfb%d: " fmt, itv->instance , ## args)
192 static int ivtvfb_get_framebuffer(struct ivtv *itv, u32 *fbbase, in ivtvfb_get_framebuffer() argument
198 ivtv_firmware_check(itv, "ivtvfb_get_framebuffer"); in ivtvfb_get_framebuffer()
199 rc = ivtv_vapi_result(itv, data, CX2341X_OSD_GET_FRAMEBUFFER, 0); in ivtvfb_get_framebuffer()
205 static int ivtvfb_get_osd_coords(struct ivtv *itv, in ivtvfb_get_osd_coords() argument
208 struct osd_info *oi = itv->osd_info; in ivtvfb_get_osd_coords()
211 ivtv_vapi_result(itv, dat in ivtvfb_get_osd_coords()
222 ivtvfb_set_osd_coords(struct ivtv *itv, const struct ivtv_osd_coords *osd) ivtvfb_set_osd_coords() argument
237 ivtvfb_set_display_window(struct ivtv *itv, struct v4l2_rect *ivtv_window) ivtvfb_set_display_window() argument
273 ivtvfb_prep_dec_dma_to_device(struct ivtv *itv, unsigned long ivtv_dest_addr, void __user *userbuf, int size_in_bytes) ivtvfb_prep_dec_dma_to_device() argument
321 ivtvfb_prep_frame(struct ivtv *itv, int cmd, void __user *source, unsigned long dest_offset, int count) ivtvfb_prep_frame() argument
375 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_write() local
447 struct ivtv *itv = (struct ivtv *)info->par; ivtvfb_ioctl() local
500 ivtvfb_set_var(struct ivtv *itv, struct fb_var_screeninfo *var) ivtvfb_set_var() argument
614 ivtvfb_get_fix(struct ivtv *itv, struct fb_fix_screeninfo *fix) ivtvfb_get_fix() argument
636 _ivtvfb_check_var(struct fb_var_screeninfo *var, struct ivtv *itv) _ivtvfb_check_var() argument
815 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_check_var() local
823 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_pan_display() local
846 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_set_par() local
862 struct ivtv *itv = (struct ivtv *)info->par; ivtvfb_setcolreg() local
905 struct ivtv *itv = (struct ivtv *)info->par; ivtvfb_blank() local
944 ivtvfb_restore(struct ivtv *itv) ivtvfb_restore() argument
962 ivtvfb_init_vidmode(struct ivtv *itv) ivtvfb_init_vidmode() argument
1083 ivtvfb_init_io(struct ivtv *itv) ivtvfb_init_io() argument
1138 ivtvfb_release_buffers(struct ivtv *itv) ivtvfb_release_buffers() argument
1155 ivtvfb_init_card(struct ivtv *itv) ivtvfb_init_card() argument
1233 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); ivtvfb_callback_init() local
1248 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); ivtvfb_callback_cleanup() local
[all...]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
H A Divtv-driver.c313 void ivtv_clear_irq_mask(struct ivtv *itv, u32 mask) in ivtv_clear_irq_mask() argument
315 itv->irqmask &= ~mask; in ivtv_clear_irq_mask()
316 write_reg_sync(itv->irqmask, IVTV_REG_IRQMASK); in ivtv_clear_irq_mask()
319 void ivtv_set_irq_mask(struct ivtv *itv, u32 mask) in ivtv_set_irq_mask() argument
321 itv->irqmask |= mask; in ivtv_set_irq_mask()
322 write_reg_sync(itv->irqmask, IVTV_REG_IRQMASK); in ivtv_set_irq_mask()
325 int ivtv_set_output_mode(struct ivtv *itv, int mode) in ivtv_set_output_mode() argument
329 spin_lock(&itv->lock); in ivtv_set_output_mode()
330 old_mode = itv->output_mode; in ivtv_set_output_mode()
332 itv in ivtv_set_output_mode()
337 ivtv_get_output_stream(struct ivtv *itv) ivtv_get_output_stream() argument
378 ivtv_iounmap(struct ivtv *itv) ivtv_iounmap() argument
405 ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) ivtv_read_eeprom() argument
414 ivtv_process_eeprom(struct ivtv *itv) ivtv_process_eeprom() argument
548 ivtv_parse_std(struct ivtv *itv) ivtv_parse_std() argument
641 ivtv_process_options(struct ivtv *itv) ivtv_process_options() argument
738 ivtv_init_struct1(struct ivtv *itv) ivtv_init_struct1() argument
800 ivtv_init_struct2(struct ivtv *itv) ivtv_init_struct2() argument
831 ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev, const struct pci_device_id *pci_id) ivtv_setup_pci() argument
903 ivtv_load_and_init_modules(struct ivtv *itv) ivtv_load_and_init_modules() argument
997 struct ivtv *itv; ivtv_probe() local
1297 ivtv_init_on_first_open(struct ivtv *itv) ivtv_init_on_first_open() argument
1392 struct ivtv *itv = to_ivtv(v4l2_dev); ivtv_remove() local
[all...]
H A Divtv-i2c.c163 static int ivtv_i2c_new_ir(struct ivtv *itv, u32 hw, const char *type, u8 addr) in ivtv_i2c_new_ir() argument
166 struct i2c_adapter *adap = &itv->i2c_adap; in ivtv_i2c_new_ir()
167 struct IR_i2c_init_data *init_data = &itv->ir_i2c_init_data; in ivtv_i2c_new_ir()
171 if (itv->hw_flags & IVTV_HW_IR_ANY) in ivtv_i2c_new_ir()
188 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
196 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
200 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
216 void ivtv_i2c_new_ir_legacy(struct ivtv *itv) in ivtv_i2c_new_ir_legacy() argument
238 i2c_new_scanned_device(&itv->i2c_adap, &info, addr_list, NULL); in ivtv_i2c_new_ir_legacy()
241 int ivtv_i2c_register(struct ivtv *itv, unsigne argument
297 ivtv_find_hw(struct ivtv *itv, u32 hw) ivtv_find_hw() argument
314 ivtv_setscl(struct ivtv *itv, int state) ivtv_setscl() argument
322 ivtv_setsda(struct ivtv *itv, int state) ivtv_setsda() argument
330 ivtv_getscl(struct ivtv *itv) ivtv_getscl() argument
336 ivtv_getsda(struct ivtv *itv) ivtv_getsda() argument
342 ivtv_scldelay(struct ivtv *itv) ivtv_scldelay() argument
351 ivtv_waitscl(struct ivtv *itv, int val) ivtv_waitscl() argument
364 ivtv_waitsda(struct ivtv *itv, int val) ivtv_waitsda() argument
377 ivtv_ack(struct ivtv *itv) ivtv_ack() argument
405 ivtv_sendbyte(struct ivtv *itv, unsigned char byte) ivtv_sendbyte() argument
438 ivtv_readbyte(struct ivtv *itv, unsigned char *byte, int nack) ivtv_readbyte() argument
470 ivtv_start(struct ivtv *itv) ivtv_start() argument
496 ivtv_stop(struct ivtv *itv) ivtv_stop() argument
533 ivtv_write(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len, int do_stop) ivtv_write() argument
556 ivtv_read(struct ivtv *itv, unsigned char addr, unsigned char *data, u32 len) ivtv_read() argument
581 struct ivtv *itv = to_ivtv(v4l2_dev); ivtv_xfer() local
621 struct ivtv *itv = (struct ivtv *)data; ivtv_setscl_old() local
635 struct ivtv *itv = (struct ivtv *)data; ivtv_setsda_old() local
649 struct ivtv *itv = (struct ivtv *)data; ivtv_getscl_old() local
656 struct ivtv *itv = (struct ivtv *)data; ivtv_getsda_old() local
685 init_ivtv_i2c(struct ivtv *itv) init_ivtv_i2c() argument
728 exit_ivtv_i2c(struct ivtv *itv) exit_ivtv_i2c() argument
[all...]
H A Divtv-streams.c168 static void ivtv_stream_init(struct ivtv *itv, int type) in ivtv_stream_init() argument
170 struct ivtv_stream *s = &itv->streams[type]; in ivtv_stream_init()
176 s->itv = itv; in ivtv_stream_init()
185 s->buf_size = itv->stream_buf_size[type]; in ivtv_stream_init()
187 s->buffers = (itv->options.kilobytes[type] * 1024 + s->buf_size - 1) / s->buf_size; in ivtv_stream_init()
198 static int ivtv_prep_dev(struct ivtv *itv, int type) in ivtv_prep_dev() argument
200 struct ivtv_stream *s = &itv->streams[type]; in ivtv_prep_dev()
202 int num = itv->instance + ivtv_first_minor + num_offset; in ivtv_prep_dev()
208 s->itv in ivtv_prep_dev()
259 ivtv_streams_setup(struct ivtv *itv) ivtv_streams_setup() argument
284 ivtv_reg_dev(struct ivtv *itv, int type) ivtv_reg_dev() argument
339 ivtv_streams_register(struct ivtv *itv) ivtv_streams_register() argument
357 ivtv_streams_cleanup(struct ivtv *itv) ivtv_streams_cleanup() argument
374 ivtv_vbi_setup(struct ivtv *itv) ivtv_vbi_setup() argument
490 struct ivtv *itv = s->itv; ivtv_start_v4l2_encode_stream() local
658 struct ivtv *itv = s->itv; ivtv_setup_v4l2_decode_stream() local
722 struct ivtv *itv = s->itv; ivtv_start_v4l2_decode_stream() local
773 ivtv_stop_all_captures(struct ivtv *itv) ivtv_stop_all_captures() argument
790 struct ivtv *itv = s->itv; ivtv_stop_v4l2_encode_stream() local
917 struct ivtv *itv = s->itv; ivtv_stop_v4l2_decode_stream() local
979 ivtv_passthrough_mode(struct ivtv *itv, int enable) ivtv_passthrough_mode() argument
[all...]
H A Divtv-ioctl.c119 void ivtv_set_osd_alpha(struct ivtv *itv) in ivtv_set_osd_alpha() argument
121 ivtv_vapi(itv, CX2341X_OSD_SET_GLOBAL_ALPHA, 3, in ivtv_set_osd_alpha()
122 itv->osd_global_alpha_state, itv->osd_global_alpha, !itv->osd_local_alpha_state); in ivtv_set_osd_alpha()
123 ivtv_vapi(itv, CX2341X_OSD_SET_CHROMA_KEY, 2, itv->osd_chroma_key_state, itv->osd_chroma_key); in ivtv_set_osd_alpha()
126 int ivtv_set_speed(struct ivtv *itv, int speed) in ivtv_set_speed() argument
135 if (speed == itv in ivtv_set_speed()
236 ivtv_video_command(struct ivtv *itv, struct ivtv_open_id *id, struct v4l2_decoder_cmd *dc, int try) ivtv_video_command() argument
316 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fmt_sliced_vbi_out() local
339 struct ivtv *itv = id->itv; ivtv_g_fmt_vid_cap() local
361 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fmt_vbi_cap() local
381 struct ivtv *itv = id->itv; ivtv_g_fmt_sliced_vbi_cap() local
403 struct ivtv *itv = id->itv; ivtv_g_fmt_vid_out() local
442 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fmt_vid_out_overlay() local
470 struct ivtv *itv = id->itv; ivtv_try_fmt_vid_cap() local
499 struct ivtv *itv = id->itv; ivtv_try_fmt_sliced_vbi_cap() local
552 struct ivtv *itv = fh2id(fh)->itv; ivtv_try_fmt_vid_out_overlay() local
575 struct ivtv *itv = id->itv; ivtv_s_fmt_vid_cap() local
605 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_fmt_vbi_cap() local
619 struct ivtv *itv = id->itv; ivtv_s_fmt_sliced_vbi_cap() local
637 struct ivtv *itv = id->itv; ivtv_s_fmt_vid_out() local
681 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_fmt_vid_out_overlay() local
693 ivtv_itvc(struct ivtv *itv, bool get, u64 reg, u64 *val) ivtv_itvc() argument
718 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_register() local
726 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_register() local
736 struct ivtv *itv = id->itv; ivtv_querycap() local
747 struct ivtv *itv = fh2id(fh)->itv; ivtv_enumaudio() local
754 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_audio() local
762 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_audio() local
775 struct ivtv *itv = fh2id(fh)->itv; ivtv_enumaudout() local
783 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_audout() local
791 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_audout() local
800 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_input() local
808 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_output() local
817 struct ivtv *itv = id->itv; ivtv_g_pixelaspect() local
835 struct ivtv *itv = id->itv; ivtv_s_selection() local
878 struct ivtv *itv = id->itv; ivtv_g_selection() local
933 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_fmt_vid_cap() local
960 struct ivtv *itv = fh2id(fh)->itv; ivtv_enum_fmt_vid_out() local
976 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_input() local
985 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_input() local
1028 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_output() local
1040 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_output() local
1062 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_frequency() local
1076 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_frequency() local
1093 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_std() local
1099 ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id std) ivtv_s_std_enc() argument
1118 ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std) ivtv_s_std_dec() argument
1166 struct ivtv *itv = fh2id(fh)->itv; ivtv_s_std() local
1195 struct ivtv *itv = id->itv; ivtv_s_tuner() local
1207 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_tuner() local
1223 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_sliced_vbi_cap() local
1258 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_enc_index() local
1285 struct ivtv *itv = id->itv; ivtv_encoder_cmd() local
1336 struct ivtv *itv = fh2id(fh)->itv; ivtv_try_encoder_cmd() local
1366 struct ivtv *itv = fh2id(fh)->itv; ivtv_g_fbuf() local
1454 struct ivtv *itv = id->itv; ivtv_s_fbuf() local
1475 struct ivtv *itv = id->itv; ivtv_overlay() local
1501 struct ivtv *itv = fh2id(fh)->itv; ivtv_log_status() local
1594 struct ivtv *itv = id->itv; ivtv_decoder_cmd() local
1603 struct ivtv *itv = id->itv; ivtv_try_decoder_cmd() local
1635 struct ivtv *itv = id->itv; ivtv_decoder_ioctls() local
1844 struct ivtv *itv = fh2id(fh)->itv; ivtv_default() local
[all...]
H A Divtv-firmware.c40 static int load_fw_direct(const char *fn, volatile u8 __iomem *mem, struct ivtv *itv, long size) in load_fw_direct() argument
46 if (retries && request_firmware(&fw, fn, &itv->pdev->dev) == 0) { in load_fw_direct()
76 void ivtv_halt_firmware(struct ivtv *itv) in ivtv_halt_firmware() argument
79 if (itv->has_cx23415 && itv->dec_mbox.mbox) in ivtv_halt_firmware()
80 ivtv_vapi(itv, CX2341X_DEC_HALT_FW, 0); in ivtv_halt_firmware()
81 if (itv->enc_mbox.mbox) in ivtv_halt_firmware()
82 ivtv_vapi(itv, CX2341X_ENC_HALT_FW, 0); in ivtv_halt_firmware()
85 itv->enc_mbox.mbox = itv in ivtv_halt_firmware()
128 ivtv_firmware_versions(struct ivtv *itv) ivtv_firmware_versions() argument
146 ivtv_firmware_copy(struct ivtv *itv) ivtv_firmware_copy() argument
183 ivtv_firmware_init(struct ivtv *itv) ivtv_firmware_init() argument
232 ivtv_init_mpeg_decoder(struct ivtv *itv) ivtv_init_mpeg_decoder() argument
267 ivtv_firmware_restart(struct ivtv *itv) ivtv_firmware_restart() argument
323 ivtv_firmware_check(struct ivtv *itv, char *where) ivtv_firmware_check() argument
[all...]
H A Divtv-irq.c29 static void ivtv_pcm_work_handler(struct ivtv *itv) in ivtv_pcm_work_handler() argument
31 struct ivtv_stream *s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; in ivtv_pcm_work_handler()
50 itv->pcm_announce_callback(itv->alsa, in ivtv_pcm_work_handler()
58 static void ivtv_pio_work_handler(struct ivtv *itv) in ivtv_pio_work_handler() argument
60 struct ivtv_stream *s = &itv->streams[itv->cur_pio_stream]; in ivtv_pio_work_handler()
65 if (itv->cur_pio_stream < 0 || itv->cur_pio_stream >= IVTV_MAX_STREAMS || in ivtv_pio_work_handler()
67 itv in ivtv_pio_work_handler()
92 struct ivtv *itv = container_of(work, struct ivtv, irq_work); ivtv_irq_work_handler() local
113 struct ivtv *itv = s->itv; stream_enc_dma_append() local
248 struct ivtv *itv = s->itv; dma_post() local
339 struct ivtv *itv = s->itv; ivtv_dma_stream_dec_prepare() local
416 struct ivtv *itv = s->itv; ivtv_dma_enc_start_xfer() local
432 struct ivtv *itv = s->itv; ivtv_dma_dec_start_xfer() local
449 struct ivtv *itv = s->itv; ivtv_dma_enc_start() local
510 struct ivtv *itv = s->itv; ivtv_dma_dec_start() local
527 ivtv_irq_dma_read(struct ivtv *itv) ivtv_irq_dma_read() argument
592 ivtv_irq_enc_dma_complete(struct ivtv *itv) ivtv_irq_enc_dma_complete() argument
641 ivtv_irq_enc_pio_complete(struct ivtv *itv) ivtv_irq_enc_pio_complete() argument
668 ivtv_irq_dma_err(struct ivtv *itv) ivtv_irq_dma_err() argument
742 ivtv_irq_enc_start_cap(struct ivtv *itv) ivtv_irq_enc_start_cap() argument
762 ivtv_irq_enc_vbi_cap(struct ivtv *itv) ivtv_irq_enc_vbi_cap() argument
774 ivtv_irq_dec_vbi_reinsert(struct ivtv *itv) ivtv_irq_dec_vbi_reinsert() argument
786 ivtv_irq_dec_data_req(struct ivtv *itv) ivtv_irq_dec_data_req() argument
822 ivtv_irq_vsync(struct ivtv *itv) ivtv_irq_vsync() argument
920 struct ivtv *itv = (struct ivtv *)dev_id; ivtv_irq_handler() local
1067 struct ivtv *itv = from_timer(itv, t, dma_timer); ivtv_unfinished_dma() local
[all...]
H A Divtv-controls.c16 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_stream_vbi_fmt() local
19 if (fmt && itv->vbi.sliced_mpeg_data[0] == NULL) { in ivtv_s_stream_vbi_fmt()
24 itv->vbi.sliced_mpeg_data[i] = kmalloc(2049, GFP_KERNEL); in ivtv_s_stream_vbi_fmt()
25 if (itv->vbi.sliced_mpeg_data[i] == NULL) { in ivtv_s_stream_vbi_fmt()
27 kfree(itv->vbi.sliced_mpeg_data[i]); in ivtv_s_stream_vbi_fmt()
28 itv->vbi.sliced_mpeg_data[i] = NULL; in ivtv_s_stream_vbi_fmt()
35 itv->vbi.insert_mpeg = fmt; in ivtv_s_stream_vbi_fmt()
37 if (itv->vbi.insert_mpeg == 0) { in ivtv_s_stream_vbi_fmt()
41 if (ivtv_get_service_set(itv->vbi.sliced_in) == 0) { in ivtv_s_stream_vbi_fmt()
42 if (itv in ivtv_s_stream_vbi_fmt()
53 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); ivtv_s_video_encoding() local
70 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); ivtv_s_audio_sampling_freq() local
81 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); ivtv_s_audio_mode() local
94 ivtv_g_pts_frame(struct ivtv *itv, s64 *pts, s64 *frame) ivtv_g_pts_frame() argument
122 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); ivtv_g_volatile_ctrl() local
136 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); ivtv_s_ctrl() local
[all...]
H A Divtv-fileops.c34 struct ivtv *itv = id->itv; in ivtv_claim_stream() local
35 struct ivtv_stream *s = &itv->streams[type]; in ivtv_claim_stream()
61 ivtv_clear_irq_mask(itv, IVTV_IRQ_DEC_VBI_RE_INSERT); in ivtv_claim_stream()
71 itv->vbi.insert_mpeg && !ivtv_raw_vbi(itv)) { in ivtv_claim_stream()
76 s_vbi = &itv->streams[vbi_type]; in ivtv_claim_stream()
81 ivtv_clear_irq_mask(itv, IVTV_IRQ_DEC_VBI_RE_INSERT); in ivtv_claim_stream()
93 struct ivtv *itv = s->itv; in ivtv_release_stream() local
140 ivtv_dualwatch(struct ivtv *itv) ivtv_dualwatch() argument
161 ivtv_update_pgm_info(struct ivtv *itv) ivtv_update_pgm_info() argument
195 struct ivtv *itv = s->itv; ivtv_get_buffer() local
277 ivtv_setup_sliced_vbi_buf(struct ivtv *itv) ivtv_setup_sliced_vbi_buf() argument
289 struct ivtv *itv = s->itv; ivtv_copy_buf_to_user() local
348 struct ivtv *itv = s->itv; ivtv_read() local
407 struct ivtv *itv = s->itv; ivtv_read_pos() local
417 struct ivtv *itv = id->itv; ivtv_start_capture() local
496 struct ivtv *itv = id->itv; ivtv_v4l2_read() local
513 struct ivtv *itv = id->itv; ivtv_start_decoding() local
539 struct ivtv *itv = id->itv; ivtv_write() local
711 struct ivtv *itv = id->itv; ivtv_v4l2_write() local
724 struct ivtv *itv = id->itv; ivtv_v4l2_dec_poll() local
759 struct ivtv *itv = id->itv; ivtv_v4l2_enc_poll() local
798 struct ivtv *itv = id->itv; ivtv_stop_capture() local
837 struct ivtv *itv = id->itv; ivtv_stop_decoding() local
870 struct ivtv *itv = id->itv; ivtv_v4l2_close() local
935 struct ivtv *itv = s->itv; global() local
1046 ivtv_mute(struct ivtv *itv) global() argument
1053 ivtv_unmute(struct ivtv *itv) global() argument
[all...]
H A Divtv-vbi.c15 static void ivtv_set_vps(struct ivtv *itv, int enabled) in ivtv_set_vps() argument
19 if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) in ivtv_set_vps()
24 data.data[2] = itv->vbi.vps_payload.data[0]; in ivtv_set_vps()
25 data.data[8] = itv->vbi.vps_payload.data[1]; in ivtv_set_vps()
26 data.data[9] = itv->vbi.vps_payload.data[2]; in ivtv_set_vps()
27 data.data[10] = itv->vbi.vps_payload.data[3]; in ivtv_set_vps()
28 data.data[11] = itv->vbi.vps_payload.data[4]; in ivtv_set_vps()
29 ivtv_call_hw(itv, IVTV_HW_SAA7127, vbi, s_vbi_data, &data); in ivtv_set_vps()
32 static void ivtv_set_cc(struct ivtv *itv, int mode, const struct vbi_cc *cc) in ivtv_set_cc() argument
36 if (!(itv in ivtv_set_cc()
51 ivtv_set_wss(struct ivtv *itv, int enabled, int mode) ivtv_set_wss() argument
83 ivtv_write_vbi_line(struct ivtv *itv, const struct v4l2_sliced_vbi_data *d, struct vbi_cc *cc, int *found_cc) ivtv_write_vbi_line() argument
121 ivtv_write_vbi_cc_lines(struct ivtv *itv, const struct vbi_cc *cc) ivtv_write_vbi_cc_lines() argument
133 ivtv_write_vbi(struct ivtv *itv, const struct v4l2_sliced_vbi_data *sliced, size_t cnt) ivtv_write_vbi() argument
149 ivtv_write_vbi_from_user(struct ivtv *itv, const struct v4l2_sliced_vbi_data __user *sliced, size_t cnt) ivtv_write_vbi_from_user() argument
174 copy_vbi_data(struct ivtv *itv, int lines, u32 pts_stamp) copy_vbi_data() argument
234 ivtv_convert_ivtv_vbi(struct ivtv *itv, u8 *p) ivtv_convert_ivtv_vbi() argument
299 compress_raw_buf(struct ivtv *itv, u8 *buf, u32 size) compress_raw_buf() argument
325 compress_sliced_buf(struct ivtv *itv, u32 line, u8 *buf, u32 size, u8 sav) compress_sliced_buf() argument
363 ivtv_process_vbi_data(struct ivtv *itv, struct ivtv_buffer *buf, u64 pts_stamp, int streamtype) ivtv_process_vbi_data() argument
452 ivtv_disable_cc(struct ivtv *itv) ivtv_disable_cc() argument
462 ivtv_vbi_work_handler(struct ivtv *itv) ivtv_vbi_work_handler() argument
[all...]
H A Divtv-gpio.c94 void ivtv_reset_ir_gpio(struct ivtv *itv) in ivtv_reset_ir_gpio() argument
98 if (itv->card->type != IVTV_CARD_PVR_150) in ivtv_reset_ir_gpio()
119 struct ivtv *itv = algo->data; in ivtv_reset_tuner_gpio() local
126 curout &= ~(1 << itv->card->xceive_pin); in ivtv_reset_tuner_gpio()
130 curout |= 1 << itv->card->xceive_pin; in ivtv_reset_tuner_gpio()
148 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_clock_freq() local
151 mask = itv->card->gpio_audio_freq.mask; in subdev_s_clock_freq()
154 data = itv->card->gpio_audio_freq.f32000; in subdev_s_clock_freq()
157 data = itv->card->gpio_audio_freq.f44100; in subdev_s_clock_freq()
161 data = itv in subdev_s_clock_freq()
171 struct ivtv *itv = sd_to_ivtv(sd); subdev_g_tuner() local
185 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_tuner() local
212 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_radio() local
225 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_audio_routing() local
251 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_ctrl() local
269 struct ivtv *itv = sd_to_ivtv(sd); subdev_log_status() local
281 struct ivtv *itv = sd_to_ivtv(sd); subdev_s_video_routing() local
328 ivtv_gpio_init(struct ivtv *itv) ivtv_gpio_init() argument
[all...]
H A Divtv-udma.c80 void ivtv_udma_alloc(struct ivtv *itv) in ivtv_udma_alloc() argument
82 if (itv->udma.SG_handle == 0) { in ivtv_udma_alloc()
84 itv->udma.SG_handle = pci_map_single(itv->pdev, itv->udma.SGarray, in ivtv_udma_alloc()
85 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); in ivtv_udma_alloc()
86 ivtv_udma_sync_for_cpu(itv); in ivtv_udma_alloc()
90 int ivtv_udma_setup(struct ivtv *itv, unsigned long ivtv_dest_addr, in ivtv_udma_setup() argument
94 struct ivtv_user_dma *dma = &itv->udma; in ivtv_udma_setup()
138 dma->SG_length = pci_map_sg(itv in ivtv_udma_setup()
150 ivtv_udma_unmap(struct ivtv *itv) ivtv_udma_unmap() argument
172 ivtv_udma_free(struct ivtv *itv) ivtv_udma_free() argument
193 ivtv_udma_start(struct ivtv *itv) ivtv_udma_start() argument
203 ivtv_udma_prepare(struct ivtv *itv) ivtv_udma_prepare() argument
[all...]
H A Divtvfb.c117 printk(KERN_INFO "ivtvfb%d " type ": " fmt, itv->instance , ## args); \
123 #define IVTVFB_ERR(fmt, args...) printk(KERN_ERR "ivtvfb%d: " fmt, itv->instance , ## args)
124 #define IVTVFB_WARN(fmt, args...) printk(KERN_WARNING "ivtvfb%d: " fmt, itv->instance , ## args)
125 #define IVTVFB_INFO(fmt, args...) printk(KERN_INFO "ivtvfb%d: " fmt, itv->instance , ## args)
192 static int ivtvfb_get_framebuffer(struct ivtv *itv, u32 *fbbase, in ivtvfb_get_framebuffer() argument
198 ivtv_firmware_check(itv, "ivtvfb_get_framebuffer"); in ivtvfb_get_framebuffer()
199 rc = ivtv_vapi_result(itv, data, CX2341X_OSD_GET_FRAMEBUFFER, 0); in ivtvfb_get_framebuffer()
205 static int ivtvfb_get_osd_coords(struct ivtv *itv, in ivtvfb_get_osd_coords() argument
208 struct osd_info *oi = itv->osd_info; in ivtvfb_get_osd_coords()
211 ivtv_vapi_result(itv, dat in ivtvfb_get_osd_coords()
222 ivtvfb_set_osd_coords(struct ivtv *itv, const struct ivtv_osd_coords *osd) ivtvfb_set_osd_coords() argument
237 ivtvfb_set_display_window(struct ivtv *itv, struct v4l2_rect *ivtv_window) ivtvfb_set_display_window() argument
273 ivtvfb_prep_dec_dma_to_device(struct ivtv *itv, unsigned long ivtv_dest_addr, void __user *userbuf, int size_in_bytes) ivtvfb_prep_dec_dma_to_device() argument
321 ivtvfb_prep_frame(struct ivtv *itv, int cmd, void __user *source, unsigned long dest_offset, int count) ivtvfb_prep_frame() argument
375 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_write() local
447 struct ivtv *itv = (struct ivtv *)info->par; ivtvfb_ioctl() local
500 ivtvfb_set_var(struct ivtv *itv, struct fb_var_screeninfo *var) ivtvfb_set_var() argument
614 ivtvfb_get_fix(struct ivtv *itv, struct fb_fix_screeninfo *fix) ivtvfb_get_fix() argument
636 _ivtvfb_check_var(struct fb_var_screeninfo *var, struct ivtv *itv) _ivtvfb_check_var() argument
815 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_check_var() local
823 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_pan_display() local
846 struct ivtv *itv = (struct ivtv *) info->par; ivtvfb_set_par() local
862 struct ivtv *itv = (struct ivtv *)info->par; ivtvfb_setcolreg() local
905 struct ivtv *itv = (struct ivtv *)info->par; ivtvfb_blank() local
944 ivtvfb_restore(struct ivtv *itv) ivtvfb_restore() argument
962 ivtvfb_init_vidmode(struct ivtv *itv) ivtvfb_init_vidmode() argument
1084 ivtvfb_init_io(struct ivtv *itv) ivtvfb_init_io() argument
1139 ivtvfb_release_buffers(struct ivtv *itv) ivtvfb_release_buffers() argument
1156 ivtvfb_init_card(struct ivtv *itv) ivtvfb_init_card() argument
1234 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); ivtvfb_callback_init() local
1249 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); ivtvfb_callback_cleanup() local
[all...]
H A Divtv-routing.c22 void ivtv_audio_set_io(struct ivtv *itv) in ivtv_audio_set_io() argument
28 if (test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags)) in ivtv_audio_set_io()
29 in = &itv->card->radio_input; in ivtv_audio_set_io()
31 in = &itv->card->audio_inputs[itv->audio_input]; in ivtv_audio_set_io()
35 if (itv->card->hw_muxer & IVTV_HW_M52790) in ivtv_audio_set_io()
37 v4l2_subdev_call(itv->sd_muxer, audio, s_routing, in ivtv_audio_set_io()
42 if (itv->card->hw_audio & IVTV_HW_MSP34XX) in ivtv_audio_set_io()
44 ivtv_call_hw(itv, itv in ivtv_audio_set_io()
50 ivtv_video_set_io(struct ivtv *itv) ivtv_video_set_io() argument
[all...]

Completed in 19 milliseconds

123