Home
last modified time | relevance | path

Searched refs:blkmsg (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_pfvf_pf_proto.c13 typedef u8 (*pf2vf_blkmsg_data_getter_fn)(u8 const *blkmsg, u8 byte);
68 static u8 adf_pf2vf_blkmsg_get_byte(u8 const *blkmsg, u8 index) in adf_pf2vf_blkmsg_get_byte() argument
70 return blkmsg[index]; in adf_pf2vf_blkmsg_get_byte()
74 static u8 adf_pf2vf_blkmsg_get_crc(u8 const *blkmsg, u8 count) in adf_pf2vf_blkmsg_get_crc() argument
77 return adf_pfvf_calc_blkmsg_crc(blkmsg, count + 1); in adf_pf2vf_blkmsg_get_crc()
84 u8 blkmsg[ADF_PFVF_BLKMSG_MSG_MAX_SIZE] = { 0 }; in adf_pf2vf_blkmsg_get_data() local
97 if (unlikely((*provider)(accel_dev, blkmsg, vf_info->vf_compat_ver))) { in adf_pf2vf_blkmsg_get_data()
103 msg_size = ADF_PFVF_BLKMSG_HEADER_SIZE + blkmsg[ADF_PFVF_BLKMSG_LEN_BYTE]; in adf_pf2vf_blkmsg_get_data()
119 *data = data_getter(blkmsg, byte); in adf_pf2vf_blkmsg_get_data()
H A Dadf_pfvf_msg.h214 #define ADF_PFVF_BLKMSG_PAYLOAD_SIZE(blkmsg) (sizeof(blkmsg) - \ argument
216 #define ADF_PFVF_BLKMSG_MSG_SIZE(blkmsg) (ADF_PFVF_BLKMSG_HEADER_SIZE + \ argument
217 (blkmsg)->hdr.payload_size)