/openbmc/linux/drivers/hv/ |
H A D | hv_common.c | 101 BUILD_BUG_ON(PAGE_SIZE < HV_HYP_PAGE_SIZE); in hv_alloc_hyperv_page() 103 if (PAGE_SIZE == HV_HYP_PAGE_SIZE) in hv_alloc_hyperv_page() 106 return kmalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_alloc_hyperv_page() 112 if (PAGE_SIZE == HV_HYP_PAGE_SIZE) in hv_alloc_hyperv_zeroed_page() 115 return kzalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_alloc_hyperv_zeroed_page() 121 if (PAGE_SIZE == HV_HYP_PAGE_SIZE) in hv_free_hyperv_page() 222 kmsg_dump_get_buffer(&iter, false, hv_panic_page, HV_HYP_PAGE_SIZE, in hv_kmsg_dump() 376 mem = kmalloc(pgcount * HV_HYP_PAGE_SIZE, flags); in hv_common_cpu_init() 382 *outputarg = (char *)mem + HV_HYP_PAGE_SIZE; in hv_common_cpu_init() 393 memset(mem, 0x00, pgcount * HV_HYP_PAGE_SIZE); in hv_common_cpu_init()
|
H A D | hv_util.c | 199 if (vmbus_recvpacket(channel, shut_txf_buf, HV_HYP_PAGE_SIZE, &recvlen, &requestid)) { in shutdown_onchannelcallback() 412 HV_HYP_PAGE_SIZE, &recvlen, in timesync_onchannelcallback() 500 if (vmbus_recvpacket(channel, hbeat_txf_buf, HV_HYP_PAGE_SIZE, in heartbeat_onchannelcallback() 558 #define HV_UTIL_RING_SEND_SIZE VMBUS_RING_SIZE(3 * HV_HYP_PAGE_SIZE) 559 #define HV_UTIL_RING_RECV_SIZE VMBUS_RING_SIZE(3 * HV_HYP_PAGE_SIZE) in util_probe() 568 srv->recv_buffer = kmalloc(HV_HYP_PAGE_SIZE * 4, GFP_KERNEL); in util_probe()
|
H A D | hv_balloon.c | 506 static __u8 recv_buffer[HV_HYP_PAGE_SIZE]; 507 static __u8 balloon_up_send_buffer[HV_HYP_PAGE_SIZE]; 1246 HV_HYP_PAGE_SIZE) in alloc_balloon_pages() 1318 memset(balloon_up_send_buffer, 0, HV_HYP_PAGE_SIZE); in balloon_up() 1529 HV_HYP_PAGE_SIZE, &recvlen, &requestid); in balloon_onchannelcallback() 1613 #define HV_LARGE_REPORTING_LEN (HV_HYP_PAGE_SIZE << \ 1625 WARN_ON_ONCE(sgl->length < (HV_HYP_PAGE_SIZE << page_reporting_order)); in hv_free_page_report() 1663 (sg->length / HV_HYP_PAGE_SIZE) - 1; in hv_free_page_report() 1734 if (PAGE_SIZE != HV_HYP_PAGE_SIZE) { in ballooning_enabled() 1771 dev->channel->max_pkt_size = HV_HYP_PAGE_SIZE * 2; in balloon_connect_vsp() [all …]
|
H A D | connection.c | 222 (HV_HYP_PAGE_SIZE >> 1)); in vmbus_connect() 256 memset(vmbus_connection.monitor_pages[0], 0x00, HV_HYP_PAGE_SIZE); in vmbus_connect() 257 memset(vmbus_connection.monitor_pages[1], 0x00, HV_HYP_PAGE_SIZE); in vmbus_connect()
|
H A D | hv_fcopy.c | 238 if (vmbus_recvpacket(channel, recv_buffer, HV_HYP_PAGE_SIZE * 2, &recvlen, &requestid)) { in hv_fcopy_onchannelcallback() 352 fcopy_transaction.recv_channel->max_pkt_size = HV_HYP_PAGE_SIZE * 2; in hv_fcopy_init()
|
H A D | hv.c | 281 = (void *)ioremap_cache(base, HV_HYP_PAGE_SIZE); in hv_synic_enable_regs() 300 = (void *)ioremap_cache(base, HV_HYP_PAGE_SIZE); in hv_synic_enable_regs()
|
H A D | channel.c | 54 return size - 2 * (PAGE_SIZE - HV_HYP_PAGE_SIZE); in hv_gpadl_size() 80 return (offset - (PAGE_SIZE - HV_HYP_PAGE_SIZE)) >> HV_HYP_PAGE_SHIFT; in hv_ring_gpadl_send_hvpgoffset() 107 delta = PAGE_SIZE - HV_HYP_PAGE_SIZE; in hv_gpadl_hvpfn() 109 delta = 2 * (PAGE_SIZE - HV_HYP_PAGE_SIZE); in hv_gpadl_hvpfn() 116 return virt_to_hvpfn(kbuffer + delta + (HV_HYP_PAGE_SIZE * i)); in hv_gpadl_hvpfn()
|
H A D | hv_kvp.c | 665 if (vmbus_recvpacket(channel, recv_buffer, HV_HYP_PAGE_SIZE * 4, &recvlen, &requestid)) { in hv_kvp_onchannelcallback() 760 kvp_transaction.recv_channel->max_pkt_size = HV_HYP_PAGE_SIZE * 4; in hv_kvp_init()
|
H A D | hyperv_vmbus.h | 199 * interrupt page, which is HV_HYP_PAGE_SIZE. 1/2 of HV_HYP_PAGE_SIZE is to 202 #define MAX_NUM_CHANNELS ((HV_HYP_PAGE_SIZE >> 1) << 3)
|
H A D | hv_snapshot.c | 35 #define VSS_MAX_PKT_SIZE (HV_HYP_PAGE_SIZE * 2)
|
H A D | ring_buffer.c | 220 memset(ring_info->ring_buffer, 0, HV_HYP_PAGE_SIZE); in hv_ringbuffer_init()
|
/openbmc/linux/net/vmw_vsock/ |
H A D | hyperv_transport.c | 23 #define RINGBUFFER_HVS_RCV_SIZE (HV_HYP_PAGE_SIZE * 6) 24 #define RINGBUFFER_HVS_SND_SIZE (HV_HYP_PAGE_SIZE * 6) 25 #define RINGBUFFER_HVS_MAX_SIZE (HV_HYP_PAGE_SIZE * 64) 59 (HV_HYP_PAGE_SIZE - sizeof(struct vmpipe_proto_header)) 378 sndbuf = ALIGN(sndbuf, HV_HYP_PAGE_SIZE); in hvs_open_connection() 381 rcvbuf = ALIGN(rcvbuf, HV_HYP_PAGE_SIZE); in hvs_open_connection() 656 BUILD_BUG_ON(sizeof(*send_buf) != HV_HYP_PAGE_SIZE); in hvs_stream_enqueue()
|
/openbmc/linux/include/asm-generic/ |
H A D | hyperv-tlfs.h | 23 #define HV_HYP_PAGE_SIZE BIT(HV_HYP_PAGE_SHIFT) macro 24 #define HV_HYP_PAGE_MASK (~(HV_HYP_PAGE_SIZE - 1)) 473 #define HV_MAX_FLUSH_REP_COUNT ((HV_HYP_PAGE_SIZE - 2 * sizeof(u64)) / \ 795 ((HV_HYP_PAGE_SIZE - sizeof(struct hv_memory_hint)) / \
|
/openbmc/linux/arch/x86/hyperv/ |
H A D | ivm.c | 62 } __packed __aligned(HV_HYP_PAGE_SIZE); 221 BUILD_BUG_ON(sizeof(union hv_ghcb) != HV_HYP_PAGE_SIZE); in hv_ghcb_msr_read() 522 pfn_array = kmalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_vtom_set_host_visibility() 527 pfn_array[pfn] = virt_to_hvpfn((void *)kbuffer + i * HV_HYP_PAGE_SIZE); in hv_vtom_set_host_visibility()
|
H A D | hv_init.c | 73 ghcb_va = (void *)ioremap_cache(ghcb_gpa, HV_HYP_PAGE_SIZE); in hyperv_init_ghcb() 563 memcpy_to_page(pg, 0, src, HV_HYP_PAGE_SIZE); in hyperv_init()
|
H A D | hv_proc.c | 21 #define HV_DEPOSIT_MAX (HV_HYP_PAGE_SIZE / sizeof(u64) - 1)
|
/openbmc/linux/include/linux/ |
H A D | hyperv.h | 38 * same as HV_HYP_PAGE_SIZE. 40 * If PAGE_SIZE is bigger than HV_HYP_PAGE_SIZE, the headers of ring buffers 1803 #define NR_HV_HYP_PAGES_IN_PAGE (PAGE_SIZE / HV_HYP_PAGE_SIZE) 1805 #define HVPFN_UP(x) (((x) + HV_HYP_PAGE_SIZE-1) >> HV_HYP_PAGE_SHIFT)
|
/openbmc/linux/drivers/net/hyperv/ |
H A D | rndis_filter.c | 31 #define RNDIS_EXT_LEN HV_HYP_PAGE_SIZE 245 if (pb[0].offset + pb[0].len > HV_HYP_PAGE_SIZE) { in rndis_filter_send_request() 247 pb[0].len = HV_HYP_PAGE_SIZE - in rndis_filter_send_request()
|
H A D | netvsc_drv.c | 339 bytes = HV_HYP_PAGE_SIZE - offset; in fill_pg_buf() 349 if (offset == HV_HYP_PAGE_SIZE && len) { in fill_pg_buf() 422 slots = DIV_ROUND_UP(offset + len, HV_HYP_PAGE_SIZE); in netvsc_get_slots() 2556 dma_set_min_align_mask(&dev->device, HV_HYP_PAGE_SIZE - 1); in netvsc_probe()
|
/openbmc/linux/drivers/scsi/ |
H A D | storvsc_drv.c | 1828 * PAGE_SIZE != HV_HYP_PAGE_SIZE case also handles in storvsc_queuecommand() 1888 .virt_boundary_mask = HV_HYP_PAGE_SIZE - 1, 1979 dma_set_min_align_mask(&device->device, HV_HYP_PAGE_SIZE - 1); in storvsc_probe() 2015 * max_transfer_bytes value aligning to HV_HYP_PAGE_SIZE, in storvsc_probe() 2018 max_xfer_bytes = round_down(stor_device->max_transfer_bytes, HV_HYP_PAGE_SIZE); in storvsc_probe() 2030 * should be align to HV_HYP_PAGE_SIZE, that also means the in storvsc_probe() 2032 * dividing the total max transfer length by HV_HYP_PAGE_SIZE. in storvsc_probe() 2035 * have an offset that is a multiple of HV_HYP_PAGE_SIZE. in storvsc_probe()
|
/openbmc/linux/Documentation/virt/hyperv/ |
H A D | overview.rst | 92 only in terms of 4 Kbyte pages. HV_HYP_PAGE_SIZE and related macros
|