Lines Matching refs:semaphore

43     RDC_SEMAPHORE_Type *semaphore;  in RDC_SEMAPHORE_GetGate()  local
46 semaphore = RDC_SEMAPHORE1; in RDC_SEMAPHORE_GetGate()
49 semaphore = RDC_SEMAPHORE2; in RDC_SEMAPHORE_GetGate()
53 return semaphore; in RDC_SEMAPHORE_GetGate()
64 RDC_SEMAPHORE_Type *semaphore; in RDC_SEMAPHORE_TryLock() local
67 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_TryLock()
69 semaphore->GATE[index] = RDC_SEMAPHORE_GATE_GTFSM(RDC_SEMAPHORE_MASTER_SELF + 1); in RDC_SEMAPHORE_TryLock()
71 return ((semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) == in RDC_SEMAPHORE_TryLock()
85 RDC_SEMAPHORE_Type *semaphore; in RDC_SEMAPHORE_Lock() local
88 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_Lock()
92 while (semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) { } in RDC_SEMAPHORE_Lock()
93 semaphore->GATE[index] = RDC_SEMAPHORE_GATE_GTFSM(RDC_SEMAPHORE_MASTER_SELF + 1); in RDC_SEMAPHORE_Lock()
94 } while ((semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) != in RDC_SEMAPHORE_Lock()
106 RDC_SEMAPHORE_Type *semaphore; in RDC_SEMAPHORE_Unlock() local
109 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_Unlock()
111 semaphore->GATE[index] = RDC_SEMAPHORE_GATE_GTFSM(0); in RDC_SEMAPHORE_Unlock()
122 RDC_SEMAPHORE_Type *semaphore; in RDC_SEMAPHORE_GetLockDomainID() local
125 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_GetLockDomainID()
127 return (semaphore->GATE[index] & RDC_SEMAPHORE_GATE_LDOM_MASK) >> RDC_SEMAPHORE_GATE_LDOM_SHIFT; in RDC_SEMAPHORE_GetLockDomainID()
138 RDC_SEMAPHORE_Type *semaphore; in RDC_SEMAPHORE_GetLockMaster() local
142 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_GetLockMaster()
144 …master = (semaphore->GATE[index] & RDC_SEMAPHORE_GATE_GTFSM_MASK) >> RDC_SEMAPHORE_GATE_GTFSM_SHIF… in RDC_SEMAPHORE_GetLockMaster()
157 RDC_SEMAPHORE_Type *semaphore; in RDC_SEMAPHORE_Reset() local
160 semaphore = RDC_SEMAPHORE_GetGate(&index); in RDC_SEMAPHORE_Reset()
163 assert ((semaphore->RSTGT_R & RDC_SEMAPHORE_RSTGT_R_RSTGSM_MASK) == 0); in RDC_SEMAPHORE_Reset()
165 semaphore->RSTGT_W = 0xE2; in RDC_SEMAPHORE_Reset()
166 semaphore->RSTGT_W = 0x1D | RDC_SEMAPHORE_RSTGT_W_RSTGTN(index); in RDC_SEMAPHORE_Reset()