Home
last modified time | relevance | path

Searched refs:cx18 (Results 1 – 25 of 53) sorted by relevance

123

/openbmc/linux/drivers/media/pci/cx18/
H A DMakefile2 cx18-objs := cx18-driver.o cx18-cards.o cx18-i2c.o cx18-firmware.o cx18-gpio.o \
3 cx18-queue.o cx18-streams.o cx18-fileops.o cx18-ioctl.o cx18-controls.o \
4 cx18-mailbox.o cx18-vbi.o cx18-audio.o cx18-video.o cx18-irq.o \
5 cx18-av-core.o cx18-av-audio.o cx18-av-firmware.o cx18-av-vbi.o cx18-scb.o \
6 cx18-dvb.o cx18-io.o
7 cx18-alsa-objs := cx18-alsa-main.o cx18-alsa-pcm.o
9 obj-$(CONFIG_VIDEO_CX18) += cx18.o
10 obj-$(CONFIG_VIDEO_CX18_ALSA) += cx18-alsa.o
H A Dcx18-io.h52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry()
68 void cx18_writel_expect(struct cx18 *cx, u32 val, void __iomem *addr, in cx18_writel_expect()
127 void cx18_memcpy_fromio(struct cx18 *cx, void *to, in cx18_memcpy_fromio()
153 static inline u32 cx18_read_reg(struct cx18 *cx, u32 reg) in cx18_read_reg()
165 static inline u32 cx18_read_enc(struct cx18 *cx, u32 addr) in cx18_read_enc()
170 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val);
171 void cx18_sw1_irq_disable(struct cx18 *cx, u32 val);
172 void cx18_sw2_irq_enable(struct cx18 *cx, u32 val);
173 void cx18_sw2_irq_disable(struct cx18 *cx, u32 val);
174 void cx18_sw2_irq_disable_cpu(struct cx18 *cx, u32 val);
[all …]
H A Dcx18-streams.h11 u32 cx18_find_handle(struct cx18 *cx);
12 struct cx18_stream *cx18_handle_to_stream(struct cx18 *cx, u32 handle);
13 int cx18_streams_setup(struct cx18 *cx);
14 int cx18_streams_register(struct cx18 *cx);
15 void cx18_streams_cleanup(struct cx18 *cx, int unregister);
18 void cx18_stream_rotate_idx_mdls(struct cx18 *cx);
48 void cx18_stop_all_captures(struct cx18 *cx);
H A Dcx18-av-core.h17 struct cx18;
344 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value);
345 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value);
346 int cx18_av_write4_noretry(struct cx18 *cx, u16 addr, u32 value);
350 u8 cx18_av_read(struct cx18 *cx, u16 addr);
351 u32 cx18_av_read4(struct cx18 *cx, u16 addr);
353 int cx18_av_and_or4(struct cx18 *cx, u16 addr, u32 mask, u32 value);
354 void cx18_av_std_setup(struct cx18 *cx);
356 int cx18_av_probe(struct cx18 *cx);
360 int cx18_av_loadfw(struct cx18 *cx);
[all …]
H A Dcx18-controls.c21 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt()
77 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_video_encoding()
95 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_audio_sampling_freq()
106 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_audio_mode()
H A Dcx18-gpio.c38 static void gpio_write(struct cx18 *cx) in gpio_write()
96 struct cx18 *cx = v4l2_get_subdevdata(sd); in gpiomux_log_status()
107 struct cx18 *cx = v4l2_get_subdevdata(sd); in gpiomux_s_radio()
121 struct cx18 *cx = v4l2_get_subdevdata(sd); in gpiomux_s_std()
147 struct cx18 *cx = v4l2_get_subdevdata(sd); in gpiomux_s_audio_routing()
195 struct cx18 *cx = v4l2_get_subdevdata(sd); in resetctrl_log_status()
206 struct cx18 *cx = v4l2_get_subdevdata(sd); in resetctrl_reset()
254 void cx18_gpio_init(struct cx18 *cx) in cx18_gpio_init()
280 int cx18_gpio_register(struct cx18 *cx, u32 hw) in cx18_gpio_register()
310 struct cx18 *cx = to_cx18(data); in cx18_reset_ir_gpio()
[all …]
H A Dcx18-io.c13 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io()
44 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable()
51 void cx18_sw1_irq_disable(struct cx18 *cx, u32 val) in cx18_sw1_irq_disable()
57 void cx18_sw2_irq_enable(struct cx18 *cx, u32 val) in cx18_sw2_irq_enable()
64 void cx18_sw2_irq_disable(struct cx18 *cx, u32 val) in cx18_sw2_irq_disable()
70 void cx18_sw2_irq_disable_cpu(struct cx18 *cx, u32 val) in cx18_sw2_irq_disable_cpu()
77 void cx18_setup_page(struct cx18 *cx, u32 addr) in cx18_setup_page()
H A Dcx18-firmware.h8 int cx18_firmware_init(struct cx18 *cx);
9 void cx18_halt_firmware(struct cx18 *cx);
10 void cx18_init_memory(struct cx18 *cx);
11 void cx18_init_power(struct cx18 *cx, int lowpwr);
H A Dcx18-mailbox.h25 struct cx18;
70 int cx18_api(struct cx18 *cx, u32 cmd, int args, u32 data[]);
71 int cx18_vapi_result(struct cx18 *cx, u32 data[MAX_MB_ARGUMENTS], u32 cmd,
73 int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...);
77 void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu);
H A Dcx18-i2c.h10 int cx18_i2c_register(struct cx18 *cx, unsigned idx);
11 struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw);
14 int init_cx18_i2c(struct cx18 *cx);
15 void exit_cx18_i2c(struct cx18 *cx);
H A Dcx18-av-audio.c13 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq()
289 void cx18_av_audio_set_path(struct cx18 *cx) in cx18_av_audio_set_path()
331 static void set_volume(struct cx18 *cx, int volume) in set_volume()
347 static void set_bass(struct cx18 *cx, int bass) in set_bass()
353 static void set_treble(struct cx18 *cx, int treble) in set_treble()
359 static void set_balance(struct cx18 *cx, int balance) in set_balance()
375 static void set_mute(struct cx18 *cx, int mute) in set_mute()
404 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_clock_freq()
431 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_audio_s_ctrl()
H A Dcx18-ioctl.c56 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap()
80 struct cx18 *cx = id->cx; in cx18_try_fmt_vid_cap()
125 struct cx18 *cx = id->cx; in cx18_s_fmt_vid_cap()
334 struct cx18 *cx = id->cx; in cx18_s_fmt_vbi_cap()
364 struct cx18 *cx = id->cx; in cx18_s_fmt_sliced_vbi_cap()
424 struct cx18 *cx = id->cx; in cx18_querycap()
527 struct cx18 *cx = id->cx; in cx18_s_input()
576 struct cx18 *cx = id->cx; in cx18_s_frequency()
599 struct cx18 *cx = id->cx; in cx18_s_std()
648 struct cx18 *cx = id->cx; in cx18_s_tuner()
[all …]
H A Dcx18-av-core.c58 u8 cx18_av_read(struct cx18 *cx, u16 addr) in cx18_av_read()
66 u32 cx18_av_read4(struct cx18 *cx, u16 addr) in cx18_av_read4()
87 static void cx18_av_init(struct cx18 *cx) in cx18_av_init()
116 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_initialize()
273 void cx18_av_std_setup(struct cx18 *cx) in cx18_av_std_setup()
516 static void input_change(struct cx18 *cx) in input_change()
564 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_frequency()
746 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_video_routing()
754 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_audio_routing()
761 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_g_tuner()
[all …]
H A Dcx18-i2c.c69 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, in cx18_i2c_new_ir()
95 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register()
136 struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw) in cx18_find_hw()
154 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_setscl()
167 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_setsda()
180 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_getscl()
189 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_getsda()
217 int init_cx18_i2c(struct cx18 *cx) in init_cx18_i2c()
288 void exit_cx18_i2c(struct cx18 *cx) in exit_cx18_i2c()
H A Dcx18-fileops.c32 struct cx18 *cx = id->cx; in cx18_claim_stream()
91 struct cx18 *cx = s->cx; in cx18_release_stream()
172 struct cx18 *cx = s->cx; in cx18_get_mdl()
262 struct cx18 *cx = s->cx; in cx18_copy_buf_to_user()
408 struct cx18 *cx = s->cx; in cx18_read()
474 struct cx18 *cx = s->cx; in cx18_read_pos()
484 struct cx18 *cx = id->cx; in cx18_start_capture()
575 struct cx18 *cx = id->cx; in cx18_v4l2_read()
642 struct cx18 *cx = s->cx; in cx18_stop_capture()
729 struct cx18 *cx = s->cx; in cx18_serialized_open()
[all …]
H A Dcx18-mailbox.c335 static void epu_cmd(struct cx18 *cx, struct cx18_in_work_order *order) in epu_cmd()
373 struct cx18 *cx = order->cx; in cx18_in_work_handler()
445 int epu_debug_irq(struct cx18 *cx, struct cx18_in_work_order *order) in epu_debug_irq()
466 int epu_cmd_irq(struct cx18 *cx, struct cx18_in_work_order *order) in epu_cmd_irq()
498 struct cx18_in_work_order *alloc_in_work_order_irq(struct cx18 *cx) in alloc_in_work_order_irq()
521 void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu) in cx18_api_epu_cmd_irq()
729 int cx18_api(struct cx18 *cx, u32 cmd, int args, u32 data[]) in cx18_api()
736 struct cx18 *cx = s->cx; in cx18_set_filter_param()
755 struct cx18 *cx = s->cx; in cx18_api_func()
814 int cx18_vapi_result(struct cx18 *cx, u32 data[MAX_MB_ARGUMENTS], in cx18_vapi_result()
[all …]
H A Dcx18-driver.h340 struct cx18; /* forward reference */
356 struct cx18 *cx;
371 struct cx18 *cx; /* for ease of use */
419 struct cx18 *cx;
555 struct cx18 *cx;
562 struct cx18 { struct
666 return container_of(v4l2_dev, struct cx18, v4l2_dev); in to_cx18()
670 extern int (*cx18_ext_init)(struct cx18 *);
682 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv);
685 int cx18_init_on_first_open(struct cx18 *cx);
[all …]
H A Dcx18-irq.c15 static void xpu_ack(struct cx18 *cx, u32 sw2) in xpu_ack()
23 static void epu_cmd(struct cx18 *cx, u32 sw1) in epu_cmd()
33 struct cx18 *cx = dev_id; in cx18_irq_handler()
H A Dcx18-driver.c38 int (*cx18_ext_init)(struct cx18 *);
242 struct cx18 *dev = container_of(work, struct cx18, request_module_wk); in request_module_async()
252 static void request_modules(struct cx18 *dev) in request_modules()
282 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap()
351 static void cx18_process_eeprom(struct cx18 *cx) in cx18_process_eeprom()
713 static int cx18_init_struct1(struct cx18 *cx) in cx18_init_struct1()
770 static void cx18_init_struct2(struct cx18 *cx) in cx18_init_struct2()
840 static void cx18_init_subdevs(struct cx18 *cx) in cx18_init_subdevs()
892 struct cx18 *cx; in cx18_probe()
1134 int cx18_init_on_first_open(struct cx18 *cx) in cx18_init_on_first_open()
[all …]
H A Dcx18-vbi.h10 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl,
12 int cx18_used_line(struct cx18 *cx, int line, int field);
H A Dcx18-gpio.h11 void cx18_gpio_init(struct cx18 *cx);
12 int cx18_gpio_register(struct cx18 *cx, u32 hw);
H A Dcx18-streams.c108 struct cx18 *cx = s->cx; in cx18_queue_setup()
155 struct cx18 *cx = s->cx; in cx18_buf_prepare()
383 int cx18_streams_setup(struct cx18 *cx) in cx18_streams_setup()
475 int cx18_streams_register(struct cx18 *cx) in cx18_streams_register()
551 struct cx18 *cx = s->cx; in cx18_vbi_setup()
659 void cx18_stream_rotate_idx_mdls(struct cx18 *cx) in cx18_stream_rotate_idx_mdls()
689 struct cx18 *cx = s->cx; in _cx18_stream_put_mdl_fw()
784 struct cx18 *cx = s->cx; in cx18_start_v4l2_encode_stream()
958 void cx18_stop_all_captures(struct cx18 *cx) in cx18_stop_all_captures()
974 struct cx18 *cx = s->cx; in cx18_stop_v4l2_encode_stream()
[all …]
H A Dcx18-alsa-main.c95 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
115 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_init()
179 static int cx18_alsa_load(struct cx18 *cx) in cx18_alsa_load()
228 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_exit()
H A Dcx18-vbi.c25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data()
95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf()
128 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf()
175 static void _cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf) in _cx18_process_vbi_data()
237 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, in cx18_process_vbi_data()
H A Dcx18-firmware.c87 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) in load_cpu_fw_direct()
126 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, in load_apu_fw_direct()
199 void cx18_halt_firmware(struct cx18 *cx) in cx18_halt_firmware()
208 void cx18_init_power(struct cx18 *cx, int lowpwr) in cx18_init_power()
317 void cx18_init_memory(struct cx18 *cx) in cx18_init_memory()
368 int cx18_firmware_init(struct cx18 *cx) in cx18_firmware_init()

123