Lines Matching refs:const_ptr

244 	const struct radeon_tv_mode_constants *const_ptr;  in radeon_legacy_tv_get_std_mode()  local
260 const_ptr = &available_tv_modes[0]; in radeon_legacy_tv_get_std_mode()
262 const_ptr = &available_tv_modes[2]; in radeon_legacy_tv_get_std_mode()
265 const_ptr = &available_tv_modes[1]; in radeon_legacy_tv_get_std_mode()
267 const_ptr = &available_tv_modes[3]; in radeon_legacy_tv_get_std_mode()
269 return const_ptr; in radeon_legacy_tv_get_std_mode()
433 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_init_restarts() local
435 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_init_restarts()
436 if (!const_ptr) in radeon_legacy_tv_init_restarts()
439 h_total = const_ptr->hor_total; in radeon_legacy_tv_init_restarts()
440 v_total = const_ptr->ver_total; in radeon_legacy_tv_init_restarts()
474 h_offset = (h_offset * (int)(const_ptr->pix_to_tv)) / 1000; in radeon_legacy_tv_init_restarts()
477 restart = const_ptr->def_restart; in radeon_legacy_tv_init_restarts()
493 const_ptr->def_restart, tv_dac->h_pos, tv_dac->v_pos, p1, p2, restart); in radeon_legacy_tv_init_restarts()
510 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * NTSC_TV_CLOCK_T) / in radeon_legacy_tv_init_restarts()
513 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * PAL_TV_CLOCK_T) / in radeon_legacy_tv_init_restarts()
532 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_mode_set() local
546 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, &pll_ref_freq); in radeon_legacy_tv_mode_set()
547 if (!const_ptr) in radeon_legacy_tv_mode_set()
609 vert_space = const_ptr->ver_total * 2 * 10000 / NTSC_TV_LINES_PER_FRAME; in radeon_legacy_tv_mode_set()
611 vert_space = const_ptr->ver_total * 2 * 10000 / PAL_TV_LINES_PER_FRAME; in radeon_legacy_tv_mode_set()
621 if (const_ptr->hor_resolution == 1024) in radeon_legacy_tv_mode_set()
627 tmp = const_ptr->ver_total * 2 * 1000; in radeon_legacy_tv_mode_set()
782 WREG32(RADEON_TV_HTOTAL, const_ptr->hor_total - 1); in radeon_legacy_tv_mode_set()
783 WREG32(RADEON_TV_HDISP, const_ptr->hor_resolution - 1); in radeon_legacy_tv_mode_set()
784 WREG32(RADEON_TV_HSTART, const_ptr->hor_start); in radeon_legacy_tv_mode_set()
786 WREG32(RADEON_TV_VTOTAL, const_ptr->ver_total - 1); in radeon_legacy_tv_mode_set()
787 WREG32(RADEON_TV_VDISP, const_ptr->ver_resolution - 1); in radeon_legacy_tv_mode_set()
835 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_crtc_reg() local
838 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_crtc_reg()
839 if (!const_ptr) in radeon_legacy_tv_adjust_crtc_reg()
842 *h_total_disp = (((const_ptr->hor_resolution / 8) - 1) << RADEON_CRTC_H_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
843 (((const_ptr->hor_total / 8) - 1) << RADEON_CRTC_H_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
847 tmp |= (((const_ptr->hor_syncstart / 8) - 1) << RADEON_CRTC_H_SYNC_STRT_CHAR_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
848 (const_ptr->hor_syncstart & 7); in radeon_legacy_tv_adjust_crtc_reg()
851 *v_total_disp = ((const_ptr->ver_resolution - 1) << RADEON_CRTC_V_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
852 ((const_ptr->ver_total - 1) << RADEON_CRTC_V_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
856 tmp |= ((const_ptr->ver_syncstart - 1) << RADEON_CRTC_V_SYNC_STRT_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
882 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll1() local
884 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll1()
885 if (!const_ptr) in radeon_legacy_tv_adjust_pll1()
888 *htotal_cntl = (const_ptr->hor_total & 0x7) | RADEON_HTOT_CNTL_VGA_EN; in radeon_legacy_tv_adjust_pll1()
890 *ppll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll1()
892 *ppll_div_3 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll1()
902 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll2() local
904 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll2()
905 if (!const_ptr) in radeon_legacy_tv_adjust_pll2()
908 *htotal2_cntl = (const_ptr->hor_total & 0x7); in radeon_legacy_tv_adjust_pll2()
910 *p2pll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll2()
912 *p2pll_div_0 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll2()