Lines Matching refs:part_info
117 const struct bma180_part_info *part_info; member
178 int ret = bma180_set_bits(data, data->part_info->int_reset_reg, in bma180_reset_intr()
179 data->part_info->int_reset_mask, 1); in bma180_reset_intr()
189 int ret = bma180_set_bits(data, data->part_info->int_enable_reg, in bma180_set_new_data_intr_state()
190 data->part_info->int_enable_mask, state); in bma180_set_new_data_intr_state()
207 int ret = bma180_set_bits(data, data->part_info->sleep_reg, in bma180_set_sleep_state()
208 data->part_info->sleep_mask, state); in bma180_set_sleep_state()
238 for (i = 0; i < data->part_info->num_bw; ++i) { in bma180_set_bw()
239 if (data->part_info->bw_table[i] == val) { in bma180_set_bw()
240 ret = bma180_set_bits(data, data->part_info->bw_reg, in bma180_set_bw()
241 data->part_info->bw_mask, i); in bma180_set_bw()
262 for (i = 0; i < data->part_info->num_scales; ++i) in bma180_set_scale()
263 if (data->part_info->scale_table[i] == val) { in bma180_set_scale()
264 ret = bma180_set_bits(data, data->part_info->scale_reg, in bma180_set_scale()
265 data->part_info->scale_mask, i); in bma180_set_scale()
280 u8 reg_val = mode ? data->part_info->lowpower_val : 0; in bma180_set_pmode()
281 int ret = bma180_set_bits(data, data->part_info->power_reg, in bma180_set_pmode()
282 data->part_info->power_mask, reg_val); in bma180_set_pmode()
296 data->part_info->softreset_reg, BMA180_RESET_VAL); in bma180_soft_reset()
433 return bma180_show_avail(buf, data->part_info->bw_table, in bma180_show_filter_freq_avail()
434 data->part_info->num_bw, false); in bma180_show_filter_freq_avail()
442 return bma180_show_avail(buf, data->part_info->scale_table, in bma180_show_scale_avail()
443 data->part_info->num_scales, true); in bma180_show_scale_avail()
719 data->part_info = &bma180_part_info[id->driver_data]; in bma180_probe()
721 ret = data->part_info->chip_config(data); in bma180_probe()
727 indio_dev->channels = data->part_info->channels; in bma180_probe()
728 indio_dev->num_channels = data->part_info->num_channels; in bma180_probe()
782 data->part_info->chip_disable(data); in bma180_probe()
800 data->part_info->chip_disable(data); in bma180_remove()