Home
last modified time | relevance | path

Searched refs:crq_q (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/char/tpm/
H A Dtpm_ibmvtpm.c479 struct ibmvtpm_crq_queue *crq_q = &ibmvtpm->crq_queue; in ibmvtpm_crq_get_next() local
480 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index]; in ibmvtpm_crq_get_next()
483 if (++crq_q->index == crq_q->num_entry) in ibmvtpm_crq_get_next()
484 crq_q->index = 0; in ibmvtpm_crq_get_next()
606 struct ibmvtpm_crq_queue *crq_q; in tpm_ibmvtpm_probe() local
623 crq_q = &ibmvtpm->crq_queue; in tpm_ibmvtpm_probe()
624 crq_q->crq_addr = (struct ibmvtpm_crq *)get_zeroed_page(GFP_KERNEL); in tpm_ibmvtpm_probe()
625 if (!crq_q->crq_addr) { in tpm_ibmvtpm_probe()
630 crq_q->num_entry = CRQ_RES_BUF_SIZE / sizeof(*crq_q->crq_addr); in tpm_ibmvtpm_probe()
631 init_waitqueue_head(&crq_q->wq); in tpm_ibmvtpm_probe()
[all …]