Searched refs:mode_map (Results 1 – 3 of 3) sorted by relevance
89 static struct lm3530_mode_map mode_map[] = { variable148 for (i = 0; i < ARRAY_SIZE(mode_map); i++) in lm3530_get_mode_from_str()149 if (sysfs_streq(str, mode_map[i].mode)) in lm3530_get_mode_from_str()150 return mode_map[i].mode_val; in lm3530_get_mode_from_str()357 for (i = 0; i < ARRAY_SIZE(mode_map); i++) in lm3530_mode_get()358 if (drvdata->mode == mode_map[i].mode_val) in lm3530_mode_get()359 len += sprintf(buf + len, "[%s] ", mode_map[i].mode); in lm3530_mode_get()361 len += sprintf(buf + len, "%s ", mode_map[i].mode); in lm3530_mode_get()
140 static const struct mode_map { struct224 const struct mode_map *map; in mac_vmode_to_var()306 const struct mode_map *map; in mac_var_to_vmode()
107 static const u8 mode_map[] = { in rf69_set_mode() local115 if (unlikely(mode >= ARRAY_SIZE(mode_map))) { in rf69_set_mode()121 mode_map[mode]); in rf69_set_mode()