Home
last modified time | relevance | path

Searched refs:XEN_PAGE_SIZE (Results 1 – 25 of 27) sorted by relevance

12

/linux/include/xen/
H A Dpage.h9 #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)
/linux/drivers/xen/
H A Dmem-reservation.c46 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in __xenmem_reservation_va_mapping_update()
72 BUILD_BUG_ON(XEN_PAGE_SIZE != PAGE_SIZE); in __xenmem_reservation_va_mapping_reset()
H A Darm-device.c24 nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE); in xen_unmap_device_mmio()
58 nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE); in xen_map_device_mmio()
H A Dbiomerge.c11 #if XEN_PAGE_SIZE == PAGE_SIZE in xen_biovec_phys_mergeable()
H A Dgrant-table.c829 vaddr = memremap(addr, XEN_PAGE_SIZE * max_nr_gframes, MEMREMAP_WB); in gnttab_setup_auto_xlat_frames()
1214 glen = min_t(unsigned int, XEN_PAGE_SIZE - goffset, len); in gnttab_foreach_grant_in_range()
1239 fn(pfn_to_gfn(xen_pfn), goffset, XEN_PAGE_SIZE, data); in gnttab_foreach_grant()
1241 goffset += XEN_PAGE_SIZE; in gnttab_foreach_grant()
1506 .grefs_per_grant_frame = XEN_PAGE_SIZE /
1517 .grefs_per_grant_frame = XEN_PAGE_SIZE /
H A Dswiotlb-xen.c152 size = ALIGN(size, XEN_PAGE_SIZE); in xen_swiotlb_alloc_coherent()
185 size = ALIGN(size, XEN_PAGE_SIZE); in xen_swiotlb_free_coherent()
H A Dgntdev.c882 if (seg->source.foreign.offset + seg->len > XEN_PAGE_SIZE) in gntdev_grant_copy_seg()
886 if (seg->dest.foreign.offset + seg->len > XEN_PAGE_SIZE) in gntdev_grant_copy_seg()
919 len = min(len, (size_t)XEN_PAGE_SIZE - off); in gntdev_grant_copy_seg()
939 len = min(len, (size_t)XEN_PAGE_SIZE - off); in gntdev_grant_copy_seg()
H A Dpvcalls-front.c22 #define PVCALLS_NR_RSP_PER_RING __CONST_RING_SIZE(xen_pvcalls, XEN_PAGE_SIZE)
1266 FRONT_RING_INIT(&bedata->ring, sring, XEN_PAGE_SIZE); in pvcalls_front_probe()
/linux/arch/arm/xen/
H A Dmm.c57 if (size + cflush.offset > XEN_PAGE_SIZE) in dma_cache_maint()
58 cflush.length = XEN_PAGE_SIZE - cflush.offset; in dma_cache_maint()
/linux/drivers/net/xen-netback/
H A Dcommon.h68 #define XEN_NETIF_TX_RING_SIZE __CONST_RING_SIZE(xen_netif_tx, XEN_PAGE_SIZE)
69 #define XEN_NETIF_RX_RING_SIZE __CONST_RING_SIZE(xen_netif_rx, XEN_PAGE_SIZE)
89 #define MAX_XEN_SKB_FRAGS (65536 / XEN_PAGE_SIZE + 1)
H A Drx.c48 needed = DIV_ROUND_UP(skb->len, XEN_PAGE_SIZE); in xenvif_update_needed_slots()
379 chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset); in xenvif_rx_next_chunk()
380 chunk_len = min_t(size_t, chunk_len, XEN_PAGE_SIZE - in xenvif_rx_next_chunk()
411 } while (offset < XEN_PAGE_SIZE && pkt->remaining_len > 0); in xenvif_rx_data_slot()
H A Dhash.c348 len > XEN_PAGE_SIZE / sizeof(*mapping)) in xenvif_set_hash_mapping()
353 if (copy_op[0].dest.offset + copy_op[0].len > XEN_PAGE_SIZE) { in xenvif_set_hash_mapping()
355 copy_op[1].source.offset = XEN_PAGE_SIZE - copy_op[0].dest.offset; in xenvif_set_hash_mapping()
H A Dnetback.c308 if (unlikely((txp->offset + txp->size) > XEN_PAGE_SIZE)) { in xenvif_count_requests()
419 if (cop->dest.offset + amount > XEN_PAGE_SIZE) { in xenvif_get_requests()
420 amount = XEN_PAGE_SIZE - cop->dest.offset; in xenvif_get_requests()
1017 if (unlikely((txreq.offset + txreq.size) > XEN_PAGE_SIZE)) { in xenvif_tx_build_gops()
1560 BACK_RING_ATTACH(&queue->tx, txs, rsp_prod, XEN_PAGE_SIZE); in xenvif_map_frontend_data_rings()
1575 BACK_RING_ATTACH(&queue->rx, rxs, rsp_prod, XEN_PAGE_SIZE); in xenvif_map_frontend_data_rings()
/linux/drivers/xen/xenbus/
H A Dxenbus_client.c398 unsigned long ring_size = nr_pages * XEN_PAGE_SIZE; in xenbus_setup_ring()
429 addr += XEN_PAGE_SIZE; in xenbus_setup_ring()
467 free_pages_exact(*vaddr, nr_pages * XEN_PAGE_SIZE); in xenbus_teardown_ring()
771 area = get_vm_area(XEN_PAGE_SIZE * nr_grefs, VM_IOREMAP); in xenbus_map_ring_pv()
775 XEN_PAGE_SIZE * nr_grefs, map_ring_apply, info)) in xenbus_map_ring_pv()
834 addr = (unsigned long)vaddr + (XEN_PAGE_SIZE * i); in xenbus_unmap_ring_pv()
/linux/drivers/block/xen-blkback/
H A Dcommon.h59 #define XEN_PAGES_PER_SEGMENT (PAGE_SIZE / XEN_PAGE_SIZE)
62 (XEN_PAGE_SIZE/sizeof(struct blkif_request_segment))
H A Dxenbus.c220 rsp_prod, XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
221 size = __RING_SIZE(sring_native, XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
230 rsp_prod, XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
231 size = __RING_SIZE(sring_x86_32, XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
240 rsp_prod, XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
241 size = __RING_SIZE(sring_x86_64, XEN_PAGE_SIZE * nr_grefs); in xen_blkif_map()
H A Dblkback.c948 if (last_sect >= (XEN_PAGE_SIZE >> 9) || last_sect < first_sect) { in xen_blkbk_parse_indirect()
1370 if ((req->u.rw.seg[i].last_sect >= (XEN_PAGE_SIZE >> 9)) || in dispatch_rw_block_io()
/linux/drivers/net/
H A Dxen-netfront.c85 #define NET_TX_RING_SIZE __CONST_RING_SIZE(xen_netif_tx, XEN_PAGE_SIZE)
86 #define NET_RX_RING_SIZE __CONST_RING_SIZE(xen_netif_rx, XEN_PAGE_SIZE)
681 XEN_PAGE_SIZE); in bounce_skb()
687 if (!IS_ALIGNED((uintptr_t)n->head, XEN_PAGE_SIZE)) { in bounce_skb()
704 #define MAX_XEN_SKB_FRAGS (65536 / XEN_PAGE_SIZE + 1)
976 xdp_init_buff(xdp, XEN_PAGE_SIZE - XDP_PACKET_HEADROOM, in xennet_run_xdp()
1067 rx->offset + rx->status > XEN_PAGE_SIZE)) { in xennet_get_responses()
1627 unsigned long max_mtu = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM; in xennet_xdp_set()
1992 XEN_FRONT_RING_INIT(&queue->tx, txs, XEN_PAGE_SIZE); in setup_netfront()
1999 XEN_FRONT_RING_INIT(&queue->rx, rxs, XEN_PAGE_SIZE); in setup_netfront()
[all …]
/linux/include/xen/interface/io/
H A Ddisplif.h921 #define XENDISPL_EVENT_PAGE_SIZE XEN_PAGE_SIZE
H A Dsndif.h1055 #define XENSND_EVENT_PAGE_SIZE XEN_PAGE_SIZE
/linux/drivers/block/
H A Dxen-blkfront.c160 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * (info)->nr_ring_pages)
262 #define GRANTS_PER_PSEG (PAGE_SIZE / XEN_PAGE_SIZE)
265 (XEN_PAGE_SIZE / sizeof(struct blkif_request_segment))
696 (BLKIF_MAX_SEGMENTS_PER_REQUEST * XEN_PAGE_SIZE) / 512; in blkif_setup_extra_req()
971 lim->max_hw_sectors = (segments * XEN_PAGE_SIZE) / 512; in blkif_set_queue_limits()
1686 unsigned long ring_size = info->nr_ring_pages * XEN_PAGE_SIZE; in setup_blkring()
/linux/drivers/gpu/drm/xen/
H A Dxen_drm_front.c763 if (XEN_PAGE_SIZE != PAGE_SIZE) { in xen_drv_init()
765 XEN_PAGE_SIZE, PAGE_SIZE); in xen_drv_init()
H A Dxen_drm_front_evtchnl.c181 XEN_FRONT_RING_INIT(&evtchnl->u.req.ring, sring, XEN_PAGE_SIZE); in evtchnl_alloc()
/linux/drivers/xen/events/
H A Devents_fifo.c57 #define EVENT_WORDS_PER_PAGE (XEN_PAGE_SIZE / sizeof(event_word_t))
/linux/sound/xen/
H A Dxen_snd_front_evtchnl.c226 XEN_FRONT_RING_INIT(&channel->u.req.ring, sring, XEN_PAGE_SIZE); in evtchnl_alloc()

12