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:
470 * ibmvtpm_crq_get_next - Get next responded crq
474 * Return: vtpm crq pointer or NULL.
479 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index];
481 if (crq->valid & VTPM_MSG_RES) {
486 crq = NULL;
487 return crq;
491 * ibmvtpm_crq_process - Process responded crq
493 * @crq: crq to be processed
497 static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq,
502 switch (crq->valid) {
504 switch (crq->msg) {
516 dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg);
520 switch (crq->msg) {
522 if (be16_to_cpu(crq->len) <= 0) {
526 ibmvtpm->rtce_size = be16_to_cpu(crq->len);
547 ibmvtpm->vtpm_version = be32_to_cpu(crq->data);
551 ibmvtpm->res_len = be16_to_cpu(crq->len);
574 struct ibmvtpm_crq *crq;
580 while ((crq = ibmvtpm_crq_get_next(ibmvtpm)) != NULL) {
581 ibmvtpm_crq_process(crq, ibmvtpm);
583 crq->valid = 0;