Lines Matching refs:dbr_id
1290 static void ath11k_debugfs_dbr_dbg_destroy(struct ath11k *ar, int dbr_id) in ath11k_debugfs_dbr_dbg_destroy() argument
1295 if (!ar->debug.dbr_debug[dbr_id]) in ath11k_debugfs_dbr_dbg_destroy()
1298 dbr_debug = ar->debug.dbr_debug[dbr_id]; in ath11k_debugfs_dbr_dbg_destroy()
1304 ar->debug.dbr_debug[dbr_id] = NULL; in ath11k_debugfs_dbr_dbg_destroy()
1307 static int ath11k_debugfs_dbr_dbg_init(struct ath11k *ar, int dbr_id) in ath11k_debugfs_dbr_dbg_init() argument
1313 if (ar->debug.dbr_debug[dbr_id]) in ath11k_debugfs_dbr_dbg_init()
1316 ar->debug.dbr_debug[dbr_id] = kzalloc(sizeof(*dbr_debug), in ath11k_debugfs_dbr_dbg_init()
1319 if (!ar->debug.dbr_debug[dbr_id]) in ath11k_debugfs_dbr_dbg_init()
1322 dbr_debug = ar->debug.dbr_debug[dbr_id]; in ath11k_debugfs_dbr_dbg_init()
1328 dbr_debug->dbr_debugfs = debugfs_create_dir(dbr_id_to_str[dbr_id], in ath11k_debugfs_dbr_dbg_init()
1359 u32 dbr_id, enable; in ath11k_debugfs_write_enable_dbr_dbg() local
1374 ret = sscanf(buf, "%u %u", &dbr_id, &enable); in ath11k_debugfs_write_enable_dbr_dbg()
1375 if (ret != 2 || dbr_id > 1 || enable > 1) { in ath11k_debugfs_write_enable_dbr_dbg()
1382 ret = ath11k_debugfs_dbr_dbg_init(ar, dbr_id); in ath11k_debugfs_write_enable_dbr_dbg()
1389 ath11k_debugfs_dbr_dbg_destroy(ar, dbr_id); in ath11k_debugfs_write_enable_dbr_dbg()