atpx 51 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c struct amdgpu_atpx atpx; atpx 81 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c return amdgpu_atpx_priv.atpx.functions.power_cntl; atpx 85 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c return amdgpu_atpx_priv.atpx.is_hybrid; atpx 89 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c return amdgpu_atpx_priv.atpx.dgpu_req_power_for_displays; atpx 175 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_validate(struct amdgpu_atpx *atpx) atpx 179 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c if (atpx->functions.px_params) { atpx 184 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, ATPX_FUNCTION_GET_PX_PARAMETERS, NULL); atpx 207 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->functions.i2c_mux_cntl = true; atpx 208 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->functions.disp_mux_cntl = true; atpx 214 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->functions.disp_mux_cntl = true; atpx 220 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->functions.power_cntl = true; atpx 222 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->is_hybrid = false; atpx 226 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->functions.power_cntl = true; atpx 227 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->is_hybrid = false; atpx 234 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->functions.power_cntl = !amdgpu_atpx_priv.bridge_pm_usable; atpx 235 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->is_hybrid = true; atpx 239 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->dgpu_req_power_for_displays = false; atpx 241 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c atpx->dgpu_req_power_for_displays = true; atpx 256 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_verify_interface(struct amdgpu_atpx *atpx) atpx 263 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, ATPX_FUNCTION_VERIFY_INTERFACE, NULL); atpx 283 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_parse_functions(&atpx->functions, output.function_bits); atpx 300 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_set_discrete_state(struct amdgpu_atpx *atpx, u8 state) atpx 306 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c if (atpx->functions.power_cntl) { atpx 311 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, atpx 336 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_switch_disp_mux(struct amdgpu_atpx *atpx, u16 mux_id) atpx 342 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c if (atpx->functions.disp_mux_cntl) { atpx 347 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, atpx 368 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_switch_i2c_mux(struct amdgpu_atpx *atpx, u16 mux_id) atpx 374 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c if (atpx->functions.i2c_mux_cntl) { atpx 379 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, atpx 400 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_switch_start(struct amdgpu_atpx *atpx, u16 mux_id) atpx 406 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c if (atpx->functions.switch_start) { atpx 411 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, atpx 432 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static int amdgpu_atpx_switch_end(struct amdgpu_atpx *atpx, u16 mux_id) atpx 438 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c if (atpx->functions.switch_end) { atpx 443 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c info = amdgpu_atpx_call(atpx->handle, atpx 471 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_switch_start(&amdgpu_atpx_priv.atpx, gpu_id); atpx 472 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_switch_disp_mux(&amdgpu_atpx_priv.atpx, gpu_id); atpx 473 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_switch_i2c_mux(&amdgpu_atpx_priv.atpx, gpu_id); atpx 474 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_switch_end(&amdgpu_atpx_priv.atpx, gpu_id); atpx 496 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_set_discrete_state(&amdgpu_atpx_priv.atpx, state); atpx 523 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_priv.atpx.handle = atpx_handle; atpx 538 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c r = amdgpu_atpx_verify_interface(&amdgpu_atpx_priv.atpx); atpx 543 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c r = amdgpu_atpx_validate(&amdgpu_atpx_priv.atpx); atpx 637 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c acpi_get_name(amdgpu_atpx_priv.atpx.handle, ACPI_FULL_PATHNAME, &buffer); atpx 39 drivers/gpu/drm/radeon/radeon_atpx_handler.c struct radeon_atpx atpx; atpx 69 drivers/gpu/drm/radeon/radeon_atpx_handler.c return radeon_atpx_priv.atpx.functions.power_cntl; atpx 73 drivers/gpu/drm/radeon/radeon_atpx_handler.c return radeon_atpx_priv.atpx.is_hybrid; atpx 77 drivers/gpu/drm/radeon/radeon_atpx_handler.c return radeon_atpx_priv.atpx.dgpu_req_power_for_displays; atpx 157 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_validate(struct radeon_atpx *atpx) atpx 161 drivers/gpu/drm/radeon/radeon_atpx_handler.c if (atpx->functions.px_params) { atpx 166 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_GET_PX_PARAMETERS, NULL); atpx 189 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->functions.i2c_mux_cntl = true; atpx 190 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->functions.disp_mux_cntl = true; atpx 196 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->functions.disp_mux_cntl = true; atpx 201 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->functions.power_cntl = true; atpx 203 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->is_hybrid = false; atpx 210 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->functions.power_cntl = !radeon_atpx_priv.bridge_pm_usable; atpx 211 drivers/gpu/drm/radeon/radeon_atpx_handler.c atpx->is_hybrid = true; atpx 227 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_verify_interface(struct radeon_atpx *atpx) atpx 234 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_VERIFY_INTERFACE, NULL); atpx 254 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_parse_functions(&atpx->functions, output.function_bits); atpx 271 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_set_discrete_state(struct radeon_atpx *atpx, u8 state) atpx 277 drivers/gpu/drm/radeon/radeon_atpx_handler.c if (atpx->functions.power_cntl) { atpx 282 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, atpx 307 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_switch_disp_mux(struct radeon_atpx *atpx, u16 mux_id) atpx 313 drivers/gpu/drm/radeon/radeon_atpx_handler.c if (atpx->functions.disp_mux_cntl) { atpx 318 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, atpx 339 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_switch_i2c_mux(struct radeon_atpx *atpx, u16 mux_id) atpx 345 drivers/gpu/drm/radeon/radeon_atpx_handler.c if (atpx->functions.i2c_mux_cntl) { atpx 350 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, atpx 371 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_switch_start(struct radeon_atpx *atpx, u16 mux_id) atpx 377 drivers/gpu/drm/radeon/radeon_atpx_handler.c if (atpx->functions.switch_start) { atpx 382 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, atpx 403 drivers/gpu/drm/radeon/radeon_atpx_handler.c static int radeon_atpx_switch_end(struct radeon_atpx *atpx, u16 mux_id) atpx 409 drivers/gpu/drm/radeon/radeon_atpx_handler.c if (atpx->functions.switch_end) { atpx 414 drivers/gpu/drm/radeon/radeon_atpx_handler.c info = radeon_atpx_call(atpx->handle, atpx 442 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_switch_start(&radeon_atpx_priv.atpx, gpu_id); atpx 443 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_switch_disp_mux(&radeon_atpx_priv.atpx, gpu_id); atpx 444 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_switch_i2c_mux(&radeon_atpx_priv.atpx, gpu_id); atpx 445 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_switch_end(&radeon_atpx_priv.atpx, gpu_id); atpx 467 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_set_discrete_state(&radeon_atpx_priv.atpx, state); atpx 493 drivers/gpu/drm/radeon/radeon_atpx_handler.c radeon_atpx_priv.atpx.handle = atpx_handle; atpx 508 drivers/gpu/drm/radeon/radeon_atpx_handler.c r = radeon_atpx_verify_interface(&radeon_atpx_priv.atpx); atpx 513 drivers/gpu/drm/radeon/radeon_atpx_handler.c r = radeon_atpx_validate(&radeon_atpx_priv.atpx); atpx 578 drivers/gpu/drm/radeon/radeon_atpx_handler.c acpi_get_name(radeon_atpx_priv.atpx.handle, ACPI_FULL_PATHNAME, &buffer);