Lines Matching refs:gmch_ctrl
2190 static inline unsigned int chv_get_total_gtt_size(u16 gmch_ctrl) in chv_get_total_gtt_size() argument
2192 gmch_ctrl >>= SNB_GMCH_GGMS_SHIFT; in chv_get_total_gtt_size()
2193 gmch_ctrl &= SNB_GMCH_GGMS_MASK; in chv_get_total_gtt_size()
2195 if (gmch_ctrl) in chv_get_total_gtt_size()
2196 return 1 << (20 + gmch_ctrl); in chv_get_total_gtt_size()
2215 static size_t chv_get_stolen_size(u16 gmch_ctrl) in chv_get_stolen_size() argument
2217 gmch_ctrl >>= SNB_GMCH_GMS_SHIFT; in chv_get_stolen_size()
2218 gmch_ctrl &= SNB_GMCH_GMS_MASK; in chv_get_stolen_size()
2225 if (gmch_ctrl < 0x11) in chv_get_stolen_size()
2226 return gmch_ctrl << 25; in chv_get_stolen_size()
2227 else if (gmch_ctrl < 0x17) in chv_get_stolen_size()
2228 return (gmch_ctrl - 0x11 + 2) << 22; in chv_get_stolen_size()
2230 return (gmch_ctrl - 0x17 + 9) << 22; in chv_get_stolen_size()