Home
last modified time | relevance | path

Searched refs:gmch_ctrl (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/arch/x86/kernel/
Dearly-quirks.c356 u16 gmch_ctrl; in i830_stolen_size() local
359 gmch_ctrl = read_pci_config_16(0, 0, 0, I830_GMCH_CTRL); in i830_stolen_size()
360 gms = gmch_ctrl & I830_GMCH_GMS_MASK; in i830_stolen_size()
369 WARN(1, "Unknown GMCH_CTRL value: %x!\n", gmch_ctrl); in i830_stolen_size()
377 u16 gmch_ctrl; in gen3_stolen_size() local
380 gmch_ctrl = read_pci_config_16(0, 0, 0, I830_GMCH_CTRL); in gen3_stolen_size()
381 gms = gmch_ctrl & I855_GMCH_GMS_MASK; in gen3_stolen_size()
398 WARN(1, "Unknown GMCH_CTRL value: %x!\n", gmch_ctrl); in gen3_stolen_size()
406 u16 gmch_ctrl; in gen6_stolen_size() local
409 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen6_stolen_size()
[all …]
/linux-5.19.10/drivers/gpu/drm/i915/display/
Dintel_vga.c104 u16 gmch_ctrl; in intel_vga_set_state() local
106 if (pci_read_config_word(i915->bridge_dev, reg, &gmch_ctrl)) { in intel_vga_set_state()
111 if (!!(gmch_ctrl & INTEL_GMCH_VGA_DISABLE) == !enable_decode) in intel_vga_set_state()
115 gmch_ctrl &= ~INTEL_GMCH_VGA_DISABLE; in intel_vga_set_state()
117 gmch_ctrl |= INTEL_GMCH_VGA_DISABLE; in intel_vga_set_state()
119 if (pci_write_config_word(i915->bridge_dev, reg, gmch_ctrl)) { in intel_vga_set_state()
/linux-5.19.10/drivers/char/agp/
Dintel-gtt.c341 u16 gmch_ctrl; in intel_gtt_stolen_size() local
351 I830_GMCH_CTRL, &gmch_ctrl); in intel_gtt_stolen_size()
355 switch (gmch_ctrl & I830_GMCH_GMS_MASK) { in intel_gtt_stolen_size()
376 switch (gmch_ctrl & I855_GMCH_GMS_MASK) { in intel_gtt_stolen_size()
534 u16 gmch_ctrl; in intel_gtt_mappable_entries() local
537 I830_GMCH_CTRL, &gmch_ctrl); in intel_gtt_mappable_entries()
539 if ((gmch_ctrl & I830_GMCH_MEM_MASK) == I830_GMCH_MEM_64M) in intel_gtt_mappable_entries()
752 u16 gmch_ctrl; in intel_enable_gtt() local
755 I830_GMCH_CTRL, &gmch_ctrl); in intel_enable_gtt()
756 gmch_ctrl |= I830_GMCH_ENABLED; in intel_enable_gtt()
[all …]
/linux-5.19.10/drivers/gpu/drm/gma500/
Dgtt.c134 ret = pci_read_config_word(pdev, PSB_GMCH_CTRL, &dev_priv->gmch_ctrl); in psb_gtt_enable()
137 ret = pci_write_config_word(pdev, PSB_GMCH_CTRL, dev_priv->gmch_ctrl | _PSB_GMCH_ENABLED); in psb_gtt_enable()
154 pci_write_config_word(pdev, PSB_GMCH_CTRL, dev_priv->gmch_ctrl); in psb_gtt_disable()
Dpower.c114 dev_priv->gmch_ctrl | _PSB_GMCH_ENABLED); in gma_resume_display()
Dpsb_drv.h404 u16 gmch_ctrl; /* Saved GTT setup */ member
/linux-5.19.10/drivers/gpu/drm/i915/gt/
Dintel_gt_gmch.c582 static unsigned int chv_get_total_gtt_size(u16 gmch_ctrl) in chv_get_total_gtt_size() argument
584 gmch_ctrl >>= SNB_GMCH_GGMS_SHIFT; in chv_get_total_gtt_size()
585 gmch_ctrl &= SNB_GMCH_GGMS_MASK; in chv_get_total_gtt_size()
587 if (gmch_ctrl) in chv_get_total_gtt_size()
588 return 1 << (20 + gmch_ctrl); in chv_get_total_gtt_size()