Lines Matching refs:regw
109 static inline void regw(u32 val, u32 offset) in regw() function
116 regw(flag, CCDC_PCR); in ccdc_enable()
123 regw(CCDC_ENABLE_VIDEO_PORT, CCDC_FMTCFG); in ccdc_enable_vport()
125 regw(CCDC_DISABLE_VIDEO_PORT, CCDC_FMTCFG); in ccdc_enable_vport()
149 regw((horz_start << CCDC_HORZ_INFO_SPH_SHIFT) | horz_nr_pixels, in ccdc_setwin()
161 regw(val, CCDC_VDINT); in ccdc_setwin()
174 regw(val, CCDC_VDINT); in ccdc_setwin()
177 regw((vert_start << CCDC_VERT_START_SLV0_SHIFT) | vert_start, in ccdc_setwin()
179 regw(vert_nr_lines, CCDC_VERT_LINES); in ccdc_setwin()
328 regw(0, i); in ccdc_restore_defaults()
329 regw(CCDC_NO_CULLING, CCDC_CULLING); in ccdc_restore_defaults()
330 regw(CCDC_GAMMA_BITS_11_2, CCDC_ALAW); in ccdc_restore_defaults()
399 regw(CCDC_REC656IF_BT656_EN, CCDC_REC656IF); in ccdc_config_ycbcr()
419 regw(syn_mode, CCDC_SYN_MODE); in ccdc_config_ycbcr()
429 regw((params->pix_order << CCDC_CCDCFG_Y8POS_SHIFT) | in ccdc_config_ycbcr()
433 regw((params->pix_order << CCDC_CCDCFG_Y8POS_SHIFT) | in ccdc_config_ycbcr()
440 regw(((params->win.width * 2 + 31) & ~0x1f), CCDC_HSIZE_OFF); in ccdc_config_ycbcr()
445 regw(CCDC_SDOFST_FIELD_INTERLEAVED, CCDC_SDOFST); in ccdc_config_ycbcr()
458 regw(val, CCDC_DCSUB); in ccdc_config_black_clamp()
460 regw(CCDC_CLAMP_DEFAULT_VAL, CCDC_CLAMP); in ccdc_config_black_clamp()
475 regw(val, CCDC_CLAMP); in ccdc_config_black_clamp()
478 regw(CCDC_DCSUB_DEFAULT_VAL, CCDC_DCSUB); in ccdc_config_black_clamp()
493 regw(val, CCDC_BLKCMP); in ccdc_config_black_compense()
502 regw(val, CCDC_FPC); in ccdc_config_fpc()
508 regw(fpc->fpc_table_addr, CCDC_FPC_ADDR); in ccdc_config_fpc()
513 regw(val, CCDC_FPC); in ccdc_config_fpc()
518 regw(val, CCDC_FPC); in ccdc_config_fpc()
540 regw(CCDC_LATCH_ON_VSYNC_DISABLE, CCDC_CCDCFG); in ccdc_config_raw()
563 regw(val, CCDC_ALAW); in ccdc_config_raw()
594 regw(val, CCDC_FMTCFG); in ccdc_config_raw()
598 regw(CCDC_COLPTN_VAL, CCDC_COLPTN); in ccdc_config_raw()
608 regw(val, CCDC_FMT_HORZ); in ccdc_config_raw()
620 regw(val, CCDC_FMT_VERT); in ccdc_config_raw()
632 regw((params->win.width + CCDC_32BYTE_ALIGN_VAL) & in ccdc_config_raw()
636 regw(((params->win.width * CCDC_TWO_BYTES_PER_PIXEL) + in ccdc_config_raw()
644 regw(CCDC_INTERLACED_IMAGE_INVERT, CCDC_SDOFST); in ccdc_config_raw()
650 regw(CCDC_INTERLACED_NO_IMAGE_INVERT, CCDC_SDOFST); in ccdc_config_raw()
654 regw(CCDC_PROGRESSIVE_NO_IMAGE_INVERT, CCDC_SDOFST); in ccdc_config_raw()
674 regw(val, CCDC_VP_OUT); in ccdc_config_raw()
677 regw(syn_mode, CCDC_SYN_MODE); in ccdc_config_raw()
824 regw(addr & 0xffffffe0, CCDC_SDR_ADDR); in ccdc_setfbaddr()
889 regw(ccdc_ctx[CCDC_SYN_MODE >> 2], CCDC_SYN_MODE); in ccdc_restore_context()
890 regw(ccdc_ctx[CCDC_HD_VD_WID >> 2], CCDC_HD_VD_WID); in ccdc_restore_context()
891 regw(ccdc_ctx[CCDC_PIX_LINES >> 2], CCDC_PIX_LINES); in ccdc_restore_context()
892 regw(ccdc_ctx[CCDC_HORZ_INFO >> 2], CCDC_HORZ_INFO); in ccdc_restore_context()
893 regw(ccdc_ctx[CCDC_VERT_START >> 2], CCDC_VERT_START); in ccdc_restore_context()
894 regw(ccdc_ctx[CCDC_VERT_LINES >> 2], CCDC_VERT_LINES); in ccdc_restore_context()
895 regw(ccdc_ctx[CCDC_CULLING >> 2], CCDC_CULLING); in ccdc_restore_context()
896 regw(ccdc_ctx[CCDC_HSIZE_OFF >> 2], CCDC_HSIZE_OFF); in ccdc_restore_context()
897 regw(ccdc_ctx[CCDC_SDOFST >> 2], CCDC_SDOFST); in ccdc_restore_context()
898 regw(ccdc_ctx[CCDC_SDR_ADDR >> 2], CCDC_SDR_ADDR); in ccdc_restore_context()
899 regw(ccdc_ctx[CCDC_CLAMP >> 2], CCDC_CLAMP); in ccdc_restore_context()
900 regw(ccdc_ctx[CCDC_DCSUB >> 2], CCDC_DCSUB); in ccdc_restore_context()
901 regw(ccdc_ctx[CCDC_COLPTN >> 2], CCDC_COLPTN); in ccdc_restore_context()
902 regw(ccdc_ctx[CCDC_BLKCMP >> 2], CCDC_BLKCMP); in ccdc_restore_context()
903 regw(ccdc_ctx[CCDC_FPC >> 2], CCDC_FPC); in ccdc_restore_context()
904 regw(ccdc_ctx[CCDC_FPC_ADDR >> 2], CCDC_FPC_ADDR); in ccdc_restore_context()
905 regw(ccdc_ctx[CCDC_VDINT >> 2], CCDC_VDINT); in ccdc_restore_context()
906 regw(ccdc_ctx[CCDC_ALAW >> 2], CCDC_ALAW); in ccdc_restore_context()
907 regw(ccdc_ctx[CCDC_REC656IF >> 2], CCDC_REC656IF); in ccdc_restore_context()
908 regw(ccdc_ctx[CCDC_CCDCFG >> 2], CCDC_CCDCFG); in ccdc_restore_context()
909 regw(ccdc_ctx[CCDC_FMTCFG >> 2], CCDC_FMTCFG); in ccdc_restore_context()
910 regw(ccdc_ctx[CCDC_FMT_HORZ >> 2], CCDC_FMT_HORZ); in ccdc_restore_context()
911 regw(ccdc_ctx[CCDC_FMT_VERT >> 2], CCDC_FMT_VERT); in ccdc_restore_context()
912 regw(ccdc_ctx[CCDC_FMT_ADDR0 >> 2], CCDC_FMT_ADDR0); in ccdc_restore_context()
913 regw(ccdc_ctx[CCDC_FMT_ADDR1 >> 2], CCDC_FMT_ADDR1); in ccdc_restore_context()
914 regw(ccdc_ctx[CCDC_FMT_ADDR2 >> 2], CCDC_FMT_ADDR2); in ccdc_restore_context()
915 regw(ccdc_ctx[CCDC_FMT_ADDR3 >> 2], CCDC_FMT_ADDR3); in ccdc_restore_context()
916 regw(ccdc_ctx[CCDC_FMT_ADDR4 >> 2], CCDC_FMT_ADDR4); in ccdc_restore_context()
917 regw(ccdc_ctx[CCDC_FMT_ADDR5 >> 2], CCDC_FMT_ADDR5); in ccdc_restore_context()
918 regw(ccdc_ctx[CCDC_FMT_ADDR6 >> 2], CCDC_FMT_ADDR6); in ccdc_restore_context()
919 regw(ccdc_ctx[CCDC_FMT_ADDR7 >> 2], CCDC_FMT_ADDR7); in ccdc_restore_context()
920 regw(ccdc_ctx[CCDC_PRGEVEN_0 >> 2], CCDC_PRGEVEN_0); in ccdc_restore_context()
921 regw(ccdc_ctx[CCDC_PRGEVEN_1 >> 2], CCDC_PRGEVEN_1); in ccdc_restore_context()
922 regw(ccdc_ctx[CCDC_PRGODD_0 >> 2], CCDC_PRGODD_0); in ccdc_restore_context()
923 regw(ccdc_ctx[CCDC_PRGODD_1 >> 2], CCDC_PRGODD_1); in ccdc_restore_context()
924 regw(ccdc_ctx[CCDC_VP_OUT >> 2], CCDC_VP_OUT); in ccdc_restore_context()
925 regw(ccdc_ctx[CCDC_PCR >> 2], CCDC_PCR); in ccdc_restore_context()