/Linux-v4.19/include/xen/ |
D | page.h | 9 #define XEN_PAGE_SIZE (_AC(1, UL) << XEN_PAGE_SHIFT) macro 10 #define XEN_PAGE_MASK (~(XEN_PAGE_SIZE-1)) 23 #define XEN_PFN_PER_PAGE (PAGE_SIZE / XEN_PAGE_SIZE) 26 #define XEN_PFN_UP(x) (((x) + XEN_PAGE_SIZE-1) >> XEN_PAGE_SHIFT)
|
D | grant_table.h | 285 len = min_t(unsigned int, XEN_PAGE_SIZE - (offset & ~XEN_PAGE_MASK), in gnttab_for_one_grant()
|
/Linux-v4.19/sound/xen/ |
D | xen_snd_front_shbuf.c | 50 #define XENSND_NUM_GREFS_PER_PAGE ((XEN_PAGE_SIZE - \ 81 ptr += XEN_PAGE_SIZE; in fill_page_dir() 113 XEN_PAGE_SIZE * i)); in grant_references() 126 XEN_PAGE_SIZE * i)); in grant_references() 148 buf->directory = kcalloc(num_pages_dir, XEN_PAGE_SIZE, GFP_KERNEL); in alloc_int_buffers() 152 buf->buffer_sz = num_pages_buffer * XEN_PAGE_SIZE; in alloc_int_buffers() 176 num_pages_buffer = DIV_ROUND_UP(buffer_sz, XEN_PAGE_SIZE); in xen_snd_front_shbuf_alloc()
|
D | xen_snd_front.c | 375 if (XEN_PAGE_SIZE != PAGE_SIZE) { in xen_drv_init() 377 XEN_PAGE_SIZE, PAGE_SIZE); in xen_drv_init()
|
/Linux-v4.19/arch/arm/xen/ |
D | mm.c | 54 xen_pfn = (handle >> XEN_PAGE_SHIFT) + offset / XEN_PAGE_SIZE; in dma_cache_maint() 55 offset %= XEN_PAGE_SIZE; in dma_cache_maint() 62 if (len + offset > XEN_PAGE_SIZE) in dma_cache_maint() 63 len = XEN_PAGE_SIZE - offset; in dma_cache_maint()
|
/Linux-v4.19/drivers/net/xen-netback/ |
D | common.h | 69 #define XEN_NETIF_TX_RING_SIZE __CONST_RING_SIZE(xen_netif_tx, XEN_PAGE_SIZE) 70 #define XEN_NETIF_RX_RING_SIZE __CONST_RING_SIZE(xen_netif_rx, XEN_PAGE_SIZE) 85 #define MAX_BUFFER_OFFSET XEN_PAGE_SIZE 92 #define MAX_XEN_SKB_FRAGS (65536 / XEN_PAGE_SIZE + 1)
|
D | rx.c | 46 needed = DIV_ROUND_UP(skb->len, XEN_PAGE_SIZE); in xenvif_rx_ring_slots_available() 340 chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset); in xenvif_rx_next_chunk() 341 chunk_len = min_t(size_t, chunk_len, XEN_PAGE_SIZE - in xenvif_rx_next_chunk() 372 } while (offset < XEN_PAGE_SIZE && pkt->remaining_len > 0); in xenvif_rx_data_slot()
|
D | hash.c | 347 len > XEN_PAGE_SIZE / sizeof(*mapping)) in xenvif_set_hash_mapping() 352 if (copy_op[0].dest.offset + copy_op[0].len > XEN_PAGE_SIZE) { in xenvif_set_hash_mapping() 354 copy_op[1].source.offset = XEN_PAGE_SIZE - copy_op[0].dest.offset; in xenvif_set_hash_mapping()
|
D | netback.c | 298 if (unlikely((txp->offset + txp->size) > XEN_PAGE_SIZE)) { in xenvif_count_requests() 890 if (unlikely((txreq.offset + txreq.size) > XEN_PAGE_SIZE)) { in xenvif_tx_build_gops() 1454 BACK_RING_INIT(&queue->tx, txs, XEN_PAGE_SIZE); in xenvif_map_frontend_data_rings() 1462 BACK_RING_INIT(&queue->rx, rxs, XEN_PAGE_SIZE); in xenvif_map_frontend_data_rings()
|
/Linux-v4.19/drivers/xen/ |
D | mem-reservation.c | 45 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in __xenmem_reservation_va_mapping_update() 76 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in __xenmem_reservation_va_mapping_reset()
|
D | biomerge.c | 10 #if XEN_PAGE_SIZE == PAGE_SIZE in xen_biovec_phys_mergeable()
|
D | arm-device.c | 35 nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE); in xen_unmap_device_mmio() 69 nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE); in xen_map_device_mmio()
|
D | grant-table.c | 741 vaddr = xen_remap(addr, XEN_PAGE_SIZE * max_nr_gframes); in gnttab_setup_auto_xlat_frames() 1000 glen = min_t(unsigned int, XEN_PAGE_SIZE - goffset, len); in gnttab_foreach_grant_in_range() 1025 fn(pfn_to_gfn(xen_pfn), goffset, XEN_PAGE_SIZE, data); in gnttab_foreach_grant() 1027 goffset += XEN_PAGE_SIZE; in gnttab_foreach_grant() 1293 .grefs_per_grant_frame = XEN_PAGE_SIZE / 1305 .grefs_per_grant_frame = XEN_PAGE_SIZE /
|
D | balloon.c | 367 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in reserve_additional_memory() 647 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in alloc_xenballooned_pages()
|
D | swiotlb-xen.c | 106 nr_pages = (offset + length + XEN_PAGE_SIZE-1) >> XEN_PAGE_SHIFT; in check_pages_physically_contiguous() 120 if (offset + size <= XEN_PAGE_SIZE) in range_straddles_page_boundary()
|
D | gntdev.c | 924 if (seg->source.foreign.offset + seg->len > XEN_PAGE_SIZE) in gntdev_grant_copy_seg() 928 if (seg->dest.foreign.offset + seg->len > XEN_PAGE_SIZE) in gntdev_grant_copy_seg() 961 len = min(len, (size_t)XEN_PAGE_SIZE - off); in gntdev_grant_copy_seg() 980 len = min(len, (size_t)XEN_PAGE_SIZE - off); in gntdev_grant_copy_seg()
|
/Linux-v4.19/include/xen/interface/io/ |
D | displif.h | 853 #define XENDISPL_EVENT_PAGE_SIZE XEN_PAGE_SIZE
|
D | sndif.h | 1072 #define XENSND_EVENT_PAGE_SIZE XEN_PAGE_SIZE
|
/Linux-v4.19/drivers/xen/xenbus/ |
D | xenbus_client.c | 377 vaddr = vaddr + XEN_PAGE_SIZE; in xenbus_grant_ring() 693 area = alloc_vm_area(XEN_PAGE_SIZE * nr_grefs, ptes); in xenbus_map_ring_valloc_pv() 759 addr = (unsigned long)vaddr + (XEN_PAGE_SIZE * i); in xenbus_unmap_ring_vfree_pv()
|
/Linux-v4.19/drivers/block/xen-blkback/ |
D | common.h | 60 #define XEN_PAGES_PER_SEGMENT (PAGE_SIZE / XEN_PAGE_SIZE) 63 (XEN_PAGE_SIZE/sizeof(struct blkif_request_segment))
|
D | xenbus.c | 208 XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map() 216 XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map() 224 XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
|
/Linux-v4.19/drivers/block/ |
D | xen-blkfront.c | 152 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * (info)->nr_ring_pages) 155 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * XENBUS_MAX_RING_GRANTS) 253 #define GRANTS_PER_PSEG (PAGE_SIZE / XEN_PAGE_SIZE) 256 (XEN_PAGE_SIZE / sizeof(struct blkif_request_segment)) 685 (BLKIF_MAX_SEGMENTS_PER_REQUEST * XEN_PAGE_SIZE) / 512; in blkif_setup_extra_req() 947 blk_queue_max_hw_sectors(rq, (segments * XEN_PAGE_SIZE) / 512); in blkif_set_queue_limits() 1334 free_pages((unsigned long)rinfo->ring.sring, get_order(info->nr_ring_pages * XEN_PAGE_SIZE)); in blkif_free_ring() 1675 unsigned long ring_size = info->nr_ring_pages * XEN_PAGE_SIZE; in setup_blkring()
|
/Linux-v4.19/drivers/tty/hvc/ |
D | hvc_xen.c | 221 info->intf = xen_remap(gfn << XEN_PAGE_SHIFT, XEN_PAGE_SIZE); in xen_hvm_console_init() 470 memset(info->intf, 0, XEN_PAGE_SIZE); in xencons_resume()
|
/Linux-v4.19/drivers/net/ |
D | xen-netfront.c | 78 #define NET_TX_RING_SIZE __CONST_RING_SIZE(xen_netif_tx, XEN_PAGE_SIZE) 79 #define NET_RX_RING_SIZE __CONST_RING_SIZE(xen_netif_rx, XEN_PAGE_SIZE) 566 #define MAX_XEN_SKB_FRAGS (65536 / XEN_PAGE_SIZE + 1) 806 rx->offset + rx->status > XEN_PAGE_SIZE)) { in xennet_get_responses() 1554 FRONT_RING_INIT(&queue->tx, txs, XEN_PAGE_SIZE); in setup_netfront() 1568 FRONT_RING_INIT(&queue->rx, rxs, XEN_PAGE_SIZE); in setup_netfront()
|
/Linux-v4.19/drivers/gpu/drm/xen/ |
D | xen_drm_front.c | 812 if (XEN_PAGE_SIZE != PAGE_SIZE) { in xen_drv_init() 814 XEN_PAGE_SIZE, PAGE_SIZE); in xen_drv_init()
|