Lines Matching defs:kernel

97 static struct kernel *
107 a6xx_disassemble(struct kernel *kernel, FILE *out)
109 ir3_asm_disassemble(to_ir3_kernel(kernel), out);
113 cs_program_emit(struct fd_ringbuffer *ring, struct kernel *kernel)
115 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel);
145 A6XX_SP_CS_CONFIG_NIBO(kernel->num_bufs) |
240 cs_const_emit(struct fd_ringbuffer *ring, struct kernel *kernel,
243 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel);
259 if (kernel->buf_addr_regs[i] != INVALID_REG) {
260 assert((kernel->buf_addr_regs[i] & 0x3) == 0);
261 int idx = kernel->buf_addr_regs[i] >> 2;
263 uint64_t iova = fd_bo_get_iova(kernel->bufs[i]);
286 struct kernel *kernel)
289 submit, kernel->num_bufs * 16 * 4, FD_RINGBUFFER_STREAMING);
291 for (unsigned i = 0; i < kernel->num_bufs; i++) {
295 unsigned sz = kernel->buf_sizes[i];
304 OUT_RELOC(state, kernel->bufs[i], 0, 0, 0);
322 CP_LOAD_STATE6_0_NUM_UNIT(kernel->num_bufs));
329 OUT_RING(ring, kernel->num_bufs);
335 event_write(struct fd_ringbuffer *ring, struct kernel *kernel,
343 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel);
354 cache_flush(struct fd_ringbuffer *ring, struct kernel *kernel)
356 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel);
360 seqno = event_write(ring, kernel, RB_DONE_TS, true);
370 seqno = event_write(ring, kernel, CACHE_FLUSH_TS, true);
379 a6xx_emit_grid(struct kernel *kernel, uint32_t grid[3],
382 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel);
387 cs_program_emit(ring, kernel);
388 cs_const_emit(ring, kernel, grid);
389 cs_ibo_emit(ring, submit, kernel);
394 const unsigned *local_size = kernel->local_size;
483 cache_flush(ring, kernel);