Searched refs:atpx (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_atpx_handler.c34 /* handle for device - and atpx */
36 struct radeon_atpx atpx; member in struct:radeon_atpx_priv
137 * @atpx: radeon atpx struct
142 static int radeon_atpx_validate(struct radeon_atpx *atpx) radeon_atpx_validate() argument
146 atpx->functions.power_cntl = true; radeon_atpx_validate()
148 if (atpx->functions.px_params) { radeon_atpx_validate()
154 info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_GET_PX_PARAMETERS, NULL); radeon_atpx_validate()
173 atpx->functions.i2c_mux_cntl = true; radeon_atpx_validate()
174 atpx->functions.disp_mux_cntl = true; radeon_atpx_validate()
180 atpx->functions.disp_mux_cntl = true; radeon_atpx_validate()
190 * @atpx: radeon atpx struct
197 static int radeon_atpx_verify_interface(struct radeon_atpx *atpx) radeon_atpx_verify_interface() argument
204 info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_VERIFY_INTERFACE, NULL); radeon_atpx_verify_interface()
224 radeon_atpx_parse_functions(&atpx->functions, output.function_bits); radeon_atpx_verify_interface()
234 * @atpx: atpx info struct
241 static int radeon_atpx_set_discrete_state(struct radeon_atpx *atpx, u8 state) radeon_atpx_set_discrete_state() argument
247 if (atpx->functions.power_cntl) { radeon_atpx_set_discrete_state()
252 info = radeon_atpx_call(atpx->handle, radeon_atpx_set_discrete_state()
265 * @atpx: atpx info struct
273 static int radeon_atpx_switch_disp_mux(struct radeon_atpx *atpx, u16 mux_id) radeon_atpx_switch_disp_mux() argument
279 if (atpx->functions.disp_mux_cntl) { radeon_atpx_switch_disp_mux()
284 info = radeon_atpx_call(atpx->handle, radeon_atpx_switch_disp_mux()
297 * @atpx: atpx info struct
305 static int radeon_atpx_switch_i2c_mux(struct radeon_atpx *atpx, u16 mux_id) radeon_atpx_switch_i2c_mux() argument
311 if (atpx->functions.i2c_mux_cntl) { radeon_atpx_switch_i2c_mux()
316 info = radeon_atpx_call(atpx->handle, radeon_atpx_switch_i2c_mux()
329 * @atpx: atpx info struct
337 static int radeon_atpx_switch_start(struct radeon_atpx *atpx, u16 mux_id) radeon_atpx_switch_start() argument
343 if (atpx->functions.switch_start) { radeon_atpx_switch_start()
348 info = radeon_atpx_call(atpx->handle, radeon_atpx_switch_start()
361 * @atpx: atpx info struct
369 static int radeon_atpx_switch_end(struct radeon_atpx *atpx, u16 mux_id) radeon_atpx_switch_end() argument
375 if (atpx->functions.switch_end) { radeon_atpx_switch_end()
380 info = radeon_atpx_call(atpx->handle, radeon_atpx_switch_end()
408 radeon_atpx_switch_start(&radeon_atpx_priv.atpx, gpu_id); radeon_atpx_switchto()
409 radeon_atpx_switch_disp_mux(&radeon_atpx_priv.atpx, gpu_id); radeon_atpx_switchto()
410 radeon_atpx_switch_i2c_mux(&radeon_atpx_priv.atpx, gpu_id); radeon_atpx_switchto()
411 radeon_atpx_switch_end(&radeon_atpx_priv.atpx, gpu_id); radeon_atpx_switchto()
433 radeon_atpx_set_discrete_state(&radeon_atpx_priv.atpx, state); radeon_atpx_power_state()
459 radeon_atpx_priv.atpx.handle = atpx_handle; radeon_atpx_pci_probe_handle()
474 r = radeon_atpx_verify_interface(&radeon_atpx_priv.atpx); radeon_atpx_init()
478 /* validate the atpx setup */ radeon_atpx_init()
479 r = radeon_atpx_validate(&radeon_atpx_priv.atpx); radeon_atpx_init()
537 acpi_get_name(radeon_atpx_priv.atpx.handle, ACPI_FULL_PATHNAME, &buffer); radeon_atpx_detect()
H A Dradeon_drv.c157 /* atpx handler */

Completed in 96 milliseconds