Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dselftest_engine_pm.c75 u32 *sema = memset32(engine->status_page.addr + 1000, 0, 5); in __measure_timestamps() local
109 while (READ_ONCE(sema[2]) == 0) in __measure_timestamps()
114 write_semaphore(&sema[2], 0); in __measure_timestamps()
115 while (READ_ONCE(sema[1]) == 0) /* wait for the gpu to catch up */ in __measure_timestamps()
120 write_semaphore(&sema[2], 1); in __measure_timestamps()
130 engine->name, sema[1], sema[3], sema[0], sema[4]); in __measure_timestamps()
132 *d_ctx = sema[3] - sema[1]; in __measure_timestamps()
133 *d_ring = sema[4] - sema[0]; in __measure_timestamps()
Dselftest_lrc.c996 u32 *sema) in record_registers() argument
1051 offset_in_page(sema); in record_registers()
1062 WRITE_ONCE(*sema, 0); in record_registers()
1137 static int poison_registers(struct intel_context *ce, u32 poison, u32 *sema) in poison_registers() argument
1171 offset_in_page(sema); in poison_registers()
1297 u32 *sema = memset32(engine->status_page.addr + 1000, 0, 1); in __lrc_isolation() local
1325 rq = record_registers(A, ref[0], ref[1], sema); in __lrc_isolation()
1331 WRITE_ONCE(*sema, 1); in __lrc_isolation()
1353 rq = record_registers(A, result[0], result[1], sema); in __lrc_isolation()
1359 err = poison_registers(B, poison, sema); in __lrc_isolation()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/selftests/
Di915_request.c1808 static void semaphore_set(u32 *sema, u32 value) in semaphore_set() argument
1810 WRITE_ONCE(*sema, value); in semaphore_set()
1827 u32 *sema = hwsp_scratch(ce); in measure_semaphore_response() local
1828 const u32 offset = hwsp_offset(ce, sema); in measure_semaphore_response()
1846 semaphore_set(sema, -1); in measure_semaphore_response()
1869 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response()
1877 semaphore_set(sema, i); in measure_semaphore_response()
1880 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response()
1885 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response()
1902 u32 *sema = hwsp_scratch(ce); in measure_idle_dispatch() local
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/
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()
Dnv10_fence.h10 struct nvif_object sema; member
Dnv10_fence.c63 nvif_object_dtor(&fctx->sema); in nv10_fence_context_del()
Dnv50_fence.c62 &fctx->sema); in nv50_fence_context_new()
/Linux-v5.15/drivers/gpu/drm/nouveau/dispnv50/
Dbase507c.c219 PUSH_MTHD(push, NV507C, SET_SEMAPHORE_CONTROL, asyw->sema.offset, in base507c_sema_set()
220 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in base507c_sema_set()
221 SET_SEMAPHORE_RELEASE, asyw->sema.release, in base507c_sema_set()
222 SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle); in base507c_sema_set()
342 wndw->sema = NV50_DISP_BASE_SEM0(wndw->id); in base507c_new_()
Dwndwc37e.c266 PUSH_MTHD(push, NVC37E, SET_SEMAPHORE_CONTROL, asyw->sema.offset, in wndwc37e_sema_set()
267 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in wndwc37e_sema_set()
268 SET_SEMAPHORE_RELEASE, asyw->sema.release, in wndwc37e_sema_set()
269 SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle); in wndwc37e_sema_set()
381 wndw->sema = NV50_DISP_WNDW_SEM0(wndw->id); in wndwc37e_new_()
Datom.h192 } sema; member
256 bool sema:1; member
Dwndw.c131 if (clr.sema ) wndw->func-> sema_clr(wndw); in nv50_wndw_flush_clr()
149 if (asyw->set.sema ) wndw->func->sema_set (wndw, asyw); in nv50_wndw_flush_set()
200 asyw->sema.handle = 0; in nv50_wndw_atomic_check_release()
506 asyw->clr.sema = armw->sema.handle != 0; in nv50_wndw_atomic_check()
602 asyw->sema = armw->sema; in nv50_wndw_atomic_duplicate_state()
Dwndw.h35 u16 sema; member
Dovly507e.c183 wndw->sema = NV50_DISP_OVLY_SEM0(wndw->id); in ovly507e_new_()
/Linux-v5.15/drivers/staging/r8188eu/os_dep/
Dosdep_service.c62 u32 _rtw_down_sema(struct semaphore *sema) in _rtw_down_sema() argument
64 if (down_interruptible(sema)) in _rtw_down_sema()
/Linux-v5.15/drivers/net/ethernet/microsoft/mana/
Dhw_channel.h178 struct semaphore sema; member
Dhw_channel.c13 down(&hwc->sema); in mana_hwc_get_msg_index()
38 up(&hwc->sema); in mana_hwc_put_msg_index()
557 sema_init(&hwc->sema, num_msg); in mana_hwc_init_inflight_msg()
/Linux-v5.15/drivers/usb/gadget/legacy/
Draw_gadget.c44 struct semaphore sema; member
52 sema_init(&queue->sema, 0); in raw_event_queue_init()
78 up(&queue->sema); in raw_event_queue_add()
95 ret = down_interruptible(&queue->sema); in raw_event_queue_fetch()
/Linux-v5.15/drivers/staging/r8188eu/include/
Dosdep_service.h157 u32 _rtw_down_sema(struct semaphore *sema);
Drtw_io.h118 struct semaphore sema; member