Lines Matching refs:bytes
29 void *buffer, unsigned long bytes) in xencomm_init() argument
34 while ((recorded < bytes) && (i < desc->nr_addrs)) { in xencomm_init()
41 chunksz = min(PAGE_SIZE - offset, bytes - recorded); in xencomm_init()
54 if (recorded < bytes) { in xencomm_init()
57 __func__, recorded, bytes); in xencomm_init()
71 void *buffer, unsigned long bytes) in xencomm_alloc() argument
76 unsigned long end = (buffer_ulong + bytes) | ~PAGE_MASK; in xencomm_alloc()
120 static int xencomm_create(void *buffer, unsigned long bytes, in xencomm_create() argument
126 pr_debug("%s: %p[%ld]\n", __func__, buffer, bytes); in xencomm_create()
128 if (bytes == 0) { in xencomm_create()
137 desc = xencomm_alloc(gfp_mask, buffer, bytes); in xencomm_create()
143 rc = xencomm_init(desc, buffer, bytes); in xencomm_create()
167 unsigned long bytes, struct xencomm_mini *xc_desc, in xencomm_create_mini() argument
178 rc = xencomm_init(desc, buffer, bytes); in xencomm_create_mini()
185 struct xencomm_handle *xencomm_map(void *ptr, unsigned long bytes) in xencomm_map() argument
193 rc = xencomm_create(ptr, bytes, &desc, GFP_KERNEL); in xencomm_map()
201 struct xencomm_handle *__xencomm_map_no_alloc(void *ptr, unsigned long bytes, in __xencomm_map_no_alloc() argument
210 rc = xencomm_create_mini(ptr, bytes, xc_desc, in __xencomm_map_no_alloc()