Lines Matching refs:db
1174 struct o2hb_debug_buf *db = inode->i_private; in o2hb_debug_open() local
1183 BUG_ON(sizeof(map) < db->db_size); in o2hb_debug_open()
1189 switch (db->db_type) { in o2hb_debug_open()
1195 memcpy(map, db->db_data, db->db_size); in o2hb_debug_open()
1201 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1202 memcpy(map, reg->hr_live_node_bitmap, db->db_size); in o2hb_debug_open()
1207 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1213 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1222 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1231 while ((i = find_next_bit(map, db->db_len, i + 1)) < db->db_len) in o2hb_debug_open()
1294 struct o2hb_debug_buf **db, int db_len, in o2hb_debug_create() argument
1297 *db = kmalloc(db_len, GFP_KERNEL); in o2hb_debug_create()
1298 if (!*db) in o2hb_debug_create()
1301 (*db)->db_type = type; in o2hb_debug_create()
1302 (*db)->db_size = size; in o2hb_debug_create()
1303 (*db)->db_len = len; in o2hb_debug_create()
1304 (*db)->db_data = data; in o2hb_debug_create()
1306 return debugfs_create_file(name, S_IFREG|S_IRUSR, dir, *db, in o2hb_debug_create()