Lines Matching refs:part_info

158 	const struct bma180_part_info *part_info;  member
223 int ret = bma180_set_bits(data, data->part_info->int_reset_reg, in bma180_reset_intr()
224 data->part_info->int_reset_mask, 1); in bma180_reset_intr()
234 int ret = bma180_set_bits(data, data->part_info->int_enable_reg, in bma180_set_new_data_intr_state()
235 data->part_info->int_enable_mask, state); in bma180_set_new_data_intr_state()
252 int ret = bma180_set_bits(data, data->part_info->sleep_reg, in bma180_set_sleep_state()
253 data->part_info->sleep_mask, state); in bma180_set_sleep_state()
283 for (i = 0; i < data->part_info->num_bw; ++i) { in bma180_set_bw()
284 if (data->part_info->bw_table[i] == val) { in bma180_set_bw()
285 ret = bma180_set_bits(data, data->part_info->bw_reg, in bma180_set_bw()
286 data->part_info->bw_mask, i); in bma180_set_bw()
307 for (i = 0; i < data->part_info->num_scales; ++i) in bma180_set_scale()
308 if (data->part_info->scale_table[i] == val) { in bma180_set_scale()
309 ret = bma180_set_bits(data, data->part_info->scale_reg, in bma180_set_scale()
310 data->part_info->scale_mask, i); in bma180_set_scale()
325 u8 reg_val = mode ? data->part_info->lowpower_val : 0; in bma180_set_pmode()
326 int ret = bma180_set_bits(data, data->part_info->power_reg, in bma180_set_pmode()
327 data->part_info->power_mask, reg_val); in bma180_set_pmode()
341 data->part_info->softreset_reg, in bma180_soft_reset()
342 data->part_info->softreset_val); in bma180_soft_reset()
357 if (ret != data->part_info->chip_id) { in bma180_chip_init()
359 ret, data->part_info->chip_id); in bma180_chip_init()
447 ret = bma180_set_bits(data, data->part_info->int_map_reg, in bma25x_chip_config()
448 data->part_info->int_enable_dataready_int1_mask, 1); in bma25x_chip_config()
520 return bma180_show_avail(buf, data->part_info->bw_table, in bma180_show_filter_freq_avail()
521 data->part_info->num_bw, false); in bma180_show_filter_freq_avail()
529 return bma180_show_avail(buf, data->part_info->scale_table, in bma180_show_scale_avail()
530 data->part_info->num_scales, true); in bma180_show_scale_avail()
592 *val = data->part_info->temp_offset; in bma180_read_raw()
995 data->part_info = &bma180_part_info[chip]; in bma180_probe()
1032 ret = data->part_info->chip_config(data); in bma180_probe()
1037 indio_dev->channels = data->part_info->channels; in bma180_probe()
1038 indio_dev->num_channels = data->part_info->num_channels; in bma180_probe()
1092 data->part_info->chip_disable(data); in bma180_probe()
1113 data->part_info->chip_disable(data); in bma180_remove()