Home
last modified time | relevance | path

Searched refs:accum (Results 1 – 10 of 10) sorted by relevance

/drivers/hwmon/
Damd_energy.c80 struct sensor_accumulator *accum; in accumulate_delta() local
87 accum = &data->accums[channel]; in accumulate_delta()
88 if (input >= accum->prev_value) in accumulate_delta()
89 accum->energy_ctr += in accumulate_delta()
90 input - accum->prev_value; in accumulate_delta()
92 accum->energy_ctr += UINT_MAX - in accumulate_delta()
93 accum->prev_value + input; in accumulate_delta()
95 accum->prev_value = input; in accumulate_delta()
124 struct sensor_accumulator *accum; in amd_add_delta() local
131 accum = &data->accums[ch]; in amd_add_delta()
[all …]
Dltc2947-core.c971 u32 accum[2]; in ltc2947_setup() local
1053 "adi,accumulator-ctl-pol", accum, in ltc2947_setup()
1054 ARRAY_SIZE(accum)); in ltc2947_setup()
1056 u32 accum_reg = LTC2947_ACCUM_POL_1(accum[0]) | in ltc2947_setup()
1057 LTC2947_ACCUM_POL_2(accum[1]); in ltc2947_setup()
1086 accum, ARRAY_SIZE(accum)); in ltc2947_setup()
1092 u32 accum_val = LTC2947_ACCUM_POL_1(accum[0]) | in ltc2947_setup()
1093 LTC2947_ACCUM_POL_2(accum[1]); in ltc2947_setup()
/drivers/net/ethernet/xscale/
Dixp46x_ts.h29 u32 accum; /* 0x0C Time Sync Accumulator Register */ member
/drivers/net/xen-netback/
Dinterface.c437 unsigned long accum = 0; in xenvif_get_ethtool_stats() local
440 accum += *(unsigned long *)(vif_stats + xenvif_stats[i].offset); in xenvif_get_ethtool_stats()
442 data[i] = accum; in xenvif_get_ethtool_stats()
/drivers/net/wireless/intel/iwlwifi/dvm/
Drx.c288 __le32 *max_delta, __le32 *accum, int size) in accum_stats() argument
294 i++, prev++, cur++, delta++, max_delta++, accum++) { in accum_stats()
298 le32_add_cpu(accum, le32_to_cpu(*delta)); in accum_stats()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c1719 static void accumulate_val(u64 *accum, u64 val, u64 mask) in accumulate_val() argument
1723 bool wrapped = val < low_bits(*accum, mask); in accumulate_val()
1725 *accum = high_bits(*accum, mask) + val; in accumulate_val()
1727 *accum += (mask + 1); in accumulate_val()
/drivers/hwmon/occ/
Dcommon.c409 static u64 occ_get_powr_avg(u64 *accum, u32 *samples) in occ_get_powr_avg() argument
414 div64_u64(get_unaligned_be64(accum) * 1000000ULL, divisor); in occ_get_powr_avg()
/drivers/ptp/
Dptp_pch.c46 u32 accum; member
/drivers/phy/
Dphy-xgene.c1417 static int xgene_phy_get_avg(int accum, int samples) in xgene_phy_get_avg() argument
1419 return (accum + (samples / 2)) / samples; in xgene_phy_get_avg()
/drivers/net/wireless/cisco/
Dairo.c961 u64 accum; // accumulated mic, reduced to u32 in final() member
1634 context->accum += (u64)(val) * be32_to_cpu(context->coeff[coeff_position++]);
1665 context->accum = 0; in emmh32_init()
1731 sum = context->accum; in emmh32_final()