Lines Matching defs:crq
40 * @w1: pre-constructed first word of tpm crq (second word is reserved)
60 * The ibmvtpm crq is defined as follows:
468 * ibmvtpm_crq_get_next - Get next responded crq
472 * Return: vtpm crq pointer or NULL.
477 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index];
479 if (crq->valid & VTPM_MSG_RES) {
484 crq = NULL;
485 return crq;
489 * ibmvtpm_crq_process - Process responded crq
491 * @crq: crq to be processed
495 static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq,
500 switch (crq->valid) {
502 switch (crq->msg) {
514 dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg);
518 switch (crq->msg) {
520 if (be16_to_cpu(crq->len) <= 0) {
524 ibmvtpm->rtce_size = be16_to_cpu(crq->len);
545 ibmvtpm->vtpm_version = be32_to_cpu(crq->data);
549 ibmvtpm->res_len = be16_to_cpu(crq->len);
572 struct ibmvtpm_crq *crq;
578 while ((crq = ibmvtpm_crq_get_next(ibmvtpm)) != NULL) {
579 ibmvtpm_crq_process(crq, ibmvtpm);
581 crq->valid = 0;