mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 14:21:55 +07:00
drm/amd/display: whitespace cleanup in amdgpu_dm_irq.c/h
To match kernel standards. No intended functional change. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
6563617fbb
commit
e637525659
@ -66,8 +66,7 @@ struct amdgpu_dm_timer_handler_data {
|
|||||||
* Private functions.
|
* Private functions.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
static void init_handler_common_data(
|
static void init_handler_common_data(struct handler_common_data *hcd,
|
||||||
struct handler_common_data *hcd,
|
|
||||||
void (*ih)(void *),
|
void (*ih)(void *),
|
||||||
void *args,
|
void *args,
|
||||||
struct amdgpu_display_manager *dm)
|
struct amdgpu_display_manager *dm)
|
||||||
@ -115,8 +114,7 @@ static void dm_irq_work_func(struct work_struct *work)
|
|||||||
* Remove a handler and return a pointer to hander list from which the
|
* Remove a handler and return a pointer to hander list from which the
|
||||||
* handler was removed.
|
* handler was removed.
|
||||||
*/
|
*/
|
||||||
static struct list_head *remove_irq_handler(
|
static struct list_head *remove_irq_handler(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
void *ih,
|
void *ih,
|
||||||
const struct dc_interrupt_params *int_params)
|
const struct dc_interrupt_params *int_params)
|
||||||
{
|
{
|
||||||
@ -172,8 +170,7 @@ static struct list_head *remove_irq_handler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If 'handler_in == NULL' then remove ALL handlers. */
|
/* If 'handler_in == NULL' then remove ALL handlers. */
|
||||||
static void remove_timer_handler(
|
static void remove_timer_handler(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct amdgpu_dm_timer_handler_data *handler_in)
|
struct amdgpu_dm_timer_handler_data *handler_in)
|
||||||
{
|
{
|
||||||
struct amdgpu_dm_timer_handler_data *handler_temp;
|
struct amdgpu_dm_timer_handler_data *handler_temp;
|
||||||
@ -236,8 +233,7 @@ static void remove_timer_handler(
|
|||||||
*
|
*
|
||||||
* @work: work struct
|
* @work: work struct
|
||||||
*/
|
*/
|
||||||
static void dm_timer_work_func(
|
static void dm_timer_work_func(struct work_struct *work)
|
||||||
struct work_struct *work)
|
|
||||||
{
|
{
|
||||||
struct amdgpu_dm_timer_handler_data *handler_data =
|
struct amdgpu_dm_timer_handler_data *handler_data =
|
||||||
container_of(work, struct amdgpu_dm_timer_handler_data,
|
container_of(work, struct amdgpu_dm_timer_handler_data,
|
||||||
@ -253,8 +249,8 @@ static void dm_timer_work_func(
|
|||||||
remove_timer_handler(handler_data->hcd.dm->adev, handler_data);
|
remove_timer_handler(handler_data->hcd.dm->adev, handler_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool validate_irq_registration_params(
|
static bool
|
||||||
struct dc_interrupt_params *int_params,
|
validate_irq_registration_params(struct dc_interrupt_params *int_params,
|
||||||
void (*ih)(void *))
|
void (*ih)(void *))
|
||||||
{
|
{
|
||||||
if (NULL == int_params || NULL == ih) {
|
if (NULL == int_params || NULL == ih) {
|
||||||
@ -277,8 +273,7 @@ static bool validate_irq_registration_params(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool validate_irq_unregistration_params(
|
static bool validate_irq_unregistration_params(enum dc_irq_source irq_source,
|
||||||
enum dc_irq_source irq_source,
|
|
||||||
irq_handler_idx handler_idx)
|
irq_handler_idx handler_idx)
|
||||||
{
|
{
|
||||||
if (DAL_INVALID_IRQ_HANDLER_IDX == handler_idx) {
|
if (DAL_INVALID_IRQ_HANDLER_IDX == handler_idx) {
|
||||||
@ -299,8 +294,7 @@ static bool validate_irq_unregistration_params(
|
|||||||
* Note: caller is responsible for input validation.
|
* Note: caller is responsible for input validation.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
void *amdgpu_dm_irq_register_interrupt(
|
void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct dc_interrupt_params *int_params,
|
struct dc_interrupt_params *int_params,
|
||||||
void (*ih)(void *),
|
void (*ih)(void *),
|
||||||
void *handler_args)
|
void *handler_args)
|
||||||
@ -359,8 +353,7 @@ void *amdgpu_dm_irq_register_interrupt(
|
|||||||
return handler_data;
|
return handler_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void amdgpu_dm_irq_unregister_interrupt(
|
void amdgpu_dm_irq_unregister_interrupt(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
enum dc_irq_source irq_source,
|
enum dc_irq_source irq_source,
|
||||||
void *ih)
|
void *ih)
|
||||||
{
|
{
|
||||||
@ -394,8 +387,7 @@ void amdgpu_dm_irq_unregister_interrupt(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int amdgpu_dm_irq_init(
|
int amdgpu_dm_irq_init(struct amdgpu_device *adev)
|
||||||
struct amdgpu_device *adev)
|
|
||||||
{
|
{
|
||||||
int src;
|
int src;
|
||||||
struct irq_list_head *lh;
|
struct irq_list_head *lh;
|
||||||
@ -427,8 +419,7 @@ int amdgpu_dm_irq_init(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void amdgpu_dm_irq_register_timer(
|
void amdgpu_dm_irq_register_timer(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct dc_timer_interrupt_params *int_params,
|
struct dc_timer_interrupt_params *int_params,
|
||||||
interrupt_handler ih,
|
interrupt_handler ih,
|
||||||
void *args)
|
void *args)
|
||||||
@ -470,8 +461,7 @@ void amdgpu_dm_irq_register_timer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* DM IRQ and timer resource release */
|
/* DM IRQ and timer resource release */
|
||||||
void amdgpu_dm_irq_fini(
|
void amdgpu_dm_irq_fini(struct amdgpu_device *adev)
|
||||||
struct amdgpu_device *adev)
|
|
||||||
{
|
{
|
||||||
int src;
|
int src;
|
||||||
struct irq_list_head *lh;
|
struct irq_list_head *lh;
|
||||||
@ -492,8 +482,7 @@ void amdgpu_dm_irq_fini(
|
|||||||
destroy_workqueue(adev->dm.timer_workqueue);
|
destroy_workqueue(adev->dm.timer_workqueue);
|
||||||
}
|
}
|
||||||
|
|
||||||
int amdgpu_dm_irq_suspend(
|
int amdgpu_dm_irq_suspend(struct amdgpu_device *adev)
|
||||||
struct amdgpu_device *adev)
|
|
||||||
{
|
{
|
||||||
int src;
|
int src;
|
||||||
struct list_head *hnd_list_h;
|
struct list_head *hnd_list_h;
|
||||||
@ -576,8 +565,7 @@ int amdgpu_dm_irq_resume_late(struct amdgpu_device *adev)
|
|||||||
* amdgpu_dm_irq_schedule_work - schedule all work items registered for the
|
* amdgpu_dm_irq_schedule_work - schedule all work items registered for the
|
||||||
* "irq_source".
|
* "irq_source".
|
||||||
*/
|
*/
|
||||||
static void amdgpu_dm_irq_schedule_work(
|
static void amdgpu_dm_irq_schedule_work(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
enum dc_irq_source irq_source)
|
enum dc_irq_source irq_source)
|
||||||
{
|
{
|
||||||
unsigned long irq_table_flags;
|
unsigned long irq_table_flags;
|
||||||
@ -601,8 +589,7 @@ static void amdgpu_dm_irq_schedule_work(
|
|||||||
/** amdgpu_dm_irq_immediate_work
|
/** amdgpu_dm_irq_immediate_work
|
||||||
* Callback high irq work immediately, don't send to work queue
|
* Callback high irq work immediately, don't send to work queue
|
||||||
*/
|
*/
|
||||||
static void amdgpu_dm_irq_immediate_work(
|
static void amdgpu_dm_irq_immediate_work(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
enum dc_irq_source irq_source)
|
enum dc_irq_source irq_source)
|
||||||
{
|
{
|
||||||
struct amdgpu_dm_irq_handler_data *handler_data;
|
struct amdgpu_dm_irq_handler_data *handler_data;
|
||||||
@ -635,8 +622,7 @@ static void amdgpu_dm_irq_immediate_work(
|
|||||||
* Generic IRQ handler, calls all registered high irq work immediately, and
|
* Generic IRQ handler, calls all registered high irq work immediately, and
|
||||||
* schedules work for low irq
|
* schedules work for low irq
|
||||||
*/
|
*/
|
||||||
int amdgpu_dm_irq_handler(
|
int amdgpu_dm_irq_handler(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct amdgpu_irq_src *source,
|
struct amdgpu_irq_src *source,
|
||||||
struct amdgpu_iv_entry *entry)
|
struct amdgpu_iv_entry *entry)
|
||||||
{
|
{
|
||||||
@ -689,8 +675,7 @@ static int amdgpu_dm_set_hpd_irq_state(struct amdgpu_device *adev,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int dm_irq_state(
|
static inline int dm_irq_state(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct amdgpu_irq_src *source,
|
struct amdgpu_irq_src *source,
|
||||||
unsigned crtc_id,
|
unsigned crtc_id,
|
||||||
enum amdgpu_interrupt_state state,
|
enum amdgpu_interrupt_state state,
|
||||||
|
@ -39,8 +39,7 @@
|
|||||||
* 0 - success
|
* 0 - success
|
||||||
* non-zero - error
|
* non-zero - error
|
||||||
*/
|
*/
|
||||||
int amdgpu_dm_irq_init(
|
int amdgpu_dm_irq_init(struct amdgpu_device *adev);
|
||||||
struct amdgpu_device *adev);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* amdgpu_dm_irq_fini - deallocate internal structures of 'amdgpu_dm_irq'.
|
* amdgpu_dm_irq_fini - deallocate internal structures of 'amdgpu_dm_irq'.
|
||||||
@ -48,8 +47,7 @@ int amdgpu_dm_irq_init(
|
|||||||
* This function should be called exactly once - during DM destruction.
|
* This function should be called exactly once - during DM destruction.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void amdgpu_dm_irq_fini(
|
void amdgpu_dm_irq_fini(struct amdgpu_device *adev);
|
||||||
struct amdgpu_device *adev);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* amdgpu_dm_irq_register_interrupt - register irq handler for Display block.
|
* amdgpu_dm_irq_register_interrupt - register irq handler for Display block.
|
||||||
@ -65,8 +63,7 @@ void amdgpu_dm_irq_fini(
|
|||||||
*
|
*
|
||||||
* Cannot be called from an interrupt handler.
|
* Cannot be called from an interrupt handler.
|
||||||
*/
|
*/
|
||||||
void *amdgpu_dm_irq_register_interrupt(
|
void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct dc_interrupt_params *int_params,
|
struct dc_interrupt_params *int_params,
|
||||||
void (*ih)(void *),
|
void (*ih)(void *),
|
||||||
void *handler_args);
|
void *handler_args);
|
||||||
@ -79,13 +76,11 @@ void *amdgpu_dm_irq_register_interrupt(
|
|||||||
* @ih_index: irq handler index which was returned by
|
* @ih_index: irq handler index which was returned by
|
||||||
* amdgpu_dm_irq_register_interrupt
|
* amdgpu_dm_irq_register_interrupt
|
||||||
*/
|
*/
|
||||||
void amdgpu_dm_irq_unregister_interrupt(
|
void amdgpu_dm_irq_unregister_interrupt(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
enum dc_irq_source irq_source,
|
enum dc_irq_source irq_source,
|
||||||
void *ih_index);
|
void *ih_index);
|
||||||
|
|
||||||
void amdgpu_dm_irq_register_timer(
|
void amdgpu_dm_irq_register_timer(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct dc_timer_interrupt_params *int_params,
|
struct dc_timer_interrupt_params *int_params,
|
||||||
interrupt_handler ih,
|
interrupt_handler ih,
|
||||||
void *args);
|
void *args);
|
||||||
@ -95,8 +90,7 @@ void amdgpu_dm_irq_register_timer(
|
|||||||
* Generic IRQ handler, calls all registered high irq work immediately, and
|
* Generic IRQ handler, calls all registered high irq work immediately, and
|
||||||
* schedules work for low irq
|
* schedules work for low irq
|
||||||
*/
|
*/
|
||||||
int amdgpu_dm_irq_handler(
|
int amdgpu_dm_irq_handler(struct amdgpu_device *adev,
|
||||||
struct amdgpu_device *adev,
|
|
||||||
struct amdgpu_irq_src *source,
|
struct amdgpu_irq_src *source,
|
||||||
struct amdgpu_iv_entry *entry);
|
struct amdgpu_iv_entry *entry);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user