Lines Matching +full:0 +full:xfed40000
80 #define VMBUS_GPADL_START 0xe1e10
152 &vmbus_pin_evttask, 0, "Pin event tasks to their respective CPU");
157 &hv_tlb_hcall, 0, "Use Hyper_V hyercall for tlb flush");
253 memset(inprm, 0, HYPERCALL_POSTMSGIN_SIZE); in vmbus_msghc_reset()
269 dsize + __offsetof(struct hypercall_postmsg_in, hc_data[0])); in vmbus_msghc_get()
324 for (i = 0; i < HC_RETRY_MAX; ++i) { in vmbus_msghc_exec_noresult()
329 return 0; in vmbus_msghc_exec_noresult()
331 pause_sbt("hcpmsg", time, 0, C_HARDCLOCK); in vmbus_msghc_exec_noresult()
393 if (gpadl == 0) in vmbus_gpadl_alloc()
440 int error, done = 0; in vmbus_connect()
465 return (done ? 0 : EOPNOTSUPP); in vmbus_connect()
473 for (i = 0; i < nitems(vmbus_version); ++i) { in vmbus_init()
483 return 0; in vmbus_init()
572 TASK_INIT(&sc->vmbus_scandone_task, 0, vmbus_scan_done_task, sc); in vmbus_scan()
599 mtx_sleep(&sc->vmbus_scandone, bus_topo_mtx(), 0, "vmbusdev", 0); in vmbus_scan()
605 return (0); in vmbus_scan()
635 device_printf(sc->vmbus_dev, "unknown message type 0x%x\n", in vmbus_chanmsg_handle()
683 WRMSR(MSR_HV_EOM, 0); in vmbus_msg_task()
760 /* Set virtual processor id to 0 for compatibility. */ in vmbus_synic_setup()
761 VMBUS_PCPU_GET(sc, vcpuid, cpu) = 0; in vmbus_synic_setup()
864 0ul, ~0ul, PAGE_SIZE, 0); in vmbus_dma_alloc()
870 0ul, ~0ul, PAGE_SIZE, 0); in vmbus_dma_alloc()
877 0ul, ~0ul, PAGE_SIZE, 0); in vmbus_dma_alloc()
885 0ul, ~0ul, PAGE_SIZE, 0); in vmbus_dma_alloc()
890 M_WAITOK | M_ZERO, 0ul, ~0ul, PAGE_SIZE, 0); in vmbus_dma_alloc()
894 return 0; in vmbus_dma_alloc()
971 TASK_INIT(VMBUS_PCPU_PTR(sc, message_task, cpu), 0, in vmbus_intr_setup()
997 return (0); in vmbus_child_pnpinfo()
1006 return (0); in vmbus_child_pnpinfo()
1028 return (0); in vmbus_add_child()
1034 int error = 0; in vmbus_delete_child()
1135 if (memcmp(&chan->ch_guid_type, guid, sizeof(struct hyperv_guid)) == 0) in vmbus_probe_guid_method()
1136 return 0; in vmbus_probe_guid_method()
1153 KASSERT(cpu >= 0 && cpu < mp_ncpus, ("invalid cpu%d", cpu)); in vmbus_get_eventtq_method()
1157 #define VTPM_BASE_ADDR 0xfed40000
1195 if (end < 0x100000) in parse_crs()
1205 start, end, 0); in parse_crs()
1236 if (strcmp("acpi0", device_get_nameunit(acpi0)) == 0) { in vmbus_get_mmio_res_pass()
1243 if (device_get_children(acpi0, &children, &count) == 0) { in vmbus_get_mmio_res_pass()
1246 for (i = 0; i < count; ++i) { in vmbus_get_mmio_res_pass()
1251 device_get_name(children[i])) == 0) in vmbus_get_mmio_res_pass()
1310 int rid = 0; in vmbus_fb_mmio_res()
1345 "actual size needed: 0x%x\n", in vmbus_fb_mmio_res()
1374 if (device_get_unit(parent) != 0 || vm_guest != VM_GUEST_HV || in vmbus_identify()
1375 (hyperv_features & CPUID_HV_MSR_SYNIC) == 0) in vmbus_identify()
1384 if (device_get_unit(dev) != 0 || vm_guest != VM_GUEST_HV || in vmbus_probe()
1385 (hyperv_features & CPUID_HV_MSR_SYNIC) == 0) in vmbus_probe()
1403 M_NOWAIT | M_ZERO, 0ul, ~0ul, PAGE_SIZE, 0); in vmbus_alloc_cpu_mem()
1409 return 0; in vmbus_alloc_cpu_mem()
1448 unsigned int coherent = 0; in vmbus_doattach()
1451 return (0); in vmbus_doattach()
1468 dev_res = devclass_get_device(devclass_find("vmbus_res"), 0); in vmbus_doattach()
1473 coherent = 0; in vmbus_doattach()
1480 1, 0, in vmbus_doattach()
1487 coherent ? BUS_DMA_COHERENT : 0, in vmbus_doattach()
1505 if (ret != 0) in vmbus_doattach()
1512 if (ret != 0) in vmbus_doattach()
1521 if (ret != 0) { in vmbus_doattach()
1522 hv_tlb_hcall = 0; in vmbus_doattach()
1551 if (ret != 0) in vmbus_doattach()
1561 if (ret != 0) in vmbus_doattach()
1567 CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE, sc, 0, in vmbus_doattach()
1630 return (0); in vmbus_attach()
1678 return (0); in vmbus_detach()