Home
last modified time | relevance | path

Searched refs:otp (Results 1 – 13 of 13) sorted by relevance

/drivers/mfd/
Dab3100-otp.c62 static int __init ab3100_otp_read(struct ab3100_otp *otp) in ab3100_otp_read() argument
68 err = abx500_get_register_interruptible(otp->dev, 0, in ab3100_otp_read()
71 dev_err(otp->dev, "unable to read OTPP register\n"); in ab3100_otp_read()
75 err = abx500_get_register_page_interruptible(otp->dev, 0, in ab3100_otp_read()
78 dev_err(otp->dev, "unable to read OTP register page\n"); in ab3100_otp_read()
83 otp->locked = (otpp & 0x80); in ab3100_otp_read()
84 otp->freq = (otpp & 0x40) ? 32768 : 34100; in ab3100_otp_read()
85 otp->paf = (otpval[1] & 0x80); in ab3100_otp_read()
86 otp->imeich = (otpval[1] & 0x40); in ab3100_otp_read()
87 otp->cid = ((otpval[1] << 8) | otpval[0]) & 0x3fff; in ab3100_otp_read()
[all …]
DMakefile52 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o
132 obj-$(CONFIG_AB3100_OTP) += ab3100-otp.o
/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c196 static int spinand_get_otp(struct spi_device *spi_nand, u8 *otp) in spinand_get_otp() argument
205 cmd.rx_buf = otp; in spinand_get_otp()
220 static int spinand_set_otp(struct spi_device *spi_nand, u8 *otp) in spinand_set_otp() argument
229 cmd.tx_buf = otp, in spinand_set_otp()
249 u8 otp = 0; in spinand_enable_ecc() local
251 retval = spinand_get_otp(spi_nand, &otp); in spinand_enable_ecc()
255 if ((otp & OTP_ECC_MASK) == OTP_ECC_MASK) in spinand_enable_ecc()
257 otp |= OTP_ECC_MASK; in spinand_enable_ecc()
258 retval = spinand_set_otp(spi_nand, &otp); in spinand_enable_ecc()
261 return spinand_get_otp(spi_nand, &otp); in spinand_enable_ecc()
[all …]
/drivers/net/wireless/ath/ath10k/
Dcore.c49 .otp = QCA988X_HW_2_0_OTP_FILE,
305 if (ar->otp && !IS_ERR(ar->otp)) in ath10k_core_free_firmware_files()
306 release_firmware(ar->otp); in ath10k_core_free_firmware_files()
315 ar->otp = NULL; in ath10k_core_free_firmware_files()
363 if (ar->hw_params.fw.otp == NULL) in ath10k_core_fetch_firmware_api_1()
366 ar->otp = ath10k_fetch_fw_file(ar, in ath10k_core_fetch_firmware_api_1()
368 ar->hw_params.fw.otp); in ath10k_core_fetch_firmware_api_1()
369 if (IS_ERR(ar->otp)) { in ath10k_core_fetch_firmware_api_1()
370 ret = PTR_ERR(ar->otp); in ath10k_core_fetch_firmware_api_1()
375 ar->otp_data = ar->otp->data; in ath10k_core_fetch_firmware_api_1()
[all …]
Dcore.h442 const char *otp; member
451 const struct firmware *otp; member
/drivers/char/
DMakefile18 obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
DKconfig82 will be called bfin-otp.
/drivers/mtd/chips/
Dcfi_cmdset_0001.c2282 struct cfi_intelext_otpinfo *otp; in cfi_intelext_otp_walk() local
2312 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; in cfi_intelext_otp_walk()
2396 reg_prot_offset = otp->ProtRegAddr; in cfi_intelext_otp_walk()
2397 reg_fact_groups = otp->FactGroups; in cfi_intelext_otp_walk()
2398 reg_fact_size = 1 << otp->FactProtRegSize; in cfi_intelext_otp_walk()
2399 reg_user_groups = otp->UserGroups; in cfi_intelext_otp_walk()
2400 reg_user_size = 1 << otp->UserProtRegSize; in cfi_intelext_otp_walk()
2401 otp++; in cfi_intelext_otp_walk()
Dcfi_cmdset_0002.c1394 uint8_t otp, lockreg; in cfi_amdstd_otp_walk() local
1421 otp = cfi_read_query(map, base + 0x3 * ofs_factor); in cfi_amdstd_otp_walk()
1426 if (otp & 0x80) { in cfi_amdstd_otp_walk()
/drivers/net/wireless/ath/ath6kl/
Dinit.c52 .otp = AR6003_HW_2_0_OTP_FILE,
75 .otp = AR6003_HW_2_1_1_OTP_FILE,
782 if (ar->hw.fw.otp == NULL) { in ath6kl_fetch_otp_file()
789 ar->hw.fw.dir, ar->hw.fw.otp); in ath6kl_fetch_otp_file()
Dcore.h791 const char *otp; member
/drivers/mtd/onenand/
Donenand_base.c56 static int otp; variable
58 module_param(otp, int, 0400);
59 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP"
3357 if (otp == 1) in onenand_lock_user_prot_reg()
3359 else if (otp == 2) in onenand_lock_user_prot_reg()
3361 else if (otp == 3) in onenand_lock_user_prot_reg()
3363 else if (otp != 0) in onenand_lock_user_prot_reg()
/drivers/net/ethernet/broadcom/
Dtg3.c2310 u32 otp, phy; in tg3_phy_apply_otp() local
2315 otp = tp->phy_otp; in tg3_phy_apply_otp()
2320 phy = ((otp & TG3_OTP_AGCTGT_MASK) >> TG3_OTP_AGCTGT_SHIFT); in tg3_phy_apply_otp()
2324 phy = ((otp & TG3_OTP_HPFFLTR_MASK) >> TG3_OTP_HPFFLTR_SHIFT) | in tg3_phy_apply_otp()
2325 ((otp & TG3_OTP_HPFOVER_MASK) >> TG3_OTP_HPFOVER_SHIFT); in tg3_phy_apply_otp()
2328 phy = ((otp & TG3_OTP_LPFDIS_MASK) >> TG3_OTP_LPFDIS_SHIFT); in tg3_phy_apply_otp()
2332 phy = ((otp & TG3_OTP_VDAC_MASK) >> TG3_OTP_VDAC_SHIFT); in tg3_phy_apply_otp()
2335 phy = ((otp & TG3_OTP_10BTAMP_MASK) >> TG3_OTP_10BTAMP_SHIFT); in tg3_phy_apply_otp()
2338 phy = ((otp & TG3_OTP_ROFF_MASK) >> TG3_OTP_ROFF_SHIFT) | in tg3_phy_apply_otp()
2339 ((otp & TG3_OTP_RCOFF_MASK) >> TG3_OTP_RCOFF_SHIFT); in tg3_phy_apply_otp()