• Home
  • Raw
  • Download

Lines Matching refs:handle

78 	int (*evict)(struct zbud_pool *pool, unsigned long handle);
176 unsigned long handle; in encode_handle() local
184 handle = (unsigned long)zhdr; in encode_handle()
187 handle += ZHDR_SIZE_ALIGNED; in encode_handle()
189 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
190 return handle; in encode_handle()
194 static struct zbud_header *handle_to_zbud_header(unsigned long handle) in handle_to_zbud_header() argument
196 return (struct zbud_header *)(handle & PAGE_MASK); in handle_to_zbud_header()
269 unsigned long *handle) in zbud_alloc() argument
327 *handle = encode_handle(zhdr, bud); in zbud_alloc()
343 static void zbud_free(struct zbud_pool *pool, unsigned long handle) in zbud_free() argument
349 zhdr = handle_to_zbud_header(handle); in zbud_free()
352 if ((handle - ZHDR_SIZE_ALIGNED) & ~PAGE_MASK) in zbud_free()
497 static void *zbud_map(struct zbud_pool *pool, unsigned long handle) in zbud_map() argument
499 return (void *)(handle); in zbud_map()
507 static void zbud_unmap(struct zbud_pool *pool, unsigned long handle) in zbud_unmap() argument
527 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle) in zbud_zpool_evict() argument
530 return pool->zpool_ops->evict(pool->zpool, handle); in zbud_zpool_evict()
559 unsigned long *handle) in zbud_zpool_malloc() argument
561 return zbud_alloc(pool, size, gfp, handle); in zbud_zpool_malloc()
563 static void zbud_zpool_free(void *pool, unsigned long handle) in zbud_zpool_free() argument
565 zbud_free(pool, handle); in zbud_zpool_free()
587 static void *zbud_zpool_map(void *pool, unsigned long handle, in zbud_zpool_map() argument
590 return zbud_map(pool, handle); in zbud_zpool_map()
592 static void zbud_zpool_unmap(void *pool, unsigned long handle) in zbud_zpool_unmap() argument
594 zbud_unmap(pool, handle); in zbud_zpool_unmap()