Lines Matching refs:handle

128 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle)  in zbud_zpool_evict()  argument
131 return pool->zpool_ops->evict(pool->zpool, handle); in zbud_zpool_evict()
160 unsigned long *handle) in zbud_zpool_malloc() argument
162 return zbud_alloc(pool, size, gfp, handle); in zbud_zpool_malloc()
164 static void zbud_zpool_free(void *pool, unsigned long handle) in zbud_zpool_free() argument
166 zbud_free(pool, handle); in zbud_zpool_free()
188 static void *zbud_zpool_map(void *pool, unsigned long handle, in zbud_zpool_map() argument
191 return zbud_map(pool, handle); in zbud_zpool_map()
193 static void zbud_zpool_unmap(void *pool, unsigned long handle) in zbud_zpool_unmap() argument
195 zbud_unmap(pool, handle); in zbud_zpool_unmap()
261 unsigned long handle; in encode_handle() local
269 handle = (unsigned long)zhdr; in encode_handle()
272 handle += ZHDR_SIZE_ALIGNED; in encode_handle()
274 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
275 return handle; in encode_handle()
279 static struct zbud_header *handle_to_zbud_header(unsigned long handle) in handle_to_zbud_header() argument
281 return (struct zbud_header *)(handle & PAGE_MASK); in handle_to_zbud_header()
354 unsigned long *handle) in zbud_alloc() argument
413 *handle = encode_handle(zhdr, bud); in zbud_alloc()
429 void zbud_free(struct zbud_pool *pool, unsigned long handle) in zbud_free() argument
435 zhdr = handle_to_zbud_header(handle); in zbud_free()
438 if ((handle - ZHDR_SIZE_ALIGNED) & ~PAGE_MASK) in zbud_free()
586 void *zbud_map(struct zbud_pool *pool, unsigned long handle) in zbud_map() argument
588 return (void *)(handle); in zbud_map()
596 void zbud_unmap(struct zbud_pool *pool, unsigned long handle) in zbud_unmap() argument