Searched refs:log_base (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/vhost/
H A Dvhost.c271 vq->log_base = NULL; vhost_vq_reset()
565 static int log_access_ok(void __user *log_base, u64 addr, unsigned long sz) log_access_ok() argument
570 if (a > ULONG_MAX - (unsigned long)log_base || log_access_ok()
571 a + (unsigned long)log_base > ULONG_MAX) log_access_ok()
574 return access_ok(VERIFY_WRITE, log_base + a, log_access_ok()
579 static int vq_memory_access_ok(void __user *log_base, struct vhost_memory *mem, vq_memory_access_ok() argument
595 else if (log_all && !log_access_ok(log_base, vq_memory_access_ok()
618 ok = vq_memory_access_ok(d->vqs[i]->log_base, mem, log); memory_access_ok()
652 void __user *log_base) vq_log_access_ok()
656 return vq_memory_access_ok(log_base, vq->memory, vq_log_access_ok()
658 (!vq->log_used || log_access_ok(log_base, vq->log_addr, vq_log_access_ok()
668 vq_log_access_ok(vq, vq->log_base); vhost_vq_access_ok()
841 !log_access_ok(vq->log_base, a.log_guest_addr, vhost_vring_ioctl()
980 vq->log_base = base; vhost_dev_ioctl()
1066 static int log_write(void __user *log_base, log_write() argument
1076 u64 base = (u64)(unsigned long)log_base; log_write()
1101 r = log_write(vq->log_base, log[i].addr, l); vhost_log_write()
1127 log_write(vq->log_base, vq->log_addr + vhost_update_used_flags()
1146 log_write(vq->log_base, vq->log_addr + vhost_update_avail_event()
1511 log_write(vq->log_base, __vhost_add_used_n()
1553 log_write(vq->log_base, vhost_add_used_n()
651 vq_log_access_ok(struct vhost_virtqueue *vq, void __user *log_base) vq_log_access_ok() argument
H A Dvhost.h107 void __user *log_base; member in struct:vhost_virtqueue
/linux-4.4.14/arch/x86/kernel/
H A Dtboot.c365 void __iomem *log_base; tboot_log_read() local
371 log_base = ioremap_nocache(TBOOT_SERIAL_LOG_ADDR, TBOOT_SERIAL_LOG_SIZE); tboot_log_read()
372 if (!log_base) tboot_log_read()
375 memcpy_fromio(log_uuid, log_base, sizeof(log_uuid)); tboot_log_read()
379 max_size = readl(log_base + LOG_MAX_SIZE_OFF); tboot_log_read()
394 memcpy_fromio(kbuf, log_base + LOG_BUF_OFF + *ppos, count); tboot_log_read()
406 iounmap(log_base); tboot_log_read()

Completed in 121 milliseconds