Lines Matching defs:buf
569 /* Check they don't still have a DTL or SLB buf registered */
2201 char buf[N_TIMINGS * 100];
2229 static ssize_t debugfs_timings_read(struct file *file, char __user *buf,
2243 s = p->buf;
2244 buf_end = s + sizeof(p->buf);
2276 p->buflen = s - p->buf;
2284 n = copy_to_user(buf, p->buf + pos, len);
2294 static ssize_t debugfs_timings_write(struct file *file, const char __user *buf,
2312 char buf[16];
2315 snprintf(buf, sizeof(buf), "vcpu%u", id);
2316 vcpu->arch.debugfs_dir = debugfs_create_dir(buf, kvm->arch.debugfs_dir);
4515 unsigned long *buf, *p;
4535 buf = memslot->dirty_bitmap + n / sizeof(long);
4536 memset(buf, 0, n);
4539 r = kvmppc_hv_get_dirty_log_radix(kvm, memslot, buf);
4541 r = kvmppc_hv_get_dirty_log_hpt(kvm, memslot, buf);
4553 buf[i] |= xchg(&p[i], 0);
4559 kvmppc_harvest_vpa_dirty(&vcpu->arch.vpa, memslot, buf);
4560 kvmppc_harvest_vpa_dirty(&vcpu->arch.dtl, memslot, buf);
4565 if (copy_to_user(log->dirty_bitmap, buf, n))
4920 char buf[32];
5056 snprintf(buf, sizeof(buf), "vm%d", current->pid);
5057 kvm->arch.debugfs_dir = debugfs_create_dir(buf, kvm_debugfs_dir);