Home
last modified time | relevance | path

Searched refs:thread_lock (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/tools/perf/bench/
Dfutex-wake.c38 static struct mutex thread_lock; variable
69 mutex_lock(&thread_lock); in workerfn()
73 cond_wait(&thread_worker, &thread_lock); in workerfn()
74 mutex_unlock(&thread_lock); in workerfn()
183 mutex_init(&thread_lock); in bench_futex_wake()
195 mutex_lock(&thread_lock); in bench_futex_wake()
197 cond_wait(&thread_parent, &thread_lock); in bench_futex_wake()
199 mutex_unlock(&thread_lock); in bench_futex_wake()
231 mutex_destroy(&thread_lock); in bench_futex_wake()
Dfutex-lock-pi.c38 static struct mutex thread_lock; variable
87 mutex_lock(&thread_lock); in workerfn()
91 cond_wait(&thread_worker, &thread_lock); in workerfn()
92 mutex_unlock(&thread_lock); in workerfn()
203 mutex_init(&thread_lock); in bench_futex_lock_pi()
212 mutex_lock(&thread_lock); in bench_futex_lock_pi()
214 cond_wait(&thread_parent, &thread_lock); in bench_futex_lock_pi()
216 mutex_unlock(&thread_lock); in bench_futex_lock_pi()
230 mutex_destroy(&thread_lock); in bench_futex_lock_pi()
Dfutex-hash.c38 static struct mutex thread_lock; variable
77 mutex_lock(&thread_lock); in workerfn()
81 cond_wait(&thread_worker, &thread_lock); in workerfn()
82 mutex_unlock(&thread_lock); in workerfn()
169 mutex_init(&thread_lock); in bench_futex_hash()
207 mutex_lock(&thread_lock); in bench_futex_hash()
209 cond_wait(&thread_parent, &thread_lock); in bench_futex_hash()
211 mutex_unlock(&thread_lock); in bench_futex_hash()
225 mutex_destroy(&thread_lock); in bench_futex_hash()
Dfutex-requeue.c38 static struct mutex thread_lock; variable
86 mutex_lock(&thread_lock); in workerfn()
90 cond_wait(&thread_worker, &thread_lock); in workerfn()
91 mutex_unlock(&thread_lock); in workerfn()
214 mutex_init(&thread_lock); in bench_futex_requeue()
226 mutex_lock(&thread_lock); in bench_futex_requeue()
228 cond_wait(&thread_parent, &thread_lock); in bench_futex_requeue()
230 mutex_unlock(&thread_lock); in bench_futex_requeue()
304 mutex_destroy(&thread_lock); in bench_futex_requeue()
Dfutex-wake-parallel.c53 static struct mutex thread_lock; variable
132 mutex_lock(&thread_lock); in blocked_workerfn()
136 cond_wait(&thread_worker, &thread_lock); in blocked_workerfn()
137 mutex_unlock(&thread_lock); in blocked_workerfn()
302 mutex_init(&thread_lock); in bench_futex_wake_parallel()
315 mutex_lock(&thread_lock); in bench_futex_wake_parallel()
317 cond_wait(&thread_parent, &thread_lock); in bench_futex_wake_parallel()
319 mutex_unlock(&thread_lock); in bench_futex_wake_parallel()
342 mutex_destroy(&thread_lock); in bench_futex_wake_parallel()
Depoll-ctl.c62 static struct mutex thread_lock; variable
178 mutex_lock(&thread_lock); in workerfn()
182 cond_wait(&thread_worker, &thread_lock); in workerfn()
183 mutex_unlock(&thread_lock); in workerfn()
371 mutex_init(&thread_lock); in bench_epoll_ctl()
381 mutex_lock(&thread_lock); in bench_epoll_ctl()
383 cond_wait(&thread_parent, &thread_lock); in bench_epoll_ctl()
385 mutex_unlock(&thread_lock); in bench_epoll_ctl()
400 mutex_destroy(&thread_lock); in bench_epoll_ctl()
Depoll-wait.c113 static struct mutex thread_lock; variable
193 mutex_lock(&thread_lock); in workerfn()
197 cond_wait(&thread_worker, &thread_lock); in workerfn()
198 mutex_unlock(&thread_lock); in workerfn()
489 mutex_init(&thread_lock); in bench_epoll_wait()
499 mutex_lock(&thread_lock); in bench_epoll_wait()
501 cond_wait(&thread_parent, &thread_lock); in bench_epoll_wait()
503 mutex_unlock(&thread_lock); in bench_epoll_wait()
528 mutex_destroy(&thread_lock); in bench_epoll_wait()
/linux-6.6.21/drivers/hid/usbhid/
Dhiddev.c46 struct mutex thread_lock; member
255 mutex_init(&list->thread_lock); in __hiddev_open()
333 retval = mutex_lock_interruptible(&list->thread_lock); in hiddev_read()
356 mutex_unlock(&list->thread_lock); in hiddev_read()
358 if (mutex_lock_interruptible(&list->thread_lock)) { in hiddev_read()
369 mutex_unlock(&list->thread_lock); in hiddev_read()
383 mutex_unlock(&list->thread_lock); in hiddev_read()
393 mutex_unlock(&list->thread_lock); in hiddev_read()
403 mutex_unlock(&list->thread_lock); in hiddev_read()
/linux-6.6.21/drivers/pcmcia/
Dcs.c159 spin_lock_init(&socket->thread_lock); in pcmcia_register_socket()
626 spin_lock_irqsave(&skt->thread_lock, flags); in pccardd()
631 spin_unlock_irqrestore(&skt->thread_lock, flags); in pccardd()
704 spin_lock_irqsave(&s->thread_lock, flags); in pcmcia_parse_events()
706 spin_unlock_irqrestore(&s->thread_lock, flags); in pcmcia_parse_events()
729 spin_lock_irqsave(&s->thread_lock, flags); in pcmcia_parse_uevents()
731 spin_unlock_irqrestore(&s->thread_lock, flags); in pcmcia_parse_uevents()
/linux-6.6.21/drivers/mmc/host/
Dsh_mmcif.c241 struct mutex thread_lock; member
1191 mutex_lock(&host->thread_lock); in sh_mmcif_irqt()
1197 mutex_unlock(&host->thread_lock); in sh_mmcif_irqt()
1208 mutex_unlock(&host->thread_lock); in sh_mmcif_irqt()
1253 mutex_unlock(&host->thread_lock); in sh_mmcif_irqt()
1267 mutex_unlock(&host->thread_lock); in sh_mmcif_irqt()
1278 mutex_unlock(&host->thread_lock); in sh_mmcif_irqt()
1486 mutex_init(&host->thread_lock); in sh_mmcif_probe()
/linux-6.6.21/include/pcmcia/
Dss.h195 spinlock_t thread_lock; member
/linux-6.6.21/Documentation/pcmcia/
Dlocking.rst76 - by thread_lock::