Lines Matching refs:gpuaddr

37 	uint64_t gpuaddr;  member
53 buffer_contains_gpuaddr(struct buffer *buf, uint64_t gpuaddr, uint32_t len) in buffer_contains_gpuaddr() argument
55 return (buf->gpuaddr <= gpuaddr) && (gpuaddr < (buf->gpuaddr + buf->len)); in buffer_contains_gpuaddr()
66 gpuaddr(void *hostptr) in gpuaddr() function
71 return buffers[i].gpuaddr + (hostptr - buffers[i].hostptr); in gpuaddr()
76 gpubaseaddr(uint64_t gpuaddr) in gpubaseaddr() argument
79 if (!gpuaddr) in gpubaseaddr()
82 if (buffer_contains_gpuaddr(&buffers[i], gpuaddr, 0)) in gpubaseaddr()
83 return buffers[i].gpuaddr; in gpubaseaddr()
88 hostptr(uint64_t gpuaddr) in hostptr() argument
91 if (!gpuaddr) in hostptr()
94 if (buffer_contains_gpuaddr(&buffers[i], gpuaddr, 0)) in hostptr()
95 return buffers[i].hostptr + (gpuaddr - buffers[i].gpuaddr); in hostptr()
100 hostlen(uint64_t gpuaddr) in hostlen() argument
103 if (!gpuaddr) in hostlen()
106 if (buffer_contains_gpuaddr(&buffers[i], gpuaddr, 0)) in hostlen()
107 return buffers[i].len + buffers[i].gpuaddr - gpuaddr; in hostlen()
112 has_dumped(uint64_t gpuaddr, unsigned enable_mask) in has_dumped() argument
114 if (!gpuaddr) in has_dumped()
118 if (buffer_contains_gpuaddr(&buffers[i], gpuaddr, 0)) { in has_dumped()
120 assert(gpuaddr >= b->gpuaddr); in has_dumped()
121 unsigned offset = gpuaddr - b->gpuaddr; in has_dumped()
167 add_buffer(uint64_t gpuaddr, unsigned int len, void *hostptr) in add_buffer() argument
172 if (buffers[i].gpuaddr == gpuaddr) in add_buffer()
190 buffers[i].gpuaddr = gpuaddr; in add_buffer()