Lines Matching defs:gt

61 static int pf_send_vf_cfg_reset(struct xe_gt *gt, u32 vfid)  in pf_send_vf_cfg_reset()
75 static int pf_send_vf_buf_klvs(struct xe_gt *gt, u32 vfid, struct xe_guc_buf buf, u32 num_dwords) in pf_send_vf_buf_klvs()
86 static int pf_push_vf_buf_klvs(struct xe_gt *gt, unsigned int vfid, u32 num_klvs, in pf_push_vf_buf_klvs()
124 static int pf_push_vf_cfg_klvs(struct xe_gt *gt, unsigned int vfid, u32 num_klvs, in pf_push_vf_cfg_klvs()
137 static int pf_push_vf_cfg_u32(struct xe_gt *gt, unsigned int vfid, u16 key, u32 value) in pf_push_vf_cfg_u32()
147 static int pf_push_vf_cfg_u64(struct xe_gt *gt, unsigned int vfid, u16 key, u64 value) in pf_push_vf_cfg_u64()
158 static int pf_push_vf_cfg_ggtt(struct xe_gt *gt, unsigned int vfid, u64 start, u64 size) in pf_push_vf_cfg_ggtt()
172 static int pf_push_vf_cfg_ctxs(struct xe_gt *gt, unsigned int vfid, u32 begin, u32 num) in pf_push_vf_cfg_ctxs()
184 static int pf_push_vf_cfg_dbs(struct xe_gt *gt, unsigned int vfid, u32 begin, u32 num) in pf_push_vf_cfg_dbs()
196 static int pf_push_vf_cfg_exec_quantum(struct xe_gt *gt, unsigned int vfid, u32 *exec_quantum) in pf_push_vf_cfg_exec_quantum()
204 static int pf_push_vf_cfg_preempt_timeout(struct xe_gt *gt, unsigned int vfid, u32 *preempt_timeout) in pf_push_vf_cfg_preempt_timeout()
212 static int pf_push_vf_cfg_sched_priority(struct xe_gt *gt, unsigned int vfid, u32 priority) in pf_push_vf_cfg_sched_priority()
217 static int pf_push_vf_cfg_lmem(struct xe_gt *gt, unsigned int vfid, u64 size) in pf_push_vf_cfg_lmem()
222 static int pf_push_vf_cfg_threshold(struct xe_gt *gt, unsigned int vfid, in pf_push_vf_cfg_threshold()
231 static struct xe_gt_sriov_config *pf_pick_vf_config(struct xe_gt *gt, unsigned int vfid) in pf_pick_vf_config()
306 static int pf_push_full_vf_config(struct xe_gt *gt, unsigned int vfid) in pf_push_full_vf_config()
341 static int pf_push_vf_cfg(struct xe_gt *gt, unsigned int vfid, bool reset) in pf_push_vf_cfg()
356 static int pf_refresh_vf_cfg(struct xe_gt *gt, unsigned int vfid) in pf_refresh_vf_cfg()
361 static u64 pf_get_ggtt_alignment(struct xe_gt *gt) in pf_get_ggtt_alignment()
368 static u64 pf_get_min_spare_ggtt(struct xe_gt *gt) in pf_get_min_spare_ggtt()
375 static u64 pf_get_spare_ggtt(struct xe_gt *gt) in pf_get_spare_ggtt()
389 static int pf_set_spare_ggtt(struct xe_gt *gt, u64 size) in pf_set_spare_ggtt()
430 static void pf_release_vf_config_ggtt(struct xe_gt *gt, struct xe_gt_sriov_config *config) in pf_release_vf_config_ggtt()
436 static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size) in pf_provision_vf_ggtt()
490 static u64 pf_get_vf_config_ggtt(struct xe_gt *gt, unsigned int vfid) in pf_get_vf_config_ggtt()
508 u64 xe_gt_sriov_pf_config_get_ggtt(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_ggtt()
522 static int pf_config_set_u64_done(struct xe_gt *gt, unsigned int vfid, u64 value, in pf_config_set_u64_done()
559 int xe_gt_sriov_pf_config_set_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size) in xe_gt_sriov_pf_config_set_ggtt()
577 static int pf_config_bulk_set_u64_done(struct xe_gt *gt, unsigned int first, unsigned int num_vfs, in pf_config_bulk_set_u64_done()
618 int xe_gt_sriov_pf_config_bulk_set_ggtt(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_bulk_set_ggtt()
644 static u64 pf_get_max_ggtt(struct xe_gt *gt) in pf_get_max_ggtt()
658 static u64 pf_estimate_fair_ggtt(struct xe_gt *gt, unsigned int num_vfs) in pf_estimate_fair_ggtt()
689 int xe_gt_sriov_pf_config_set_fair_ggtt(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_fair_ggtt()
708 static u32 pf_get_min_spare_ctxs(struct xe_gt *gt) in pf_get_min_spare_ctxs()
715 static u32 pf_get_spare_ctxs(struct xe_gt *gt) in pf_get_spare_ctxs()
728 static int pf_set_spare_ctxs(struct xe_gt *gt, u32 spare) in pf_set_spare_ctxs()
745 static int pf_reserve_ctxs(struct xe_gt *gt, u32 num) in pf_reserve_ctxs()
753 static void pf_release_ctxs(struct xe_gt *gt, u32 start, u32 num) in pf_release_ctxs()
761 static void pf_release_config_ctxs(struct xe_gt *gt, struct xe_gt_sriov_config *config) in pf_release_config_ctxs()
770 static int pf_provision_vf_ctxs(struct xe_gt *gt, unsigned int vfid, u32 num_ctxs) in pf_provision_vf_ctxs()
813 static u32 pf_get_vf_config_ctxs(struct xe_gt *gt, unsigned int vfid) in pf_get_vf_config_ctxs()
830 u32 xe_gt_sriov_pf_config_get_ctxs(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_ctxs()
854 static int pf_config_set_u32_done(struct xe_gt *gt, unsigned int vfid, u32 value, u32 actual, in pf_config_set_u32_done()
885 int xe_gt_sriov_pf_config_set_ctxs(struct xe_gt *gt, unsigned int vfid, u32 num_ctxs) in xe_gt_sriov_pf_config_set_ctxs()
901 static int pf_config_bulk_set_u32_done(struct xe_gt *gt, unsigned int first, unsigned int num_vfs, in pf_config_bulk_set_u32_done()
940 int xe_gt_sriov_pf_config_bulk_set_ctxs(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_bulk_set_ctxs()
964 static u32 pf_estimate_fair_ctxs(struct xe_gt *gt, unsigned int num_vfs) in pf_estimate_fair_ctxs()
993 int xe_gt_sriov_pf_config_set_fair_ctxs(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_fair_ctxs()
1011 static u32 pf_get_min_spare_dbs(struct xe_gt *gt) in pf_get_min_spare_dbs()
1017 static u32 pf_get_spare_dbs(struct xe_gt *gt) in pf_get_spare_dbs()
1030 static int pf_set_spare_dbs(struct xe_gt *gt, u32 spare) in pf_set_spare_dbs()
1046 static int pf_reserve_dbs(struct xe_gt *gt, u32 num) in pf_reserve_dbs()
1054 static void pf_release_dbs(struct xe_gt *gt, u32 start, u32 num) in pf_release_dbs()
1062 static void pf_release_config_dbs(struct xe_gt *gt, struct xe_gt_sriov_config *config) in pf_release_config_dbs()
1071 static int pf_provision_vf_dbs(struct xe_gt *gt, unsigned int vfid, u32 num_dbs) in pf_provision_vf_dbs()
1114 static u32 pf_get_vf_config_dbs(struct xe_gt *gt, unsigned int vfid) in pf_get_vf_config_dbs()
1131 u32 xe_gt_sriov_pf_config_get_dbs(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_dbs()
1158 int xe_gt_sriov_pf_config_set_dbs(struct xe_gt *gt, unsigned int vfid, u32 num_dbs) in xe_gt_sriov_pf_config_set_dbs()
1188 int xe_gt_sriov_pf_config_bulk_set_dbs(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_bulk_set_dbs()
1212 static u32 pf_estimate_fair_dbs(struct xe_gt *gt, unsigned int num_vfs) in pf_estimate_fair_dbs()
1241 int xe_gt_sriov_pf_config_set_fair_dbs(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_fair_dbs()
1259 static u64 pf_get_lmem_alignment(struct xe_gt *gt) in pf_get_lmem_alignment()
1265 static u64 pf_get_min_spare_lmem(struct xe_gt *gt) in pf_get_min_spare_lmem()
1271 static u64 pf_get_spare_lmem(struct xe_gt *gt) in pf_get_spare_lmem()
1284 static int pf_set_spare_lmem(struct xe_gt *gt, u64 size) in pf_set_spare_lmem()
1296 static u64 pf_get_vf_config_lmem(struct xe_gt *gt, unsigned int vfid) in pf_get_vf_config_lmem()
1305 static int pf_distribute_config_lmem(struct xe_gt *gt, unsigned int vfid, u64 size) in pf_distribute_config_lmem()
1354 struct xe_gt *gt; in pf_update_vf_lmtt() local
1406 static void pf_release_vf_config_lmem(struct xe_gt *gt, struct xe_gt_sriov_config *config) in pf_release_vf_config_lmem()
1418 static int pf_provision_vf_lmem(struct xe_gt *gt, unsigned int vfid, u64 size) in pf_provision_vf_lmem()
1489 u64 xe_gt_sriov_pf_config_get_lmem(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_lmem()
1511 int xe_gt_sriov_pf_config_set_lmem(struct xe_gt *gt, unsigned int vfid, u64 size) in xe_gt_sriov_pf_config_set_lmem()
1538 int xe_gt_sriov_pf_config_bulk_set_lmem(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_bulk_set_lmem()
1563 static u64 pf_query_free_lmem(struct xe_gt *gt) in pf_query_free_lmem()
1570 static u64 pf_query_max_lmem(struct xe_gt *gt) in pf_query_max_lmem()
1588 static u64 pf_estimate_fair_lmem(struct xe_gt *gt, unsigned int num_vfs) in pf_estimate_fair_lmem()
1615 int xe_gt_sriov_pf_config_set_fair_lmem(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_fair_lmem()
1647 int xe_gt_sriov_pf_config_set_fair(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_fair()
1675 static int pf_provision_exec_quantum(struct xe_gt *gt, unsigned int vfid, in pf_provision_exec_quantum()
1689 static int pf_get_exec_quantum(struct xe_gt *gt, unsigned int vfid) in pf_get_exec_quantum()
1706 int xe_gt_sriov_pf_config_set_exec_quantum(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_exec_quantum()
1729 u32 xe_gt_sriov_pf_config_get_exec_quantum(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_exec_quantum()
1745 static int pf_provision_preempt_timeout(struct xe_gt *gt, unsigned int vfid, in pf_provision_preempt_timeout()
1760 static int pf_get_preempt_timeout(struct xe_gt *gt, unsigned int vfid) in pf_get_preempt_timeout()
1777 int xe_gt_sriov_pf_config_set_preempt_timeout(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_preempt_timeout()
1800 u32 xe_gt_sriov_pf_config_get_preempt_timeout(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_preempt_timeout()
1819 static int pf_provision_sched_priority(struct xe_gt *gt, unsigned int vfid, u32 priority) in pf_provision_sched_priority()
1832 static int pf_get_sched_priority(struct xe_gt *gt, unsigned int vfid) in pf_get_sched_priority()
1849 int xe_gt_sriov_pf_config_set_sched_priority(struct xe_gt *gt, unsigned int vfid, u32 priority) in xe_gt_sriov_pf_config_set_sched_priority()
1871 u32 xe_gt_sriov_pf_config_get_sched_priority(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_get_sched_priority()
1882 static void pf_reset_config_sched(struct xe_gt *gt, struct xe_gt_sriov_config *config) in pf_reset_config_sched()
1890 static int pf_provision_threshold(struct xe_gt *gt, unsigned int vfid, in pf_provision_threshold()
1905 static int pf_get_threshold(struct xe_gt *gt, unsigned int vfid, in pf_get_threshold()
1929 int xe_gt_sriov_pf_config_set_threshold(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_set_threshold()
1955 u32 xe_gt_sriov_pf_config_get_threshold(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_get_threshold()
1967 static void pf_reset_config_thresholds(struct xe_gt *gt, struct xe_gt_sriov_config *config) in pf_reset_config_thresholds()
1979 static void pf_release_vf_config(struct xe_gt *gt, unsigned int vfid) in pf_release_vf_config()
2008 int xe_gt_sriov_pf_config_release(struct xe_gt *gt, unsigned int vfid, bool force) in xe_gt_sriov_pf_config_release()
2064 static int pf_sanitize_vf_resources(struct xe_gt *gt, u32 vfid, long timeout) in pf_sanitize_vf_resources()
2094 int xe_gt_sriov_pf_config_sanitize(struct xe_gt *gt, unsigned int vfid, long timeout) in xe_gt_sriov_pf_config_sanitize()
2120 int xe_gt_sriov_pf_config_push(struct xe_gt *gt, unsigned int vfid, bool refresh) in xe_gt_sriov_pf_config_push()
2138 static int pf_validate_vf_config(struct xe_gt *gt, unsigned int vfid) in pf_validate_vf_config()
2177 bool xe_gt_sriov_pf_config_is_empty(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_config_is_empty()
2203 ssize_t xe_gt_sriov_pf_config_save(struct xe_gt *gt, unsigned int vfid, void *buf, size_t size) in xe_gt_sriov_pf_config_save()
2229 static int pf_restore_vf_config_klv(struct xe_gt *gt, unsigned int vfid, in pf_restore_vf_config_klv()
2287 static int pf_restore_vf_config(struct xe_gt *gt, unsigned int vfid, in pf_restore_vf_config()
2327 int xe_gt_sriov_pf_config_restore(struct xe_gt *gt, unsigned int vfid, in xe_gt_sriov_pf_config_restore()
2361 struct xe_gt *gt = arg; in fini_config() local
2379 int xe_gt_sriov_pf_config_init(struct xe_gt *gt) in xe_gt_sriov_pf_config_init()
2397 void xe_gt_sriov_pf_config_restart(struct xe_gt *gt) in xe_gt_sriov_pf_config_restart()
2428 int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_config_print_ggtt()
2461 int xe_gt_sriov_pf_config_print_ctxs(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_config_print_ctxs()
2496 int xe_gt_sriov_pf_config_print_dbs(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_config_print_dbs()
2531 int xe_gt_sriov_pf_config_print_lmem(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_config_print_lmem()
2564 int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_config_print_available_ggtt()