drivers/accel/amdxdna/amdxdna_pm.h

Source file repositories/reference/linux-study-clean/drivers/accel/amdxdna/amdxdna_pm.h

File Facts

System
Linux kernel
Corpus path
drivers/accel/amdxdna/amdxdna_pm.h
Extension
.h
Size
698 bytes
Lines
30
Domain
Driver Families
Bucket
drivers/accel
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _AMDXDNA_PM_H_
#define _AMDXDNA_PM_H_

#include "amdxdna_pci_drv.h"

int amdxdna_pm_suspend(struct device *dev);
int amdxdna_pm_resume(struct device  *dev);
int amdxdna_pm_resume_get(struct amdxdna_dev *xdna);
void amdxdna_pm_suspend_put(struct amdxdna_dev *xdna);
void amdxdna_pm_init(struct amdxdna_dev *xdna);
void amdxdna_pm_fini(struct amdxdna_dev *xdna);

static inline int amdxdna_pm_resume_get_locked(struct amdxdna_dev *xdna)
{
	int ret;

	mutex_unlock(&xdna->dev_lock);
	ret = amdxdna_pm_resume_get(xdna);
	mutex_lock(&xdna->dev_lock);

	return ret;
}

#endif /* _AMDXDNA_PM_H_ */

Annotation

Implementation Notes