xref: /linux/drivers/gpu/drm/xe/xe_bo_evict.h (revision e7e86d7697c6ed1dbbde18d7185c35b6967945ed)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2022 Intel Corporation
4  */
5 
6 #ifndef _XE_BO_EVICT_H_
7 #define _XE_BO_EVICT_H_
8 
9 struct xe_device;
10 
11 int xe_bo_evict_all(struct xe_device *xe);
12 int xe_bo_evict_all_user(struct xe_device *xe);
13 int xe_bo_notifier_prepare_all_pinned(struct xe_device *xe);
14 void xe_bo_notifier_unprepare_all_pinned(struct xe_device *xe);
15 int xe_bo_restore_early(struct xe_device *xe);
16 int xe_bo_restore_late(struct xe_device *xe);
17 
18 void xe_bo_pci_dev_remove_all(struct xe_device *xe);
19 
20 int xe_bo_pinned_init(struct xe_device *xe);
21 #endif
22