Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/hv/
Dhv.c53 BUILD_BUG_ON(PAGE_SIZE < HV_HYP_PAGE_SIZE); in hv_alloc_hyperv_page()
55 if (PAGE_SIZE == HV_HYP_PAGE_SIZE) in hv_alloc_hyperv_page()
58 return kmalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_alloc_hyperv_page()
63 if (PAGE_SIZE == HV_HYP_PAGE_SIZE) in hv_alloc_hyperv_zeroed_page()
66 return kzalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_alloc_hyperv_zeroed_page()
71 if (PAGE_SIZE == HV_HYP_PAGE_SIZE) in hv_free_hyperv_page()
222 HV_HYP_PAGE_SIZE, MEMREMAP_WB); in hv_synic_enable_regs()
239 HV_HYP_PAGE_SIZE, MEMREMAP_WB); in hv_synic_enable_regs()
Dconnection.c216 (HV_HYP_PAGE_SIZE >> 1)); in vmbus_connect()
261 HV_HYP_PAGE_SIZE, in vmbus_connect()
270 HV_HYP_PAGE_SIZE, in vmbus_connect()
283 HV_HYP_PAGE_SIZE); in vmbus_connect()
285 HV_HYP_PAGE_SIZE); in vmbus_connect()
Dhv_util.c197 if (vmbus_recvpacket(channel, shut_txf_buf, HV_HYP_PAGE_SIZE, &recvlen, &requestid)) { in shutdown_onchannelcallback()
410 HV_HYP_PAGE_SIZE, &recvlen, in timesync_onchannelcallback()
498 if (vmbus_recvpacket(channel, hbeat_txf_buf, HV_HYP_PAGE_SIZE, in heartbeat_onchannelcallback()
556 #define HV_UTIL_RING_SEND_SIZE VMBUS_RING_SIZE(3 * HV_HYP_PAGE_SIZE)
557 #define HV_UTIL_RING_RECV_SIZE VMBUS_RING_SIZE(3 * HV_HYP_PAGE_SIZE)
566 srv->recv_buffer = kmalloc(HV_HYP_PAGE_SIZE * 4, GFP_KERNEL); in util_probe()
Dhv_common.c133 *inputarg = kmalloc(pgcount * HV_HYP_PAGE_SIZE, flags); in hv_common_cpu_init()
139 *outputarg = (char *)(*inputarg) + HV_HYP_PAGE_SIZE; in hv_common_cpu_init()
Dhv_balloon.c501 static __u8 recv_buffer[HV_HYP_PAGE_SIZE];
502 static __u8 balloon_up_send_buffer[HV_HYP_PAGE_SIZE];
1242 HV_HYP_PAGE_SIZE) in alloc_balloon_pages()
1314 memset(balloon_up_send_buffer, 0, HV_HYP_PAGE_SIZE); in balloon_up()
1513 HV_HYP_PAGE_SIZE, &recvlen, &requestid); in balloon_onchannelcallback()
1598 #define HV_MIN_PAGE_REPORTING_LEN (HV_HYP_PAGE_SIZE << HV_MIN_PAGE_REPORTING_ORDER)
1686 if (PAGE_SIZE != HV_HYP_PAGE_SIZE) { in ballooning_enabled()
1723 dev->channel->max_pkt_size = HV_HYP_PAGE_SIZE * 2; in balloon_connect_vsp()
1884 seq_printf(f, "%-22s: %ld\n", "page_size", HV_HYP_PAGE_SIZE); in hv_balloon_debug_show()
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()
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()
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()
Dhyperv_vmbus.h195 #define MAX_NUM_CHANNELS ((HV_HYP_PAGE_SIZE >> 1) << 3)
Dhv_snapshot.c35 #define VSS_MAX_PKT_SIZE (HV_HYP_PAGE_SIZE * 2)
Dvmbus_drv.c1378 kmsg_dump_get_buffer(&iter, false, hv_panic_page, HV_HYP_PAGE_SIZE, in hv_kmsg_dump()
/linux-6.1.9/arch/x86/hyperv/
Divm.c54 } __packed __aligned(HV_HYP_PAGE_SIZE);
212 BUILD_BUG_ON(sizeof(union hv_ghcb) != HV_HYP_PAGE_SIZE); in hv_ghcb_msr_read()
341 pfn_array = kmalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_set_mem_host_visibility()
346 pfn_array[pfn] = virt_to_hvpfn((void *)kbuffer + i * HV_HYP_PAGE_SIZE); in hv_set_mem_host_visibility()
Dhv_init.c67 ghcb_va = memremap(ghcb_gpa, HV_HYP_PAGE_SIZE, MEMREMAP_WB); in hyperv_init_ghcb()
463 memcpy_to_page(pg, 0, src, HV_HYP_PAGE_SIZE); in hyperv_init()
Dhv_proc.c21 #define HV_DEPOSIT_MAX (HV_HYP_PAGE_SIZE / sizeof(u64) - 1)
/linux-6.1.9/net/vmw_vsock/
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()
655 BUILD_BUG_ON(sizeof(*send_buf) != HV_HYP_PAGE_SIZE); in hvs_stream_enqueue()
/linux-6.1.9/include/asm-generic/
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))
460 #define HV_MAX_FLUSH_REP_COUNT ((HV_HYP_PAGE_SIZE - 2 * sizeof(u64)) / \
782 ((HV_HYP_PAGE_SIZE - sizeof(struct hv_memory_hint)) / \
/linux-6.1.9/include/linux/
Dhyperv.h1787 #define NR_HV_HYP_PAGES_IN_PAGE (PAGE_SIZE / HV_HYP_PAGE_SIZE)
1789 #define HVPFN_UP(x) (((x) + HV_HYP_PAGE_SIZE-1) >> HV_HYP_PAGE_SHIFT)
/linux-6.1.9/drivers/scsi/
Dstorvsc_drv.c1858 .virt_boundary_mask = HV_HYP_PAGE_SIZE - 1,
1949 dma_set_min_align_mask(&device->device, HV_HYP_PAGE_SIZE - 1); in storvsc_probe()
1988 max_xfer_bytes = round_down(stor_device->max_transfer_bytes, HV_HYP_PAGE_SIZE); in storvsc_probe()
/linux-6.1.9/drivers/net/hyperv/
Drndis_filter.c30 #define RNDIS_EXT_LEN HV_HYP_PAGE_SIZE
244 if (pb[0].offset + pb[0].len > HV_HYP_PAGE_SIZE) { in rndis_filter_send_request()
246 pb[0].len = HV_HYP_PAGE_SIZE - in rndis_filter_send_request()
Dnetvsc_drv.c335 bytes = HV_HYP_PAGE_SIZE - offset; in fill_pg_buf()
345 if (offset == HV_HYP_PAGE_SIZE && len) { in fill_pg_buf()
418 slots = DIV_ROUND_UP(offset + len, HV_HYP_PAGE_SIZE); in netvsc_get_slots()
2513 dma_set_min_align_mask(&dev->device, HV_HYP_PAGE_SIZE - 1); in netvsc_probe()
/linux-6.1.9/Documentation/virt/hyperv/
Doverview.rst92 only in terms of 4 Kbyte pages. HV_HYP_PAGE_SIZE and related macros
/linux-6.1.9/drivers/pci/controller/
Dpci-hyperv.c3516 BUILD_BUG_ON(sizeof(*hbus) > HV_HYP_PAGE_SIZE); in hv_pci_probe()
3540 hbus = kzalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_pci_probe()