Lines Matching refs:AC_WRITE
182 #define AC_WRITE(ac, reg, val) ((ac)->bops->write((ac)->dev, reg, val)) macro
407 AC_WRITE(ac, POWER_CTL, 0); in __adxl34x_disable()
412 AC_WRITE(ac, POWER_CTL, ac->pdata.power_mode | PCTL_MEASURE); in __adxl34x_enable()
517 AC_WRITE(ac, OFSX, (s8) ac->hwcal.x); in adxl34x_calibrate_store()
518 AC_WRITE(ac, OFSY, (s8) ac->hwcal.y); in adxl34x_calibrate_store()
519 AC_WRITE(ac, OFSZ, (s8) ac->hwcal.z); in adxl34x_calibrate_store()
550 AC_WRITE(ac, BW_RATE, in adxl34x_rate_store()
588 AC_WRITE(ac, POWER_CTL, ac->pdata.power_mode | PCTL_MEASURE); in adxl34x_autosleep_store()
626 AC_WRITE(ac, val >> 8, val & 0xFF); in adxl34x_write_store()
794 AC_WRITE(ac, POWER_CTL, 0); in adxl34x_probe()
807 AC_WRITE(ac, OFSX, pdata->x_axis_offset); in adxl34x_probe()
809 AC_WRITE(ac, OFSY, pdata->y_axis_offset); in adxl34x_probe()
811 AC_WRITE(ac, OFSZ, pdata->z_axis_offset); in adxl34x_probe()
813 AC_WRITE(ac, THRESH_TAP, pdata->tap_threshold); in adxl34x_probe()
814 AC_WRITE(ac, DUR, pdata->tap_duration); in adxl34x_probe()
815 AC_WRITE(ac, LATENT, pdata->tap_latency); in adxl34x_probe()
816 AC_WRITE(ac, WINDOW, pdata->tap_window); in adxl34x_probe()
817 AC_WRITE(ac, THRESH_ACT, pdata->activity_threshold); in adxl34x_probe()
818 AC_WRITE(ac, THRESH_INACT, pdata->inactivity_threshold); in adxl34x_probe()
819 AC_WRITE(ac, TIME_INACT, pdata->inactivity_time); in adxl34x_probe()
820 AC_WRITE(ac, THRESH_FF, pdata->free_fall_threshold); in adxl34x_probe()
821 AC_WRITE(ac, TIME_FF, pdata->free_fall_time); in adxl34x_probe()
822 AC_WRITE(ac, TAP_AXES, pdata->tap_axis_control); in adxl34x_probe()
823 AC_WRITE(ac, ACT_INACT_CTL, pdata->act_axis_control); in adxl34x_probe()
824 AC_WRITE(ac, BW_RATE, RATE(ac->pdata.data_rate) | in adxl34x_probe()
826 AC_WRITE(ac, DATA_FORMAT, pdata->data_range); in adxl34x_probe()
827 AC_WRITE(ac, FIFO_CTL, FIFO_MODE(pdata->fifo_mode) | in adxl34x_probe()
832 AC_WRITE(ac, INT_MAP, ac->int_mask | OVERRUN); in adxl34x_probe()
835 AC_WRITE(ac, INT_MAP, 0); in adxl34x_probe()
839 AC_WRITE(ac, ORIENT_CONF, in adxl34x_probe()
859 AC_WRITE(ac, INT_ENABLE, ac->int_mask | OVERRUN); in adxl34x_probe()