Home
last modified time | relevance | path

Searched refs:mode_map (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/leds/
Dleds-lm3530.c89 static struct lm3530_mode_map mode_map[] = { variable
148 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()
/Linux-v5.10/drivers/video/fbdev/
Dmacmodes.c140 static const struct mode_map { struct
224 const struct mode_map *map; in mac_vmode_to_var()
306 const struct mode_map *map; in mac_var_to_vmode()
/Linux-v5.10/drivers/staging/pi433/
Drf69.c107 static const u8 mode_map[] = { in rf69_set_mode() local
115 if (unlikely(mode >= ARRAY_SIZE(mode_map))) { in rf69_set_mode()
121 mode_map[mode]); in rf69_set_mode()