• Home
  • Raw
  • Download

Lines Matching refs:handle

124 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle)  in zbud_zpool_evict()  argument
126 return zpool_evict(pool, handle); in zbud_zpool_evict()
145 unsigned long *handle) in zbud_zpool_malloc() argument
147 return zbud_alloc(pool, size, gfp, handle); in zbud_zpool_malloc()
149 static void zbud_zpool_free(void *pool, unsigned long handle) in zbud_zpool_free() argument
151 zbud_free(pool, handle); in zbud_zpool_free()
173 static void *zbud_zpool_map(void *pool, unsigned long handle, in zbud_zpool_map() argument
176 return zbud_map(pool, handle); in zbud_zpool_map()
178 static void zbud_zpool_unmap(void *pool, unsigned long handle) in zbud_zpool_unmap() argument
180 zbud_unmap(pool, handle); in zbud_zpool_unmap()
246 unsigned long handle; in encode_handle() local
254 handle = (unsigned long)zhdr; in encode_handle()
257 handle += ZHDR_SIZE_ALIGNED; in encode_handle()
259 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
260 return handle; in encode_handle()
264 static struct zbud_header *handle_to_zbud_header(unsigned long handle) in handle_to_zbud_header() argument
266 return (struct zbud_header *)(handle & PAGE_MASK); in handle_to_zbud_header()
339 unsigned long *handle) in zbud_alloc() argument
398 *handle = encode_handle(zhdr, bud); in zbud_alloc()
414 void zbud_free(struct zbud_pool *pool, unsigned long handle) in zbud_free() argument
420 zhdr = handle_to_zbud_header(handle); in zbud_free()
423 if ((handle - ZHDR_SIZE_ALIGNED) & ~PAGE_MASK) in zbud_free()
571 void *zbud_map(struct zbud_pool *pool, unsigned long handle) in zbud_map() argument
573 return (void *)(handle); in zbud_map()
581 void zbud_unmap(struct zbud_pool *pool, unsigned long handle) in zbud_unmap() argument