Lines Matching refs:map
43 static inline void __ocfs2_node_map_set_bit(struct ocfs2_node_map *map,
45 static inline void __ocfs2_node_map_clear_bit(struct ocfs2_node_map *map,
50 static void ocfs2_node_map_init(struct ocfs2_node_map *map) in ocfs2_node_map_init() argument
52 map->num_nodes = OCFS2_NODE_MAP_MAX_NODES; in ocfs2_node_map_init()
53 memset(map->map, 0, BITS_TO_LONGS(OCFS2_NODE_MAP_MAX_NODES) * in ocfs2_node_map_init()
84 static inline void __ocfs2_node_map_set_bit(struct ocfs2_node_map *map, in __ocfs2_node_map_set_bit() argument
87 set_bit(bit, map->map); in __ocfs2_node_map_set_bit()
91 struct ocfs2_node_map *map, in ocfs2_node_map_set_bit() argument
96 BUG_ON(bit >= map->num_nodes); in ocfs2_node_map_set_bit()
98 __ocfs2_node_map_set_bit(map, bit); in ocfs2_node_map_set_bit()
102 static inline void __ocfs2_node_map_clear_bit(struct ocfs2_node_map *map, in __ocfs2_node_map_clear_bit() argument
105 clear_bit(bit, map->map); in __ocfs2_node_map_clear_bit()
109 struct ocfs2_node_map *map, in ocfs2_node_map_clear_bit() argument
114 BUG_ON(bit >= map->num_nodes); in ocfs2_node_map_clear_bit()
116 __ocfs2_node_map_clear_bit(map, bit); in ocfs2_node_map_clear_bit()
121 struct ocfs2_node_map *map, in ocfs2_node_map_test_bit() argument
125 if (bit >= map->num_nodes) { in ocfs2_node_map_test_bit()
126 mlog(ML_ERROR, "bit=%d map->num_nodes=%d\n", bit, map->num_nodes); in ocfs2_node_map_test_bit()
130 ret = test_bit(bit, map->map); in ocfs2_node_map_test_bit()