Home
last modified time | relevance | path

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

/openbmc/linux/ipc/
H A Dsem.c460 static inline void sem_unlock(struct sem_array *sma, int locknum) in sem_unlock() argument
462 if (locknum == SEM_GLOBAL_LOCK) { in sem_unlock()
467 struct sem *sem = &sma->sems[locknum]; in sem_unlock()
1991 int max, locknum; in __do_semtimedop() local
2073 locknum = sem_lock(sma, sops, nsops); in __do_semtimedop()
2114 sem_unlock(sma, locknum); in __do_semtimedop()
2163 sem_unlock(sma, locknum); in __do_semtimedop()
2189 locknum = sem_lock(sma, sops, nsops); in __do_semtimedop()
2216 sem_unlock(sma, locknum); in __do_semtimedop()
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c708 static int tg3_ape_lock(struct tg3 *tp, int locknum) in tg3_ape_lock() argument
717 switch (locknum) { in tg3_ape_lock()
747 off = 4 * locknum; in tg3_ape_lock()
771 static void tg3_ape_unlock(struct tg3 *tp, int locknum) in tg3_ape_unlock() argument
778 switch (locknum) { in tg3_ape_unlock()
805 tg3_ape_write32(tp, gnt + 4 * locknum, bit); in tg3_ape_unlock()