Home
last modified time | relevance | path

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

/linux/drivers/hv/
A 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()
A Dconnection.c208 (HV_HYP_PAGE_SIZE >> 1)); in vmbus_connect()
253 HV_HYP_PAGE_SIZE, in vmbus_connect()
262 HV_HYP_PAGE_SIZE, in vmbus_connect()
275 HV_HYP_PAGE_SIZE); in vmbus_connect()
277 HV_HYP_PAGE_SIZE); in vmbus_connect()
A 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()
A Dhv_common.c130 *inputarg = kmalloc(pgcount * HV_HYP_PAGE_SIZE, flags); in hv_common_cpu_init()
136 *outputarg = (char *)(*inputarg) + HV_HYP_PAGE_SIZE; in hv_common_cpu_init()
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()
A Dhv_snapshot.c301 if (vmbus_recvpacket(channel, recv_buffer, HV_HYP_PAGE_SIZE * 2, &recvlen, &requestid)) { in hv_vss_onchannelcallback()
378 vss_transaction.recv_channel->max_pkt_size = HV_HYP_PAGE_SIZE * 2; in hv_vss_init()
A Dhv_balloon.c499 static __u8 recv_buffer[HV_HYP_PAGE_SIZE];
500 static __u8 balloon_up_send_buffer[HV_HYP_PAGE_SIZE];
1219 HV_HYP_PAGE_SIZE) in alloc_balloon_pages()
1291 memset(balloon_up_send_buffer, 0, HV_HYP_PAGE_SIZE); in balloon_up()
1490 HV_HYP_PAGE_SIZE, &recvlen, &requestid); in balloon_onchannelcallback()
1575 #define HV_MIN_PAGE_REPORTING_LEN (HV_HYP_PAGE_SIZE << HV_MIN_PAGE_REPORTING_ORDER)
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()
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()
A Dhyperv_vmbus.h195 #define MAX_NUM_CHANNELS ((HV_HYP_PAGE_SIZE >> 1) << 3)
A Dvmbus_drv.c1412 kmsg_dump_get_buffer(&iter, false, hv_panic_page, HV_HYP_PAGE_SIZE, in hv_kmsg_dump()
/linux/arch/x86/hyperv/
A Divm.c54 } __packed __aligned(HV_HYP_PAGE_SIZE);
139 BUILD_BUG_ON(sizeof(union hv_ghcb) != HV_HYP_PAGE_SIZE); in hv_ghcb_msr_read()
269 pfn_array = kmalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_set_mem_host_visibility()
274 pfn_array[pfn] = virt_to_hvpfn((void *)kbuffer + i * HV_HYP_PAGE_SIZE); in hv_set_mem_host_visibility()
A Dhv_init.c65 ghcb_va = memremap(ghcb_gpa, HV_HYP_PAGE_SIZE, MEMREMAP_WB); in hyperv_init_ghcb()
459 memcpy(dst, src, HV_HYP_PAGE_SIZE); in hyperv_init()
A Dhv_proc.c21 #define HV_DEPOSIT_MAX (HV_HYP_PAGE_SIZE / sizeof(u64) - 1)
/linux/net/vmw_vsock/
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))
369 sndbuf = ALIGN(sndbuf, HV_HYP_PAGE_SIZE); in hvs_open_connection()
372 rcvbuf = ALIGN(rcvbuf, HV_HYP_PAGE_SIZE); in hvs_open_connection()
636 BUILD_BUG_ON(sizeof(*send_buf) != HV_HYP_PAGE_SIZE); in hvs_stream_enqueue()
/linux/include/asm-generic/
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))
444 #define HV_MAX_FLUSH_REP_COUNT ((HV_HYP_PAGE_SIZE - 2 * sizeof(u64)) / \
799 ((HV_HYP_PAGE_SIZE - sizeof(struct hv_memory_hint)) / \
/linux/include/linux/
A Dhyperv.h1755 #define NR_HV_HYP_PAGES_IN_PAGE (PAGE_SIZE / HV_HYP_PAGE_SIZE)
1757 #define HVPFN_UP(x) (((x) + HV_HYP_PAGE_SIZE-1) >> HV_HYP_PAGE_SHIFT)
/linux/drivers/net/hyperv/
A Drndis_filter.c29 #define RNDIS_EXT_LEN HV_HYP_PAGE_SIZE
243 if (pb[0].offset + pb[0].len > HV_HYP_PAGE_SIZE) { in rndis_filter_send_request()
245 pb[0].len = HV_HYP_PAGE_SIZE - in rndis_filter_send_request()
A Dnetvsc_drv.c385 bytes = HV_HYP_PAGE_SIZE - offset; in fill_pg_buf()
395 if (offset == HV_HYP_PAGE_SIZE && len) { in fill_pg_buf()
468 slots = DIV_ROUND_UP(offset + len, HV_HYP_PAGE_SIZE); in netvsc_get_slots()
/linux/drivers/pci/controller/
A Dpci-hyperv.c3079 BUILD_BUG_ON(sizeof(*hbus) > HV_HYP_PAGE_SIZE); in hv_pci_probe()
3103 hbus = kzalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); in hv_pci_probe()

Completed in 72 milliseconds