Lines Matching refs:clif
35 clif_dump_add_address_to_worklist(struct clif_dump *clif, in clif_dump_add_address_to_worklist() argument
40 rzalloc(clif, struct reloc_worklist_entry); in clif_dump_add_address_to_worklist()
47 list_addtail(&entry->link, &clif->worklist); in clif_dump_add_address_to_worklist()
58 struct clif_dump *clif = rzalloc(NULL, struct clif_dump); in clif_dump_init() local
60 clif->devinfo = devinfo; in clif_dump_init()
61 clif->lookup_vaddr = lookup_vaddr; in clif_dump_init()
62 clif->out = out; in clif_dump_init()
63 clif->data = data; in clif_dump_init()
64 clif->spec = v3d_spec_load(devinfo); in clif_dump_init()
66 list_inithead(&clif->worklist); in clif_dump_init()
68 return clif; in clif_dump_init()
72 clif_dump_destroy(struct clif_dump *clif) in clif_dump_destroy() argument
74 ralloc_free(clif); in clif_dump_destroy()
81 clif_dump_packet(struct clif_dump *clif, uint32_t offset, const uint8_t *cl, in clif_dump_packet() argument
84 if (clif->devinfo->ver >= 41) in clif_dump_packet()
85 return v3d41_clif_dump_packet(clif, offset, cl, size); in clif_dump_packet()
87 return v3d33_clif_dump_packet(clif, offset, cl, size); in clif_dump_packet()
91 clif_dump_cl(struct clif_dump *clif, uint32_t start, uint32_t end) in clif_dump_cl() argument
94 if (!clif->lookup_vaddr(clif->data, start, &start_vaddr)) { in clif_dump_cl()
95 out(clif, "Failed to look up address 0x%08x\n", in clif_dump_cl()
104 if (end && !clif->lookup_vaddr(clif->data, end, &end_vaddr)) { in clif_dump_cl()
105 out(clif, "Failed to look up address 0x%08x\n", in clif_dump_cl()
112 while (clif_dump_packet(clif, start, cl, &size)) { in clif_dump_cl()
122 clif_process_worklist(struct clif_dump *clif) in clif_process_worklist() argument
124 while (!list_empty(&clif->worklist)) { in clif_process_worklist()
126 list_first_entry(&clif->worklist, in clif_process_worklist()
131 if (!clif->lookup_vaddr(clif->data, reloc->addr, &vaddr)) { in clif_process_worklist()
132 out(clif, "Failed to look up address 0x%08x\n", in clif_process_worklist()
139 if (clif->devinfo->ver >= 41) { in clif_process_worklist()
140 v3d41_clif_dump_gl_shader_state_record(clif, in clif_process_worklist()
144 v3d33_clif_dump_gl_shader_state_record(clif, in clif_process_worklist()
150 clif_dump_cl(clif, reloc->addr, in clif_process_worklist()
154 out(clif, "\n"); in clif_process_worklist()
159 clif_dump_add_cl(struct clif_dump *clif, uint32_t start, uint32_t end) in clif_dump_add_cl() argument
161 clif_dump_cl(clif, start, end); in clif_dump_add_cl()
162 out(clif, "\n"); in clif_dump_add_cl()
164 clif_process_worklist(clif); in clif_dump_add_cl()