Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 1108) sorted by relevance

12345678910>>...45

/linux-5.19.10/drivers/thermal/st/
Dstm_thermal.c102 static int stm_enable_irq(struct stm_thermal_sensor *sensor) in stm_enable_irq() argument
106 dev_dbg(sensor->dev, "low:%d high:%d\n", sensor->low_temp_enabled, in stm_enable_irq()
107 sensor->high_temp_enabled); in stm_enable_irq()
110 value = readl_relaxed(sensor->base + DTS_ITENR_OFFSET); in stm_enable_irq()
113 if (sensor->low_temp_enabled) in stm_enable_irq()
116 if (sensor->high_temp_enabled) in stm_enable_irq()
120 writel_relaxed(value, sensor->base + DTS_ITENR_OFFSET); in stm_enable_irq()
127 struct stm_thermal_sensor *sensor = sdata; in stm_thermal_irq_handler() local
129 dev_dbg(sensor->dev, "sr:%d\n", in stm_thermal_irq_handler()
130 readl_relaxed(sensor->base + DTS_SR_OFFSET)); in stm_thermal_irq_handler()
[all …]
Dst_thermal.c23 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields() argument
25 struct device *dev = sensor->dev; in st_thermal_alloc_regfields()
26 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields()
27 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields()
29 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
32 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
35 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
38 if (IS_ERR(sensor->dcorrect) || in st_thermal_alloc_regfields()
39 IS_ERR(sensor->overflow) || in st_thermal_alloc_regfields()
40 IS_ERR(sensor->temp_data)) { in st_thermal_alloc_regfields()
[all …]
Dst_thermal_memmap.c39 struct st_thermal_sensor *sensor = sdata; in st_mmap_thermal_trip_handler() local
41 thermal_zone_device_update(sensor->thermal_dev, in st_mmap_thermal_trip_handler()
48 static int st_mmap_power_ctrl(struct st_thermal_sensor *sensor, in st_mmap_power_ctrl() argument
54 return regmap_update_bits(sensor->regmap, STIH416_MPE_CONF, mask, val); in st_mmap_power_ctrl()
57 static int st_mmap_alloc_regfields(struct st_thermal_sensor *sensor) in st_mmap_alloc_regfields() argument
59 struct device *dev = sensor->dev; in st_mmap_alloc_regfields()
60 struct regmap *regmap = sensor->regmap; in st_mmap_alloc_regfields()
61 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_mmap_alloc_regfields()
63 sensor->int_thresh_hi = devm_regmap_field_alloc(dev, regmap, in st_mmap_alloc_regfields()
65 sensor->int_enable = devm_regmap_field_alloc(dev, regmap, in st_mmap_alloc_regfields()
[all …]
/linux-5.19.10/drivers/media/i2c/ccs/
Dccs-core.c90 static int ccs_limit_ptr(struct ccs_sensor *sensor, unsigned int limit, in ccs_limit_ptr() argument
100 if (WARN_ON(!sensor->ccs_limits) || in ccs_limit_ptr()
105 *__ptr = sensor->ccs_limits + ccs_limit_offsets[limit].lim + offset; in ccs_limit_ptr()
110 void ccs_replace_limit(struct ccs_sensor *sensor, in ccs_replace_limit() argument
113 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in ccs_replace_limit()
118 ret = ccs_limit_ptr(sensor, limit, offset, &ptr); in ccs_replace_limit()
130 u32 ccs_get_limit(struct ccs_sensor *sensor, unsigned int limit, in ccs_get_limit() argument
137 ret = ccs_limit_ptr(sensor, limit, offset, &ptr); in ccs_get_limit()
156 return ccs_reg_conv(sensor, ccs_limits[limit].reg, val); in ccs_get_limit()
159 static int ccs_read_all_limits(struct ccs_sensor *sensor) in ccs_read_all_limits() argument
[all …]
Dccs-quirk.c17 static int ccs_write_addr_8s(struct ccs_sensor *sensor, in ccs_write_addr_8s() argument
20 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in ccs_write_addr_8s()
24 rval = ccs_write_addr(sensor, regs->reg, regs->val); in ccs_write_addr_8s()
36 static int jt8ew9_limits(struct ccs_sensor *sensor) in jt8ew9_limits() argument
38 if (sensor->minfo.revision_number < 0x0300) in jt8ew9_limits()
39 sensor->frame_skip = 1; in jt8ew9_limits()
43 ccs_replace_limit(sensor, CCS_L_ANALOG_GAIN_CODE_MIN, 0, 59); in jt8ew9_limits()
44 ccs_replace_limit(sensor, CCS_L_ANALOG_GAIN_CODE_MAX, 0, 6000); in jt8ew9_limits()
49 static int jt8ew9_post_poweron(struct ccs_sensor *sensor) in jt8ew9_post_poweron() argument
84 return ccs_write_addr_8s(sensor, regs, ARRAY_SIZE(regs)); in jt8ew9_post_poweron()
[all …]
Dccs-quirk.h43 int (*limits)(struct ccs_sensor *sensor);
44 int (*post_poweron)(struct ccs_sensor *sensor);
45 int (*pre_streamon)(struct ccs_sensor *sensor);
46 int (*post_streamoff)(struct ccs_sensor *sensor);
47 unsigned long (*pll_flags)(struct ccs_sensor *sensor);
48 int (*init)(struct ccs_sensor *sensor);
49 int (*reg_access)(struct ccs_sensor *sensor, bool write, u32 *reg,
67 #define ccs_call_quirk(sensor, _quirk, ...) \ argument
68 ((sensor)->minfo.quirk && \
69 (sensor)->minfo.quirk->_quirk ? \
[all …]
/linux-5.19.10/drivers/media/i2c/
Dov5640.c628 static int ov5640_init_slave_id(struct ov5640_dev *sensor) in ov5640_init_slave_id() argument
630 struct i2c_client *client = sensor->i2c_client; in ov5640_init_slave_id()
656 static int ov5640_write_reg(struct ov5640_dev *sensor, u16 reg, u8 val) in ov5640_write_reg() argument
658 struct i2c_client *client = sensor->i2c_client; in ov5640_write_reg()
682 static int ov5640_read_reg(struct ov5640_dev *sensor, u16 reg, u8 *val) in ov5640_read_reg() argument
684 struct i2c_client *client = sensor->i2c_client; in ov5640_read_reg()
713 static int ov5640_read_reg16(struct ov5640_dev *sensor, u16 reg, u16 *val) in ov5640_read_reg16() argument
718 ret = ov5640_read_reg(sensor, reg, &hi); in ov5640_read_reg16()
721 ret = ov5640_read_reg(sensor, reg + 1, &lo); in ov5640_read_reg16()
729 static int ov5640_write_reg16(struct ov5640_dev *sensor, u16 reg, u16 val) in ov5640_write_reg16() argument
[all …]
Dov2680.c186 static struct device *ov2680_to_dev(struct ov2680_dev *sensor) in ov2680_to_dev() argument
188 return &sensor->i2c_client->dev; in ov2680_to_dev()
197 static int __ov2680_write_reg(struct ov2680_dev *sensor, u16 reg, in __ov2680_write_reg() argument
200 struct i2c_client *client = sensor->i2c_client; in __ov2680_write_reg()
227 static int __ov2680_read_reg(struct ov2680_dev *sensor, u16 reg, in __ov2680_read_reg() argument
230 struct i2c_client *client = sensor->i2c_client; in __ov2680_read_reg()
269 static int ov2680_mod_reg(struct ov2680_dev *sensor, u16 reg, u8 mask, u8 val) in ov2680_mod_reg() argument
274 ret = ov2680_read_reg(sensor, reg, &readval); in ov2680_mod_reg()
282 return ov2680_write_reg(sensor, reg, val); in ov2680_mod_reg()
285 static int ov2680_load_regs(struct ov2680_dev *sensor, in ov2680_load_regs() argument
[all …]
Dmt9m032.c155 #define to_dev(sensor) \ argument
156 (&((struct i2c_client *)v4l2_get_subdevdata(&(sensor)->subdev))->dev)
168 static u32 mt9m032_row_time(struct mt9m032 *sensor, unsigned int width) in mt9m032_row_time() argument
174 ns = div_u64(1000000000ULL * effective_width, sensor->pix_clock); in mt9m032_row_time()
175 dev_dbg(to_dev(sensor), "MT9M032 line time: %u ns\n", ns); in mt9m032_row_time()
179 static int mt9m032_update_timing(struct mt9m032 *sensor, in mt9m032_update_timing() argument
182 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_timing()
183 struct v4l2_rect *crop = &sensor->crop; in mt9m032_update_timing()
189 interval = &sensor->frame_interval; in mt9m032_update_timing()
191 row_time = mt9m032_row_time(sensor, crop->width); in mt9m032_update_timing()
[all …]
Dov8865.c1348 static int ov8865_read(struct ov8865_sensor *sensor, u16 address, u8 *value) in ov8865_read() argument
1351 struct i2c_client *client = sensor->i2c_client; in ov8865_read()
1371 static int ov8865_write(struct ov8865_sensor *sensor, u16 address, u8 value) in ov8865_write() argument
1374 struct i2c_client *client = sensor->i2c_client; in ov8865_write()
1387 static int ov8865_write_sequence(struct ov8865_sensor *sensor, in ov8865_write_sequence() argument
1395 ret = ov8865_write(sensor, sequence[i].address, in ov8865_write_sequence()
1407 static int ov8865_update_bits(struct ov8865_sensor *sensor, u16 address, in ov8865_update_bits() argument
1413 ret = ov8865_read(sensor, address, &value); in ov8865_update_bits()
1420 return ov8865_write(sensor, address, value); in ov8865_update_bits()
1425 static int ov8865_sw_reset(struct ov8865_sensor *sensor) in ov8865_sw_reset() argument
[all …]
Dov5648.c966 static int ov5648_read(struct ov5648_sensor *sensor, u16 address, u8 *value) in ov5648_read() argument
969 struct i2c_client *client = sensor->i2c_client; in ov5648_read()
989 static int ov5648_write(struct ov5648_sensor *sensor, u16 address, u8 value) in ov5648_write() argument
992 struct i2c_client *client = sensor->i2c_client; in ov5648_write()
1005 static int ov5648_write_sequence(struct ov5648_sensor *sensor, in ov5648_write_sequence() argument
1013 ret = ov5648_write(sensor, sequence[i].address, in ov5648_write_sequence()
1025 static int ov5648_update_bits(struct ov5648_sensor *sensor, u16 address, in ov5648_update_bits() argument
1031 ret = ov5648_read(sensor, address, &value); in ov5648_update_bits()
1038 ret = ov5648_write(sensor, address, value); in ov5648_update_bits()
1047 static int ov5648_sw_reset(struct ov5648_sensor *sensor) in ov5648_sw_reset() argument
[all …]
Ds5k6a3.c126 struct s5k6a3 *sensor, struct v4l2_subdev_state *sd_state, in __s5k6a3_get_format() argument
130 return sd_state ? v4l2_subdev_get_try_format(&sensor->subdev, in __s5k6a3_get_format()
133 return &sensor->format; in __s5k6a3_get_format()
140 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_set_fmt() local
145 mf = __s5k6a3_get_format(sensor, sd_state, fmt->pad, fmt->which); in s5k6a3_set_fmt()
147 mutex_lock(&sensor->lock); in s5k6a3_set_fmt()
149 mutex_unlock(&sensor->lock); in s5k6a3_set_fmt()
158 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_get_fmt() local
161 mf = __s5k6a3_get_format(sensor, sd_state, fmt->pad, fmt->which); in s5k6a3_get_fmt()
163 mutex_lock(&sensor->lock); in s5k6a3_get_fmt()
[all …]
Dov5647.c670 struct ov5647 *sensor = to_sensor(sd); in ov5647_set_mode() local
678 ret = ov5647_write_array(sd, sensor->mode->reg_list, in ov5647_set_mode()
679 sensor->mode->num_regs); in ov5647_set_mode()
706 struct ov5647 *sensor = to_sensor(sd); in ov5647_stream_on() local
721 if (sensor->clock_ncont) in ov5647_stream_on()
755 struct ov5647 *sensor = dev_get_drvdata(dev); in ov5647_power_on() local
760 if (sensor->pwdn) { in ov5647_power_on()
761 gpiod_set_value_cansleep(sensor->pwdn, 0); in ov5647_power_on()
765 ret = clk_prepare_enable(sensor->xclk); in ov5647_power_on()
771 ret = ov5647_write_array(&sensor->sd, sensor_oe_enable_regs, in ov5647_power_on()
[all …]
/linux-5.19.10/drivers/media/pci/intel/ipu3/
Dcio2-bridge.c93 static u32 cio2_bridge_parse_rotation(struct cio2_sensor *sensor) in cio2_bridge_parse_rotation() argument
95 switch (sensor->ssdb.degree) { in cio2_bridge_parse_rotation()
101 dev_warn(&sensor->adev->dev, in cio2_bridge_parse_rotation()
103 sensor->ssdb.degree); in cio2_bridge_parse_rotation()
108 static enum v4l2_fwnode_orientation cio2_bridge_parse_orientation(struct cio2_sensor *sensor) in cio2_bridge_parse_orientation() argument
110 switch (sensor->pld->panel) { in cio2_bridge_parse_orientation()
121 dev_warn(&sensor->adev->dev, "Unknown _PLD panel value %d\n", in cio2_bridge_parse_orientation()
122 sensor->pld->panel); in cio2_bridge_parse_orientation()
128 struct cio2_sensor *sensor, in cio2_bridge_create_fwnode_properties() argument
135 rotation = cio2_bridge_parse_rotation(sensor); in cio2_bridge_create_fwnode_properties()
[all …]
/linux-5.19.10/drivers/thermal/
Dhisi_thermal.c77 int (*get_temp)(struct hisi_thermal_sensor *sensor);
78 int (*enable_sensor)(struct hisi_thermal_sensor *sensor);
79 int (*disable_sensor)(struct hisi_thermal_sensor *sensor);
80 int (*irq_handler)(struct hisi_thermal_sensor *sensor);
86 struct hisi_thermal_sensor *sensor; member
261 static inline void hi6220_thermal_sensor_select(void __iomem *addr, int sensor) in hi6220_thermal_sensor_select() argument
264 (sensor << 12), addr + HI6220_TEMP0_CFG); in hi6220_thermal_sensor_select()
283 static int hi6220_thermal_irq_handler(struct hisi_thermal_sensor *sensor) in hi6220_thermal_irq_handler() argument
285 struct hisi_thermal_data *data = sensor->data; in hi6220_thermal_irq_handler()
291 static int hi3660_thermal_irq_handler(struct hisi_thermal_sensor *sensor) in hi3660_thermal_irq_handler() argument
[all …]
Dthermal_mmio.c26 struct thermal_mmio *sensor = in thermal_mmio_get_temperature() local
29 t = sensor->read_mmio(sensor->mmio_base) & sensor->mask; in thermal_mmio_get_temperature()
30 t *= sensor->factor; in thermal_mmio_get_temperature()
44 struct thermal_mmio *sensor; in thermal_mmio_probe() local
46 struct thermal_mmio *sensor); in thermal_mmio_probe()
51 sensor = devm_kzalloc(&pdev->dev, sizeof(*sensor), GFP_KERNEL); in thermal_mmio_probe()
52 if (!sensor) in thermal_mmio_probe()
56 sensor->mmio_base = devm_ioremap_resource(&pdev->dev, resource); in thermal_mmio_probe()
57 if (IS_ERR(sensor->mmio_base)) in thermal_mmio_probe()
58 return PTR_ERR(sensor->mmio_base); in thermal_mmio_probe()
[all …]
/linux-5.19.10/drivers/hwmon/
Dscpi-hwmon.c57 static void scpi_scale_reading(u64 *value, struct sensor_data *sensor) in scpi_scale_reading() argument
59 if (scpi_scale[sensor->info.class] != sensor->scale) { in scpi_scale_reading()
60 *value *= scpi_scale[sensor->info.class]; in scpi_scale_reading()
61 do_div(*value, sensor->scale); in scpi_scale_reading()
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp() local
74 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_read_temp()
78 scpi_scale_reading(&value, sensor); in scpi_read_temp()
90 struct sensor_data *sensor; in scpi_show_sensor() local
94 sensor = container_of(attr, struct sensor_data, dev_attr_input); in scpi_show_sensor()
96 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_show_sensor()
[all …]
/linux-5.19.10/drivers/input/rmi4/
Drmi_2d_sensor.c22 void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_process() argument
26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process()
33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process()
56 obj->x = min(sensor->max_x, obj->x); in rmi_2d_sensor_abs_process()
59 obj->y = min(sensor->max_y, obj->y); in rmi_2d_sensor_abs_process()
61 sensor->tracking_pos[slot].x = obj->x; in rmi_2d_sensor_abs_process()
62 sensor->tracking_pos[slot].y = obj->y; in rmi_2d_sensor_abs_process()
66 void rmi_2d_sensor_abs_report(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_report() argument
70 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_report()
[all …]
Drmi_f11.c533 struct rmi_2d_sensor sensor; member
550 struct rmi_2d_sensor *sensor = &f11->sensor; in rmi_f11_rel_pos_report() local
557 rmi_2d_sensor_rel_report(sensor, x, y); in rmi_f11_rel_pos_report()
561 struct rmi_2d_sensor *sensor, in rmi_f11_abs_pos_process() argument
585 rmi_2d_sensor_abs_process(sensor, obj, n_finger); in rmi_f11_abs_pos_process()
595 struct rmi_2d_sensor *sensor, int size) in rmi_f11_finger_handler() argument
602 int abs_size = sensor->nbr_fingers * RMI_F11_ABS_BYTES; in rmi_f11_finger_handler()
604 if (sensor->report_abs) { in rmi_f11_finger_handler()
608 abs_fingers = sensor->nbr_fingers; in rmi_f11_finger_handler()
619 rmi_f11_abs_pos_process(f11, sensor, &sensor->objs[i], in rmi_f11_finger_handler()
[all …]
Drmi_f12.c29 struct rmi_2d_sensor sensor; member
66 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
67 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
100 sensor->max_x = (buf[offset + 1] << 8) | buf[offset]; in rmi_f12_read_sensor_tuning()
101 sensor->max_y = (buf[offset + 3] << 8) | buf[offset + 2]; in rmi_f12_read_sensor_tuning()
106 sensor->max_x, sensor->max_y); in rmi_f12_read_sensor_tuning()
135 sensor->x_mm = (pitch_x * rx_receivers) >> 12; in rmi_f12_read_sensor_tuning()
136 sensor->y_mm = (pitch_y * tx_receivers) >> 12; in rmi_f12_read_sensor_tuning()
139 sensor->x_mm, sensor->y_mm); in rmi_f12_read_sensor_tuning()
147 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_process_objects() local
[all …]
/linux-5.19.10/drivers/iio/common/scmi_sensors/
Dscmi_iio.c40 struct scmi_iio_priv *sensor; in scmi_iio_sensor_update_cb() local
48 sensor = container_of(nb, struct scmi_iio_priv, sensor_update_nb); in scmi_iio_sensor_update_cb()
51 sensor->iio_buf[i] = sensor_update->readings[i].value; in scmi_iio_sensor_update_cb()
53 if (!sensor->sensor_info->timestamped) { in scmi_iio_sensor_update_cb()
67 tstamp_scale = sensor->sensor_info->tstamp_scale + in scmi_iio_sensor_update_cb()
77 scmi_iio_dev = sensor->indio_dev; in scmi_iio_sensor_update_cb()
78 iio_push_to_buffers_with_timestamp(scmi_iio_dev, sensor->iio_buf, in scmi_iio_sensor_update_cb()
85 struct scmi_iio_priv *sensor = iio_priv(iio_dev); in scmi_iio_buffer_preenable() local
89 if (sensor->sensor_info->timestamped) in scmi_iio_buffer_preenable()
95 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_buffer_preenable()
[all …]
/linux-5.19.10/drivers/media/i2c/et8ek8/
Det8ek8_driver.c554 static int et8ek8_set_gain(struct et8ek8_sensor *sensor, s32 gain) in et8ek8_set_gain() argument
556 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in et8ek8_set_gain()
582 static int et8ek8_set_test_pattern(struct et8ek8_sensor *sensor, s32 mode) in et8ek8_set_test_pattern() argument
584 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in et8ek8_set_test_pattern()
638 struct et8ek8_sensor *sensor = in et8ek8_set_ctrl() local
643 return et8ek8_set_gain(sensor, ctrl->val); in et8ek8_set_ctrl()
648 v4l2_get_subdevdata(&sensor->subdev); in et8ek8_set_ctrl()
655 return et8ek8_set_test_pattern(sensor, ctrl->val); in et8ek8_set_ctrl()
681 static int et8ek8_init_controls(struct et8ek8_sensor *sensor) in et8ek8_init_controls() argument
685 v4l2_ctrl_handler_init(&sensor->ctrl_handler, 4); in et8ek8_init_controls()
[all …]
/linux-5.19.10/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c70 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina2x9_read()
93 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina3221_read()
101 struct nvkm_iccsense_sensor *sensor) in nvkm_iccsense_sensor_config() argument
104 nvkm_trace(subdev, "write config of extdev %i: 0x%04x\n", sensor->id, sensor->config); in nvkm_iccsense_sensor_config()
105 nv_wr16i2cr(sensor->i2c, sensor->addr, 0x00, sensor->config); in nvkm_iccsense_sensor_config()
134 struct nvkm_iccsense_sensor *sensor, *tmps; in nvkm_iccsense_dtor() local
137 list_for_each_entry_safe(sensor, tmps, &iccsense->sensors, head) { in nvkm_iccsense_dtor()
138 list_del(&sensor->head); in nvkm_iccsense_dtor()
139 kfree(sensor); in nvkm_iccsense_dtor()
157 struct nvkm_iccsense_sensor *sensor; in nvkm_iccsense_create_sensor() local
[all …]
/linux-5.19.10/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_shub.c158 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_shub_wait_complete() local
161 sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_shub_wait_complete()
162 odr = (hw->enable_mask & BIT(ST_LSM6DSX_ID_ACC)) ? sensor->odr : 12500; in st_lsm6dsx_shub_wait_complete()
244 static int st_lsm6dsx_shub_master_enable(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_master_enable() argument
248 struct st_lsm6dsx_hw *hw = sensor->hw; in st_lsm6dsx_shub_master_enable()
253 err = st_lsm6dsx_sensor_set_enable(sensor, enable); in st_lsm6dsx_shub_master_enable()
285 st_lsm6dsx_shub_read(struct st_lsm6dsx_sensor *sensor, u8 addr, in st_lsm6dsx_shub_read() argument
290 struct st_lsm6dsx_hw *hw = sensor->hw; in st_lsm6dsx_shub_read()
301 config[0] = (sensor->ext_info.addr << 1) | 1; in st_lsm6dsx_shub_read()
310 err = st_lsm6dsx_shub_master_enable(sensor, true); in st_lsm6dsx_shub_read()
[all …]
/linux-5.19.10/drivers/iio/temperature/
Dltc2983.c177 container_of(_sensor, struct ltc2983_thermocouple, sensor)
180 container_of(_sensor, struct ltc2983_rtd, sensor)
183 container_of(_sensor, struct ltc2983_thermistor, sensor)
186 container_of(_sensor, struct ltc2983_diode, sensor)
189 container_of(_sensor, struct ltc2983_rsense, sensor)
192 container_of(_sensor, struct ltc2983_adc, sensor)
217 const struct ltc2983_sensor *sensor);
234 struct ltc2983_sensor sensor; member
241 struct ltc2983_sensor sensor; member
250 struct ltc2983_sensor sensor; member
[all …]

12345678910>>...45