Lines Matching refs:sps30_state
51 static int sps30_serial_xfer(struct sps30_state *state, const unsigned char *buf, size_t size) in sps30_serial_xfer()
156 static bool sps30_serial_frame_valid(struct sps30_state *state, const unsigned char *buf) in sps30_serial_frame_valid()
190 static int sps30_serial_command(struct sps30_state *state, unsigned char cmd, in sps30_serial_command()
218 struct sps30_state *state; in sps30_serial_receive_buf()
275 static int sps30_serial_start_meas(struct sps30_state *state) in sps30_serial_start_meas()
283 static int sps30_serial_stop_meas(struct sps30_state *state) in sps30_serial_stop_meas()
288 static int sps30_serial_reset(struct sps30_state *state) in sps30_serial_reset()
298 static int sps30_serial_read_meas(struct sps30_state *state, __be32 *meas, size_t num) in sps30_serial_read_meas()
318 static int sps30_serial_clean_fan(struct sps30_state *state) in sps30_serial_clean_fan()
323 static int sps30_serial_read_cleaning_period(struct sps30_state *state, __be32 *period) in sps30_serial_read_cleaning_period()
338 static int sps30_serial_write_cleaning_period(struct sps30_state *state, __be32 period) in sps30_serial_write_cleaning_period()
347 static int sps30_serial_show_info(struct sps30_state *state) in sps30_serial_show_info()