/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_sriov.h | 15 void xe_sriov_probe_early(struct xe_device *xe, bool has_sriov); 16 int xe_sriov_init(struct xe_device *xe); 18 static inline enum xe_sriov_mode xe_device_sriov_mode(struct xe_device *xe) argument 20 xe_assert(xe, xe->sriov.__mode); 21 return xe->sriov.__mode; 24 static inline bool xe_device_is_sriov_pf(struct xe_device *xe) argument 26 return xe_device_sriov_mode(xe) == XE_SRIOV_MODE_PF; 29 static inline bool xe_device_is_sriov_vf(struct xe_device *xe) argument 31 return xe_device_sriov_mode(xe) [all...] |
H A D | xe_pm.h | 20 int xe_pm_suspend(struct xe_device *xe); 21 int xe_pm_resume(struct xe_device *xe); 23 void xe_pm_init_early(struct xe_device *xe); 24 void xe_pm_init(struct xe_device *xe); 25 void xe_pm_runtime_fini(struct xe_device *xe); 26 int xe_pm_runtime_suspend(struct xe_device *xe); 27 int xe_pm_runtime_resume(struct xe_device *xe); 28 int xe_pm_runtime_get(struct xe_device *xe); 29 int xe_pm_runtime_put(struct xe_device *xe); 30 int xe_pm_runtime_get_if_active(struct xe_device *xe); [all...] |
H A D | xe_sriov.c | 33 * @xe: the &xe_device to probe mode on 43 void xe_sriov_probe_early(struct xe_device *xe, bool has_sriov) argument 48 xe_assert(xe, !has_sriov); 50 xe_assert(xe, !xe->sriov.__mode); 51 xe->sriov.__mode = mode; 52 xe_assert(xe, xe->sriov.__mode); 55 drm_info(&xe->drm, "Running in %s mode\n", 56 xe_sriov_mode_to_string(xe_device_sriov_mode(xe))); 61 struct xe_device *xe = arg; local 76 xe_sriov_init(struct xe_device *xe) argument [all...] |
H A D | xe_bo_evict.h | 11 int xe_bo_evict_all(struct xe_device *xe); 12 int xe_bo_restore_kernel(struct xe_device *xe); 13 int xe_bo_restore_user(struct xe_device *xe);
|
H A D | xe_irq.h | 13 int xe_irq_install(struct xe_device *xe); 14 void xe_irq_shutdown(struct xe_device *xe); 15 void xe_irq_suspend(struct xe_device *xe); 16 void xe_irq_resume(struct xe_device *xe);
|
H A D | xe_pm.c | 47 * @xe: xe device instance 51 int xe_pm_suspend(struct xe_device *xe) argument 57 for_each_gt(gt, xe, id) 61 err = xe_bo_evict_all(xe); 65 xe_display_pm_suspend(xe); 67 for_each_gt(gt, xe, id) { 70 xe_display_pm_resume(xe); 75 xe_irq_suspend(xe); 77 xe_display_pm_suspend_late(xe); 88 xe_pm_resume(struct xe_device *xe) argument 128 xe_pm_pci_d3cold_capable(struct xe_device *xe) argument 152 xe_pm_runtime_init(struct xe_device *xe) argument 175 xe_pm_init_early(struct xe_device *xe) argument 181 xe_pm_init(struct xe_device *xe) argument 199 xe_pm_runtime_fini(struct xe_device *xe) argument 207 xe_pm_write_callback_task(struct xe_device *xe, struct task_struct *task) argument 221 xe_pm_read_callback_task(struct xe_device *xe) argument 228 xe_pm_runtime_suspend(struct xe_device *xe) argument 293 xe_pm_runtime_resume(struct xe_device *xe) argument 344 xe_pm_runtime_get(struct xe_device *xe) argument 349 xe_pm_runtime_put(struct xe_device *xe) argument 355 xe_pm_runtime_get_if_active(struct xe_device *xe) argument 360 xe_pm_assert_unbounded_bridge(struct xe_device *xe) argument 374 xe_pm_set_vram_threshold(struct xe_device *xe, u32 threshold) argument 398 xe_pm_d3cold_allowed_toggle(struct xe_device *xe) argument [all...] |
H A D | xe_sriov_printk.h | 14 #define xe_sriov_printk_prefix(xe) \ 15 ((xe)->sriov.__mode == XE_SRIOV_MODE_PF ? "PF: " : \ 16 (xe)->sriov.__mode == XE_SRIOV_MODE_VF ? "VF: " : "") 18 #define xe_sriov_printk(xe, _level, fmt, ...) \ 19 drm_##_level(&(xe)->drm, "%s" fmt, xe_sriov_printk_prefix(xe), ##__VA_ARGS__) 21 #define xe_sriov_err(xe, fmt, ...) \ 22 xe_sriov_printk((xe), err, fmt, ##__VA_ARGS__) 24 #define xe_sriov_err_ratelimited(xe, fmt, ...) \ 25 xe_sriov_printk((xe), err_ratelimite [all...] |
H A D | xe_hwmon.h | 14 void xe_hwmon_register(struct xe_device *xe); 16 static inline void xe_hwmon_register(struct xe_device *xe) { }; argument
|
H A D | xe_device.c | 56 struct xe_device *xe = to_xe_device(dev); local 73 xef->xe = xe; 81 spin_lock(&xe->clients.lock); 82 xe->clients.count++; 83 spin_unlock(&xe->clients.lock); 91 struct xe_device *xe = to_xe_device(dev); local 112 spin_lock(&xe->clients.lock); 113 xe->clients.count--; 114 spin_unlock(&xe 156 struct xe_device *xe = to_xe_device(dev); local 194 struct xe_device *xe = to_xe_device(dev); local 211 struct xe_device *xe; local 301 xe_driver_flr(struct xe_device *xe) argument 354 struct xe_device *xe = arg; local 362 struct xe_device *xe = arg; local 370 xe_set_dma_info(struct xe_device *xe) argument 395 xe_device_probe_early(struct xe_device *xe) argument 410 xe_device_set_has_flat_ccs(struct xe_device *xe) argument 434 xe_device_probe(struct xe_device *xe) argument 580 xe_device_remove_display(struct xe_device *xe) argument 588 xe_device_remove(struct xe_device *xe) argument 605 xe_device_shutdown(struct xe_device *xe) argument 609 xe_device_wmb(struct xe_device *xe) argument 618 xe_device_ccs_bytes(struct xe_device *xe, u64 size) argument 624 xe_device_mem_access_ongoing(struct xe_device *xe) argument 632 xe_device_assert_mem_access(struct xe_device *xe) argument 637 xe_device_mem_access_get_if_ongoing(struct xe_device *xe) argument 654 xe_device_mem_access_get(struct xe_device *xe) argument 694 xe_device_mem_access_put(struct xe_device *xe) argument 707 xe_device_snapshot_print(struct xe_device *xe, struct drm_printer *p) argument 727 xe_device_canonicalize_addr(struct xe_device *xe, u64 address) argument 732 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address) argument [all...] |
H A D | xe_bo_evict.c | 16 * @xe: xe device 27 int xe_bo_evict_all(struct xe_device *xe) argument 29 struct ttm_device *bdev = &xe->ttm; 37 if (!IS_DGFX(xe)) 54 spin_lock(&xe->pinned.lock); 56 bo = list_first_entry_or_null(&xe->pinned.external_vram, 62 spin_unlock(&xe->pinned.lock); 69 spin_lock(&xe->pinned.lock); 71 &xe 123 xe_bo_restore_kernel(struct xe_device *xe) argument 183 xe_bo_restore_user(struct xe_device *xe) argument [all...] |
H A D | xe_debugfs.h | 11 void xe_debugfs_register(struct xe_device *xe);
|
H A D | xe_device_sysfs.h | 11 void xe_device_sysfs_init(struct xe_device *xe);
|
H A D | xe_ttm_stolen_mgr.h | 15 void xe_ttm_stolen_mgr_init(struct xe_device *xe); 16 int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem); 17 bool xe_ttm_stolen_cpu_access_needs_ggtt(struct xe_device *xe); 19 u64 xe_ttm_stolen_gpu_offset(struct xe_device *xe);
|
H A D | xe_ttm_sys_mgr.h | 11 int xe_ttm_sys_mgr_init(struct xe_device *xe);
|
H A D | xe_device_sysfs.c | 32 struct xe_device *xe = pdev_to_xe_device(pdev); local 35 if (!xe) 38 ret = sysfs_emit(buf, "%d\n", xe->d3cold.vram_threshold); 48 struct xe_device *xe = pdev_to_xe_device(pdev); local 52 if (!xe) 59 drm_dbg(&xe->drm, "vram_d3cold_threshold: %u\n", vram_d3cold_threshold); 61 ret = xe_pm_set_vram_threshold(xe, vram_d3cold_threshold); 70 struct xe_device *xe = arg; local 72 sysfs_remove_file(&xe->drm.dev->kobj, &dev_attr_vram_d3cold_threshold.attr); 75 void xe_device_sysfs_init(struct xe_device *xe) argument [all...] |
H A D | xe_device.h | 40 int xe_device_probe_early(struct xe_device *xe); 41 int xe_device_probe(struct xe_device *xe); 42 void xe_device_remove(struct xe_device *xe); 43 void xe_device_shutdown(struct xe_device *xe); 45 void xe_device_wmb(struct xe_device *xe); 52 static inline struct xe_tile *xe_device_get_root_tile(struct xe_device *xe) argument 54 return &xe->tiles[0]; 67 static inline struct xe_gt *xe_device_get_gt(struct xe_device *xe, u8 gt_id) argument 69 struct xe_tile *root_tile = xe_device_get_root_tile(xe); 79 if (MEDIA_VER(xe) > 109 xe_root_mmio_gt(struct xe_device *xe) argument 114 xe_device_uc_enabled(struct xe_device *xe) argument 147 xe_device_in_fault_mode(struct xe_device *xe) argument 152 xe_device_in_non_fault_mode(struct xe_device *xe) argument 157 xe_device_has_flat_ccs(struct xe_device *xe) argument 162 xe_device_has_sriov(struct xe_device *xe) argument 167 xe_device_has_memirq(struct xe_device *xe) argument [all...] |
H A D | xe_macros.h | 13 #define XE_IOCTL_DBG(xe, cond) \ 14 ((cond) && (drm_dbg(&(xe)->drm, \
|
H A D | xe_irq.c | 88 static u32 xelp_intr_disable(struct xe_device *xe) argument 90 struct xe_gt *mmio = xe_root_mmio_gt(xe); 104 gu_misc_irq_ack(struct xe_device *xe, const u32 master_ctl) argument 106 struct xe_gt *mmio = xe_root_mmio_gt(xe); 119 static inline void xelp_intr_enable(struct xe_device *xe, bool stall) argument 121 struct xe_gt *mmio = xe_root_mmio_gt(xe); 131 struct xe_device *xe = gt_to_xe(gt); local 137 if (xe_device_uc_enabled(xe)) { 176 if (xe_gt_is_media_type(gt) || MEDIA_VER(xe) < 13) { 192 } else if (HAS_HECI_GSCFI(xe)) { 206 gt_engine_identity(struct xe_device *xe, struct xe_gt *mmio, const unsigned int bank, const unsigned int bit) argument 262 struct xe_device *xe = tile_to_xe(tile); local 290 struct xe_device *xe = tile_to_xe(tile); local 343 struct xe_device *xe = arg; local 375 dg1_intr_disable(struct xe_device *xe) argument 393 dg1_intr_enable(struct xe_device *xe, bool stall) argument 409 struct xe_device *xe = arg; local 551 vf_irq_reset(struct xe_device *xe) argument 571 xe_irq_reset(struct xe_device *xe) argument 601 vf_irq_postinstall(struct xe_device *xe) argument 616 xe_irq_postinstall(struct xe_device *xe) argument 639 struct xe_device *xe = arg; local 656 xe_irq_handler(struct xe_device *xe) argument 669 struct xe_device *xe = arg; local 683 xe_irq_install(struct xe_device *xe) argument 739 xe_irq_shutdown(struct xe_device *xe) argument 744 xe_irq_suspend(struct xe_device *xe) argument 756 xe_irq_resume(struct xe_device *xe) argument [all...] |
H A D | xe_mmio.c | 32 _resize_bar(struct xe_device *xe, int resno, resource_size_t size) argument 34 struct pci_dev *pdev = to_pci_dev(xe->drm.dev); 43 drm_info(&xe->drm, "Failed to resize BAR%d to %dM (%pe). Consider enabling 'Resizable BAR' support in your BIOS\n", 48 drm_info(&xe->drm, "BAR%d resized to %dM\n", resno, 1 << bar_size); 55 static void xe_resize_vram_bar(struct xe_device *xe) argument 58 struct pci_dev *pdev = to_pci_dev(xe->drm.dev); 83 drm_info(&xe->drm, 101 drm_info(&xe->drm, "Attempting to resize bar from %lluMiB -> %lluMiB\n", 114 drm_info(&xe->drm, "Can't resize VRAM BAR - platform support is missing. Consider enabling 'Resizable BAR' support in your BIOS\n"); 121 _resize_bar(xe, LMEM_BA 141 xe_determine_lmem_bar_size(struct xe_device *xe) argument 188 struct xe_device *xe = tile_to_xe(tile); local 222 xe_mmio_probe_vram(struct xe_device *xe) argument 301 xe_mmio_probe_tiles(struct xe_device *xe) argument 356 struct xe_device *xe = arg; local 363 xe_verify_lmem_ready(struct xe_device *xe) argument 387 xe_mmio_init(struct xe_device *xe) argument 407 xe_mmio_root_tile_init(struct xe_device *xe) argument [all...] |
/linux-master/drivers/gpu/drm/xe/display/ |
H A D | xe_display.c | 34 static bool has_display(struct xe_device *xe) argument 36 return HAS_DISPLAY(xe); 56 struct xe_device *xe = to_xe_device(dev); local 58 if (xe->info.enable_display) 79 static void unset_display_features(struct xe_device *xe) argument 81 xe->drm.driver_features &= ~(DRIVER_MODESET | DRIVER_ATOMIC); 86 struct xe_device *xe = to_xe_device(dev); local 88 destroy_workqueue(xe->display.hotplug.dp_wq); 93 * @xe: XE device instance 98 * to the rest of xe an 102 xe_display_create(struct xe_device *xe) argument 122 struct xe_device *xe = to_xe_device(dev); local 130 xe_display_init_nommio(struct xe_device *xe) argument 146 struct xe_device *xe = to_xe_device(dev); local 155 xe_display_init_noirq(struct xe_device *xe) argument 186 struct xe_device *xe = to_xe_device(dev); local 194 xe_display_init_noaccel(struct xe_device *xe) argument 208 xe_display_init(struct xe_device *xe) argument 216 xe_display_fini(struct xe_device *xe) argument 229 xe_display_register(struct xe_device *xe) argument 239 xe_display_unregister(struct xe_device *xe) argument 249 xe_display_driver_remove(struct xe_device *xe) argument 261 xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) argument 270 xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) argument 279 xe_display_irq_reset(struct xe_device *xe) argument 287 xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt) argument 296 intel_suspend_encoders(struct xe_device *xe) argument 320 xe_display_pm_suspend(struct xe_device *xe) argument 349 xe_display_pm_suspend_late(struct xe_device *xe) argument 360 xe_display_pm_resume_early(struct xe_device *xe) argument 370 xe_display_pm_resume(struct xe_device *xe) argument 398 xe_display_probe(struct xe_device *xe) argument [all...] |
H A D | xe_display.h | 17 void xe_display_driver_remove(struct xe_device *xe); 19 int xe_display_create(struct xe_device *xe); 21 void xe_display_probe(struct xe_device *xe); 23 int xe_display_init_nommio(struct xe_device *xe); 24 int xe_display_init_noirq(struct xe_device *xe); 25 int xe_display_init_noaccel(struct xe_device *xe); 26 int xe_display_init(struct xe_device *xe); 27 void xe_display_fini(struct xe_device *xe); 29 void xe_display_register(struct xe_device *xe); 30 void xe_display_unregister(struct xe_device *xe); 46 xe_display_driver_remove(struct xe_device *xe) argument 48 xe_display_create(struct xe_device *xe) argument 50 xe_display_probe(struct xe_device *xe) argument 52 xe_display_init_nommio(struct xe_device *xe) argument 53 xe_display_init_noirq(struct xe_device *xe) argument 54 xe_display_init_noaccel(struct xe_device *xe) argument 55 xe_display_init(struct xe_device *xe) argument 56 xe_display_fini(struct xe_device *xe) argument 58 xe_display_register(struct xe_device *xe) argument 59 xe_display_unregister(struct xe_device *xe) argument 61 xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) argument 62 xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) argument 63 xe_display_irq_reset(struct xe_device *xe) argument 64 xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt) argument 66 xe_display_pm_suspend(struct xe_device *xe) argument 67 xe_display_pm_suspend_late(struct xe_device *xe) argument 68 xe_display_pm_resume_early(struct xe_device *xe) argument 69 xe_display_pm_resume(struct xe_device *xe) argument [all...] |
/linux-master/drivers/gpu/drm/xe/compat-i915-headers/ |
H A D | i915_drv.h | 9 * "Adaptation header" to allow i915 display to also build for xe driver. 10 * TODO: refactor i915 and xe so this can cease to exist 47 #define IS_PLATFORM(xe, x) ((xe)->info.platform == x) 100 #define INTEL_DISPLAY_ENABLED(xe) (HAS_DISPLAY((xe)) && !intel_opregion_headless_sku((xe))) 102 #define IS_GRAPHICS_VER(xe, first, last) \ 103 ((xe)->info.graphics_verx100 >= first * 100 && \ 104 (xe) 167 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); local 178 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); local 185 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); local [all...] |
H A D | intel_step.h | 15 const char *xe_display_step_name(struct xe_device *xe) argument 17 return xe_step_name(xe->info.step.display);
|
/linux-master/arch/mips/math-emu/ |
H A D | dp_fint.c | 15 int xe; local 38 xe = DP_FBITS; 41 xe--; 43 return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
|
H A D | sp_fint.c | 15 int xe; local 36 xe = SP_FBITS + 3; 49 xe--; 52 return ieee754sp_format(xs, xe, xm);
|