Home
last modified time | relevance | path

Searched full:cx (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/linux/drivers/media/pci/cx18/
H A Dcx18-scb.c13 void cx18_init_scb(struct cx18 *cx) in cx18_init_scb() argument
15 cx18_setup_page(cx, SCB_OFFSET); in cx18_init_scb()
16 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb()
18 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb()
19 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb()
20 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx in cx18_init_scb()
[all...]
H A Dcx18-driver.c282 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap() argument
284 if (!cx) in cx18_iounmap()
288 if (cx->enc_mem) { in cx18_iounmap()
290 iounmap(cx->enc_mem); in cx18_iounmap()
291 cx->enc_mem = NULL; in cx18_iounmap()
295 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) in cx18_eeprom_dump() argument
310 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument
322 c->adapter = &cx->i2c_adap[0]; in cx18_read_eeprom()
328 switch (cx->card->type) { in cx18_read_eeprom()
337 cx18_eeprom_dump(cx, eedat in cx18_read_eeprom()
351 cx18_process_eeprom(struct cx18 * cx) cx18_process_eeprom() argument
442 cx18_parse_std(struct cx18 * cx) cx18_parse_std() argument
524 cx18_process_options(struct cx18 * cx) cx18_process_options() argument
686 cx18_create_in_workq(struct cx18 * cx) cx18_create_in_workq() argument
698 cx18_init_in_work_orders(struct cx18 * cx) cx18_init_in_work_orders() argument
713 cx18_init_struct1(struct cx18 * cx) cx18_init_struct1() argument
770 cx18_init_struct2(struct cx18 * cx) cx18_init_struct2() argument
795 cx18_setup_pci(struct cx18 * cx,struct pci_dev * pci_dev,const struct pci_device_id * pci_id) cx18_setup_pci() argument
840 cx18_init_subdevs(struct cx18 * cx) cx18_init_subdevs() argument
892 struct cx18 *cx; cx18_probe() local
1134 cx18_init_on_first_open(struct cx18 * cx) cx18_init_on_first_open() argument
1234 cx18_cancel_in_work_orders(struct cx18 * cx) cx18_cancel_in_work_orders() argument
1241 cx18_cancel_out_work_orders(struct cx18 * cx) cx18_cancel_out_work_orders() argument
1252 struct cx18 *cx = to_cx18(v4l2_dev); cx18_remove() local
[all...]
H A Dcx18-gpio.c38 static void gpio_write(struct cx18 *cx) in gpio_write() argument
40 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write()
41 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write()
42 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write()
43 u32 val_hi = cx->gpio_val >> 16; in gpio_write()
45 cx18_write_reg_expect(cx, dir_lo << 16, in gpio_write()
47 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, in gpio_write()
49 cx18_write_reg_expect(cx, dir_hi << 16, in gpio_write()
51 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, in gpio_write()
55 static void gpio_update(struct cx18 *cx, u3 argument
66 gpio_reset_seq(struct cx18 * cx,u32 active_lo,u32 active_hi,unsigned int assert_msecs,unsigned int recovery_msecs) gpio_reset_seq() argument
96 struct cx18 *cx = v4l2_get_subdevdata(sd); gpiomux_log_status() local
107 struct cx18 *cx = v4l2_get_subdevdata(sd); gpiomux_s_radio() local
121 struct cx18 *cx = v4l2_get_subdevdata(sd); gpiomux_s_std() local
147 struct cx18 *cx = v4l2_get_subdevdata(sd); gpiomux_s_audio_routing() local
195 struct cx18 *cx = v4l2_get_subdevdata(sd); resetctrl_log_status() local
206 struct cx18 *cx = v4l2_get_subdevdata(sd); resetctrl_reset() local
254 cx18_gpio_init(struct cx18 * cx) cx18_gpio_init() argument
280 cx18_gpio_register(struct cx18 * cx,u32 hw) cx18_gpio_register() argument
313 struct cx18 *cx = cb_data->cx; cx18_reset_tuner_gpio() local
[all...]
H A Dcx18-av-audio.c13 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq() argument
15 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq()
63 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq()
67 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
71 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq()
75 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq()
76 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq()
77 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq()
80 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq()
83 cx18_av_write4(cx, in set_audclk_freq()
289 cx18_av_audio_set_path(struct cx18 * cx) cx18_av_audio_set_path() argument
331 set_volume(struct cx18 * cx,int volume) set_volume() argument
347 set_bass(struct cx18 * cx,int bass) set_bass() argument
353 set_treble(struct cx18 * cx,int treble) set_treble() argument
359 set_balance(struct cx18 * cx,int balance) set_balance() argument
375 set_mute(struct cx18 * cx,int mute) set_mute() argument
404 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_clock_freq() local
431 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_audio_s_ctrl() local
[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() argument
73 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir()
86 init_data->name = cx->card_name; in cx18_i2c_new_ir()
95 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register() argument
99 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register()
105 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
106 adap, type, 0, cx->card_i2c->radio); in cx18_i2c_register()
109 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
110 adap, type, 0, cx->card_i2c->demod); in cx18_i2c_register()
113 sd = v4l2_i2c_new_subdev(&cx in cx18_i2c_register()
136 cx18_find_hw(struct cx18 * cx,u32 hw) cx18_find_hw() argument
154 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; cx18_setscl() local
167 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; cx18_setsda() local
180 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; cx18_getscl() local
189 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; cx18_getsda() local
217 init_cx18_i2c(struct cx18 * cx) init_cx18_i2c() argument
288 exit_cx18_i2c(struct cx18 * cx) exit_cx18_i2c() argument
[all...]
H A Dcx18-io.h24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument
30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument
35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument
39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel()
40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel()
46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument
52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument
57 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel() argument
61 cx18_writel_noretry(cx, val, addr); in cx18_writel()
62 if (val == cx18_readl(cx, add in cx18_writel()
68 cx18_writel_expect(struct cx18 * cx,u32 val,void __iomem * addr,u32 eval,u32 mask) cx18_writel_expect() argument
84 cx18_readw(struct cx18 * cx,const void __iomem * addr) cx18_readw() argument
90 cx18_writew_noretry(struct cx18 * cx,u16 val,void __iomem * addr) cx18_writew_noretry() argument
95 cx18_writew(struct cx18 * cx,u16 val,void __iomem * addr) cx18_writew() argument
105 cx18_readb(struct cx18 * cx,const void __iomem * addr) cx18_readb() argument
111 cx18_writeb_noretry(struct cx18 * cx,u8 val,void __iomem * addr) cx18_writeb_noretry() argument
116 cx18_writeb(struct cx18 * cx,u8 val,void __iomem * addr) cx18_writeb() argument
127 cx18_memcpy_fromio(struct cx18 * cx,void * to,const void __iomem * from,unsigned int len) cx18_memcpy_fromio() argument
137 cx18_write_reg_noretry(struct cx18 * cx,u32 val,u32 reg) cx18_write_reg_noretry() argument
142 cx18_write_reg(struct cx18 * cx,u32 val,u32 reg) cx18_write_reg() argument
147 cx18_write_reg_expect(struct cx18 * cx,u32 val,u32 reg,u32 eval,u32 mask) cx18_write_reg_expect() argument
153 cx18_read_reg(struct cx18 * cx,u32 reg) cx18_read_reg() argument
160 cx18_write_enc(struct cx18 * cx,u32 val,u32 addr) cx18_write_enc() argument
165 cx18_read_enc(struct cx18 * cx,u32 addr) cx18_read_enc() argument
[all...]
H A Dcx18-ioctl.c56 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local
57 struct cx18_stream *s = &cx->streams[id->type]; in cx18_g_fmt_vid_cap()
60 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
61 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
80 struct cx18 *cx = id->cx; in cx18_try_fmt_vid_cap() local
88 h = min(h, cx->is_50hz ? 576 : 480); in cx18_try_fmt_vid_cap()
89 h = max(h, (cx->is_50hz ? 576 : 480) / 8); in cx18_try_fmt_vid_cap()
125 struct cx18 *cx in cx18_s_fmt_vid_cap() local
264 struct cx18 *cx = fh2id(fh)->cx; cx18_g_fmt_vbi_cap() local
283 struct cx18 *cx = fh2id(fh)->cx; cx18_g_fmt_sliced_vbi_cap() local
314 struct cx18 *cx = fh2id(fh)->cx; cx18_try_fmt_sliced_vbi_cap() local
334 struct cx18 *cx = id->cx; cx18_s_fmt_vbi_cap() local
364 struct cx18 *cx = id->cx; cx18_s_fmt_sliced_vbi_cap() local
395 struct cx18 *cx = fh2id(fh)->cx; cx18_g_register() local
409 struct cx18 *cx = fh2id(fh)->cx; cx18_s_register() local
424 struct cx18 *cx = id->cx; cx18_querycap() local
434 struct cx18 *cx = fh2id(fh)->cx; cx18_enumaudio() local
441 struct cx18 *cx = fh2id(fh)->cx; cx18_g_audio() local
449 struct cx18 *cx = fh2id(fh)->cx; cx18_s_audio() local
460 struct cx18 *cx = fh2id(fh)->cx; cx18_enum_input() local
469 struct cx18 *cx = fh2id(fh)->cx; cx18_g_pixelaspect() local
482 struct cx18 *cx = fh2id(fh)->cx; cx18_g_selection() local
518 struct cx18 *cx = fh2id(fh)->cx; cx18_g_input() local
527 struct cx18 *cx = id->cx; cx18_s_input() local
564 struct cx18 *cx = fh2id(fh)->cx; cx18_g_frequency() local
576 struct cx18 *cx = id->cx; cx18_s_frequency() local
590 struct cx18 *cx = fh2id(fh)->cx; cx18_g_std() local
599 struct cx18 *cx = id->cx; cx18_s_std() local
648 struct cx18 *cx = id->cx; cx18_s_tuner() local
659 struct cx18 *cx = fh2id(fh)->cx; cx18_g_tuner() local
676 struct cx18 *cx = fh2id(fh)->cx; cx18_g_sliced_vbi_cap() local
797 struct cx18 *cx = fh2id(fh)->cx; cx18_g_enc_index() local
845 struct cx18 *cx = id->cx; cx18_encoder_cmd() local
903 struct cx18 *cx = fh2id(fh)->cx; cx18_try_encoder_cmd() local
935 struct cx18 *cx = fh2id(fh)->cx; cx18_log_status() local
979 struct cx18 *cx = fh2id(fh)->cx; cx18_default() local
[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() argument
21 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
26 cx18_writew(cx, val2, dst); in cx18_memset_io()
31 cx18_writel(cx, val4, dst); in cx18_memset_io()
36 cx18_writew(cx, val2, dst); in cx18_memset_io()
41 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
44 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument
46 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable()
47 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PC in cx18_sw1_irq_enable()
51 cx18_sw1_irq_disable(struct cx18 * cx,u32 val) cx18_sw1_irq_disable() argument
57 cx18_sw2_irq_enable(struct cx18 * cx,u32 val) cx18_sw2_irq_enable() argument
64 cx18_sw2_irq_disable(struct cx18 * cx,u32 val) cx18_sw2_irq_disable() argument
70 cx18_sw2_irq_disable_cpu(struct cx18 * cx,u32 val) cx18_sw2_irq_disable_cpu() argument
77 cx18_setup_page(struct cx18 * cx,u32 addr) cx18_setup_page() argument
[all...]
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() argument
95 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct()
104 cx18_setup_page(cx, i); in load_cpu_fw_direct()
107 cx18_raw_writel(cx, *src, dst); in load_cpu_fw_direct()
108 if (cx18_raw_readl(cx, dst) != *src) { in load_cpu_fw_direct()
111 cx18_setup_page(cx, 0); in load_cpu_fw_direct()
118 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) in load_cpu_fw_direct()
122 cx18_setup_page(cx, SCB_OFFSET); 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() argument
139 if (request_firmware(&fw, fn, &cx in load_apu_fw_direct()
199 cx18_halt_firmware(struct cx18 * cx) cx18_halt_firmware() argument
208 cx18_init_power(struct cx18 * cx,int lowpwr) cx18_init_power() argument
317 cx18_init_memory(struct cx18 * cx) cx18_init_memory() argument
368 cx18_firmware_init(struct cx18 * cx) cx18_firmware_init() argument
[all...]
H A Dcx18-streams.c109 struct cx18 *cx = s->cx; in cx18_queue_setup() local
117 szimage = cx->cxhdl.height * 720 * 3 / 2; in cx18_queue_setup()
119 szimage = cx->cxhdl.height * 720 * 2; in cx18_queue_setup()
156 struct cx18 *cx = s->cx; in cx18_buf_prepare() local
164 size = cx->cxhdl.height * 720 * 3 / 2; in cx18_buf_prepare()
166 size = cx->cxhdl.height * 720 * 2; in cx18_buf_prepare()
234 static int cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument
236 struct cx18_stream *s = &cx in cx18_stream_init()
301 cx18_prep_dev(struct cx18 * cx,int type) cx18_prep_dev() argument
382 cx18_streams_setup(struct cx18 * cx) cx18_streams_setup() argument
406 cx18_reg_dev(struct cx18 * cx,int type) cx18_reg_dev() argument
474 cx18_streams_register(struct cx18 * cx) cx18_streams_register() argument
496 cx18_streams_cleanup(struct cx18 * cx,int unregister) cx18_streams_cleanup() argument
550 struct cx18 *cx = s->cx; cx18_vbi_setup() local
658 cx18_stream_rotate_idx_mdls(struct cx18 * cx) cx18_stream_rotate_idx_mdls() argument
688 struct cx18 *cx = s->cx; _cx18_stream_put_mdl_fw() local
783 struct cx18 *cx = s->cx; cx18_start_v4l2_encode_stream() local
957 cx18_stop_all_captures(struct cx18 * cx) cx18_stop_all_captures() argument
973 struct cx18 *cx = s->cx; cx18_stop_v4l2_encode_stream() local
1021 cx18_find_handle(struct cx18 * cx) cx18_find_handle() argument
1035 cx18_handle_to_stream(struct cx18 * cx,u32 handle) cx18_handle_to_stream() argument
[all...]
H A Dcx18-fileops.c32 struct cx18 *cx = id->cx; in cx18_claim_stream() local
33 struct cx18_stream *s = &cx->streams[type]; in cx18_claim_stream()
73 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream()
74 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) in cx18_claim_stream()
75 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream()
91 struct cx18 *cx = s->cx; in cx18_release_stream() local
125 s_assoc = &cx in cx18_release_stream()
146 cx18_dualwatch(struct cx18 * cx) cx18_dualwatch() argument
172 struct cx18 *cx = s->cx; cx18_get_mdl() local
244 cx18_setup_sliced_vbi_mdl(struct cx18 * cx) cx18_setup_sliced_vbi_mdl() argument
262 struct cx18 *cx = s->cx; cx18_copy_buf_to_user() local
408 struct cx18 *cx = s->cx; cx18_read() local
474 struct cx18 *cx = s->cx; cx18_read_pos() local
484 struct cx18 *cx = id->cx; cx18_start_capture() local
575 struct cx18 *cx = id->cx; cx18_v4l2_read() local
594 struct cx18 *cx = id->cx; cx18_v4l2_enc_poll() local
642 struct cx18 *cx = s->cx; cx18_stop_capture() local
683 struct cx18 *cx = id->cx; cx18_v4l2_close() local
729 struct cx18 *cx = s->cx; cx18_serialized_open() local
781 struct cx18 *cx = s->cx; cx18_v4l2_open() local
795 cx18_mute(struct cx18 * cx) cx18_mute() argument
808 cx18_unmute(struct cx18 * cx) cx18_unmute() argument
[all...]
H A Dcx18-av-core.c15 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) in cx18_av_write() argument
20 u32 x = cx18_read_reg(cx, reg); in cx18_av_write()
23 cx18_write_reg(cx, x, reg); in cx18_av_write()
27 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) in cx18_av_write_expect() argument
31 u32 x = cx18_read_reg(cx, reg); in cx18_av_write_expect()
34 cx18_write_reg_expect(cx, x, reg, in cx18_av_write_expect()
39 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) in cx18_av_write4() argument
41 cx18_write_reg(cx, value, 0xc40000 + addr); in cx18_av_write4()
46 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) in cx18_av_write4_expect() argument
48 cx18_write_reg_expect(cx, valu in cx18_av_write4_expect()
52 cx18_av_write4_noretry(struct cx18 * cx,u16 addr,u32 value) cx18_av_write4_noretry() argument
58 cx18_av_read(struct cx18 * cx,u16 addr) cx18_av_read() argument
66 cx18_av_read4(struct cx18 * cx,u16 addr) cx18_av_read4() argument
71 cx18_av_and_or(struct cx18 * cx,u16 addr,unsigned and_mask,u8 or_value) cx18_av_and_or() argument
79 cx18_av_and_or4(struct cx18 * cx,u16 addr,u32 and_mask,u32 or_value) cx18_av_and_or4() argument
87 cx18_av_init(struct cx18 * cx) cx18_av_init() argument
116 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_initialize() local
273 cx18_av_std_setup(struct cx18 * cx) cx18_av_std_setup() argument
516 input_change(struct cx18 * cx) input_change() argument
564 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_frequency() local
569 set_input(struct cx18 * cx,enum cx18_av_video_input vid_input,enum cx18_av_audio_input aud_input) set_input() argument
746 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_video_routing() local
754 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_audio_routing() local
761 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_g_tuner() local
798 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_tuner() local
843 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_std() local
906 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_ctrl() local
938 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_set_fmt() local
1011 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_stream() local
1024 log_video_status(struct cx18 * cx) log_video_status() argument
1065 log_audio_status(struct cx18 * cx) log_audio_status() argument
1216 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_log_status() local
1226 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_g_register() local
1238 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_register() local
1299 cx18_av_probe(struct cx18 * cx) cx18_av_probe() argument
[all...]
H A Dcx18-mailbox.c105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument
204 static void cx18_mdl_send_to_alsa(struct cx18 *cx, struct cx18_stream *s, in cx18_mdl_send_to_alsa() argument
219 cx->pcm_announce_callback(cx->alsa, buf->buf, in cx18_mdl_send_to_alsa()
227 cx->pcm_announce_callback(cx->alsa, buf->buf, buf->bytesused); in cx18_mdl_send_to_alsa()
231 static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order) in epu_dma_done() argument
242 s = cx18_handle_to_stream(cx, handle); in epu_dma_done()
301 if (cx->pcm_announce_callback != NULL) { in epu_dma_done()
302 cx18_mdl_send_to_alsa(cx, in epu_dma_done()
324 epu_debug(struct cx18 * cx,struct cx18_in_work_order * order) epu_debug() argument
335 epu_cmd(struct cx18 * cx,struct cx18_in_work_order * order) epu_cmd() argument
364 free_in_work_order(struct cx18 * cx,struct cx18_in_work_order * order) free_in_work_order() argument
373 struct cx18 *cx = order->cx; cx18_in_work_handler() local
383 mb_ack_irq(struct cx18 * cx,struct cx18_in_work_order * order) mb_ack_irq() argument
417 epu_dma_done_irq(struct cx18 * cx,struct cx18_in_work_order * order) epu_dma_done_irq() argument
445 epu_debug_irq(struct cx18 * cx,struct cx18_in_work_order * order) epu_debug_irq() argument
466 epu_cmd_irq(struct cx18 * cx,struct cx18_in_work_order * order) epu_cmd_irq() argument
498 alloc_in_work_order_irq(struct cx18 * cx) alloc_in_work_order_irq() argument
521 cx18_api_epu_cmd_irq(struct cx18 * cx,int rpu) cx18_api_epu_cmd_irq() argument
581 cx18_api_call(struct cx18 * cx,u32 cmd,int args,u32 data[]) cx18_api_call() argument
729 cx18_api(struct cx18 * cx,u32 cmd,int args,u32 data[]) cx18_api() argument
736 struct cx18 *cx = s->cx; cx18_set_filter_param() local
755 struct cx18 *cx = s->cx; cx18_api_func() local
814 cx18_vapi_result(struct cx18 * cx,u32 data[MAX_MB_ARGUMENTS],u32 cmd,int args,...) cx18_vapi_result() argument
827 cx18_vapi(struct cx18 * cx,u32 cmd,int args,...) cx18_vapi() argument
[all...]
H A Dcx18-irq.c15 static void xpu_ack(struct cx18 *cx, u32 sw2) in xpu_ack() argument
18 wake_up(&cx->mb_cpu_waitq); in xpu_ack()
20 wake_up(&cx->mb_apu_waitq); in xpu_ack()
23 static void epu_cmd(struct cx18 *cx, u32 sw1) in epu_cmd() argument
26 cx18_api_epu_cmd_irq(cx, CPU); in epu_cmd()
28 cx18_api_epu_cmd_irq(cx, APU); in epu_cmd()
33 struct cx18 *cx = dev_id; in cx18_irq_handler() local
36 sw1 = cx18_read_reg(cx, SW1_INT_STATUS) & cx->sw1_irq_mask; in cx18_irq_handler()
37 sw2 = cx18_read_reg(cx, SW2_INT_STATU in cx18_irq_handler()
[all...]
H A Dcx18-av-firmware.c22 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) in cx18_av_verifyfw() argument
24 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_verifyfw()
32 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
36 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); in cx18_av_verifyfw()
37 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
42 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
55 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
63 int cx18_av_loadfw(struct cx18 *cx) in cx18_av_loadfw() argument
65 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_loadfw()
73 if (request_firmware(&fw, FWFILE, &cx in cx18_av_loadfw()
[all...]
H A Dcx18-controls.c21 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt() local
24 if (atomic_read(&cx->ana_capturing) > 0) in cx18_s_stream_vbi_fmt()
32 cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; in cx18_s_stream_vbi_fmt()
38 if (cx->vbi.sliced_mpeg_data[0] == NULL) { in cx18_s_stream_vbi_fmt()
42 cx->vbi.sliced_mpeg_data[i] = in cx18_s_stream_vbi_fmt()
44 if (cx->vbi.sliced_mpeg_data[i] == NULL) { in cx18_s_stream_vbi_fmt()
46 kfree(cx->vbi.sliced_mpeg_data[i]); in cx18_s_stream_vbi_fmt()
47 cx->vbi.sliced_mpeg_data[i] = NULL; in cx18_s_stream_vbi_fmt()
49 cx->vbi.insert_mpeg = in cx18_s_stream_vbi_fmt()
57 cx in cx18_s_stream_vbi_fmt()
77 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); cx18_s_video_encoding() local
95 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); cx18_s_audio_sampling_freq() local
106 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); cx18_s_audio_mode() local
[all...]
H A Dcx18-vbi.c25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument
45 int idx = cx->vbi.frame % CX18_VBI_FRAMES; in copy_vbi_data()
46 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data()
49 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data()
89 cx->vbi.sliced_mpeg_size[idx] = sd + size; in copy_vbi_data()
95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
98 u32 lines = cx->vbi.count * 2; in compress_raw_buf()
128 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf() argument
134 u32 line_size = cx->is_60hz ? VBI_HBLANK_SAMPLES_60HZ in compress_sliced_buf()
163 v4l2_subdev_call(cx in compress_sliced_buf()
175 _cx18_process_vbi_data(struct cx18 * cx,struct cx18_buffer * buf) _cx18_process_vbi_data() argument
237 cx18_process_vbi_data(struct cx18 * cx,struct cx18_mdl * mdl,int streamtype) cx18_process_vbi_data() argument
[all...]
H A Dcx18-dvb.c125 struct cx18 *cx = stream->cx; in yuan_mpc718_mt352_reqfw() local
129 ret = request_firmware(fw, fn, &cx->pci_dev->dev); in yuan_mpc718_mt352_reqfw()
238 struct cx18 *cx; in cx18_dvb_start_feed() local
245 cx = stream->cx; in cx18_dvb_start_feed()
249 mutex_lock(&cx->serialize_lock); in cx18_dvb_start_feed()
250 ret = cx18_init_on_first_open(cx); in cx18_dvb_start_feed()
251 mutex_unlock(&cx->serialize_lock); in cx18_dvb_start_feed()
258 switch (cx in cx18_dvb_start_feed()
309 struct cx18 *cx; cx18_dvb_stop_feed() local
333 struct cx18 *cx = stream->cx; cx18_dvb_register() local
425 struct cx18 *cx = stream->cx; cx18_dvb_unregister() local
457 struct cx18 *cx = stream->cx; dvb_register() local
[all...]
H A Dcx18-audio.c23 int cx18_audio_set_io(struct cx18 *cx) in cx18_audio_set_io() argument
30 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) in cx18_audio_set_io()
31 in = &cx->card->radio_input; in cx18_audio_set_io()
33 in = &cx->card->audio_inputs[cx->audio_input]; in cx18_audio_set_io()
36 v4l2_subdev_call(cx->sd_extmux, audio, s_routing, in cx18_audio_set_io()
39 err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, in cx18_audio_set_io()
45 u = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_audio_set_io()
72 cx18_write_reg_expect(cx, in cx18_audio_set_io()
[all...]
H A Dcx18-alsa-main.c95 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names() local
103 cx->instance); in snd_cx18_card_set_names()
108 cx->instance, cx->card_name); in snd_cx18_card_set_names()
115 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_init() local
123 /* This is a no-op for us. We'll use the cx->instance */ in snd_cx18_init()
126 ret = snd_card_new(&cx->pci_dev->dev, in snd_cx18_init()
158 cx->alsa = cxsc; in snd_cx18_init()
163 cx->alsa = NULL; in snd_cx18_init()
179 static int cx18_alsa_load(struct cx18 *cx) in cx18_alsa_load() argument
228 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); snd_cx18_exit() local
[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);
25 s->cx->stream_buffers[CX18_ENC_STREAM_TYPE_IDX] != 0); in cx18_stream_enabled()
48 void cx18_stop_all_captures(struct cx18 *cx);
H A Dcx18-av-vbi.c112 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_g_sliced_fmt() local
113 struct cx18_av_state *state = &cx->av_state; in cx18_av_g_sliced_fmt()
128 if ((cx18_av_read(cx, 0x404) & 0x10) == 0) in cx18_av_g_sliced_fmt()
133 u8 v = cx18_av_read(cx, 0x424 + i - 7); in cx18_av_g_sliced_fmt()
142 u8 v = cx18_av_read(cx, 0x424 + i - 10); in cx18_av_g_sliced_fmt()
155 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_raw_fmt() local
156 struct cx18_av_state *state = &cx->av_state; in cx18_av_s_raw_fmt()
159 cx18_av_std_setup(cx); in cx18_av_s_raw_fmt()
162 cx18_av_write(cx, 0x47f, state->slicer_line_delay); in cx18_av_s_raw_fmt()
163 cx18_av_write(cx, in cx18_av_s_raw_fmt()
169 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_s_sliced_fmt() local
240 struct cx18 *cx = v4l2_get_subdevdata(sd); cx18_av_decode_vbi_line() local
[all...]
/linux/fs/orangefs/
H A Dxattr.c66 struct orangefs_cached_xattr *cx; in find_cached_xattr() local
72 hlist_for_each_entry_safe(cx, tmp, h, node) { in find_cached_xattr()
73 /* if (!time_before(jiffies, cx->timeout)) { in find_cached_xattr()
74 hlist_del(&cx->node); in find_cached_xattr()
75 kfree(cx); in find_cached_xattr()
78 if (!strcmp(cx->key, key)) in find_cached_xattr()
79 return cx; in find_cached_xattr()
98 struct orangefs_cached_xattr *cx; in orangefs_inode_getxattr() local
127 cx = find_cached_xattr(inode, name); in orangefs_inode_getxattr()
128 if (cx in orangefs_inode_getxattr()
249 struct orangefs_cached_xattr *cx; orangefs_inode_removexattr() local
320 struct orangefs_cached_xattr *cx; orangefs_inode_setxattr() local
[all...]
/linux/drivers/acpi/
H A Dprocessor_idle.c133 struct acpi_processor_cx *cx) in lapic_timer_check_state() argument
151 if (cx->type >= type) in lapic_timer_check_state()
173 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
175 return cx - pr->power.states >= pr->power.timer_broadcast_on_state; in lapic_timer_needs_broadcast()
185 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
322 struct acpi_processor_cx *cx) in acpi_processor_power_verify_c3() argument
328 if (!cx->address) in acpi_processor_power_verify_c3()
387 cx->valid = 1; in acpi_processor_power_verify_c3()
431 struct acpi_processor_cx *cx = &pr->power.states[i]; in acpi_processor_power_verify() local
433 switch (cx in acpi_processor_power_verify()
560 acpi_idle_do_entry(struct acpi_processor_cx * cx) acpi_idle_do_entry() argument
583 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); acpi_idle_play_dead() local
618 acpi_idle_enter_bm(struct cpuidle_driver * drv,struct acpi_processor * pr,struct acpi_processor_cx * cx,int index) acpi_idle_enter_bm() argument
680 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); acpi_idle_enter() local
709 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); acpi_idle_enter_s2idle() local
739 struct acpi_processor_cx *cx; acpi_processor_setup_cpuidle_cx() local
777 struct acpi_processor_cx *cx; acpi_processor_setup_cstates() local
[all...]
/linux/arch/arm/mach-omap2/
H A Dcpuidle44xx.c97 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_smp() local
101 cx->mpu_state_vote++; in omap_enter_idle_smp()
102 if (cx->mpu_state_vote == num_online_cpus()) { in omap_enter_idle_smp()
103 pwrdm_set_logic_retst(mpu_pd, cx->mpu_logic_state); in omap_enter_idle_smp()
104 omap_set_pwrdm_state(mpu_pd, cx->mpu_state); in omap_enter_idle_smp()
108 omap4_enter_lowpower(dev->cpu, cx->cpu_state, true); in omap_enter_idle_smp()
111 if (cx->mpu_state_vote == num_online_cpus()) in omap_enter_idle_smp()
113 cx->mpu_state_vote--; in omap_enter_idle_smp()
123 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_coupled() local
150 mpuss_can_lose_context = (cx in omap_enter_idle_coupled()
[all...]

12345678910>>...18