Lines Matching defs:otp
5344 uint8 *otp;
5350 if ((otp = MALLOC(osh, OTP_SZ_MAX)) == NULL) {
5354 bzero(otp, OTP_SZ_MAX);
5356 err = otp_read_region(sih, OTP_HW_RGN, (uint16 *)otp, &sz);
5359 MFREE(osh, otp, OTP_SZ_MAX);
5363 bcopy(otp, buf, bufsz);
5366 if (((uint16 *)otp)[0] == 0xffff) {
5371 BS_ERROR(("%s: otp[0] = 0x%x, returning bad-crc\n",
5372 __FUNCTION__, ((uint16 *)otp)[0]));
5373 MFREE(osh, otp, OTP_SZ_MAX);
5378 htol16_buf(otp, OTP_SZ_MAX);
5379 if (hndcrc8(otp, SROM4_WORDS * 2, CRC8_INIT_VALUE) != CRC8_GOOD_VALUE &&
5380 hndcrc8(otp, SROM10_WORDS * 2, CRC8_INIT_VALUE) != CRC8_GOOD_VALUE &&
5381 hndcrc8(otp, SROM11_WORDS * 2, CRC8_INIT_VALUE) != CRC8_GOOD_VALUE) {
5386 MFREE(osh, otp, OTP_SZ_MAX);
6311 /* return OK so the driver will load & use defaults if bad srom/otp */
6619 int sel = 0; /* where to read srom/cis: 0 - none, 1 - otp, 2 - sprom */
6746 /* return OK so the driver will load & use defaults if bad srom/otp */
7315 /* return OK so the driver will load & use defaults if bad srom/otp */