Home
last modified time | relevance | path

Searched refs:HV_HYP_PAGE_SIZE (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/hv/
H A Dhv_common.c101 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 Dhv_util.c199 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 Dhv_balloon.c506 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 Dconnection.c222 (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 Dhv_fcopy.c238 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 Dhv.c281 = (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 Dchannel.c54 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 Dhv_kvp.c665 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 Dhyperv_vmbus.h199 * 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 Dhv_snapshot.c35 #define VSS_MAX_PKT_SIZE (HV_HYP_PAGE_SIZE * 2)
H A Dring_buffer.c220 memset(ring_info->ring_buffer, 0, HV_HYP_PAGE_SIZE); in hv_ringbuffer_init()
/openbmc/linux/net/vmw_vsock/
H A Dhyperv_transport.c23 #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 Dhyperv-tlfs.h23 #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 Divm.c62 } __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 Dhv_init.c73 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 Dhv_proc.c21 #define HV_DEPOSIT_MAX (HV_HYP_PAGE_SIZE / sizeof(u64) - 1)
/openbmc/linux/include/linux/
H A Dhyperv.h38 * 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 Drndis_filter.c31 #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 Dnetvsc_drv.c339 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 Dstorvsc_drv.c1828 * 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 Doverview.rst92 only in terms of 4 Kbyte pages. HV_HYP_PAGE_SIZE and related macros