Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/i915/gt/
Dselftest_engine_pm.c76 u32 *sema = memset32(engine->status_page.addr + 1000, 0, 5); in __measure_timestamps() local
110 while (READ_ONCE(sema[2]) == 0) in __measure_timestamps()
115 write_semaphore(&sema[2], 0); in __measure_timestamps()
116 while (READ_ONCE(sema[1]) == 0) /* wait for the gpu to catch up */ in __measure_timestamps()
121 write_semaphore(&sema[2], 1); in __measure_timestamps()
131 engine->name, sema[1], sema[3], sema[0], sema[4]); in __measure_timestamps()
133 *d_ctx = sema[3] - sema[1]; in __measure_timestamps()
134 *d_ring = sema[4] - sema[0]; in __measure_timestamps()
Dselftest_lrc.c1045 u32 *sema) in record_registers() argument
1100 offset_in_page(sema); in record_registers()
1111 WRITE_ONCE(*sema, 0); in record_registers()
1188 static int poison_registers(struct intel_context *ce, u32 poison, u32 *sema) in poison_registers() argument
1222 offset_in_page(sema); in poison_registers()
1348 u32 *sema = memset32(engine->status_page.addr + 1000, 0, 1); in __lrc_isolation() local
1376 rq = record_registers(A, ref[0], ref[1], sema); in __lrc_isolation()
1382 WRITE_ONCE(*sema, 1); in __lrc_isolation()
1404 rq = record_registers(A, result[0], result[1], sema); in __lrc_isolation()
1410 err = poison_registers(B, poison, sema); in __lrc_isolation()
[all …]
/linux-5.19.10/drivers/gpu/drm/i915/selftests/
Di915_request.c1936 static void semaphore_set(u32 *sema, u32 value) in semaphore_set() argument
1938 WRITE_ONCE(*sema, value); in semaphore_set()
1955 u32 *sema = hwsp_scratch(ce); in measure_semaphore_response() local
1956 const u32 offset = hwsp_offset(ce, sema); in measure_semaphore_response()
1974 semaphore_set(sema, -1); in measure_semaphore_response()
1997 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response()
2005 semaphore_set(sema, i); in measure_semaphore_response()
2008 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response()
2013 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response()
2030 u32 *sema = hwsp_scratch(ce); in measure_idle_dispatch() local
[all …]
/linux-5.19.10/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-5.19.10/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.c262 PUSH_MTHD(push, NVC37E, SET_SEMAPHORE_CONTROL, asyw->sema.offset, in wndwc37e_sema_set()
263 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in wndwc37e_sema_set()
264 SET_SEMAPHORE_RELEASE, asyw->sema.release, in wndwc37e_sema_set()
265 SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle); in wndwc37e_sema_set()
377 wndw->sema = NV50_DISP_WNDW_SEM0(wndw->id); in wndwc37e_new_()
Datom.h192 } sema; member
256 bool sema:1; member
Dwndw.c132 if (clr.sema ) wndw->func-> sema_clr(wndw); in nv50_wndw_flush_clr()
150 if (asyw->set.sema ) wndw->func->sema_set (wndw, asyw); in nv50_wndw_flush_set()
201 asyw->sema.handle = 0; in nv50_wndw_atomic_check_release()
504 asyw->clr.sema = armw->sema.handle != 0; in nv50_wndw_atomic_check()
603 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-5.19.10/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()
551 sema_init(&hwc->sema, num_msg); in mana_hwc_init_inflight_msg()
/linux-5.19.10/drivers/usb/gadget/legacy/
Draw_gadget.c48 struct semaphore sema; member
56 sema_init(&queue->sema, 0); in raw_event_queue_init()
82 up(&queue->sema); in raw_event_queue_add()
99 ret = down_interruptible(&queue->sema); in raw_event_queue_fetch()
/linux-5.19.10/drivers/staging/r8188eu/include/
Drtw_io.h94 struct semaphore sema; member