Lines Matching refs:vcp
651 static inline void coda_waitfor_upcall(struct venus_comm *vcp, in coda_waitfor_upcall() argument
685 mutex_unlock(&vcp->vc_mutex); in coda_waitfor_upcall()
690 mutex_lock(&vcp->vc_mutex); in coda_waitfor_upcall()
709 static int coda_upcall(struct venus_comm *vcp, in coda_upcall() argument
718 mutex_lock(&vcp->vc_mutex); in coda_upcall()
720 if (!vcp->vc_inuse) { in coda_upcall()
733 buffer->ih.unique = ++vcp->vc_seq; in coda_upcall()
744 list_add_tail(&req->uc_chain, &vcp->vc_pending); in coda_upcall()
745 wake_up_interruptible(&vcp->vc_waitq); in coda_upcall()
748 mutex_unlock(&vcp->vc_mutex); in coda_upcall()
762 coda_waitfor_upcall(vcp, req); in coda_upcall()
784 if (!vcp->vc_inuse) { in coda_upcall()
811 list_add(&(sig_req->uc_chain), &vcp->vc_pending); in coda_upcall()
812 wake_up_interruptible(&vcp->vc_waitq); in coda_upcall()
816 mutex_unlock(&vcp->vc_mutex); in coda_upcall()
854 int coda_downcall(struct venus_comm *vcp, int opcode, union outputArgs *out, in coda_downcall() argument
893 mutex_lock(&vcp->vc_mutex); in coda_downcall()
894 sb = vcp->vc_sb; in coda_downcall()
930 mutex_unlock(&vcp->vc_mutex); in coda_downcall()