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()
776 WREG32(RADEON_TV_HTOTAL, const_ptr->hor_total - 1); in radeon_legacy_tv_mode_set()
777 WREG32(RADEON_TV_HDISP, const_ptr->hor_resolution - 1); in radeon_legacy_tv_mode_set()
778 WREG32(RADEON_TV_HSTART, const_ptr->hor_start); in radeon_legacy_tv_mode_set()
780 WREG32(RADEON_TV_VTOTAL, const_ptr->ver_total - 1); in radeon_legacy_tv_mode_set()
781 WREG32(RADEON_TV_VDISP, const_ptr->ver_resolution - 1); in radeon_legacy_tv_mode_set()
829 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_crtc_reg() local
832 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_crtc_reg()
833 if (!const_ptr) in radeon_legacy_tv_adjust_crtc_reg()
836 *h_total_disp = (((const_ptr->hor_resolution / 8) - 1) << RADEON_CRTC_H_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
837 (((const_ptr->hor_total / 8) - 1) << RADEON_CRTC_H_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
841 tmp |= (((const_ptr->hor_syncstart / 8) - 1) << RADEON_CRTC_H_SYNC_STRT_CHAR_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
842 (const_ptr->hor_syncstart & 7); in radeon_legacy_tv_adjust_crtc_reg()
845 *v_total_disp = ((const_ptr->ver_resolution - 1) << RADEON_CRTC_V_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
846 ((const_ptr->ver_total - 1) << RADEON_CRTC_V_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
850 tmp |= ((const_ptr->ver_syncstart - 1) << RADEON_CRTC_V_SYNC_STRT_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
876 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll1() local
878 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll1()
879 if (!const_ptr) in radeon_legacy_tv_adjust_pll1()
882 *htotal_cntl = (const_ptr->hor_total & 0x7) | RADEON_HTOT_CNTL_VGA_EN; in radeon_legacy_tv_adjust_pll1()
884 *ppll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll1()
886 *ppll_div_3 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll1()
896 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll2() local
898 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll2()
899 if (!const_ptr) in radeon_legacy_tv_adjust_pll2()
902 *htotal2_cntl = (const_ptr->hor_total & 0x7); in radeon_legacy_tv_adjust_pll2()
904 *p2pll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll2()
906 *p2pll_div_0 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll2()