Lines Matching refs:db
1269 struct o2hb_debug_buf *db = inode->i_private; in o2hb_debug_open() local
1278 BUG_ON(sizeof(map) < db->db_size); in o2hb_debug_open()
1284 switch (db->db_type) { in o2hb_debug_open()
1290 memcpy(map, db->db_data, db->db_size); in o2hb_debug_open()
1296 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1297 memcpy(map, reg->hr_live_node_bitmap, db->db_size); in o2hb_debug_open()
1302 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1308 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1317 reg = (struct o2hb_region *)db->db_data; in o2hb_debug_open()
1326 while ((i = find_next_bit(map, db->db_len, i + 1)) < db->db_len) in o2hb_debug_open()
1385 struct o2hb_debug_buf **db, int db_len, int type, in o2hb_debug_create() argument
1388 *db = kmalloc(db_len, GFP_KERNEL); in o2hb_debug_create()
1389 if (!*db) in o2hb_debug_create()
1392 (*db)->db_type = type; in o2hb_debug_create()
1393 (*db)->db_size = size; in o2hb_debug_create()
1394 (*db)->db_len = len; in o2hb_debug_create()
1395 (*db)->db_data = data; in o2hb_debug_create()
1397 debugfs_create_file(name, S_IFREG|S_IRUSR, dir, *db, &o2hb_debug_fops); in o2hb_debug_create()