Lines Matching refs:cache
345 #define BLOCKHEAD(cache) ((struct block_head *) cache) argument
347 #define KEY(cache) ((struct key *) ((char *) cache + BLKH_SIZE)) argument
348 #define DC(cache) ((struct disk_child *) \ argument
349 ((char *) cache + BLKH_SIZE + KEY_SIZE * nr_item))
683 char* cache = CACHE(depth); in read_tree_node() local
691 return cache; in read_tree_node()
694 cache = CACHE(num_cached); in read_tree_node()
700 if (! block_read (ffi, blockNr, 0, INFO->blocksize, cache)) in read_tree_node()
703 if (BLOCKHEAD (cache)->blk_level != depth) in read_tree_node()
710 return cache; in read_tree_node()
721 char *cache; in next_key() local
755 cache = ROOT; in next_key()
757 cache = CACHE (depth); in next_key()
760 cache = read_tree_node (ffi, INFO->blocks[depth], depth); in next_key()
761 if (! cache) in next_key()
767 int nr_item = BLOCKHEAD (cache)->blk_nr_item; in next_key()
776 cache = read_tree_node (ffi, DC (cache)[key_nr].dc_block_number, --depth); in next_key()
777 if (! cache) in next_key()
811 char *cache; in search_stat() local
821 cache = ROOT; in search_stat()
826 nr_item = BLOCKHEAD (cache)->blk_nr_item; in search_stat()
828 key = KEY (cache); in search_stat()
846 cache = read_tree_node (ffi, DC (cache)[i].dc_block_number, --depth); in search_stat()
847 if (! cache) in search_stat()