Lines Matching +full:0 +full:x3f

36 		sum = 0;  in v1EepromGet()
38 for (i = 0; i < 3; i++) { in v1EepromGet()
46 macaddr[2*i + 0] = eeval >> 8; in v1EepromGet()
47 macaddr[2*i + 1] = eeval & 0xff; in v1EepromGet()
49 if (sum == 0 || sum == 0xffff*3) { in v1EepromGet()
56 *(uint16_t *) val = ee->ee_regDomain[0]; in v1EepromGet()
66 HALASSERT(0); in v1EepromGet()
126 if (eeval != 0x5aa5) { in ath_hal_v1EepromAttach()
128 "%s: invalid EEPROM magic number 0x%x\n", __func__, eeval); in ath_hal_v1EepromAttach()
138 HALDEBUG(ah, HAL_DEBUG_ATTACH, "EEPROM protect 0x%x\n", protect); in ath_hal_v1EepromAttach()
146 if (((eeprom_version>>12) & 0xf) != 1) { in ath_hal_v1EepromAttach()
151 "%s: unsupported EEPROM version 0x%x found\n", in ath_hal_v1EepromAttach()
159 sum = 0; in ath_hal_v1EepromAttach()
160 for (i = 0; i < AR_EEPROM_ATHEROS_MAX; i++) { in ath_hal_v1EepromAttach()
165 if (sum != 0xffff) { in ath_hal_v1EepromAttach()
166 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: bad EEPROM checksum 0x%x\n", in ath_hal_v1EepromAttach()
190 ee->ee_thresh62 = athvals[4] & 0xff; in ath_hal_v1EepromAttach()
191 ee->ee_xlnaOn = (athvals[4] >> 8) & 0xff; in ath_hal_v1EepromAttach()
192 ee->ee_xpaOn = athvals[5] & 0xff; in ath_hal_v1EepromAttach()
193 ee->ee_xpaOff = (athvals[5] >> 8) & 0xff; in ath_hal_v1EepromAttach()
194 ee->ee_regDomain[0] = (athvals[6] >> 8) & 0xff; in ath_hal_v1EepromAttach()
195 ee->ee_regDomain[1] = athvals[6] & 0xff; in ath_hal_v1EepromAttach()
196 ee->ee_regDomain[2] = (athvals[7] >> 8) & 0xff; in ath_hal_v1EepromAttach()
197 ee->ee_regDomain[3] = athvals[7] & 0xff; in ath_hal_v1EepromAttach()
198 ee->ee_rfKill = athvals[8] & 0x1; in ath_hal_v1EepromAttach()
199 ee->ee_devType = (athvals[8] >> 1) & 0x7; in ath_hal_v1EepromAttach()
201 …for (i = 0, loc = AR_EEPROM_ATHEROS_TP_SETTINGS; i < AR_CHANNELS_MAX; i++, loc += AR_TP_SETTINGS_S… in ath_hal_v1EepromAttach()
205 chan->pcdac[0] = (athvals[loc] >> 10) & 0x3F; in ath_hal_v1EepromAttach()
206 chan->gainF[0] = (athvals[loc] >> 4) & 0x3F; in ath_hal_v1EepromAttach()
207 chan->pcdac[1] = ((athvals[loc] << 2) & 0x3C) in ath_hal_v1EepromAttach()
208 | ((athvals[loc+1] >> 14) & 0x03); in ath_hal_v1EepromAttach()
209 chan->gainF[1] = (athvals[loc+1] >> 8) & 0x3F; in ath_hal_v1EepromAttach()
210 chan->pcdac[2] = (athvals[loc+1] >> 2) & 0x3F; in ath_hal_v1EepromAttach()
211 chan->gainF[2] = ((athvals[loc+1] << 4) & 0x30) in ath_hal_v1EepromAttach()
212 | ((athvals[loc+2] >> 12) & 0x0F); in ath_hal_v1EepromAttach()
213 chan->pcdac[3] = (athvals[loc+2] >> 6) & 0x3F; in ath_hal_v1EepromAttach()
214 chan->gainF[3] = athvals[loc+2] & 0x3F; in ath_hal_v1EepromAttach()
215 chan->pcdac[4] = (athvals[loc+3] >> 10) & 0x3F; in ath_hal_v1EepromAttach()
216 chan->gainF[4] = (athvals[loc+3] >> 4) & 0x3F; in ath_hal_v1EepromAttach()
217 chan->pcdac[5] = ((athvals[loc+3] << 2) & 0x3C) in ath_hal_v1EepromAttach()
218 | ((athvals[loc+4] >> 14) & 0x03); in ath_hal_v1EepromAttach()
219 chan->gainF[5] = (athvals[loc+4] >> 8) & 0x3F; in ath_hal_v1EepromAttach()
220 chan->pcdac[6] = (athvals[loc+4] >> 2) & 0x3F; in ath_hal_v1EepromAttach()
221 chan->gainF[6] = ((athvals[loc+4] << 4) & 0x30) in ath_hal_v1EepromAttach()
222 | ((athvals[loc+5] >> 12) & 0x0F); in ath_hal_v1EepromAttach()
223 chan->pcdac[7] = (athvals[loc+5] >> 6) & 0x3F; in ath_hal_v1EepromAttach()
224 chan->gainF[7] = athvals[loc+5] & 0x3F; in ath_hal_v1EepromAttach()
225 chan->pcdac[8] = (athvals[loc+6] >> 10) & 0x3F; in ath_hal_v1EepromAttach()
226 chan->gainF[8] = (athvals[loc+6] >> 4) & 0x3F; in ath_hal_v1EepromAttach()
227 chan->pcdac[9] = ((athvals[loc+6] << 2) & 0x3C) in ath_hal_v1EepromAttach()
228 | ((athvals[loc+7] >> 14) & 0x03); in ath_hal_v1EepromAttach()
229 chan->gainF[9] = (athvals[loc+7] >> 8) & 0x3F; in ath_hal_v1EepromAttach()
230 chan->pcdac[10] = (athvals[loc+7] >> 2) & 0x3F; in ath_hal_v1EepromAttach()
231 chan->gainF[10] = ((athvals[loc+7] << 4) & 0x30) in ath_hal_v1EepromAttach()
232 | ((athvals[loc+8] >> 12) & 0x0F); in ath_hal_v1EepromAttach()
235 chan->rate36 = (athvals[loc+8] >> 6) & 0x3F; in ath_hal_v1EepromAttach()
236 chan->rate48 = athvals[loc+8] & 0x3F; in ath_hal_v1EepromAttach()
237 chan->rate54 = (athvals[loc+9] >> 10) & 0x3F; in ath_hal_v1EepromAttach()
238 chan->regdmn[0] = (athvals[loc+9] >> 4) & 0x3F; in ath_hal_v1EepromAttach()
239 chan->regdmn[1] = ((athvals[loc+9] << 2) & 0x3C) in ath_hal_v1EepromAttach()
240 | ((athvals[loc+10] >> 14) & 0x03); in ath_hal_v1EepromAttach()
241 chan->regdmn[2] = (athvals[loc+10] >> 8) & 0x3F; in ath_hal_v1EepromAttach()
242 chan->regdmn[3] = (athvals[loc+10] >> 2) & 0x3F; in ath_hal_v1EepromAttach()