Lines Matching refs:crq
478 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index]; in ibmvtpm_crq_get_next() local
480 if (crq->valid & VTPM_MSG_RES) { in ibmvtpm_crq_get_next()
485 crq = NULL; in ibmvtpm_crq_get_next()
486 return crq; in ibmvtpm_crq_get_next()
496 static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq, in ibmvtpm_crq_process() argument
501 switch (crq->valid) { in ibmvtpm_crq_process()
503 switch (crq->msg) { in ibmvtpm_crq_process()
515 dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg); in ibmvtpm_crq_process()
519 switch (crq->msg) { in ibmvtpm_crq_process()
521 if (be16_to_cpu(crq->len) <= 0) { in ibmvtpm_crq_process()
525 ibmvtpm->rtce_size = be16_to_cpu(crq->len); in ibmvtpm_crq_process()
546 ibmvtpm->vtpm_version = be32_to_cpu(crq->data); in ibmvtpm_crq_process()
550 ibmvtpm->res_len = be16_to_cpu(crq->len); in ibmvtpm_crq_process()
573 struct ibmvtpm_crq *crq; in ibmvtpm_interrupt() local
579 while ((crq = ibmvtpm_crq_get_next(ibmvtpm)) != NULL) { in ibmvtpm_interrupt()
580 ibmvtpm_crq_process(crq, ibmvtpm); in ibmvtpm_interrupt()
582 crq->valid = 0; in ibmvtpm_interrupt()