Lines Matching defs:buf
613 /* Check they don't still have a DTL or SLB buf registered */
2778 char buf[N_TIMINGS * 100];
2806 static ssize_t debugfs_timings_read(struct file *file, char __user *buf,
2820 s = p->buf;
2821 buf_end = s + sizeof(p->buf);
2853 p->buflen = s - p->buf;
2861 n = copy_to_user(buf, p->buf + pos, len);
2871 static ssize_t debugfs_timings_write(struct file *file, const char __user *buf,
4984 unsigned long *buf, *p;
5004 buf = memslot->dirty_bitmap + n / sizeof(long);
5005 memset(buf, 0, n);
5008 r = kvmppc_hv_get_dirty_log_radix(kvm, memslot, buf);
5010 r = kvmppc_hv_get_dirty_log_hpt(kvm, memslot, buf);
5022 buf[i] |= xchg(&p[i], 0);
5028 kvmppc_harvest_vpa_dirty(&vcpu->arch.vpa, memslot, buf);
5029 kvmppc_harvest_vpa_dirty(&vcpu->arch.dtl, memslot, buf);
5034 if (copy_to_user(log->dirty_bitmap, buf, n))