Lines Matching refs:core
303 #define INPUT(nr) (core->board.input[nr])
381 void (*gate_ctrl)(struct cx88_core *core, int open);
425 #define call_hw(core, grpid, o, f, args...) \ argument
427 if (!core->i2c_rc) { \
428 if (core->gate_ctrl) \
429 core->gate_ctrl(core, 1); \
430 v4l2_device_call_all(&core->v4l2_dev, grpid, o, f, ##args); \
431 if (core->gate_ctrl) \
432 core->gate_ctrl(core, 0); \
436 #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args) argument
440 #define wm8775_s_ctrl(core, id, val) \ argument
443 v4l2_ctrl_find(core->sd_wm8775->ctrl_handler, id); \
444 if (ctrl_ && !core->i2c_rc) { \
445 if (core->gate_ctrl) \
446 core->gate_ctrl(core, 1); \
448 if (core->gate_ctrl) \
449 core->gate_ctrl(core, 0); \
453 #define wm8775_g_ctrl(core, id) \ argument
456 v4l2_ctrl_find(core->sd_wm8775->ctrl_handler, id); \
458 if (ctrl_ && !core->i2c_rc) { \
459 if (core->gate_ctrl) \
460 core->gate_ctrl(core, 1); \
462 if (core->gate_ctrl) \
463 core->gate_ctrl(core, 0); \
476 struct cx88_core *core; member
517 struct cx88_core *core; member
546 struct cx88_core *core; member
593 #define cx_read(reg) readl(core->lmmio + ((reg)>>2))
594 #define cx_write(reg,value) writel((value), core->lmmio + ((reg)>>2))
595 #define cx_writeb(reg,value) writeb((value), core->bmmio + (reg))
598 writel((readl(core->lmmio+((reg)>>2)) & ~(mask)) |\
599 ((value) & (mask)), core->lmmio+((reg)>>2))
606 #define cx_sread(sreg) (core->shadow[sreg])
608 (core->shadow[sreg] = value, \
609 writel(core->shadow[sreg], core->lmmio + ((reg)>>2)))
611 (core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | ((value) & (mask)), \
612 writel(core->shadow[sreg], core->lmmio + ((reg)>>2)))
622 extern int cx88_core_irq(struct cx88_core *core, u32 status);
623 extern void cx88_wakeup(struct cx88_core *core,
625 extern void cx88_shutdown(struct cx88_core *core);
626 extern int cx88_reset(struct cx88_core *core);
638 extern void cx88_risc_disasm(struct cx88_core *core,
640 extern int cx88_sram_channel_setup(struct cx88_core *core,
643 extern void cx88_sram_channel_dump(struct cx88_core *core,
646 extern int cx88_set_scale(struct cx88_core *core, unsigned int width,
648 extern int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm);
650 extern void cx88_vdev_init(struct cx88_core *core,
656 extern void cx88_core_put(struct cx88_core *core,
659 extern int cx88_start_audio_dma(struct cx88_core *core);
660 extern int cx88_stop_audio_dma(struct cx88_core *core);
683 extern int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci);
690 extern int cx88_get_resources(const struct cx88_core *core,
693 extern void cx88_setup_xc3028(struct cx88_core *core, struct xc2028_ctrl *ctl);
698 void cx88_set_tvaudio(struct cx88_core *core);
699 void cx88_newstation(struct cx88_core *core);
700 void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t);
701 void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual);
713 s32 cx88_dsp_detect_stereo_sap(struct cx88_core *core);
718 int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci);
719 int cx88_ir_fini(struct cx88_core *core);
720 void cx88_ir_irq(struct cx88_core *core);
721 int cx88_ir_start(struct cx88_core *core);
722 void cx88_ir_stop(struct cx88_core *core);
723 extern void cx88_i2c_init_ir(struct cx88_core *core);
738 int cx88_enum_input(struct cx88_core *core, struct v4l2_input *i);
739 int cx88_set_freq(struct cx88_core *core, const struct v4l2_frequency *f);
740 int cx88_video_mux(struct cx88_core *core, unsigned int input);
741 void cx88_querycap(struct file *file, struct cx88_core *core,