Lines Matching refs:sample_number
327 data->sample_number = 0; in adxl345_sample_fetch()
356 if (data->sample_number >= ARRAY_SIZE(data->bufx)) { in adxl345_channel_get()
357 data->sample_number = 0; in adxl345_channel_get()
362 adxl345_accel_convert(val, data->bufx[data->sample_number]); in adxl345_channel_get()
363 data->sample_number++; in adxl345_channel_get()
366 adxl345_accel_convert(val, data->bufy[data->sample_number]); in adxl345_channel_get()
367 data->sample_number++; in adxl345_channel_get()
370 adxl345_accel_convert(val, data->bufz[data->sample_number]); in adxl345_channel_get()
371 data->sample_number++; in adxl345_channel_get()
374 adxl345_accel_convert(val++, data->bufx[data->sample_number]); in adxl345_channel_get()
375 adxl345_accel_convert(val++, data->bufy[data->sample_number]); in adxl345_channel_get()
376 adxl345_accel_convert(val, data->bufz[data->sample_number]); in adxl345_channel_get()
377 data->sample_number++; in adxl345_channel_get()
443 data->sample_number = 0; in adxl345_init()