Lines Matching refs:const_ptr
243 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_get_std_mode() local
259 const_ptr = &available_tv_modes[0]; in radeon_legacy_tv_get_std_mode()
261 const_ptr = &available_tv_modes[2]; in radeon_legacy_tv_get_std_mode()
264 const_ptr = &available_tv_modes[1]; in radeon_legacy_tv_get_std_mode()
266 const_ptr = &available_tv_modes[3]; in radeon_legacy_tv_get_std_mode()
268 return const_ptr; in radeon_legacy_tv_get_std_mode()
432 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_init_restarts() local
434 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_init_restarts()
435 if (!const_ptr) in radeon_legacy_tv_init_restarts()
438 h_total = const_ptr->hor_total; in radeon_legacy_tv_init_restarts()
439 v_total = const_ptr->ver_total; in radeon_legacy_tv_init_restarts()
473 h_offset = (h_offset * (int)(const_ptr->pix_to_tv)) / 1000; in radeon_legacy_tv_init_restarts()
476 restart = const_ptr->def_restart; in radeon_legacy_tv_init_restarts()
492 const_ptr->def_restart, tv_dac->h_pos, tv_dac->v_pos, p1, p2, restart); in radeon_legacy_tv_init_restarts()
509 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * NTSC_TV_CLOCK_T) / in radeon_legacy_tv_init_restarts()
512 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * PAL_TV_CLOCK_T) / in radeon_legacy_tv_init_restarts()
531 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_mode_set() local
545 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, &pll_ref_freq); in radeon_legacy_tv_mode_set()
546 if (!const_ptr) in radeon_legacy_tv_mode_set()
608 vert_space = const_ptr->ver_total * 2 * 10000 / NTSC_TV_LINES_PER_FRAME; in radeon_legacy_tv_mode_set()
610 vert_space = const_ptr->ver_total * 2 * 10000 / PAL_TV_LINES_PER_FRAME; in radeon_legacy_tv_mode_set()
620 if (const_ptr->hor_resolution == 1024) in radeon_legacy_tv_mode_set()
626 tmp = const_ptr->ver_total * 2 * 1000; in radeon_legacy_tv_mode_set()
777 WREG32(RADEON_TV_HTOTAL, const_ptr->hor_total - 1); in radeon_legacy_tv_mode_set()
778 WREG32(RADEON_TV_HDISP, const_ptr->hor_resolution - 1); in radeon_legacy_tv_mode_set()
779 WREG32(RADEON_TV_HSTART, const_ptr->hor_start); in radeon_legacy_tv_mode_set()
781 WREG32(RADEON_TV_VTOTAL, const_ptr->ver_total - 1); in radeon_legacy_tv_mode_set()
782 WREG32(RADEON_TV_VDISP, const_ptr->ver_resolution - 1); in radeon_legacy_tv_mode_set()
830 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_crtc_reg() local
833 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_crtc_reg()
834 if (!const_ptr) in radeon_legacy_tv_adjust_crtc_reg()
837 *h_total_disp = (((const_ptr->hor_resolution / 8) - 1) << RADEON_CRTC_H_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
838 (((const_ptr->hor_total / 8) - 1) << RADEON_CRTC_H_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
842 tmp |= (((const_ptr->hor_syncstart / 8) - 1) << RADEON_CRTC_H_SYNC_STRT_CHAR_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
843 (const_ptr->hor_syncstart & 7); in radeon_legacy_tv_adjust_crtc_reg()
846 *v_total_disp = ((const_ptr->ver_resolution - 1) << RADEON_CRTC_V_DISP_SHIFT) | in radeon_legacy_tv_adjust_crtc_reg()
847 ((const_ptr->ver_total - 1) << RADEON_CRTC_V_TOTAL_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
851 tmp |= ((const_ptr->ver_syncstart - 1) << RADEON_CRTC_V_SYNC_STRT_SHIFT); in radeon_legacy_tv_adjust_crtc_reg()
877 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll1() local
879 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll1()
880 if (!const_ptr) in radeon_legacy_tv_adjust_pll1()
883 *htotal_cntl = (const_ptr->hor_total & 0x7) | RADEON_HTOT_CNTL_VGA_EN; in radeon_legacy_tv_adjust_pll1()
885 *ppll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll1()
887 *ppll_div_3 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll1()
897 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_adjust_pll2() local
899 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_adjust_pll2()
900 if (!const_ptr) in radeon_legacy_tv_adjust_pll2()
903 *htotal2_cntl = (const_ptr->hor_total & 0x7); in radeon_legacy_tv_adjust_pll2()
905 *p2pll_ref_div = const_ptr->crtcPLL_M; in radeon_legacy_tv_adjust_pll2()
907 *p2pll_div_0 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); in radeon_legacy_tv_adjust_pll2()