Lines Matching refs:en
242 int CompassSensor::enable(int32_t handle, int en) in enable() argument
246 mEnable = en; in enable()
256 if (en) { in enable()
258 en, compassSysFs.compass_x_fifo_enable, getTimestamp()); in enable()
259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable()
261 en, compassSysFs.compass_y_fifo_enable, getTimestamp()); in enable()
262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable()
264 en, compassSysFs.compass_z_fifo_enable, getTimestamp()); in enable()
265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable()
267 res = masterEnable(en); in enable()
268 if (res < en) { in enable()
276 int CompassSensor::masterEnable(int en) in masterEnable() argument
280 en, compassSysFs.chip_enable, getTimestamp()); in masterEnable()
281 return write_sysfs_int(compassSysFs.chip_enable, en); in masterEnable()