/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_xcp.c | 66 struct amdgpu_xcp *xcp; in amdgpu_xcp_run_transition() local 69 if (xcp_id >= MAX_XCP || !xcp_mgr->xcp[xcp_id].valid) in amdgpu_xcp_run_transition() 72 xcp = &xcp_mgr->xcp[xcp_id]; in amdgpu_xcp_run_transition() 74 xcp_ip = &xcp->ip[i]; in amdgpu_xcp_run_transition() 108 struct amdgpu_xcp *xcp; in __amdgpu_xcp_add_block() local 113 xcp = &xcp_mgr->xcp[xcp_id]; in __amdgpu_xcp_add_block() 114 xcp->ip[ip->ip_id] = *ip; in __amdgpu_xcp_add_block() 115 xcp in __amdgpu_xcp_add_block() 296 struct amdgpu_xcp *xcp; amdgpu_xcp_get_partition() local 315 amdgpu_xcp_get_inst_details(struct amdgpu_xcp *xcp, enum AMDGPU_XCP_IP_BLOCK ip, uint32_t *inst_mask) amdgpu_xcp_get_inst_details() argument [all...] |
H A D | amdgpu_xcp.h | 94 struct amdgpu_xcp xcp[MAX_XCP]; member 110 struct amdgpu_xcp *xcp, uint8_t *mem_id); 135 int amdgpu_xcp_get_inst_details(struct amdgpu_xcp *xcp, 172 if (xcp_mgr->xcp[*from].valid) in amdgpu_get_next_xcp() 173 return &xcp_mgr->xcp[*from]; in amdgpu_get_next_xcp() 180 #define for_each_xcp(xcp_mgr, xcp, i) \ 181 for (i = 0, xcp = amdgpu_get_next_xcp(xcp_mgr, &i); xcp; \ 182 xcp = amdgpu_get_next_xcp(xcp_mgr, &i))
|
H A D | aqua_vanjaram.c | 98 if (adev->xcp_mgr->xcp[xcp_id].ip[ip_blk].inst_mask & inst_mask) { in aqua_vanjaram_set_xcp_id() 112 num_gpu_sched = &adev->xcp_mgr->xcp[sel_xcp_id] in aqua_vanjaram_xcp_gpu_sched_update() 114 adev->xcp_mgr->xcp[sel_xcp_id].gpu_sched[ring->funcs->type][ring->hw_prio] in aqua_vanjaram_xcp_gpu_sched_update() 128 atomic_set(&adev->xcp_mgr->xcp[i].ref_cnt, 0); in aqua_vanjaram_xcp_sched_list_update() 129 memset(adev->xcp_mgr->xcp[i].gpu_sched, 0, sizeof(adev->xcp_mgr->xcp->gpu_sched)); in aqua_vanjaram_xcp_sched_list_update() 187 total_ref_cnt = atomic_read(&adev->xcp_mgr->xcp[i].ref_cnt); in aqua_vanjaram_select_scheds() 196 if (adev->xcp_mgr->xcp[sel_xcp_id].gpu_sched[hw_ip][hw_prio].num_scheds) { in aqua_vanjaram_select_scheds() 197 *num_scheds = adev->xcp_mgr->xcp[fpriv->xcp_id].gpu_sched[hw_ip][hw_prio].num_scheds; in aqua_vanjaram_select_scheds() 198 *scheds = adev->xcp_mgr->xcp[fpri in aqua_vanjaram_select_scheds() 543 aqua_vanjaram_get_xcp_mem_id(struct amdgpu_xcp_mgr *xcp_mgr, struct amdgpu_xcp *xcp, uint8_t *mem_id) aqua_vanjaram_get_xcp_mem_id() argument [all...] |
H A D | amdgpu_amdkfd.c | 422 struct amdgpu_xcp *xcp) in amdgpu_amdkfd_get_local_mem_info() 426 if (xcp) { in amdgpu_amdkfd_get_local_mem_info() 429 KFD_XCP_MEMORY_SIZE(adev, xcp->id); in amdgpu_amdkfd_get_local_mem_info() 432 KFD_XCP_MEMORY_SIZE(adev, xcp->id); in amdgpu_amdkfd_get_local_mem_info() 420 amdgpu_amdkfd_get_local_mem_info(struct amdgpu_device *adev, struct kfd_local_mem_info *mem_info, struct amdgpu_xcp *xcp) amdgpu_amdkfd_get_local_mem_info() argument
|
H A D | amdgpu_amdkfd.h | 234 struct amdgpu_xcp *xcp); 343 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
|
/kernel/linux/linux-5.10/arch/mips/math-emu/ |
H A D | cp1emu.c | 782 static inline int cop1_64bit(struct pt_regs *xcp) in cop1_64bit() argument 800 if (cop1_64bit(xcp) && !hybrid_fprs()) \ 808 if (cop1_64bit(xcp) && !hybrid_fprs()) { \ 829 ((di) = get_fpr64(&ctx->fpr[(x) & ~(cop1_64bit(xcp) ^ 1)], 0)) 834 fpr = (x) & ~(cop1_64bit(xcp) ^ 1); \ 848 static inline void cop1_cfc(struct pt_regs *xcp, struct mips_fpu_struct *ctx, in cop1_cfc() argument 858 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 868 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 876 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 887 (void *)xcp in cop1_cfc() 905 cop1_ctc(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir) cop1_ctc() argument 971 cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx, struct mm_decoded_insn dec_insn, void __user **fault_addr) cop1Emulate() argument 1463 fpux_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir, void __user **fault_addr) fpux_emu() argument 1682 fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir) fpu_emu() argument 2837 fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx, int has_fpu, void __user **fault_addr) fpu_emulator_cop1Handler() argument [all...] |
H A D | dsemul.c | 295 bool do_dsemulret(struct pt_regs *xcp) in do_dsemulret() argument 304 xcp->cp0_epc = current->thread.bd_emu_cont_pc; in do_dsemulret() 305 pr_debug("dsemulret to 0x%08lx\n", xcp->cp0_epc); in do_dsemulret()
|
/kernel/linux/linux-6.6/arch/mips/math-emu/ |
H A D | cp1emu.c | 782 static inline int cop1_64bit(struct pt_regs *xcp) in cop1_64bit() argument 800 if (cop1_64bit(xcp) && !hybrid_fprs()) \ 808 if (cop1_64bit(xcp) && !hybrid_fprs()) { \ 829 ((di) = get_fpr64(&ctx->fpr[(x) & ~(cop1_64bit(xcp) ^ 1)], 0)) 834 fpr = (x) & ~(cop1_64bit(xcp) ^ 1); \ 848 static inline void cop1_cfc(struct pt_regs *xcp, struct mips_fpu_struct *ctx, in cop1_cfc() argument 858 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 868 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 876 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 887 (void *)xcp in cop1_cfc() 905 cop1_ctc(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir) cop1_ctc() argument 971 cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx, struct mm_decoded_insn dec_insn, void __user **fault_addr) cop1Emulate() argument 1463 fpux_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir, void __user **fault_addr) fpux_emu() argument 1682 fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir) fpu_emu() argument 2837 fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx, int has_fpu, void __user **fault_addr) fpu_emulator_cop1Handler() argument [all...] |
H A D | dsemul.c | 292 bool do_dsemulret(struct pt_regs *xcp) in do_dsemulret() argument 301 xcp->cp0_epc = current->thread.bd_emu_cont_pc; in do_dsemulret() 302 pr_debug("dsemulret to 0x%08lx\n", xcp->cp0_epc); in do_dsemulret()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | dsemul.h | 42 * @xcp: User thread register context. 52 extern bool do_dsemulret(struct pt_regs *xcp); 54 static inline bool do_dsemulret(struct pt_regs *xcp) in do_dsemulret() argument
|
H A D | fpu_emulator.h | 168 extern int fpu_emulator_cop1Handler(struct pt_regs *xcp,
|
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | dsemul.h | 42 * @xcp: User thread register context. 52 extern bool do_dsemulret(struct pt_regs *xcp); 54 static inline bool do_dsemulret(struct pt_regs *xcp) in do_dsemulret() argument
|
H A D | fpu_emulator.h | 168 extern int fpu_emulator_cop1Handler(struct pt_regs *xcp,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 772 node->xcp = amdgpu_get_next_xcp(kfd->adev->xcp_mgr, &xcp_idx); in kgd2kfd_device_init() 774 if (node->xcp) { in kgd2kfd_device_init() 775 amdgpu_xcp_get_inst_details(node->xcp, AMDGPU_XCP_GFX, in kgd2kfd_device_init() 783 if (node->xcp) { in kgd2kfd_device_init() 785 node->node_id, node->xcp->mem_id, in kgd2kfd_device_init() 815 &node->local_mem_info, node->xcp); in kgd2kfd_device_init()
|
H A D | kfd_priv.h | 271 struct amdgpu_xcp *xcp; member 1490 if (node->xcp) in kfd_devcgroup_check_permission() 1491 ddev = node->xcp->ddev; in kfd_devcgroup_check_permission()
|
H A D | kfd_topology.c | 1185 dev->gpu->xcp); in kfd_fill_mem_clk_max_info() 1932 if (gpu->xcp && !gpu->xcp->ddev) { in kfd_topology_add_device() 1998 if (gpu->xcp) in kfd_topology_add_device() 1999 dev->node_props.drm_render_minor = gpu->xcp->ddev->render->index; in kfd_topology_add_device()
|
H A D | kfd_svm.c | 564 if (node->xcp) in svm_range_vram_node_new() 565 bp.xcp_id_plus1 = node->xcp->id + 1; in svm_range_vram_node_new() 1245 (!bo_node->xcp || !node->xcp || bo_node->xcp->mem_id == node->xcp->mem_id)) in svm_range_get_pte_flags() 1998 if (adev->kfd.dev->nodes[i]->xcp) in svm_range_set_max_pages() 1999 id = adev->kfd.dev->nodes[i]->xcp->id; in svm_range_set_max_pages()
|