Lines Matching refs:template
140 static const unsigned int template[] = { in init_glapi_relocs() local
206 code[0] = template[0] | (dispatch >> 10); in init_glapi_relocs()
207 code[1] = template[1]; in init_glapi_relocs()
209 code[2] = template[2] | (dispatch & 0x3ff); in init_glapi_relocs()
210 code[3] = template[3]; in init_glapi_relocs()
212 code[4] = template[4]; in init_glapi_relocs()
213 code[5] = template[5]; in init_glapi_relocs()
215 code[6] = template[6]; in init_glapi_relocs()
219 code[0] = template[0] | (dispatch >> (32 + 10)); in init_glapi_relocs()
220 code[1] = template[1] | ((dispatch & 0xffffffff) >> 10); in init_glapi_relocs()
222 code[2] = template[2] | ((dispatch >> 32) & 0x3ff); in init_glapi_relocs()
223 code[3] = template[3]; in init_glapi_relocs()
225 code[4] = template[4]; in init_glapi_relocs()
226 code[5] = template[5]; in init_glapi_relocs()
228 code[6] = template[6] | (dispatch & 0x3ff); in init_glapi_relocs()
231 code[0] = template[0] | (dispatch >> 10); in init_glapi_relocs()
232 code[1] = template[1]; in init_glapi_relocs()
234 code[2] = template[2] | (dispatch & 0x3ff); in init_glapi_relocs()
237 code[idx + 0] = template[idx + 0]; in init_glapi_relocs()
239 code[idx + 1] = template[idx + 1]; in init_glapi_relocs()
240 code[idx + 2] = template[idx + 2]; in init_glapi_relocs()
242 code[idx + 3] = template[idx + 3]; in init_glapi_relocs()
243 code[idx + 4] = template[idx + 4]; in init_glapi_relocs()
245 code[idx + 5] = template[idx + 5]; in init_glapi_relocs()
246 code[idx + 6] = template[idx + 6]; in init_glapi_relocs()
248 code[idx + 7] = template[idx + 7]; in init_glapi_relocs()
249 code[idx + 8] = template[idx + 8] | in init_glapi_relocs()
253 code[idx + 9] = template[idx + 9]; in init_glapi_relocs()
254 code[idx + 10] = template[idx + 10]; in init_glapi_relocs()
256 code[idx + 11] = template[idx + 11]; in init_glapi_relocs()
257 code[idx + 12] = template[idx + 12]; in init_glapi_relocs()
259 code[idx + 13] = template[idx + 13]; in init_glapi_relocs()
270 static const unsigned int template[] = { in generate_entrypoint() local
283 unsigned int *code = (unsigned int *) u_execmem_alloc(sizeof(template)); in generate_entrypoint()
285 code[0] = template[0] | (functionOffset & 0x3fffff); in generate_entrypoint()
286 code[1] = template[1]; in generate_entrypoint()
288 code[2] = template[2] | in generate_entrypoint()
291 code[3] = template[3]; in generate_entrypoint()