Lines Matching refs:to_dev
27 static struct device *to_dev(struct arena_info *arena) in to_dev() function
68 dev_WARN_ONCE(to_dev(arena), !IS_ALIGNED(arena->infooff, 512), in btt_info_write()
70 dev_WARN_ONCE(to_dev(arena), !IS_ALIGNED(arena->info2off, 512), in btt_info_write()
100 dev_err_ratelimited(to_dev(arena), in __btt_map_write()
141 dev_err_ratelimited(to_dev(arena), in btt_map_write()
159 dev_err_ratelimited(to_dev(arena), in btt_map_read()
340 dev_err(to_dev(arena), in btt_log_read()
423 dev_WARN_ONCE(to_dev(arena), !IS_ALIGNED(arena->mapoff, 512), in btt_map_init()
429 dev_WARN_ONCE(to_dev(arena), size < 512, in btt_map_init()
467 dev_WARN_ONCE(to_dev(arena), !IS_ALIGNED(arena->logoff, 512), in btt_log_init()
473 dev_WARN_ONCE(to_dev(arena), size < 512, in btt_log_init()
568 dev_err_ratelimited(to_dev(arena), in btt_freelist_init()
710 dev_err(to_dev(arena), "Found an unknown padding scheme\n"); in log_set_indices()
716 dev_dbg(to_dev(arena), "log_index_0 = %d\n", log_index[0]); in log_set_indices()
717 dev_dbg(to_dev(arena), "log_index_1 = %d\n", log_index[1]); in log_set_indices()
876 dev_info(to_dev(arena), "No existing arenas\n"); in discover_arenas()
879 dev_err(to_dev(arena), in discover_arenas()
891 dev_err(to_dev(arena), in discover_arenas()
1264 dev_warn_ratelimited(to_dev(arena), in btt_read_pg()