Lines Matching refs:const_ptr
242 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_get_std_mode() local
258 const_ptr = &available_tv_modes[0]; in radeon_legacy_tv_get_std_mode()
260 const_ptr = &available_tv_modes[2]; in radeon_legacy_tv_get_std_mode()
263 const_ptr = &available_tv_modes[1]; in radeon_legacy_tv_get_std_mode()
265 const_ptr = &available_tv_modes[3]; in radeon_legacy_tv_get_std_mode()
267 return const_ptr; in radeon_legacy_tv_get_std_mode()
434 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_init_restarts() local
443 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_init_restarts()
444 if (!const_ptr) in radeon_legacy_tv_init_restarts()
447 h_total = const_ptr->hor_total; in radeon_legacy_tv_init_restarts()
448 v_total = const_ptr->ver_total; in radeon_legacy_tv_init_restarts()
482 h_offset = (h_offset * (int)(const_ptr->pix_to_tv)) / 1000; in radeon_legacy_tv_init_restarts()
485 restart = const_ptr->def_restart; in radeon_legacy_tv_init_restarts()
501 const_ptr->def_restart, tv_dac->h_pos, tv_dac->v_pos, p1, p2, restart); in radeon_legacy_tv_init_restarts()
518 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * NTSC_TV_CLOCK_T) / in radeon_legacy_tv_init_restarts()
521 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * PAL_TV_CLOCK_T) / in radeon_legacy_tv_init_restarts()
540 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_mode_set() local
554 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, &pll_ref_freq); in radeon_legacy_tv_mode_set()
555 if (!const_ptr) in radeon_legacy_tv_mode_set()
617 vert_space = const_ptr->ver_total * 2 * 10000 / NTSC_TV_LINES_PER_FRAME; in radeon_legacy_tv_mode_set()
619 vert_space = const_ptr->ver_total * 2 * 10000 / PAL_TV_LINES_PER_FRAME; in radeon_legacy_tv_mode_set()
629 if (const_ptr->hor_resolution == 1024) in radeon_legacy_tv_mode_set()
635 tmp = const_ptr->ver_total * 2 * 1000; in radeon_legacy_tv_mode_set()
790 WREG32(RADEON_TV_HTOTAL, const_ptr->hor_total - 1); in radeon_legacy_tv_mode_set()
791 WREG32(RADEON_TV_HDISP, const_ptr->hor_resolution - 1); in radeon_legacy_tv_mode_set()
792 WREG32(RADEON_TV_HSTART, const_ptr->hor_start); in radeon_legacy_tv_mode_set()
794 WREG32(RADEON_TV_VTOTAL, const_ptr->ver_total - 1); in radeon_legacy_tv_mode_set()
795 WREG32(RADEON_TV_VDISP, const_ptr->ver_resolution - 1); in radeon_legacy_tv_mode_set()
843 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_crtc_reg() local
846 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_crtc_reg()
847 if (!const_ptr) in radeon_legacy_tv_adjust_crtc_reg()
850 *h_total_disp = (((const_ptr->hor_resolution / 8) - 1) << RADEON_CRTC_H_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
851 (((const_ptr->hor_total / 8) - 1) << RADEON_CRTC_H_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
855 tmp |= (((const_ptr->hor_syncstart / 8) - 1) << RADEON_CRTC_H_SYNC_STRT_CHAR_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
856 (const_ptr->hor_syncstart & 7); in radeon_legacy_tv_adjust_crtc_reg()
859 *v_total_disp = ((const_ptr->ver_resolution - 1) << RADEON_CRTC_V_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
860 ((const_ptr->ver_total - 1) << RADEON_CRTC_V_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
864 tmp |= ((const_ptr->ver_syncstart - 1) << RADEON_CRTC_V_SYNC_STRT_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
890 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll1() local
892 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll1()
893 if (!const_ptr) in radeon_legacy_tv_adjust_pll1()
896 *htotal_cntl = (const_ptr->hor_total & 0x7) | RADEON_HTOT_CNTL_VGA_EN; in radeon_legacy_tv_adjust_pll1()
898 *ppll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll1()
900 *ppll_div_3 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll1()
910 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll2() local
912 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll2()
913 if (!const_ptr) in radeon_legacy_tv_adjust_pll2()
916 *htotal2_cntl = (const_ptr->hor_total & 0x7); in radeon_legacy_tv_adjust_pll2()
918 *p2pll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll2()
920 *p2pll_div_0 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll2()