Searched refs:gmch_ctrl (Results 1 - 7 of 7) sorted by relevance
/linux-4.1.27/arch/x86/kernel/ |
H A D | early-quirks.c | 331 u16 gmch_ctrl; i830_stolen_size() local 333 gmch_ctrl = read_pci_config_16(0, 0, 0, I830_GMCH_CTRL); i830_stolen_size() 335 switch (gmch_ctrl & I830_GMCH_GMS_MASK) { i830_stolen_size() 359 u16 gmch_ctrl; gen3_stolen_size() local 361 gmch_ctrl = read_pci_config_16(0, 0, 0, I830_GMCH_CTRL); gen3_stolen_size() 363 switch (gmch_ctrl & I855_GMCH_GMS_MASK) { gen3_stolen_size() 413 u16 gmch_ctrl; gen6_stolen_size() local 415 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); gen6_stolen_size() 416 gmch_ctrl >>= SNB_GMCH_GMS_SHIFT; gen6_stolen_size() 417 gmch_ctrl &= SNB_GMCH_GMS_MASK; gen6_stolen_size() 419 return gmch_ctrl << 25; /* 32 MB units */ gen6_stolen_size() 424 u16 gmch_ctrl; gen8_stolen_size() local 426 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); gen8_stolen_size() 427 gmch_ctrl >>= BDW_GMCH_GMS_SHIFT; gen8_stolen_size() 428 gmch_ctrl &= BDW_GMCH_GMS_MASK; gen8_stolen_size() 429 return gmch_ctrl << 25; /* 32 MB units */ gen8_stolen_size() 434 u16 gmch_ctrl; chv_stolen_size() local 436 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); chv_stolen_size() 437 gmch_ctrl >>= SNB_GMCH_GMS_SHIFT; chv_stolen_size() 438 gmch_ctrl &= SNB_GMCH_GMS_MASK; chv_stolen_size() 445 if (gmch_ctrl < 0x11) chv_stolen_size() 446 return gmch_ctrl << 25; chv_stolen_size() 447 else if (gmch_ctrl < 0x17) chv_stolen_size() 448 return (gmch_ctrl - 0x11 + 2) << 22; chv_stolen_size() 450 return (gmch_ctrl - 0x17 + 9) << 22; chv_stolen_size() 460 u16 gmch_ctrl; gen9_stolen_size() local 462 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); gen9_stolen_size() 463 gmch_ctrl >>= BDW_GMCH_GMS_SHIFT; gen9_stolen_size() 464 gmch_ctrl &= BDW_GMCH_GMS_MASK; gen9_stolen_size() 466 if (gmch_ctrl < 0xf0) gen9_stolen_size() 467 return gmch_ctrl << 25; /* 32 MB units */ gen9_stolen_size() 470 return (gmch_ctrl - 0xf0 + 1) << 22; gen9_stolen_size()
|
/linux-4.1.27/drivers/char/agp/ |
H A D | intel-gtt.c | 345 u16 gmch_ctrl; intel_gtt_stolen_size() local 355 I830_GMCH_CTRL, &gmch_ctrl); intel_gtt_stolen_size() 359 switch (gmch_ctrl & I830_GMCH_GMS_MASK) { intel_gtt_stolen_size() 380 switch (gmch_ctrl & I855_GMCH_GMS_MASK) { intel_gtt_stolen_size() 538 u16 gmch_ctrl; intel_gtt_mappable_entries() local 541 I830_GMCH_CTRL, &gmch_ctrl); intel_gtt_mappable_entries() 543 if ((gmch_ctrl & I830_GMCH_MEM_MASK) == I830_GMCH_MEM_64M) intel_gtt_mappable_entries() 746 u16 gmch_ctrl; intel_enable_gtt() local 749 I830_GMCH_CTRL, &gmch_ctrl); intel_enable_gtt() 750 gmch_ctrl |= I830_GMCH_ENABLED; intel_enable_gtt() 752 I830_GMCH_CTRL, gmch_ctrl); intel_enable_gtt() 755 I830_GMCH_CTRL, &gmch_ctrl); intel_enable_gtt() 756 if ((gmch_ctrl & I830_GMCH_ENABLED) == 0) { intel_enable_gtt() 759 gmch_ctrl); intel_enable_gtt()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 2190 static inline unsigned int chv_get_total_gtt_size(u16 gmch_ctrl) chv_get_total_gtt_size() argument 2192 gmch_ctrl >>= SNB_GMCH_GGMS_SHIFT; chv_get_total_gtt_size() 2193 gmch_ctrl &= SNB_GMCH_GGMS_MASK; chv_get_total_gtt_size() 2195 if (gmch_ctrl) chv_get_total_gtt_size() 2196 return 1 << (20 + gmch_ctrl); chv_get_total_gtt_size() 2215 static size_t chv_get_stolen_size(u16 gmch_ctrl) chv_get_stolen_size() argument 2217 gmch_ctrl >>= SNB_GMCH_GMS_SHIFT; chv_get_stolen_size() 2218 gmch_ctrl &= SNB_GMCH_GMS_MASK; chv_get_stolen_size() 2225 if (gmch_ctrl < 0x11) chv_get_stolen_size() 2226 return gmch_ctrl << 25; chv_get_stolen_size() 2227 else if (gmch_ctrl < 0x17) chv_get_stolen_size() 2228 return (gmch_ctrl - 0x11 + 2) << 22; chv_get_stolen_size() 2230 return (gmch_ctrl - 0x17 + 9) << 22; chv_get_stolen_size()
|
H A D | intel_display.c | 14414 u16 gmch_ctrl; intel_modeset_vga_set_state() local 14416 if (pci_read_config_word(dev_priv->bridge_dev, reg, &gmch_ctrl)) { intel_modeset_vga_set_state() 14421 if (!!(gmch_ctrl & INTEL_GMCH_VGA_DISABLE) == !state) intel_modeset_vga_set_state() 14425 gmch_ctrl &= ~INTEL_GMCH_VGA_DISABLE; intel_modeset_vga_set_state() 14427 gmch_ctrl |= INTEL_GMCH_VGA_DISABLE; intel_modeset_vga_set_state() 14429 if (pci_write_config_word(dev_priv->bridge_dev, reg, gmch_ctrl)) { intel_modeset_vga_set_state()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
H A D | gtt.c | 406 dev_priv->gmch_ctrl); psb_gtt_takedown() 434 pci_read_config_word(dev->pdev, PSB_GMCH_CTRL, &dev_priv->gmch_ctrl); psb_gtt_init() 436 dev_priv->gmch_ctrl | _PSB_GMCH_ENABLED); psb_gtt_init()
|
H A D | power.c | 112 dev_priv->gmch_ctrl | _PSB_GMCH_ENABLED); gma_resume_display()
|
H A D | psb_drv.h | 462 u16 gmch_ctrl; /* Saved GTT setup */ member in struct:drm_psb_private
|
Completed in 282 milliseconds