drivers/crypto/intel/qat/qat_common/adf_pfvf_utils.h

Source file repositories/reference/linux-study-clean/drivers/crypto/intel/qat/qat_common/adf_pfvf_utils.h

File Facts

System
Linux kernel
Corpus path
drivers/crypto/intel/qat/qat_common/adf_pfvf_utils.h
Extension
.h
Size
1122 bytes
Lines
43
Domain
Driver Families
Bucket
drivers/crypto
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

struct pfvf_field_format {
	u8  offset;
	u32 mask;
};

struct pfvf_csr_format {
	struct pfvf_field_format type;
	struct pfvf_field_format data;
};

u32 adf_pfvf_csr_msg_of(struct adf_accel_dev *accel_dev, struct pfvf_message msg,
			const struct pfvf_csr_format *fmt);
struct pfvf_message adf_pfvf_message_of(struct adf_accel_dev *accel_dev, u32 raw_msg,
					const struct pfvf_csr_format *fmt);

static inline u8 adf_vf_compat_checker(u8 vf_compat_ver)
{
	if (vf_compat_ver == 0)
		return ADF_PF2VF_VF_INCOMPATIBLE;

	if (vf_compat_ver <= ADF_PFVF_COMPAT_THIS_VERSION)
		return ADF_PF2VF_VF_COMPATIBLE;

	return ADF_PF2VF_VF_COMPAT_UNKNOWN;
}

#endif /* ADF_PFVF_UTILS_H */

Annotation

Implementation Notes