Searched refs:csr_msg (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_pfvf_utils.c | 24 static bool set_value_on_csr_msg(struct adf_accel_dev *accel_dev, u32 *csr_msg, in set_value_on_csr_msg() argument 34 *csr_msg |= value << fmt->offset; in set_value_on_csr_msg() 43 u32 csr_msg = 0; in adf_pfvf_csr_msg_of() local 45 if (!set_value_on_csr_msg(accel_dev, &csr_msg, msg.type, &fmt->type) || in adf_pfvf_csr_msg_of() 46 !set_value_on_csr_msg(accel_dev, &csr_msg, msg.data, &fmt->data)) in adf_pfvf_csr_msg_of() 49 return csr_msg | ADF_PFVF_MSGORIGIN_SYSTEM; in adf_pfvf_csr_msg_of() 52 struct pfvf_message adf_pfvf_message_of(struct adf_accel_dev *accel_dev, u32 csr_msg, in adf_pfvf_message_of() argument 57 msg.type = (csr_msg >> fmt->type.offset) & fmt->type.mask; in adf_pfvf_message_of() 58 msg.data = (csr_msg >> fmt->data.offset) & fmt->data.mask; in adf_pfvf_message_of()
|
H A D | adf_gen2_pfvf.c | 117 static u32 gen2_csr_msg_to_position(u32 csr_msg, enum gen2_csr_pos offset) in gen2_csr_msg_to_position() argument 119 return (csr_msg & 0xFFFF) << offset; in gen2_csr_msg_to_position() 189 u32 csr_msg; in adf_gen2_pfvf_send() local 202 csr_msg = adf_pfvf_csr_msg_of(accel_dev, msg, &csr_gen2_fmt); in adf_gen2_pfvf_send() 203 if (unlikely(!csr_msg)) in adf_gen2_pfvf_send() 209 csr_msg = gen2_csr_msg_to_position(csr_msg, local_offset); in adf_gen2_pfvf_send() 210 gen2_csr_set_in_use(&csr_msg, remote_offset); in adf_gen2_pfvf_send() 224 ADF_CSR_WR(pmisc_addr, pfvf_offset, csr_msg | int_bit); in adf_gen2_pfvf_send() 239 if (params->is_notification_message(msg.type) && csr_val != csr_msg) { in adf_gen2_pfvf_send() 282 u16 csr_msg; in adf_gen2_pfvf_recv() local [all …]
|