Searched refs:const_ptr (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_tv.c | 241 const struct radeon_tv_mode_constants *const_ptr; radeon_legacy_tv_get_std_mode() local 257 const_ptr = &available_tv_modes[0]; radeon_legacy_tv_get_std_mode() 259 const_ptr = &available_tv_modes[2]; radeon_legacy_tv_get_std_mode() 262 const_ptr = &available_tv_modes[1]; radeon_legacy_tv_get_std_mode() 264 const_ptr = &available_tv_modes[3]; radeon_legacy_tv_get_std_mode() 266 return const_ptr; radeon_legacy_tv_get_std_mode() 433 const struct radeon_tv_mode_constants *const_ptr; radeon_legacy_tv_init_restarts() local 442 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); radeon_legacy_tv_init_restarts() 443 if (!const_ptr) radeon_legacy_tv_init_restarts() 446 h_total = const_ptr->hor_total; radeon_legacy_tv_init_restarts() 447 v_total = const_ptr->ver_total; radeon_legacy_tv_init_restarts() 481 h_offset = (h_offset * (int)(const_ptr->pix_to_tv)) / 1000; radeon_legacy_tv_init_restarts() 484 restart = const_ptr->def_restart; radeon_legacy_tv_init_restarts() 500 const_ptr->def_restart, tv_dac->h_pos, tv_dac->v_pos, p1, p2, restart); radeon_legacy_tv_init_restarts() 517 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * NTSC_TV_CLOCK_T) / radeon_legacy_tv_init_restarts() 520 h_inc = (u16)((int)(const_ptr->hor_resolution * 4096 * PAL_TV_CLOCK_T) / radeon_legacy_tv_init_restarts() 539 const struct radeon_tv_mode_constants *const_ptr; radeon_legacy_tv_mode_set() local 553 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, &pll_ref_freq); radeon_legacy_tv_mode_set() 554 if (!const_ptr) radeon_legacy_tv_mode_set() 616 vert_space = const_ptr->ver_total * 2 * 10000 / NTSC_TV_LINES_PER_FRAME; radeon_legacy_tv_mode_set() 618 vert_space = const_ptr->ver_total * 2 * 10000 / PAL_TV_LINES_PER_FRAME; radeon_legacy_tv_mode_set() 628 if (const_ptr->hor_resolution == 1024) radeon_legacy_tv_mode_set() 634 tmp = const_ptr->ver_total * 2 * 1000; radeon_legacy_tv_mode_set() 789 WREG32(RADEON_TV_HTOTAL, const_ptr->hor_total - 1); radeon_legacy_tv_mode_set() 790 WREG32(RADEON_TV_HDISP, const_ptr->hor_resolution - 1); radeon_legacy_tv_mode_set() 791 WREG32(RADEON_TV_HSTART, const_ptr->hor_start); radeon_legacy_tv_mode_set() 793 WREG32(RADEON_TV_VTOTAL, const_ptr->ver_total - 1); radeon_legacy_tv_mode_set() 794 WREG32(RADEON_TV_VDISP, const_ptr->ver_resolution - 1); radeon_legacy_tv_mode_set() 842 const struct radeon_tv_mode_constants *const_ptr; radeon_legacy_tv_adjust_crtc_reg() local 845 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); radeon_legacy_tv_adjust_crtc_reg() 846 if (!const_ptr) radeon_legacy_tv_adjust_crtc_reg() 849 *h_total_disp = (((const_ptr->hor_resolution / 8) - 1) << RADEON_CRTC_H_DISP_SHIFT) | radeon_legacy_tv_adjust_crtc_reg() 850 (((const_ptr->hor_total / 8) - 1) << RADEON_CRTC_H_TOTAL_SHIFT); radeon_legacy_tv_adjust_crtc_reg() 854 tmp |= (((const_ptr->hor_syncstart / 8) - 1) << RADEON_CRTC_H_SYNC_STRT_CHAR_SHIFT) | radeon_legacy_tv_adjust_crtc_reg() 855 (const_ptr->hor_syncstart & 7); radeon_legacy_tv_adjust_crtc_reg() 858 *v_total_disp = ((const_ptr->ver_resolution - 1) << RADEON_CRTC_V_DISP_SHIFT) | radeon_legacy_tv_adjust_crtc_reg() 859 ((const_ptr->ver_total - 1) << RADEON_CRTC_V_TOTAL_SHIFT); radeon_legacy_tv_adjust_crtc_reg() 863 tmp |= ((const_ptr->ver_syncstart - 1) << RADEON_CRTC_V_SYNC_STRT_SHIFT); radeon_legacy_tv_adjust_crtc_reg() 889 const struct radeon_tv_mode_constants *const_ptr; radeon_legacy_tv_adjust_pll1() local 891 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); radeon_legacy_tv_adjust_pll1() 892 if (!const_ptr) radeon_legacy_tv_adjust_pll1() 895 *htotal_cntl = (const_ptr->hor_total & 0x7) | RADEON_HTOT_CNTL_VGA_EN; radeon_legacy_tv_adjust_pll1() 897 *ppll_ref_div = const_ptr->crtcPLL_M; radeon_legacy_tv_adjust_pll1() 899 *ppll_div_3 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); radeon_legacy_tv_adjust_pll1() 909 const struct radeon_tv_mode_constants *const_ptr; radeon_legacy_tv_adjust_pll2() local 911 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); radeon_legacy_tv_adjust_pll2() 912 if (!const_ptr) radeon_legacy_tv_adjust_pll2() 915 *htotal2_cntl = (const_ptr->hor_total & 0x7); radeon_legacy_tv_adjust_pll2() 917 *p2pll_ref_div = const_ptr->crtcPLL_M; radeon_legacy_tv_adjust_pll2() 919 *p2pll_div_0 = (const_ptr->crtcPLL_N & 0x7ff) | (get_post_div(const_ptr->crtcPLL_post_div) << 16); radeon_legacy_tv_adjust_pll2()
|
Completed in 121 milliseconds