Lines Matching refs:user_desc
219 orangefs_bufmap_alloc(struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_alloc() argument
227 bufmap->total_size = user_desc->total_size; in orangefs_bufmap_alloc()
228 bufmap->desc_count = user_desc->count; in orangefs_bufmap_alloc()
229 bufmap->desc_size = user_desc->size; in orangefs_bufmap_alloc()
265 struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_map() argument
271 ret = get_user_pages_fast((unsigned long)user_desc->ptr, in orangefs_bufmap_map()
302 (user_desc->ptr + (i * pages_per_desc * PAGE_SIZE)); in orangefs_bufmap_map()
316 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc) in orangefs_bufmap_initialize() argument
324 user_desc->ptr, in orangefs_bufmap_initialize()
325 user_desc->size, in orangefs_bufmap_initialize()
326 user_desc->count); in orangefs_bufmap_initialize()
328 if (user_desc->total_size < 0 || in orangefs_bufmap_initialize()
329 user_desc->size < 0 || in orangefs_bufmap_initialize()
330 user_desc->count < 0) in orangefs_bufmap_initialize()
337 if (PAGE_ALIGN((unsigned long)user_desc->ptr) != in orangefs_bufmap_initialize()
338 (unsigned long)user_desc->ptr) { in orangefs_bufmap_initialize()
340 user_desc->ptr); in orangefs_bufmap_initialize()
344 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize()
345 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize()
347 user_desc->ptr, in orangefs_bufmap_initialize()
348 user_desc->total_size); in orangefs_bufmap_initialize()
352 if (user_desc->total_size != (user_desc->size * user_desc->count)) { in orangefs_bufmap_initialize()
354 user_desc->total_size, in orangefs_bufmap_initialize()
355 user_desc->size, in orangefs_bufmap_initialize()
356 user_desc->count); in orangefs_bufmap_initialize()
360 if ((user_desc->size % PAGE_SIZE) != 0) { in orangefs_bufmap_initialize()
362 user_desc->size); in orangefs_bufmap_initialize()
367 bufmap = orangefs_bufmap_alloc(user_desc); in orangefs_bufmap_initialize()
371 ret = orangefs_bufmap_map(bufmap, user_desc); in orangefs_bufmap_initialize()