Lines Matching refs:gmch_ctrl
1820 static inline unsigned int chv_get_total_gtt_size(u16 gmch_ctrl) in chv_get_total_gtt_size() argument
1822 gmch_ctrl >>= SNB_GMCH_GGMS_SHIFT; in chv_get_total_gtt_size()
1823 gmch_ctrl &= SNB_GMCH_GGMS_MASK; in chv_get_total_gtt_size()
1825 if (gmch_ctrl) in chv_get_total_gtt_size()
1826 return 1 << (20 + gmch_ctrl); in chv_get_total_gtt_size()
1845 static size_t chv_get_stolen_size(u16 gmch_ctrl) in chv_get_stolen_size() argument
1847 gmch_ctrl >>= SNB_GMCH_GMS_SHIFT; in chv_get_stolen_size()
1848 gmch_ctrl &= SNB_GMCH_GMS_MASK; in chv_get_stolen_size()
1855 if (gmch_ctrl < 0x11) in chv_get_stolen_size()
1856 return gmch_ctrl << 25; in chv_get_stolen_size()
1857 else if (gmch_ctrl < 0x17) in chv_get_stolen_size()
1858 return (gmch_ctrl - 0x11 + 2) << 22; in chv_get_stolen_size()
1860 return (gmch_ctrl - 0x17 + 9) << 22; in chv_get_stolen_size()