Lines Matching refs:part_info
137 const struct bma180_part_info *part_info; member
206 int ret = bma180_set_bits(data, data->part_info->int_reset_reg, in bma180_reset_intr()
207 data->part_info->int_reset_mask, 1); in bma180_reset_intr()
217 int ret = bma180_set_bits(data, data->part_info->int_enable_reg, in bma180_set_new_data_intr_state()
218 data->part_info->int_enable_mask, state); in bma180_set_new_data_intr_state()
235 int ret = bma180_set_bits(data, data->part_info->sleep_reg, in bma180_set_sleep_state()
236 data->part_info->sleep_mask, state); in bma180_set_sleep_state()
266 for (i = 0; i < data->part_info->num_bw; ++i) { in bma180_set_bw()
267 if (data->part_info->bw_table[i] == val) { in bma180_set_bw()
268 ret = bma180_set_bits(data, data->part_info->bw_reg, in bma180_set_bw()
269 data->part_info->bw_mask, in bma180_set_bw()
270 i + data->part_info->bw_offset); in bma180_set_bw()
291 for (i = 0; i < data->part_info->num_scales; ++i) in bma180_set_scale()
292 if (data->part_info->scale_table[i] == val) { in bma180_set_scale()
293 ret = bma180_set_bits(data, data->part_info->scale_reg, in bma180_set_scale()
294 data->part_info->scale_mask, i); in bma180_set_scale()
309 u8 reg_val = mode ? data->part_info->lowpower_val : 0; in bma180_set_pmode()
310 int ret = bma180_set_bits(data, data->part_info->power_reg, in bma180_set_pmode()
311 data->part_info->power_mask, reg_val); in bma180_set_pmode()
325 data->part_info->softreset_reg, in bma180_soft_reset()
326 data->part_info->softreset_val); in bma180_soft_reset()
341 if (ret != data->part_info->chip_id) { in bma180_chip_init()
343 ret, data->part_info->chip_id); in bma180_chip_init()
503 return bma180_show_avail(buf, data->part_info->bw_table, in bma180_show_filter_freq_avail()
504 data->part_info->num_bw, false); in bma180_show_filter_freq_avail()
512 return bma180_show_avail(buf, data->part_info->scale_table, in bma180_show_scale_avail()
513 data->part_info->num_scales, true); in bma180_show_scale_avail()
575 *val = data->part_info->temp_offset; in bma180_read_raw()
937 data->part_info = i2c_get_match_data(client); in bma180_probe()
973 ret = data->part_info->chip_config(data); in bma180_probe()
978 indio_dev->channels = data->part_info->channels; in bma180_probe()
979 indio_dev->num_channels = data->part_info->num_channels; in bma180_probe()
1033 data->part_info->chip_disable(data); in bma180_probe()
1054 data->part_info->chip_disable(data); in bma180_remove()