Home
last modified time | relevance | path

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

/drivers/gpu/drm/i915/gt/
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()
Dselftest_lrc.c1054 u32 *sema) in record_registers() argument
1109 offset_in_page(sema); in record_registers()
1120 WRITE_ONCE(*sema, 0); in record_registers()
1208 static int poison_registers(struct intel_context *ce, u32 poison, u32 *sema) in poison_registers() argument
1242 offset_in_page(sema); in poison_registers()
1403 u32 *sema = memset32(engine->status_page.addr + 1000, 0, 1); in __lrc_isolation() local
1431 rq = record_registers(A, ref[0], ref[1], sema); in __lrc_isolation()
1437 WRITE_ONCE(*sema, 1); in __lrc_isolation()
1459 rq = record_registers(A, result[0], result[1], sema); in __lrc_isolation()
1465 err = poison_registers(B, poison, sema); in __lrc_isolation()
[all …]
/drivers/gpu/drm/i915/selftests/
Di915_request.c1998 static void semaphore_set(u32 *sema, u32 value) in semaphore_set() argument
2000 WRITE_ONCE(*sema, value); in semaphore_set()
2017 u32 *sema = hwsp_scratch(ce); in measure_semaphore_response() local
2018 const u32 offset = hwsp_offset(ce, sema); in measure_semaphore_response()
2036 semaphore_set(sema, -1); in measure_semaphore_response()
2059 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response()
2067 semaphore_set(sema, i); in measure_semaphore_response()
2070 if (wait_for(READ_ONCE(*sema) == 0, 50)) { in measure_semaphore_response()
2075 elapsed[i - 1] = sema[i] - cycles; in measure_semaphore_response()
2092 u32 *sema = hwsp_scratch(ce); in measure_idle_dispatch() local
[all …]
/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()
/drivers/gpu/drm/nouveau/dispnv50/
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()
330 wndw->sema = NV50_DISP_BASE_SEM0(wndw->id); in base507c_new_()
Dwndwc37e.c261 PUSH_MTHD(push, NVC37E, SET_SEMAPHORE_CONTROL, asyw->sema.offset, in wndwc37e_sema_set()
262 SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire, in wndwc37e_sema_set()
263 SET_SEMAPHORE_RELEASE, asyw->sema.release, in wndwc37e_sema_set()
264 SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle); in wndwc37e_sema_set()
375 wndw->sema = NV50_DISP_WNDW_SEM0(wndw->id); in wndwc37e_new_()
Dwndw.c133 if (clr.sema ) wndw->func-> sema_clr(wndw); in nv50_wndw_flush_clr()
151 if (asyw->set.sema ) wndw->func->sema_set (wndw, asyw); in nv50_wndw_flush_set()
202 asyw->sema.handle = 0; in nv50_wndw_atomic_check_release()
505 asyw->clr.sema = armw->sema.handle != 0; in nv50_wndw_atomic_check()
604 asyw->sema = armw->sema; in nv50_wndw_atomic_duplicate_state()
Datom.h192 } sema; member
256 bool sema:1; member
Dwndw.h32 u16 sema; member
Dovly507e.c171 wndw->sema = NV50_DISP_OVLY_SEM0(wndw->id); in ovly507e_new_()
/drivers/net/ethernet/microsoft/mana/
Dhw_channel.c13 down(&hwc->sema); in mana_hwc_get_msg_index()
38 up(&hwc->sema); in mana_hwc_put_msg_index()
577 sema_init(&hwc->sema, num_msg); in mana_hwc_init_inflight_msg()
/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()