Lines Matching refs:core
295 #define INPUT(nr) (core->board.input[nr])
373 void (*gate_ctrl)(struct cx88_core *core, int open);
417 #define call_hw(core, grpid, o, f, args...) \ argument
419 if (!core->i2c_rc) { \
420 if (core->gate_ctrl) \
421 core->gate_ctrl(core, 1); \
422 v4l2_device_call_all(&core->v4l2_dev, \
424 if (core->gate_ctrl) \
425 core->gate_ctrl(core, 0); \
429 #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args) argument
433 #define wm8775_s_ctrl(core, id, val) \ argument
436 v4l2_ctrl_find(core->sd_wm8775->ctrl_handler, id);\
437 if (ctrl_ && !core->i2c_rc) { \
438 if (core->gate_ctrl) \
439 core->gate_ctrl(core, 1); \
441 if (core->gate_ctrl) \
442 core->gate_ctrl(core, 0); \
446 #define wm8775_g_ctrl(core, id) \ argument
449 v4l2_ctrl_find(core->sd_wm8775->ctrl_handler, id);\
451 if (ctrl_ && !core->i2c_rc) { \
452 if (core->gate_ctrl) \
453 core->gate_ctrl(core, 1); \
455 if (core->gate_ctrl) \
456 core->gate_ctrl(core, 0); \
469 struct cx88_core *core; member
508 struct cx88_core *core; member
537 struct cx88_core *core; member
584 #define cx_read(reg) readl(core->lmmio + ((reg) >> 2))
585 #define cx_write(reg, value) writel((value), core->lmmio + ((reg) >> 2))
586 #define cx_writeb(reg, value) writeb((value), core->bmmio + (reg))
589 writel((readl(core->lmmio + ((reg) >> 2)) & ~(mask)) |\
590 ((value) & (mask)), core->lmmio + ((reg) >> 2))
597 #define cx_sread(sreg) (core->shadow[sreg])
599 (core->shadow[sreg] = value, \
600 writel(core->shadow[sreg], core->lmmio + ((reg) >> 2)))
602 (core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | \
604 writel(core->shadow[sreg], \
605 core->lmmio + ((reg) >> 2)))
615 int cx88_core_irq(struct cx88_core *core, u32 status);
616 void cx88_wakeup(struct cx88_core *core,
618 void cx88_shutdown(struct cx88_core *core);
619 int cx88_reset(struct cx88_core *core);
631 void cx88_risc_disasm(struct cx88_core *core,
633 int cx88_sram_channel_setup(struct cx88_core *core,
636 void cx88_sram_channel_dump(struct cx88_core *core,
639 int cx88_set_scale(struct cx88_core *core, unsigned int width,
641 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm);
643 void cx88_vdev_init(struct cx88_core *core,
649 void cx88_core_put(struct cx88_core *core,
652 int cx88_start_audio_dma(struct cx88_core *core);
653 int cx88_stop_audio_dma(struct cx88_core *core);
670 int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci);
676 int cx88_get_resources(const struct cx88_core *core,
679 void cx88_setup_xc3028(struct cx88_core *core, struct xc2028_ctrl *ctl);
684 void cx88_set_tvaudio(struct cx88_core *core);
685 void cx88_newstation(struct cx88_core *core);
686 void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t);
687 void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual);
700 s32 cx88_dsp_detect_stereo_sap(struct cx88_core *core);
705 int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci);
706 int cx88_ir_fini(struct cx88_core *core);
707 void cx88_ir_irq(struct cx88_core *core);
708 int cx88_ir_start(struct cx88_core *core);
709 void cx88_ir_stop(struct cx88_core *core);
710 void cx88_i2c_init_ir(struct cx88_core *core);
725 int cx88_enum_input(struct cx88_core *core, struct v4l2_input *i);
726 int cx88_set_freq(struct cx88_core *core, const struct v4l2_frequency *f);
727 int cx88_video_mux(struct cx88_core *core, unsigned int input);
728 int cx88_querycap(struct file *file, struct cx88_core *core,