Lines Matching refs:px
3748 amdgpu_device_should_register_switcheroo(struct amdgpu_device *adev, bool px) in amdgpu_device_should_register_switcheroo() argument
3751 (px || (!dev_is_removable(&adev->pdev->dev) && in amdgpu_device_should_register_switcheroo()
3770 bool px = false; in amdgpu_device_init() local
4204 px = amdgpu_device_supports_px(adev); in amdgpu_device_init()
4206 if (amdgpu_device_should_register_switcheroo(adev, px)) in amdgpu_device_init()
4208 &amdgpu_switcheroo_ops, px); in amdgpu_device_init()
4210 if (px) in amdgpu_device_init()
4339 bool px; in amdgpu_device_fini_sw() local
4369 px = amdgpu_device_supports_px(adev); in amdgpu_device_fini_sw()
4371 if (amdgpu_device_should_register_switcheroo(adev, px)) in amdgpu_device_fini_sw()
4374 if (px) in amdgpu_device_fini_sw()