Lines Matching refs:iio_dev

656 static int bno055_read_simple_chan(struct iio_dev *indio_dev,  in bno055_read_simple_chan()
779 static int bno055_read_avail(struct iio_dev *indio_dev, in bno055_read_avail()
825 static int bno055_read_temp_chan(struct iio_dev *indio_dev, int *val) in bno055_read_temp_chan()
844 static int bno055_read_quaternion(struct iio_dev *indio_dev, in bno055_read_quaternion()
878 static bool bno055_is_chan_readable(struct iio_dev *indio_dev, in bno055_is_chan_readable()
901 static int _bno055_read_raw_multi(struct iio_dev *indio_dev, in _bno055_read_raw_multi()
943 static int bno055_read_raw_multi(struct iio_dev *indio_dev, in bno055_read_raw_multi()
958 static int _bno055_write_raw(struct iio_dev *iio_dev, in _bno055_write_raw() argument
962 struct bno055_priv *priv = iio_priv(iio_dev); in _bno055_write_raw()
1006 static int bno055_write_raw(struct iio_dev *iio_dev, in bno055_write_raw() argument
1010 struct bno055_priv *priv = iio_priv(iio_dev); in bno055_write_raw()
1014 ret = _bno055_write_raw(iio_dev, chan, val, val2, mask); in bno055_write_raw()
1052 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in fusion_enable_store()
1093 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in in_magn_calibration_fast_enable_store()
1261 static int bno055_debugfs_reg_access(struct iio_dev *iio_dev, unsigned int reg, in bno055_debugfs_reg_access() argument
1264 struct bno055_priv *priv = iio_priv(iio_dev); in bno055_debugfs_reg_access()
1313 static void bno055_debugfs_init(struct iio_dev *iio_dev) in bno055_debugfs_init() argument
1315 struct bno055_priv *priv = iio_priv(iio_dev); in bno055_debugfs_init()
1318 iio_get_debugfs_dentry(iio_dev), in bno055_debugfs_init()
1441 struct iio_dev *iio_dev = pf->indio_dev; in bno055_trigger_handler() local
1442 struct bno055_priv *priv = iio_priv(iio_dev); in bno055_trigger_handler()
1460 for_each_set_bitrange(start, end, iio_dev->active_scan_mask, in bno055_trigger_handler()
1461 iio_dev->masklength) { in bno055_trigger_handler()
1494 mask = *iio_dev->active_scan_mask >> xfer_start; in bno055_trigger_handler()
1511 mask = *iio_dev->active_scan_mask >> xfer_start; in bno055_trigger_handler()
1517 iio_push_to_buffers_with_timestamp(iio_dev, in bno055_trigger_handler()
1521 iio_trigger_notify_done(iio_dev->trig); in bno055_trigger_handler()
1525 static int bno055_buffer_preenable(struct iio_dev *indio_dev) in bno055_buffer_preenable()
1556 struct iio_dev *iio_dev; in bno055_probe() local
1562 iio_dev = devm_iio_device_alloc(dev, sizeof(*priv)); in bno055_probe()
1563 if (!iio_dev) in bno055_probe()
1566 iio_dev->name = "bno055"; in bno055_probe()
1567 priv = iio_priv(iio_dev); in bno055_probe()
1661 iio_dev->channels = bno055_channels; in bno055_probe()
1662 iio_dev->num_channels = ARRAY_SIZE(bno055_channels); in bno055_probe()
1663 iio_dev->info = &bno055_info; in bno055_probe()
1664 iio_dev->modes = INDIO_DIRECT_MODE; in bno055_probe()
1666 ret = devm_iio_triggered_buffer_setup(dev, iio_dev, in bno055_probe()
1673 ret = devm_iio_device_register(dev, iio_dev); in bno055_probe()
1677 bno055_debugfs_init(iio_dev); in bno055_probe()