Lines Matching refs:ubuf
47 void __user *ubuf, int ctxnum, int dsrcnt, in gru_dump_context_data() argument
61 if (gru_user_copy_handle(&ubuf, cb)) in gru_dump_context_data()
63 if (gru_user_copy_handle(&ubuf, tfh + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data()
65 if (gru_user_copy_handle(&ubuf, cbe + i * GRU_HANDLE_STRIDE)) in gru_dump_context_data()
70 memcpy(ubuf, gseg + GRU_DS_BASE, dsrcnt * GRU_HANDLE_STRIDE); in gru_dump_context_data()
78 void __user *ubuf, void __user *ubufend) in gru_dump_tfm() argument
83 if (GRU_NUM_TFM * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tfm()
88 if (gru_user_copy_handle(&ubuf, tfm)) in gru_dump_tfm()
98 void __user *ubuf, void __user *ubufend) in gru_dump_tgh() argument
103 if (GRU_NUM_TGH * GRU_CACHE_LINE_BYTES > ubufend - ubuf) in gru_dump_tgh()
108 if (gru_user_copy_handle(&ubuf, tgh)) in gru_dump_tgh()
118 void __user *ubuf, void __user *ubufend, char data_opt, in gru_dump_context() argument
122 struct gru_dump_context_header __user *uhdr = ubuf; in gru_dump_context()
138 ubuf += sizeof(hdr); in gru_dump_context()
139 ubufcch = ubuf; in gru_dump_context()
140 if (gru_user_copy_handle(&ubuf, cch)) { in gru_dump_context()
162 if (bytes > ubufend - ubuf) in gru_dump_context()
165 ret = gru_dump_context_data(grubase, cch, ubuf, ctxnum, in gru_dump_context()
189 void __user *ubuf; in gru_dump_chiplet_request() local
201 ubuf = req.buf; in gru_dump_chiplet_request()
204 ret = gru_dump_tfm(gru, ubuf, ubufend); in gru_dump_chiplet_request()
207 ubuf += ret; in gru_dump_chiplet_request()
209 ret = gru_dump_tgh(gru, ubuf, ubufend); in gru_dump_chiplet_request()
212 ubuf += ret; in gru_dump_chiplet_request()
216 ret = gru_dump_context(gru, ctxnum, ubuf, ubufend, in gru_dump_chiplet_request()
221 ubuf += ret; in gru_dump_chiplet_request()