Lines Matching defs:buf
117 * @buf: structure with info about the memory
129 struct tw68_buf *buf,
153 buf->size = instructions * 8;
154 buf->cpu = pci_alloc_consistent(pci, buf->size, &buf->dma);
155 if (buf->cpu == NULL)
159 rp = buf->cpu;
168 buf->jmp = rp;
169 buf->cpu[1] = cpu_to_le32(buf->dma + 8);
171 BUG_ON((buf->jmp - buf->cpu + 2) * sizeof(buf->cpu[0]) > buf->size);
213 void tw68_risc_program_dump(struct tw68_core *core, struct tw68_buf *buf)
217 pr_debug("%s: risc_program_dump: risc=%p, buf->cpu=0x%p, buf->jmp=0x%p\n",
218 core->name, buf, buf->cpu, buf->jmp);
219 for (addr = buf->cpu; addr <= buf->jmp; addr += 2)