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