Home
last modified time | relevance | path

Searched refs:sps30_state (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/iio/chemical/
H A Dsps30.h7 struct sps30_state;
9 int (*start_meas)(struct sps30_state *state);
10 int (*stop_meas)(struct sps30_state *state);
11 int (*read_meas)(struct sps30_state *state, __be32 *meas, size_t num);
12 int (*reset)(struct sps30_state *state);
13 int (*clean_fan)(struct sps30_state *state);
14 int (*read_cleaning_period)(struct sps30_state *state, __be32 *period);
15 int (*write_cleaning_period)(struct sps30_state *state, __be32 period);
16 int (*show_info)(struct sps30_state *state);
19 struct sps30_state { struct
H A Dsps30_i2c.c37 static int sps30_i2c_xfer(struct sps30_state *state, unsigned char *txbuf, size_t txsize, in sps30_i2c_xfer()
65 static int sps30_i2c_command(struct sps30_state *state, u16 cmd, void *arg, size_t arg_size, in sps30_i2c_command()
123 static int sps30_i2c_start_meas(struct sps30_state *state) in sps30_i2c_start_meas()
131 static int sps30_i2c_stop_meas(struct sps30_state *state) in sps30_i2c_stop_meas()
136 static int sps30_i2c_reset(struct sps30_state *state) in sps30_i2c_reset()
153 static bool sps30_i2c_meas_ready(struct sps30_state *state) in sps30_i2c_meas_ready()
165 static int sps30_i2c_read_meas(struct sps30_state *state, __be32 *meas, size_t num) in sps30_i2c_read_meas()
177 static int sps30_i2c_clean_fan(struct sps30_state *state) in sps30_i2c_clean_fan()
182 static int sps30_i2c_read_cleaning_period(struct sps30_state *state, __be32 *period) in sps30_i2c_read_cleaning_period()
187 static int sps30_i2c_write_cleaning_period(struct sps30_state *state, __be32 period) in sps30_i2c_write_cleaning_period()
[all …]
H A Dsps30_serial.c51 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()
[all …]
H A Dsps30.c68 static int sps30_do_meas(struct sps30_state *state, s32 *data, int size) in sps30_do_meas()
90 static int sps30_do_reset(struct sps30_state *state) in sps30_do_reset()
107 struct sps30_state *state = iio_priv(indio_dev); in sps30_trigger_handler()
132 struct sps30_state *state = iio_priv(indio_dev); in sps30_read_raw()
194 struct sps30_state *state = iio_priv(indio_dev); in start_cleaning_store()
214 struct sps30_state *state = iio_priv(indio_dev); in cleaning_period_show()
231 struct sps30_state *state = iio_priv(indio_dev); in cleaning_period_store()
319 struct sps30_state *state = data; in sps30_devm_stop_meas()
330 struct sps30_state *state; in sps30_probe()