Lines Matching refs:diff
175 int16_t *diff) in ar9280ChangeGainBoundarySettings() argument
189 *diff = (uint16_t)(pwr_table_offset - AR5416_PWR_TABLE_OFFSET_DB); in ar9280ChangeGainBoundarySettings()
191 *diff *= 2; in ar9280ChangeGainBoundarySettings()
196 gb[k] = (uint16_t)(gb[k] - *diff); in ar9280ChangeGainBoundarySettings()
207 return *diff; in ar9280ChangeGainBoundarySettings()
212 int16_t diff, uint8_t *pdadcValues) in ar9280AdjustPDADCValues() argument
214 #define NUM_PDADC(diff) (AR5416_NUM_PDADC_VALUES - diff) in ar9280AdjustPDADCValues() argument
225 for (k = 0; k < (uint16_t)NUM_PDADC(diff); k++ ) { in ar9280AdjustPDADCValues()
226 pdadcValues[k] = pdadcValues[k + diff]; in ar9280AdjustPDADCValues()
230 for (k = (uint16_t)NUM_PDADC(diff); k < NUM_PDADC(0); k++) { in ar9280AdjustPDADCValues()
231 pdadcValues[k] = pdadcValues[NUM_PDADC(diff)]; in ar9280AdjustPDADCValues()
343 uint16_t diff; in ar9280SetPowerCalTable() local
374 diff = ar9280ChangeGainBoundarySettings(ah, in ar9280SetPowerCalTable()
376 pwr_table_offset, &diff); in ar9280SetPowerCalTable()
397 ar9280AdjustPDADCValues(ah, pwr_table_offset, diff, pdadcValues); in ar9280SetPowerCalTable()