Searched refs:csr_val (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_gen4_pfvf.c | 87 u32 csr_val; in adf_gen4_pfvf_send() local 90 csr_val = adf_pfvf_csr_msg_of(accel_dev, msg, &csr_gen4_fmt); in adf_gen4_pfvf_send() 91 if (unlikely(!csr_val)) in adf_gen4_pfvf_send() 96 ADF_CSR_WR(pmisc_addr, pfvf_offset, csr_val | ADF_PFVF_INT); in adf_gen4_pfvf_send() 99 ret = read_poll_timeout(ADF_CSR_RD, csr_val, !(csr_val & ADF_PFVF_INT), in adf_gen4_pfvf_send() 115 u32 csr_val; in adf_gen4_pfvf_recv() local 118 csr_val = ADF_CSR_RD(pmisc_addr, pfvf_offset); in adf_gen4_pfvf_recv() 119 if (!(csr_val & ADF_PFVF_INT)) { in adf_gen4_pfvf_recv() 121 "Spurious PFVF interrupt, msg 0x%.8x. Ignored\n", csr_val); in adf_gen4_pfvf_recv() 128 ADF_CSR_WR(pmisc_addr, pfvf_offset, csr_val & ~ADF_PFVF_INT); in adf_gen4_pfvf_recv() [all …]
|
H A D | adf_gen2_pfvf.c | 122 static u32 gen2_csr_msg_from_position(u32 csr_val, enum gen2_csr_pos offset) in gen2_csr_msg_from_position() argument 124 return (csr_val >> offset) & 0xFFFF; in gen2_csr_msg_from_position() 188 u32 csr_val; in adf_gen2_pfvf_send() local 216 csr_val = ADF_CSR_RD(pmisc_addr, pfvf_offset); in adf_gen2_pfvf_send() 217 if (gen2_csr_is_in_use(csr_val, local_offset)) { in adf_gen2_pfvf_send() 227 ret = read_poll_timeout(ADF_CSR_RD, csr_val, !(csr_val & int_bit), in adf_gen2_pfvf_send() 233 csr_val &= ~int_bit; in adf_gen2_pfvf_send() 239 if (params->is_notification_message(msg.type) && csr_val != csr_msg) { in adf_gen2_pfvf_send() 253 if (gen2_csr_is_in_use(csr_val, remote_offset)) { in adf_gen2_pfvf_send() 254 gen2_csr_clear_in_use(&csr_val, remote_offset); in adf_gen2_pfvf_send() [all …]
|