/drivers/media/video/cx18/ |
H A D | cx18-audio.h | 24 int cx18_audio_set_io(struct cx18 *cx);
|
H A D | cx18-firmware.h | 22 int cx18_firmware_init(struct cx18 *cx); 23 void cx18_halt_firmware(struct cx18 *cx); 24 void cx18_init_memory(struct cx18 *cx); 25 void cx18_init_power(struct cx18 *cx, int lowpwr);
|
H A D | cx18-i2c.h | 24 int cx18_i2c_register(struct cx18 *cx, unsigned idx); 25 struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw); 28 int init_cx18_i2c(struct cx18 *cx); 29 void exit_cx18_i2c(struct cx18 *cx);
|
H A D | cx18-scb.c | 27 void cx18_init_scb(struct cx18 *cx) argument 29 cx18_setup_page(cx, SCB_OFFSET); 30 cx18_memset_io(cx, cx->scb, 0, 0x10000); 32 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); 33 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); 34 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx [all...] |
H A D | cx18-video.h | 22 void cx18_video_set_io(struct cx18 *cx);
|
H A D | cx18-video.c | 26 void cx18_video_set_io(struct cx18 *cx) argument 28 int inp = cx->active_input; 30 v4l2_subdev_call(cx->sd_av, video, s_routing, 31 cx->card->video_inputs[inp].video_input, 0, 0);
|
H A D | cx18-driver.c | 297 static void cx18_iounmap(struct cx18 *cx) argument 299 if (cx == NULL) 303 if (cx->enc_mem != NULL) { 305 iounmap(cx->enc_mem); 306 cx->enc_mem = NULL; 310 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) argument 325 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) argument 332 c.adapter = &cx->i2c_adap[0]; 339 switch (cx->card->type) { 348 cx18_eeprom_dump(cx, eedat 359 cx18_process_eeprom(struct cx18 *cx) argument 450 cx18_parse_std(struct cx18 *cx) argument 532 cx18_process_options(struct cx18 *cx) argument 694 cx18_create_in_workq(struct cx18 *cx) argument 706 cx18_init_in_work_orders(struct cx18 *cx) argument 721 cx18_init_struct1(struct cx18 *cx) argument 778 cx18_init_struct2(struct cx18 *cx) argument 803 cx18_setup_pci(struct cx18 *cx, struct pci_dev *pci_dev, const struct pci_device_id *pci_id) argument 849 cx18_init_subdevs(struct cx18 *cx) argument 901 struct cx18 *cx; local 1151 cx18_init_on_first_open(struct cx18 *cx) argument 1251 cx18_cancel_in_work_orders(struct cx18 *cx) argument 1258 cx18_cancel_out_work_orders(struct cx18 *cx) argument 1269 struct cx18 *cx = to_cx18(v4l2_dev); local [all...] |
H A D | cx18-gpio.c | 52 static void gpio_write(struct cx18 *cx) argument 54 u32 dir_lo = cx->gpio_dir & 0xffff; 55 u32 val_lo = cx->gpio_val & 0xffff; 56 u32 dir_hi = cx->gpio_dir >> 16; 57 u32 val_hi = cx->gpio_val >> 16; 59 cx18_write_reg_expect(cx, dir_lo << 16, 61 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, 63 cx18_write_reg_expect(cx, dir_hi << 16, 65 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, 69 static void gpio_update(struct cx18 *cx, u3 argument 80 gpio_reset_seq(struct cx18 *cx, u32 active_lo, u32 active_hi, unsigned int assert_msecs, unsigned int recovery_msecs) argument 110 struct cx18 *cx = v4l2_get_subdevdata(sd); local 121 struct cx18 *cx = v4l2_get_subdevdata(sd); local 135 struct cx18 *cx = v4l2_get_subdevdata(sd); local 161 struct cx18 *cx = v4l2_get_subdevdata(sd); local 205 struct cx18 *cx = v4l2_get_subdevdata(sd); local 216 struct cx18 *cx = v4l2_get_subdevdata(sd); local 264 cx18_gpio_init(struct cx18 *cx) argument 290 cx18_gpio_register(struct cx18 *cx, u32 hw) argument 320 struct cx18 *cx = to_cx18((struct v4l2_device *)data); local 338 struct cx18 *cx = cb_data->cx; local [all...] |
H A D | cx18-av-audio.c | 27 static int set_audclk_freq(struct cx18 *cx, u32 freq) argument 29 struct cx18_av_state *state = &cx->av_state; 77 cx18_av_write4(cx, 0x108, 0x200d040f); 81 cx18_av_write4(cx, 0x10c, 0x002be2fe); 85 cx18_av_write4(cx, 0x110, 0x0176740c); 89 cx18_av_write4(cx, 0x900, 0x0801f77f); 90 cx18_av_write4(cx, 0x904, 0x0801f77f); 91 cx18_av_write4(cx, 0x90c, 0x0801f77f); 94 cx18_av_write(cx, 0x127, 0x60); 97 cx18_av_write4(cx, 303 cx18_av_audio_set_path(struct cx18 *cx) argument 345 set_volume(struct cx18 *cx, int volume) argument 361 set_bass(struct cx18 *cx, int bass) argument 367 set_treble(struct cx18 *cx, int treble) argument 373 set_balance(struct cx18 *cx, int balance) argument 389 set_mute(struct cx18 *cx, int mute) argument 418 struct cx18 *cx = v4l2_get_subdevdata(sd); local 445 struct cx18 *cx = v4l2_get_subdevdata(sd); local [all...] |
H A D | cx18-io.h | 38 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) argument 44 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) argument 49 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) argument 53 cx18_raw_writel_noretry(cx, val, addr); 54 if (val == cx18_raw_readl(cx, addr)) 60 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) argument 66 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) argument 71 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) argument 75 cx18_writel_noretry(cx, val, addr); 76 if (val == cx18_readl(cx, add 82 cx18_writel_expect(struct cx18 *cx, u32 val, void __iomem *addr, u32 eval, u32 mask) argument 98 cx18_readw(struct cx18 *cx, const void __iomem *addr) argument 104 cx18_writew_noretry(struct cx18 *cx, u16 val, void __iomem *addr) argument 109 cx18_writew(struct cx18 *cx, u16 val, void __iomem *addr) argument 119 cx18_readb(struct cx18 *cx, const void __iomem *addr) argument 125 cx18_writeb_noretry(struct cx18 *cx, u8 val, void __iomem *addr) argument 130 cx18_writeb(struct cx18 *cx, u8 val, void __iomem *addr) argument 141 cx18_memcpy_fromio(struct cx18 *cx, void *to, const void __iomem *from, unsigned int len) argument 151 cx18_write_reg_noretry(struct cx18 *cx, u32 val, u32 reg) argument 156 cx18_write_reg(struct cx18 *cx, u32 val, u32 reg) argument 161 cx18_write_reg_expect(struct cx18 *cx, u32 val, u32 reg, u32 eval, u32 mask) argument 167 cx18_read_reg(struct cx18 *cx, u32 reg) argument 174 cx18_write_enc(struct cx18 *cx, u32 val, u32 addr) argument 179 cx18_read_enc(struct cx18 *cx, u32 addr) argument [all...] |
H A D | cx18-io.c | 27 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) argument 35 cx18_writeb(cx, (u8) val, dst); 40 cx18_writew(cx, val2, dst); 45 cx18_writel(cx, val4, dst); 50 cx18_writew(cx, val2, dst); 55 cx18_writeb(cx, (u8) val, dst); 58 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) argument 60 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); 61 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PC 65 cx18_sw1_irq_disable(struct cx18 *cx, u32 val) argument 71 cx18_sw2_irq_enable(struct cx18 *cx, u32 val) argument 78 cx18_sw2_irq_disable(struct cx18 *cx, u32 val) argument 84 cx18_sw2_irq_disable_cpu(struct cx18 *cx, u32 val) argument 91 cx18_setup_page(struct cx18 *cx, u32 addr) argument [all...] |
H A D | cx18-irq.c | 29 static void xpu_ack(struct cx18 *cx, u32 sw2) argument 32 wake_up(&cx->mb_cpu_waitq); 34 wake_up(&cx->mb_apu_waitq); 37 static void epu_cmd(struct cx18 *cx, u32 sw1) argument 40 cx18_api_epu_cmd_irq(cx, CPU); 42 cx18_api_epu_cmd_irq(cx, APU); 47 struct cx18 *cx = (struct cx18 *)dev_id; local 50 sw1 = cx18_read_reg(cx, SW1_INT_STATUS) & cx->sw1_irq_mask; 51 sw2 = cx18_read_reg(cx, SW2_INT_STATU [all...] |
H A D | cx18-vbi.h | 24 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, 26 int cx18_used_line(struct cx18 *cx, int line, int field);
|
H A D | cx18-i2c.c | 86 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, argument 90 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; 102 init_data->name = cx->card_name; 111 int cx18_i2c_register(struct cx18 *cx, unsigned idx) argument 115 struct i2c_adapter *adap = &cx->i2c_adap[bus]; 124 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, 125 adap, type, 0, cx->card_i2c->radio); 128 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, 129 adap, type, 0, cx->card_i2c->demod); 132 sd = v4l2_i2c_new_subdev(&cx 155 cx18_find_hw(struct cx18 *cx, u32 hw) argument 173 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 186 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 199 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 208 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 236 init_cx18_i2c(struct cx18 *cx) argument 309 exit_cx18_i2c(struct cx18 *cx) argument [all...] |
H A D | cx18-gpio.h | 24 void cx18_gpio_init(struct cx18 *cx); 25 int cx18_gpio_register(struct cx18 *cx, u32 hw);
|
H A D | cx18-streams.h | 25 u32 cx18_find_handle(struct cx18 *cx); 26 struct cx18_stream *cx18_handle_to_stream(struct cx18 *cx, u32 handle); 27 int cx18_streams_setup(struct cx18 *cx); 28 int cx18_streams_register(struct cx18 *cx); 29 void cx18_streams_cleanup(struct cx18 *cx, int unregister); 32 void cx18_stream_rotate_idx_mdls(struct cx18 *cx); 39 s->cx->stream_buffers[CX18_ENC_STREAM_TYPE_IDX] != 0); 62 void cx18_stop_all_captures(struct cx18 *cx);
|
H A D | cx18-controls.c | 35 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local 38 if (atomic_read(&cx->ana_capturing) > 0) 46 cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; 53 if (cx->vbi.sliced_mpeg_data[0] == NULL) { 57 cx->vbi.sliced_mpeg_data[i] = 59 if (cx->vbi.sliced_mpeg_data[i] == NULL) { 61 kfree(cx->vbi.sliced_mpeg_data[i]); 62 cx->vbi.sliced_mpeg_data[i] = NULL; 64 cx->vbi.insert_mpeg = 73 cx 94 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local 109 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local 120 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local [all...] |
H A D | cx18-firmware.c | 101 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) argument 109 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { 118 cx18_setup_page(cx, i); 121 cx18_raw_writel(cx, *src, dst); 122 if (cx18_raw_readl(cx, dst) != *src) { 125 cx18_setup_page(cx, 0); 132 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) 136 cx18_setup_page(cx, SCB_OFFSET); 140 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, argument 153 if (request_firmware(&fw, fn, &cx 208 cx18_halt_firmware(struct cx18 *cx) argument 217 cx18_init_power(struct cx18 *cx, int lowpwr) argument 326 cx18_init_memory(struct cx18 *cx) argument 374 cx18_firmware_init(struct cx18 *cx) argument [all...] |
H A D | cx18-audio.c | 37 int cx18_audio_set_io(struct cx18 *cx) argument 44 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) 45 in = &cx->card->radio_input; 47 in = &cx->card->audio_inputs[cx->audio_input]; 50 v4l2_subdev_call(cx->sd_extmux, audio, s_routing, 53 err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, 59 u = cx18_read_reg(cx, CX18_AUDIO_ENABLE); 86 cx18_write_reg_expect(cx, [all...] |
H A D | cx18-ioctl.c | 152 struct cx18 *cx = id->cx; local 153 struct cx18_stream *s = &cx->streams[id->type]; 156 pixfmt->width = cx->cxhdl.width; 157 pixfmt->height = cx->cxhdl.height; 176 struct cx18 *cx = fh2id(fh)->cx; local 183 vbifmt->start[0] = cx->vbi.start[0]; 184 vbifmt->start[1] = cx->vbi.start[1]; 185 vbifmt->count[0] = vbifmt->count[1] = cx 195 struct cx18 *cx = fh2id(fh)->cx; local 225 struct cx18 *cx = id->cx; local 254 struct cx18 *cx = fh2id(fh)->cx; local 274 struct cx18 *cx = id->cx; local 312 struct cx18 *cx = id->cx; local 342 struct cx18 *cx = id->cx; local 372 struct cx18 *cx = fh2id(fh)->cx; local 422 cx18_cxc(struct cx18 *cx, unsigned int cmd, void *arg) argument 442 struct cx18 *cx = fh2id(fh)->cx; local 454 struct cx18 *cx = fh2id(fh)->cx; local 468 struct cx18 *cx = id->cx; local 482 struct cx18 *cx = fh2id(fh)->cx; local 489 struct cx18 *cx = fh2id(fh)->cx; local 497 struct cx18 *cx = fh2id(fh)->cx; local 508 struct cx18 *cx = fh2id(fh)->cx; local 517 struct cx18 *cx = fh2id(fh)->cx; local 533 struct cx18 *cx = id->cx; local 543 struct cx18 *cx = fh2id(fh)->cx; local 574 struct cx18 *cx = fh2id(fh)->cx; local 583 struct cx18 *cx = id->cx; local 612 struct cx18 *cx = fh2id(fh)->cx; local 624 struct cx18 *cx = id->cx; local 638 struct cx18 *cx = fh2id(fh)->cx; local 647 struct cx18 *cx = id->cx; local 683 struct cx18 *cx = id->cx; local 694 struct cx18 *cx = fh2id(fh)->cx; local 711 struct cx18 *cx = fh2id(fh)->cx; local 832 struct cx18 *cx = fh2id(fh)->cx; local 879 struct cx18 *cx = id->cx; local 898 struct cx18 *cx = id->cx; local 919 struct cx18 *cx = id->cx; local 937 struct cx18 *cx = id->cx; local 951 struct cx18 *cx = id->cx; local 964 struct cx18 *cx = id->cx; local 977 struct cx18 *cx = id->cx; local 991 struct cx18 *cx = id->cx; local 1051 struct cx18 *cx = fh2id(fh)->cx; local 1083 struct cx18 *cx = fh2id(fh)->cx; local 1127 struct cx18 *cx = fh2id(fh)->cx; local 1150 struct cx18 *cx = id->cx; local [all...] |
H A D | cx18-streams.c | 117 struct cx18 *cx = s->cx; local 133 buf->tvnorm != cx->std) { 138 buf->tvnorm = cx->std; 160 buf->tvnorm = cx->std; 192 struct cx18 *cx = s->cx; local 194 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; 214 struct cx18 *cx local 248 cx18_stream_init(struct cx18 *cx, int type) argument 306 cx18_prep_dev(struct cx18 *cx, int type) argument 385 cx18_streams_setup(struct cx18 *cx) argument 409 cx18_reg_dev(struct cx18 *cx, int type) argument 478 cx18_streams_register(struct cx18 *cx) argument 500 cx18_streams_cleanup(struct cx18 *cx, int unregister) argument 559 struct cx18 *cx = s->cx; local 667 cx18_stream_rotate_idx_mdls(struct cx18 *cx) argument 697 struct cx18 *cx = s->cx; local 792 struct cx18 *cx = s->cx; local 966 cx18_stop_all_captures(struct cx18 *cx) argument 982 struct cx18 *cx = s->cx; local 1033 cx18_find_handle(struct cx18 *cx) argument 1047 cx18_handle_to_stream(struct cx18 *cx, u32 handle) argument [all...] |
H A D | cx18-av-core.c | 30 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) argument 35 u32 x = cx18_read_reg(cx, reg); 38 cx18_write_reg(cx, x, reg); 42 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) argument 46 u32 x = cx18_read_reg(cx, reg); 49 cx18_write_reg_expect(cx, x, reg, 54 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) argument 56 cx18_write_reg(cx, value, 0xc40000 + addr); 61 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) argument 63 cx18_write_reg_expect(cx, valu 67 cx18_av_write4_noretry(struct cx18 *cx, u16 addr, u32 value) argument 73 cx18_av_read(struct cx18 *cx, u16 addr) argument 81 cx18_av_read4(struct cx18 *cx, u16 addr) argument 86 cx18_av_and_or(struct cx18 *cx, u16 addr, unsigned and_mask, u8 or_value) argument 94 cx18_av_and_or4(struct cx18 *cx, u16 addr, u32 and_mask, u32 or_value) argument 102 cx18_av_init(struct cx18 *cx) argument 131 struct cx18 *cx = v4l2_get_subdevdata(sd); local 288 cx18_av_std_setup(struct cx18 *cx) argument 533 input_change(struct cx18 *cx) argument 581 struct cx18 *cx = v4l2_get_subdevdata(sd); local 586 set_input(struct cx18 *cx, enum cx18_av_video_input vid_input, enum cx18_av_audio_input aud_input) argument 763 struct cx18 *cx = v4l2_get_subdevdata(sd); local 771 struct cx18 *cx = v4l2_get_subdevdata(sd); local 778 struct cx18 *cx = v4l2_get_subdevdata(sd); local 815 struct cx18 *cx = v4l2_get_subdevdata(sd); local 860 struct cx18 *cx = v4l2_get_subdevdata(sd); local 923 struct cx18 *cx = v4l2_get_subdevdata(sd); local 952 struct cx18 *cx = v4l2_get_subdevdata(sd); local 1022 struct cx18 *cx = v4l2_get_subdevdata(sd); local 1035 log_video_status(struct cx18 *cx) argument 1077 log_audio_status(struct cx18 *cx) argument 1228 struct cx18 *cx = v4l2_get_subdevdata(sd); local 1255 struct cx18 *cx = v4l2_get_subdevdata(sd); local 1271 struct cx18 *cx = v4l2_get_subdevdata(sd); local 1340 cx18_av_probe(struct cx18 *cx) argument [all...] |
H A D | cx18-av-firmware.c | 36 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) argument 38 struct v4l2_subdev *sd = &cx->av_state.sd; 46 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 50 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); 51 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 56 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 70 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 78 int cx18_av_loadfw(struct cx18 *cx) argument 80 struct v4l2_subdev *sd = &cx->av_state.sd; 88 if (request_firmware(&fw, FWFILE, &cx [all...] |
H A D | cx18-fileops.c | 45 struct cx18 *cx = id->cx; local 46 struct cx18_stream *s = &cx->streams[type]; 87 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; 88 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) 89 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; 105 struct cx18 *cx = s->cx; local 139 s_assoc = &cx 160 cx18_dualwatch(struct cx18 *cx) argument 186 struct cx18 *cx = s->cx; local 258 cx18_setup_sliced_vbi_mdl(struct cx18 *cx) argument 276 struct cx18 *cx = s->cx; local 422 struct cx18 *cx = s->cx; local 488 struct cx18 *cx = s->cx; local 498 struct cx18 *cx = id->cx; local 589 struct cx18 *cx = id->cx; local 613 struct cx18 *cx = id->cx; local 655 struct cx18 *cx = id->cx; local 706 struct cx18 *cx = id->cx; local 749 struct cx18 *cx = id->cx; local 789 struct cx18 *cx = s->cx; local 841 struct cx18 *cx = s->cx; local 855 cx18_mute(struct cx18 *cx) argument 868 cx18_unmute(struct cx18 *cx) argument [all...] |
H A D | cx18-vbi.c | 39 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) argument 59 int idx = cx->vbi.frame % CX18_VBI_FRAMES; 60 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; 63 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; 103 cx->vbi.sliced_mpeg_size[idx] = sd + size; 109 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) argument 112 u32 lines = cx->vbi.count * 2; 142 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, argument 148 u32 line_size = cx->is_60hz ? vbi_hblank_samples_60Hz 177 v4l2_subdev_call(cx 189 _cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf) argument 251 cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, int streamtype) argument [all...] |