| /linux/tools/testing/selftests/bpf/ |
| H A D | usdt.h | 14 * USDT_WITH_EXPLICIT_SEMA(sema, group, name, args...) 15 * USDT_SEMA_IS_ACTIVE(sema) 208 * `sema` identifier. Could be useful for debugging, but normally shouldn't be 211 #define USDT_SEMA(sema) __usdt_sema_##sema argument 214 * Define storage for user-defined USDT semaphore `sema`. 221 * one definition of user-defined USDT semaphore with given `sema` identifier, 247 #define USDT_DEFINE_SEMA(sema) \ argument 248 struct usdt_sema __usdt_sema_sec USDT_SEMA(sema) \ 249 __usdt_asm_name(USDT_SEMA(sema)) \ 261 USDT_DECLARE_SEMA(sema) global() argument 279 USDT_SEMA_IS_ACTIVE(sema) global() argument 290 USDT_WITH_EXPLICIT_SEMA(sema,group,name,...) global() argument 293 USDT_WITH_EXPLICIT_SEMA(sema,group,name,...) global() argument 379 __usdt_sema_none(sema) global() argument 384 __usdt_sema_implicit(sema) global() argument 402 __usdt_sema_explicit(sema) global() argument 407 __usdt_probe(group,name,sema_def,sema,...) global() argument [all...] |
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_engine_pm.c | 77 u32 *sema = memset32(engine->status_page.addr + 1000, 0, 5); in __measure_timestamps() local 111 while (READ_ONCE(sema[2]) == 0) in __measure_timestamps() 116 write_semaphore(&sema[2], 0); in __measure_timestamps() 117 while (READ_ONCE(sema[1]) == 0) /* wait for the gpu to catch up */ in __measure_timestamps() 122 write_semaphore(&sema[2], 1); in __measure_timestamps() 132 engine->name, sema[1], sema[3], sema[0], sema[4]); in __measure_timestamps() 134 *d_ctx = sema[3] - sema[1]; in __measure_timestamps() 135 *d_ring = sema[4] - sema[0]; in __measure_timestamps()
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_request.c | 1997 static void semaphore_set(u32 *sema, u32 value) in semaphore_set() argument 1999 WRITE_ONCE(*sema, value); in semaphore_set() 2016 u32 *sema = hwsp_scratch(ce); in measure_semaphore_response() local 2017 const u32 offset = hwsp_offset(ce, sema); in measure_semaphore_response() 2035 semaphore_set(sema, -1); in measure_semaphore_response() 2058 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response() 2066 semaphore_set(sema, i); in measure_semaphore_response() 2069 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response() 2074 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response() 2091 u32 *sema = hwsp_scratch(ce); in measure_idle_dispatch() local [all …]
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nv17_fence.c | 57 PUSH_MTHD(ppush, NV176E, SET_CONTEXT_DMA_SEMAPHORE, fctx->sema.handle, in nv17_fence_sync() 65 PUSH_MTHD(npush, NV176E, SET_CONTEXT_DMA_SEMAPHORE, fctx->sema.handle, in nv17_fence_sync() 103 &fctx->sema); in nv17_fence_context_new()
|
| H A D | nouveau_chan.c | 106 nouveau_vma_del(&chan->sema.vma); in nouveau_channel_del() 107 nouveau_bo_unpin_del(&chan->sema.bo); in nouveau_channel_del() 196 &chan->sema.bo, &chan->sema.vma); in nouveau_channel_prep() 449 chan->sema.bo->kmap.virtual, chan->sema.vma->addr); in nouveau_channel_init() 456 chan->sema.bo->kmap.virtual, chan->sema.vma->addr, in nouveau_channel_init()
|
| H A D | nv10_fence.h | 10 struct nvif_object sema; member
|
| H A D | nv50_fence.c | 62 &fctx->sema); in nv50_fence_context_new()
|
| H A D | nv10_fence.c | 63 nvif_object_dtor(&fctx->sema); in nv10_fence_context_del()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fill_link_info.c | 263 const char *sema[1] = { in test_uprobe_fill_link_info() local 270 err = elf_resolve_syms_offsets("/proc/self/exe", 1, sema, in test_uprobe_fill_link_info() 792 const char *sema[3] = { in test_uprobe_multi_fill_link_info() local 801 err = elf_resolve_syms_offsets("/proc/self/exe", 3, sema, in test_uprobe_multi_fill_link_info()
|
| H A D | uprobe_syscall.c | 834 const char *sema[2] = { 845 err = elf_resolve_syms_offsets("/proc/self/exe", 1, (const char **) &sema, &ref, STT_OBJECT); 673 const char *sema[2] = { worker_attach() local
|
| H A D | uprobe_multi_test.c | 633 const char *sema[3] = { in attach_uprobe_fail_refctr() 646 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &sema, in test_attach_uprobe_fails() 602 const char *sema[3] = { attach_uprobe_fail_refctr() local
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | ovly507e.c | 171 wndw->sema = NV50_DISP_OVLY_SEM0(wndw->id); in ovly507e_new_()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | hw_channel.c | 15 down(&hwc->sema); in mana_hwc_get_msg_index() 40 up(&hwc->sema); in mana_hwc_put_msg_index() 630 sema_init(&hwc->sema, num_msg); in mana_hwc_init_inflight_msg()
|
| /linux/drivers/usb/gadget/legacy/ |
| H A D | raw_gadget.c | 50 struct semaphore sema; member 58 sema_init(&queue->sema, 0); in raw_event_queue_init() 84 up(&queue->sema); in raw_event_queue_add() 101 ret = down_interruptible(&queue->sema); in raw_event_queue_fetch()
|