Lines Matching full:phys
148 struct bts_phys *phys = &buf->buf[buf->cur_buf]; in bts_config_buffer() local
149 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer()
150 struct page *page = phys->page; in bts_config_buffer()
155 if (buf->end < phys->offset + buf_size(page)) in bts_config_buffer()
156 end = buf->end - phys->offset - phys->displacement; in bts_config_buffer()
158 index -= phys->offset + phys->displacement; in bts_config_buffer()
168 ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; in bts_config_buffer()
176 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
178 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
180 memset(page_address(phys->page) + index, 0, phys->size - index); in bts_buffer_pad_out()
379 struct bts_phys *phys, *next_phys; in bts_buffer_reset() local
387 phys = &buf->buf[buf->cur_buf]; in bts_buffer_reset()
388 space = phys->offset + phys->displacement + phys->size - head; in bts_buffer_reset()
395 /* See if next phys buffer has more space */ in bts_buffer_reset()
400 gap = buf_size(phys->page) - phys->displacement - phys->size + in bts_buffer_reset()
411 bts_buffer_pad_out(phys, head); in bts_buffer_reset()
415 /* Advance to next phys buffer */ in bts_buffer_reset()
416 phys = next_phys; in bts_buffer_reset()
418 head = phys->offset + phys->displacement; in bts_buffer_reset()