Lines Matching refs:crq_q
476 struct ibmvtpm_crq_queue *crq_q = &ibmvtpm->crq_queue; in ibmvtpm_crq_get_next() local
477 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index]; in ibmvtpm_crq_get_next()
480 if (++crq_q->index == crq_q->num_entry) in ibmvtpm_crq_get_next()
481 crq_q->index = 0; in ibmvtpm_crq_get_next()
603 struct ibmvtpm_crq_queue *crq_q; in tpm_ibmvtpm_probe() local
620 crq_q = &ibmvtpm->crq_queue; in tpm_ibmvtpm_probe()
621 crq_q->crq_addr = (struct ibmvtpm_crq *)get_zeroed_page(GFP_KERNEL); in tpm_ibmvtpm_probe()
622 if (!crq_q->crq_addr) { in tpm_ibmvtpm_probe()
627 crq_q->num_entry = CRQ_RES_BUF_SIZE / sizeof(*crq_q->crq_addr); in tpm_ibmvtpm_probe()
628 init_waitqueue_head(&crq_q->wq); in tpm_ibmvtpm_probe()
629 ibmvtpm->crq_dma_handle = dma_map_single(dev, crq_q->crq_addr, in tpm_ibmvtpm_probe()
663 crq_q->index = 0; in tpm_ibmvtpm_probe()
713 if (crq_q->crq_addr) in tpm_ibmvtpm_probe()
714 free_page((unsigned long)crq_q->crq_addr); in tpm_ibmvtpm_probe()