Searched refs:avg (Results 1 – 6 of 6) sorted by relevance
/drivers/mfd/ |
D | pcf50633-adc.c | 31 int avg; member 58 static void adc_setup(struct pcf50633 *pcf, int channel, int avg) in adc_setup() argument 67 pcf50633_reg_write(pcf, PCF50633_REG_ADCC1, channel | avg | in adc_setup() 86 adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg); in trigger_next_adc_job_if_any() 124 int pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg) in pcf50633_adc_sync_read() argument 134 req->avg = avg; in pcf50633_adc_sync_read() 146 int pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, in pcf50633_adc_async_read() argument 158 req->avg = avg; in pcf50633_adc_async_read()
|
/drivers/parisc/ |
D | ccio-dma.c | 1031 unsigned long avg = 0, min, max; in ccio_proc_info() local 1054 avg += ioc->avg_search[j]; in ccio_proc_info() 1060 avg /= CCIO_SEARCH_SAMPLE; in ccio_proc_info() 1062 min, avg, max); in ccio_proc_info()
|
D | sba_iommu.c | 1762 unsigned long avg = 0, min, max; in sba_proc_info() local 1798 avg += ioc->avg_search[i]; in sba_proc_info() 1802 avg /= SBA_SEARCH_SAMPLE; in sba_proc_info() 1804 min, avg, max); in sba_proc_info()
|
/drivers/net/wireless/ipw2x00/ |
D | ipw2200.c | 3989 static void inline average_init(struct average *avg) in average_init() argument 3991 memset(avg, 0, sizeof(*avg)); in average_init() 4001 static void average_add(struct average *avg, s16 val) in average_add() argument 4003 avg->sum -= avg->entries[avg->pos]; in average_add() 4004 avg->sum += val; in average_add() 4005 avg->entries[avg->pos++] = val; in average_add() 4006 if (unlikely(avg->pos == AVG_ENTRIES)) { in average_add() 4007 avg->init = 1; in average_add() 4008 avg->pos = 0; in average_add() 4012 static s16 average_value(struct average *avg) in average_value() argument [all …]
|
/drivers/mtd/nand/ |
D | nandsim.c | 930 unsigned long wmin = -1, wmax = 0, avg; in update_wear() local 970 avg = tot / wear_eb_count; in update_wear() 975 NS_INFO("Average number of erases: %lu\n", avg); in update_wear()
|
/drivers/hwmon/ |
D | lm93.c | 226 u8 avg; member 1020 data->block4[i].avg = in lm93_update_client_min() 2099 return sprintf(buf,"%d\n",data->block4[nr].avg); in show_prochot_avg()
|