Lines Matching refs:ubuf
37 void __user *ubuf, int ctxnum, int dsrcnt, in gru_dump_context_data() argument
51 if (gru_user_copy_handle(&ubuf, cb)) in gru_dump_context_data()
53 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()
60 memcpy(ubuf, gseg + GRU_DS_BASE, dsrcnt * GRU_HANDLE_STRIDE); in gru_dump_context_data()
68 void __user *ubuf, void __user *ubufend) in gru_dump_tfm() argument
73 if (GRU_NUM_TFM * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tfm()
78 if (gru_user_copy_handle(&ubuf, tfm)) in gru_dump_tfm()
88 void __user *ubuf, void __user *ubufend) in gru_dump_tgh() argument
93 if (GRU_NUM_TGH * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tgh()
98 if (gru_user_copy_handle(&ubuf, tgh)) in gru_dump_tgh()
108 void __user *ubuf, void __user *ubufend, char data_opt, in gru_dump_context() argument
112 struct gru_dump_context_header __user *uhdr = ubuf; in gru_dump_context()
128 ubuf += sizeof(hdr); in gru_dump_context()
129 ubufcch = ubuf; in gru_dump_context()
130 if (gru_user_copy_handle(&ubuf, cch)) { in gru_dump_context()
152 if (bytes > ubufend - ubuf) in gru_dump_context()
155 ret = gru_dump_context_data(grubase, cch, ubuf, ctxnum, in gru_dump_context()
179 void __user *ubuf; in gru_dump_chiplet_request() local
192 ubuf = req.buf; in gru_dump_chiplet_request()
195 ret = gru_dump_tfm(gru, ubuf, ubufend); in gru_dump_chiplet_request()
198 ubuf += ret; in gru_dump_chiplet_request()
200 ret = gru_dump_tgh(gru, ubuf, ubufend); in gru_dump_chiplet_request()
203 ubuf += ret; in gru_dump_chiplet_request()
207 ret = gru_dump_context(gru, ctxnum, ubuf, ubufend, in gru_dump_chiplet_request()
212 ubuf += ret; in gru_dump_chiplet_request()