Searched refs:rtcdata (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/lib/libvmmapi/common/ |
H A D | vmmapi.c | 2037 struct vm_rtc_data rtcdata; in vm_rtc_write() local 2040 bzero(&rtcdata, sizeof(struct vm_rtc_data)); in vm_rtc_write() 2041 rtcdata.offset = offset; in vm_rtc_write() 2042 rtcdata.value = value; in vm_rtc_write() 2043 error = ioctl(ctx->fd, VM_RTC_WRITE, &rtcdata); in vm_rtc_write() 2050 struct vm_rtc_data rtcdata; in vm_rtc_read() local 2053 bzero(&rtcdata, sizeof(struct vm_rtc_data)); in vm_rtc_read() 2054 rtcdata.offset = offset; in vm_rtc_read() 2055 error = ioctl(ctx->fd, VM_RTC_READ, &rtcdata); in vm_rtc_read() 2057 *retval = rtcdata.value; in vm_rtc_read()
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_sol_dev.c | 1593 struct vm_rtc_data rtcdata; in vmmdev_do_ioctl() local 1595 if (ddi_copyin(datap, &rtcdata, sizeof (rtcdata), md)) { in vmmdev_do_ioctl() 1599 error = vrtc_nvram_write(sc->vmm_vm, rtcdata.offset, in vmmdev_do_ioctl() 1600 rtcdata.value); in vmmdev_do_ioctl() 1604 struct vm_rtc_data rtcdata; in vmmdev_do_ioctl() local 1606 if (ddi_copyin(datap, &rtcdata, sizeof (rtcdata), md)) { in vmmdev_do_ioctl() 1610 error = vrtc_nvram_read(sc->vmm_vm, rtcdata.offset, in vmmdev_do_ioctl() 1611 &rtcdata.value); in vmmdev_do_ioctl() 1613 ddi_copyout(&rtcdata, datap, sizeof (rtcdata), md)) { in vmmdev_do_ioctl()
|