Lines Matching refs:gmch_ctrl
2786 static unsigned int chv_get_total_gtt_size(u16 gmch_ctrl) in chv_get_total_gtt_size() argument
2788 gmch_ctrl >>= SNB_GMCH_GGMS_SHIFT; in chv_get_total_gtt_size()
2789 gmch_ctrl &= SNB_GMCH_GGMS_MASK; in chv_get_total_gtt_size()
2791 if (gmch_ctrl) in chv_get_total_gtt_size()
2792 return 1 << (20 + gmch_ctrl); in chv_get_total_gtt_size()
2811 static size_t chv_get_stolen_size(u16 gmch_ctrl) in chv_get_stolen_size() argument
2813 gmch_ctrl >>= SNB_GMCH_GMS_SHIFT; in chv_get_stolen_size()
2814 gmch_ctrl &= SNB_GMCH_GMS_MASK; in chv_get_stolen_size()
2821 if (gmch_ctrl < 0x11) in chv_get_stolen_size()
2822 return gmch_ctrl << 25; in chv_get_stolen_size()
2823 else if (gmch_ctrl < 0x17) in chv_get_stolen_size()
2824 return (gmch_ctrl - 0x11 + 2) << 22; in chv_get_stolen_size()
2826 return (gmch_ctrl - 0x17 + 9) << 22; in chv_get_stolen_size()