Home
last modified time | relevance | path

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

/linux-4.4.14/ipc/
Dsem.c381 static inline void sem_unlock(struct sem_array *sma, int locknum) in sem_unlock() argument
383 if (locknum == -1) { in sem_unlock()
387 struct sem *sem = sma->sem_base + locknum; in sem_unlock()
399 int id, struct sembuf *sops, int nsops, int *locknum) in sem_obtain_lock() argument
409 *locknum = sem_lock(sma, sops, nsops); in sem_obtain_lock()
417 sem_unlock(sma, *locknum); in sem_obtain_lock()
1800 int undos = 0, alter = 0, max, locknum; in SYSCALL_DEFINE4() local
1878 locknum = sem_lock(sma, sops, nsops); in SYSCALL_DEFINE4()
1955 sem_unlock(sma, locknum); in SYSCALL_DEFINE4()
1979 sma = sem_obtain_lock(ns, semid, sops, nsops, &locknum); in SYSCALL_DEFINE4()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dtg3.c708 static int tg3_ape_lock(struct tg3 *tp, int locknum) in tg3_ape_lock() argument
717 switch (locknum) { in tg3_ape_lock()
746 off = 4 * locknum; in tg3_ape_lock()
770 static void tg3_ape_unlock(struct tg3 *tp, int locknum) in tg3_ape_unlock() argument
777 switch (locknum) { in tg3_ape_unlock()
803 tg3_ape_write32(tp, gnt + 4 * locknum, bit); in tg3_ape_unlock()