Home
last modified time | relevance | path

Searched refs:GRU_HANDLE_STRIDE (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/misc/sgi-gru/
Dgruhandles.h37 #define GRU_HANDLE_STRIDE 256 macro
71 #define GRU_CB_LIMIT (GRU_CB_BASE + GRU_HANDLE_STRIDE * GRU_NUM_CBE)
83 GRU_##hn##_BASE + GRU_NUM_##hn * GRU_HANDLE_STRIDE && \
84 (((h) & (GRU_HANDLE_STRIDE - 1)) == 0))
96 GRU_CB_BASE + GRU_HANDLE_STRIDE * line); in get_gseg_base_address_cb()
108 ctxnum * GRU_HANDLE_STRIDE); in get_tfm()
114 ctxnum * GRU_HANDLE_STRIDE); in get_tgh()
120 ctxnum * GRU_HANDLE_STRIDE); in get_cbe()
126 ctxnum * GRU_HANDLE_STRIDE); in get_tfh()
133 GRU_CCH_BASE + ctxnum * GRU_HANDLE_STRIDE); in get_cch()
[all …]
Dgrukdump.c53 if (gru_user_copy_handle(&ubuf, tfh + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data()
55 if (gru_user_copy_handle(&ubuf, cbe + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data()
57 cb += GRU_HANDLE_STRIDE; in gru_dump_context_data()
60 memcpy(ubuf, gseg + GRU_DS_BASE, dsrcnt * GRU_HANDLE_STRIDE); in gru_dump_context_data()
Dgrumain.c469 prefetch_data(cbe + i * GRU_HANDLE_STRIDE, 1, in gru_prefetch_context()
471 cb += GRU_HANDLE_STRIDE; in gru_prefetch_context()
492 save += gru_copy_handle(cbe + i * GRU_HANDLE_STRIDE, in gru_load_context_data()
496 memset(cbe + i * GRU_HANDLE_STRIDE, 0, in gru_load_context_data()
501 gru_flush_cache(cbe + i * GRU_HANDLE_STRIDE); in gru_load_context_data()
502 cb += GRU_HANDLE_STRIDE; in gru_load_context_data()
525 gru_flush_cache(cbe + i * GRU_HANDLE_STRIDE); in gru_unload_context_data()
532 save += gru_copy_handle(save, cbe + i * GRU_HANDLE_STRIDE); in gru_unload_context_data()
533 cb += GRU_HANDLE_STRIDE; in gru_unload_context_data()
Dgru.h26 #define GRU_HANDLE_STRIDE 256 macro
Dgrukservices.c263 *cb = bs->kernel_cb + lcpu * GRU_HANDLE_STRIDE; in gru_get_cpu_resources()
366 *cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE; in gru_lock_async_resource()
1065 gru_vset(cb0 + i * GRU_HANDLE_STRIDE, uv_gpa(&buf[i * 4]), 0, in quicktest2()
1073 cb = cb0 + i * GRU_HANDLE_STRIDE; in quicktest2()
Dgru_instructions.h705 return gseg + GRU_CB_BASE + index * GRU_HANDLE_STRIDE; in gru_get_cb_pointer()
Dgrufault.c648 if ((cb & (GRU_HANDLE_STRIDE - 1)) || ucbnum >= GRU_NUM_CB) in gru_handle_user_call_os()