Lines Matching refs:powermode
37 static int get_power_mode(enum bmp5_powermode *powermode, const struct device *dev);
38 static int set_power_mode(enum bmp5_powermode powermode, const struct device *dev);
40 static int set_power_mode(enum bmp5_powermode powermode, const struct device *dev) in set_power_mode() argument
80 switch (powermode) { in set_power_mode()
94 odr = BMP5_SET_BITS_POS_0(odr, BMP5_POWERMODE, powermode); in set_power_mode()
106 static int get_power_mode(enum bmp5_powermode *powermode, const struct device *dev) in get_power_mode() argument
111 CHECKIF(powermode == NULL || dev == NULL) { in get_power_mode()
138 *powermode = BMP5_POWERMODE_DEEP_STANDBY; in get_power_mode()
140 *powermode = BMP5_POWERMODE_STANDBY; in get_power_mode()
146 *powermode = BMP5_POWERMODE_NORMAL; in get_power_mode()
149 *powermode = BMP5_POWERMODE_FORCED; in get_power_mode()
152 *powermode = BMP5_POWERMODE_CONTINUOUS; in get_power_mode()
488 enum bmp5_powermode powermode = (enum bmp5_powermode)val->val1; in bmp581_attr_set() local
490 ret = set_power_mode(powermode, dev); in bmp581_attr_set()