Home
last modified time | relevance | path

Searched refs:sema (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dusdt.h211 #define USDT_SEMA(sema) __usdt_sema_##sema argument
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 #define USDT_DECLARE_SEMA(sema) \ argument
262 extern struct usdt_sema USDT_SEMA(sema) __usdt_asm_name(USDT_SEMA(sema))
279 #define USDT_SEMA_IS_ACTIVE(sema) (USDT_SEMA(sema).active > 0) argument
290 #define USDT_WITH_EXPLICIT_SEMA(sema, group, name, ...) \ argument
291 __usdt_probe(group, name, __usdt_sema_explicit, USDT_SEMA(sema), ##__VA_ARGS__)
293 #define USDT_WITH_EXPLICIT_SEMA(sema, group, name, ...) \ argument
[all …]
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_engine_pm.c77 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 Di915_request.c1997 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 Dnv17_fence.c57 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 Dnouveau_chan.c106 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 Dnv10_fence.h10 struct nvif_object sema; member
H A Dnv50_fence.c62 &fctx->sema); in nv50_fence_context_new()
H A Dnv10_fence.c63 nvif_object_dtor(&fctx->sema); in nv10_fence_context_del()
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dbase507c.c217 PUSH_MTHD(push, NV507C, SET_SEMAPHORE_CONTROL, asyw->sema.offset, in base507c_sema_set()
218 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in base507c_sema_set()
219 SET_SEMAPHORE_RELEASE, asyw->sema.release, in base507c_sema_set()
220 SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle); in base507c_sema_set()
329 wndw->sema = NV50_DISP_BASE_SEM0(wndw->id); in base507c_new_()
H A Dwndw.c139 if (clr.sema ) wndw->func-> sema_clr(wndw); in nv50_wndw_flush_clr()
157 if (asyw->set.sema ) wndw->func->sema_set (wndw, asyw); in nv50_wndw_flush_set()
208 asyw->sema.handle = 0; in nv50_wndw_atomic_check_release()
511 asyw->clr.sema = armw->sema.handle != 0; in nv50_wndw_atomic_check()
736 asyw->sema = armw->sema; in nv50_wndw_atomic_duplicate_state()
H A Datom.h205 } sema; member
269 bool sema:1; member
H A Dovly507e.c171 wndw->sema = NV50_DISP_OVLY_SEM0(wndw->id); in ovly507e_new_()
/linux/include/net/mana/
H A Dhw_channel.h195 struct semaphore sema;
193 struct semaphore sema; global() member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Duprobe_syscall.c673 const char *sema[2] = { in worker_attach() local
684 err = elf_resolve_syms_offsets("/proc/self/exe", 1, (const char **) &sema, &ref, STT_OBJECT); in worker_attach()
H A Dfill_link_info.c246 const char *sema[1] = { in test_uprobe_fill_link_info()
253 err = elf_resolve_syms_offsets("/proc/self/exe", 1, sema, in test_uprobe_fill_link_info()
557 const char *sema[3] = { in test_uprobe_multi_fill_link_info()
566 err = elf_resolve_syms_offsets("/proc/self/exe", 3, sema, in test_uprobe_multi_fill_link_info()
543 const char *sema[3] = { test_uprobe_multi_fill_link_info() local
H A Duprobe_multi_test.c598 const char *sema[3] = { in attach_uprobe_fail_refctr() local
611 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &sema, in attach_uprobe_fail_refctr()
/linux/drivers/net/ethernet/microsoft/mana/
H A Dhw_channel.c15 down(&hwc->sema); in mana_hwc_get_msg_index()
40 up(&hwc->sema); in mana_hwc_put_msg_index()
621 sema_init(&hwc->sema, num_msg); in mana_hwc_init_inflight_msg()
/linux/drivers/usb/gadget/legacy/
H A Draw_gadget.c50 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()