Home
last modified time | relevance | path

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

/Linux-v5.4/ipc/
Dsem.c438 static inline void sem_unlock(struct sem_array *sma, int locknum) in sem_unlock() argument
440 if (locknum == SEM_GLOBAL_LOCK) { in sem_unlock()
445 struct sem *sem = &sma->sems[locknum]; in sem_unlock()
1974 int max, locknum; in do_semtimedop() local
2067 locknum = sem_lock(sma, sops, nsops); in do_semtimedop()
2108 sem_unlock(sma, locknum); in do_semtimedop()
2155 sem_unlock(sma, locknum); in do_semtimedop()
2187 locknum = sem_lock(sma, sops, nsops); in do_semtimedop()
2211 sem_unlock(sma, locknum); in do_semtimedop()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dtg3.c711 static int tg3_ape_lock(struct tg3 *tp, int locknum) in tg3_ape_lock() argument
720 switch (locknum) { in tg3_ape_lock()
750 off = 4 * locknum; in tg3_ape_lock()
774 static void tg3_ape_unlock(struct tg3 *tp, int locknum) in tg3_ape_unlock() argument
781 switch (locknum) { in tg3_ape_unlock()
808 tg3_ape_write32(tp, gnt + 4 * locknum, bit); in tg3_ape_unlock()