Home
last modified time | relevance | path

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

/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_pcd.h219 t_FmPcdLock *p_Lock; member
271 t_FmPcdLock *p_Lock; member
421 void FmPcdReleaseLock(t_Handle h_FmPcd, t_FmPcdLock *p_Lock);
508 static __inline__ uint32_t FmPcdLockSpinlock(t_FmPcdLock *p_Lock) in FmPcdLockSpinlock() argument
510 ASSERT_COND(p_Lock); in FmPcdLockSpinlock()
511 return XX_LockIntrSpinlock(p_Lock->h_Spinlock); in FmPcdLockSpinlock()
514 static __inline__ void FmPcdUnlockSpinlock(t_FmPcdLock *p_Lock, uint32_t flags) in FmPcdUnlockSpinlock() argument
516 ASSERT_COND(p_Lock); in FmPcdUnlockSpinlock()
517 XX_UnlockIntrSpinlock(p_Lock->h_Spinlock, flags); in FmPcdUnlockSpinlock()
520 static __inline__ bool FmPcdLockTryLock(t_FmPcdLock *p_Lock) in FmPcdLockTryLock() argument
[all …]
H A Dfm_pcd.c295 static void EnqueueLockToFreeLst(t_FmPcd *p_FmPcd, t_FmPcdLock *p_Lock) in EnqueueLockToFreeLst() argument
300 NCSW_LIST_AddToTail(&p_Lock->node, &p_FmPcd->freeLocksLst); in EnqueueLockToFreeLst()
306 t_FmPcdLock *p_Lock = NULL; in DequeueLockFromFreeLst() local
312 p_Lock = FM_PCD_LOCK_OBJ(p_FmPcd->freeLocksLst.p_Next); in DequeueLockFromFreeLst()
313 NCSW_LIST_DelAndInit(&p_Lock->node); in DequeueLockFromFreeLst()
318 return p_Lock; in DequeueLockFromFreeLst()
321 static void EnqueueLockToAcquiredLst(t_FmPcd *p_FmPcd, t_FmPcdLock *p_Lock) in EnqueueLockToAcquiredLst() argument
326 NCSW_LIST_AddToTail(&p_Lock->node, &p_FmPcd->acquiredLocksLst); in EnqueueLockToAcquiredLst()
332 t_FmPcdLock *p_Lock; in FillFreeLocksLst() local
337 p_Lock = (t_FmPcdLock *)XX_Malloc(sizeof(t_FmPcdLock)); in FillFreeLocksLst()
[all …]
H A Dfm_replic.c590 if (p_ReplicGroup->p_Lock) in DeleteGroup()
591 FmPcdReleaseLock(p_ReplicGroup->h_FmPcd, p_ReplicGroup->p_Lock); in DeleteGroup()
652 if (FmPcdLockTryLock(p_ReplicGroup->p_Lock)) in FrmReplicGroupTryLock()
664 FmPcdLockUnlock(p_ReplicGroup->p_Lock); in FrmReplicGroupUnlock()
716 p_ReplicGroup->p_Lock = FmPcdAcquireLock(p_ReplicGroup->h_FmPcd); in FM_PCD_FrmReplicSetGroup()
717 if (!p_ReplicGroup->p_Lock) in FM_PCD_FrmReplicSetGroup()
H A Dfm_plcr.c61 return FmPcdLockSpinlock(((t_FmPcdPlcrProfile *)h_Profile)->p_Lock); in PlcrProfileLock()
67 FmPcdUnlockSpinlock(((t_FmPcdPlcrProfile *)h_Profile)->p_Lock, intFlags); in PlcrProfileUnlock()
73 return FmPcdLockTryLock(((t_FmPcdPlcrProfile *)h_Profile)->p_Lock); in PlcrProfileFlagTryLock()
79 FmPcdLockUnlock(((t_FmPcdPlcrProfile *)h_Profile)->p_Lock); in PlcrProfileFlagUnlock()
1608 p_Profile->p_Lock = FmPcdAcquireLock(p_FmPcd); in FM_PCD_PlcrProfileSet()
1609 if (!p_Profile->p_Lock) in FM_PCD_PlcrProfileSet()
1635 p_Profile->p_Lock) in FM_PCD_PlcrProfileSet()
1637 FmPcdReleaseLock(p_FmPcd, p_Profile->p_Lock); in FM_PCD_PlcrProfileSet()
1650 p_Profile->p_Lock) in FM_PCD_PlcrProfileSet()
1651 FmPcdReleaseLock(p_FmPcd, p_Profile->p_Lock); in FM_PCD_PlcrProfileSet()
[all …]
H A Dfm_replic.h97 t_FmPcdLock *p_Lock; member
H A Dfm_kg.c73 return FmPcdLockSpinlock(((t_FmPcdKgScheme *)h_Scheme)->p_Lock); in KgSchemeLock()
79 FmPcdUnlockSpinlock(((t_FmPcdKgScheme *)h_Scheme)->p_Lock, intFlags); in KgSchemeUnlock()
85 return FmPcdLockTryLock(((t_FmPcdKgScheme *)h_Scheme)->p_Lock); in KgSchemeFlagTryLock()
91 FmPcdLockUnlock(((t_FmPcdKgScheme *)h_Scheme)->p_Lock); in KgSchemeFlagUnlock()
3012 p_Scheme->p_Lock = FmPcdAcquireLock(p_FmPcd); in FM_PCD_KgSchemeSet()
3013 if (!p_Scheme->p_Lock) in FM_PCD_KgSchemeSet()
3024 p_Scheme->p_Lock) in FM_PCD_KgSchemeSet()
3025 FmPcdReleaseLock(p_FmPcd, p_Scheme->p_Lock); in FM_PCD_KgSchemeSet()
3040 p_Scheme->p_Lock) in FM_PCD_KgSchemeSet()
3041 FmPcdReleaseLock(p_FmPcd, p_Scheme->p_Lock); in FM_PCD_KgSchemeSet()
[all …]
H A Dfm_cc.h381 t_FmPcdLock *p_Lock; member
H A Dfm_cc.c65 if (FmPcdLockTryLock(p_FmPcdCcTree->p_Lock)) in CcRootTryLock()
77 FmPcdLockUnlock(p_FmPcdCcTree->p_Lock); in CcRootReleaseLock()
6262 p_FmPcdCcTree->p_Lock = FmPcdAcquireLock(p_FmPcd); in FM_PCD_CcRootBuild()
6263 if (!p_FmPcdCcTree->p_Lock) in FM_PCD_CcRootBuild()
6343 if (p_CcTree->p_Lock) in FM_PCD_CcRootDelete()
6344 FmPcdReleaseLock(p_CcTree->h_FmPcd, p_CcTree->p_Lock); in FM_PCD_CcRootDelete()