Lines Matching refs:part_info

119 	const struct bma180_part_info *part_info;  member
184 int ret = bma180_set_bits(data, data->part_info->int_reset_reg, in bma180_reset_intr()
185 data->part_info->int_reset_mask, 1); in bma180_reset_intr()
195 int ret = bma180_set_bits(data, data->part_info->int_enable_reg, in bma180_set_new_data_intr_state()
196 data->part_info->int_enable_mask, state); in bma180_set_new_data_intr_state()
213 int ret = bma180_set_bits(data, data->part_info->sleep_reg, in bma180_set_sleep_state()
214 data->part_info->sleep_mask, state); in bma180_set_sleep_state()
244 for (i = 0; i < data->part_info->num_bw; ++i) { in bma180_set_bw()
245 if (data->part_info->bw_table[i] == val) { in bma180_set_bw()
246 ret = bma180_set_bits(data, data->part_info->bw_reg, in bma180_set_bw()
247 data->part_info->bw_mask, in bma180_set_bw()
248 i + data->part_info->bw_offset); in bma180_set_bw()
269 for (i = 0; i < data->part_info->num_scales; ++i) in bma180_set_scale()
270 if (data->part_info->scale_table[i] == val) { in bma180_set_scale()
271 ret = bma180_set_bits(data, data->part_info->scale_reg, in bma180_set_scale()
272 data->part_info->scale_mask, i); in bma180_set_scale()
287 u8 reg_val = mode ? data->part_info->lowpower_val : 0; in bma180_set_pmode()
288 int ret = bma180_set_bits(data, data->part_info->power_reg, in bma180_set_pmode()
289 data->part_info->power_mask, reg_val); in bma180_set_pmode()
303 data->part_info->softreset_reg, BMA180_RESET_VAL); in bma180_soft_reset()
440 return bma180_show_avail(buf, data->part_info->bw_table, in bma180_show_filter_freq_avail()
441 data->part_info->num_bw, false); in bma180_show_filter_freq_avail()
449 return bma180_show_avail(buf, data->part_info->scale_table, in bma180_show_scale_avail()
450 data->part_info->num_scales, true); in bma180_show_scale_avail()
750 data->part_info = &bma180_part_info[chip]; in bma180_probe()
752 ret = data->part_info->chip_config(data); in bma180_probe()
758 indio_dev->channels = data->part_info->channels; in bma180_probe()
759 indio_dev->num_channels = data->part_info->num_channels; in bma180_probe()
814 data->part_info->chip_disable(data); in bma180_probe()
832 data->part_info->chip_disable(data); in bma180_remove()