otp 789 drivers/iio/gyro/mpu3050-core.c u8 otp[8]; otp 820 drivers/iio/gyro/mpu3050-core.c sizeof(otp), otp 821 drivers/iio/gyro/mpu3050-core.c otp); otp 826 drivers/iio/gyro/mpu3050-core.c add_device_randomness(otp, sizeof(otp)); otp 832 drivers/iio/gyro/mpu3050-core.c (otp[1] << 8 | otp[0]) & 0x1fff, otp 834 drivers/iio/gyro/mpu3050-core.c ((otp[2] << 8 | otp[1]) & 0x03e0) >> 5, otp 836 drivers/iio/gyro/mpu3050-core.c ((otp[4] << 16 | otp[3] << 8 | otp[2]) & 0x3fffc) >> 2, otp 838 drivers/iio/gyro/mpu3050-core.c ((otp[5] << 8 | otp[4]) & 0x3ffc) >> 2, otp 840 drivers/iio/gyro/mpu3050-core.c ((otp[6] << 8 | otp[5]) & 0x0380) >> 7, otp 842 drivers/iio/gyro/mpu3050-core.c otp[6] >> 2); otp 2462 drivers/input/mouse/alps.c unsigned char index, unsigned char otp[]) otp 2470 drivers/input/mouse/alps.c ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) otp 2478 drivers/input/mouse/alps.c ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) otp 2487 drivers/input/mouse/alps.c static int alps_update_device_area_ss4_v2(unsigned char otp[][4], otp 2496 drivers/input/mouse/alps.c SS4PLUS_NUMSENSOR_XOFFSET + (otp[0][2] & 0x0F); otp 2498 drivers/input/mouse/alps.c SS4PLUS_NUMSENSOR_YOFFSET + ((otp[0][2] >> 4) & 0x0F); otp 2505 drivers/input/mouse/alps.c x_pitch = (otp[0][1] & 0x0F) + SS4PLUS_MIN_PITCH_MM; otp 2506 drivers/input/mouse/alps.c y_pitch = ((otp[0][1] >> 4) & 0x0F) + SS4PLUS_MIN_PITCH_MM; otp 2510 drivers/input/mouse/alps.c SS4_NUMSENSOR_XOFFSET + (otp[1][0] & 0x0F); otp 2512 drivers/input/mouse/alps.c SS4_NUMSENSOR_YOFFSET + ((otp[1][0] >> 4) & 0x0F); otp 2519 drivers/input/mouse/alps.c x_pitch = ((otp[1][2] >> 2) & 0x07) + SS4_MIN_PITCH_MM; otp 2520 drivers/input/mouse/alps.c y_pitch = ((otp[1][2] >> 5) & 0x07) + SS4_MIN_PITCH_MM; otp 2532 drivers/input/mouse/alps.c static int alps_update_btn_info_ss4_v2(unsigned char otp[][4], otp 2538 drivers/input/mouse/alps.c is_btnless = (otp[1][0] >> 1) & 0x01; otp 2540 drivers/input/mouse/alps.c is_btnless = (otp[1][1] >> 3) & 0x01; otp 2548 drivers/input/mouse/alps.c static int alps_update_dual_info_ss4_v2(unsigned char otp[][4], otp 2557 drivers/input/mouse/alps.c is_dual = (otp[0][0] >> 4) & 0x01; otp 2584 drivers/input/mouse/alps.c unsigned char otp[2][4]; otp 2586 drivers/input/mouse/alps.c memset(otp, 0, sizeof(otp)); otp 2588 drivers/input/mouse/alps.c if (alps_get_otp_values_ss4_v2(psmouse, 1, &otp[1][0]) || otp 2589 drivers/input/mouse/alps.c alps_get_otp_values_ss4_v2(psmouse, 0, &otp[0][0])) otp 2592 drivers/input/mouse/alps.c alps_update_device_area_ss4_v2(otp, priv); otp 2594 drivers/input/mouse/alps.c alps_update_btn_info_ss4_v2(otp, priv); otp 2596 drivers/input/mouse/alps.c alps_update_dual_info_ss4_v2(otp, priv, psmouse); otp 62 drivers/mfd/ab3100-otp.c static int __init ab3100_otp_read(struct ab3100_otp *otp) otp 68 drivers/mfd/ab3100-otp.c err = abx500_get_register_interruptible(otp->dev, 0, otp 71 drivers/mfd/ab3100-otp.c dev_err(otp->dev, "unable to read OTPP register\n"); otp 75 drivers/mfd/ab3100-otp.c err = abx500_get_register_page_interruptible(otp->dev, 0, otp 78 drivers/mfd/ab3100-otp.c dev_err(otp->dev, "unable to read OTP register page\n"); otp 83 drivers/mfd/ab3100-otp.c otp->locked = (otpp & 0x80); otp 84 drivers/mfd/ab3100-otp.c otp->freq = (otpp & 0x40) ? 32768 : 34100; otp 85 drivers/mfd/ab3100-otp.c otp->paf = (otpval[1] & 0x80); otp 86 drivers/mfd/ab3100-otp.c otp->imeich = (otpval[1] & 0x40); otp 87 drivers/mfd/ab3100-otp.c otp->cid = ((otpval[1] << 8) | otpval[0]) & 0x3fff; otp 88 drivers/mfd/ab3100-otp.c otp->tac = ((otpval[4] & 0x0f) << 16) | (otpval[3] << 8) | otpval[2]; otp 89 drivers/mfd/ab3100-otp.c otp->fac = ((otpval[5] & 0x0f) << 4) | (otpval[4] >> 4); otp 90 drivers/mfd/ab3100-otp.c otp->svn = (otpval[7] << 12) | (otpval[6] << 4) | (otpval[5] >> 4); otp 101 drivers/mfd/ab3100-otp.c struct ab3100_otp *otp = s->private; otp 103 drivers/mfd/ab3100-otp.c seq_printf(s, "OTP is %s\n", otp->locked ? "LOCKED" : "UNLOCKED"); otp 104 drivers/mfd/ab3100-otp.c seq_printf(s, "OTP clock switch startup is %uHz\n", otp->freq); otp 105 drivers/mfd/ab3100-otp.c seq_printf(s, "PAF is %s\n", otp->paf ? "SET" : "NOT SET"); otp 106 drivers/mfd/ab3100-otp.c seq_printf(s, "IMEI is %s\n", otp->imeich ? otp 108 drivers/mfd/ab3100-otp.c seq_printf(s, "CID: 0x%04x (decimal: %d)\n", otp->cid, otp->cid); otp 109 drivers/mfd/ab3100-otp.c seq_printf(s, "IMEI: %u-%u-%u\n", otp->tac, otp->fac, otp->svn); otp 126 drivers/mfd/ab3100-otp.c struct ab3100_otp *otp) otp 128 drivers/mfd/ab3100-otp.c otp->debugfs = debugfs_create_file("ab3100_otp", S_IFREG | S_IRUGO, otp 129 drivers/mfd/ab3100-otp.c NULL, otp, &ab3100_otp_operations); otp 132 drivers/mfd/ab3100-otp.c static void __exit ab3100_otp_exit_debugfs(struct ab3100_otp *otp) otp 134 drivers/mfd/ab3100-otp.c debugfs_remove(otp->debugfs); otp 139 drivers/mfd/ab3100-otp.c struct ab3100_otp *otp) otp 143 drivers/mfd/ab3100-otp.c static inline void __exit ab3100_otp_exit_debugfs(struct ab3100_otp *otp) otp 153 drivers/mfd/ab3100-otp.c struct ab3100_otp *otp = dev_get_drvdata(dev); \ otp 154 drivers/mfd/ab3100-otp.c return sprintf(buf, "%u\n", otp->name); \ otp 179 drivers/mfd/ab3100-otp.c struct ab3100_otp *otp; otp 183 drivers/mfd/ab3100-otp.c otp = devm_kzalloc(&pdev->dev, sizeof(struct ab3100_otp), GFP_KERNEL); otp 184 drivers/mfd/ab3100-otp.c if (!otp) otp 187 drivers/mfd/ab3100-otp.c otp->dev = &pdev->dev; otp 190 drivers/mfd/ab3100-otp.c platform_set_drvdata(pdev, otp); otp 192 drivers/mfd/ab3100-otp.c err = ab3100_otp_read(otp); otp 207 drivers/mfd/ab3100-otp.c ab3100_otp_init_debugfs(&pdev->dev, otp); otp 219 drivers/mfd/ab3100-otp.c struct ab3100_otp *otp = platform_get_drvdata(pdev); otp 225 drivers/mfd/ab3100-otp.c ab3100_otp_exit_debugfs(otp); otp 2303 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_intelext_otpinfo *otp; otp 2333 drivers/mtd/chips/cfi_cmdset_0001.c otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; otp 2417 drivers/mtd/chips/cfi_cmdset_0001.c reg_prot_offset = otp->ProtRegAddr; otp 2418 drivers/mtd/chips/cfi_cmdset_0001.c reg_fact_groups = otp->FactGroups; otp 2419 drivers/mtd/chips/cfi_cmdset_0001.c reg_fact_size = 1 << otp->FactProtRegSize; otp 2420 drivers/mtd/chips/cfi_cmdset_0001.c reg_user_groups = otp->UserGroups; otp 2421 drivers/mtd/chips/cfi_cmdset_0001.c reg_user_size = 1 << otp->UserProtRegSize; otp 2422 drivers/mtd/chips/cfi_cmdset_0001.c otp++; otp 1495 drivers/mtd/chips/cfi_cmdset_0002.c uint8_t otp, lockreg; otp 1522 drivers/mtd/chips/cfi_cmdset_0002.c otp = cfi_read_query(map, base + 0x3 * ofs_factor); otp 1527 drivers/mtd/chips/cfi_cmdset_0002.c if (otp & 0x80) { otp 51 drivers/mtd/nand/onenand/onenand_base.c static int otp; otp 53 drivers/mtd/nand/onenand/onenand_base.c module_param(otp, int, 0400); otp 54 drivers/mtd/nand/onenand/onenand_base.c MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP" otp 3224 drivers/mtd/nand/onenand/onenand_base.c if (otp == 1) otp 3226 drivers/mtd/nand/onenand/onenand_base.c else if (otp == 2) otp 3228 drivers/mtd/nand/onenand/onenand_base.c else if (otp == 3) otp 3230 drivers/mtd/nand/onenand/onenand_base.c else if (otp != 0) otp 2317 drivers/net/ethernet/broadcom/tg3.c u32 otp, phy; otp 2322 drivers/net/ethernet/broadcom/tg3.c otp = tp->phy_otp; otp 2327 drivers/net/ethernet/broadcom/tg3.c phy = ((otp & TG3_OTP_AGCTGT_MASK) >> TG3_OTP_AGCTGT_SHIFT); otp 2331 drivers/net/ethernet/broadcom/tg3.c phy = ((otp & TG3_OTP_HPFFLTR_MASK) >> TG3_OTP_HPFFLTR_SHIFT) | otp 2332 drivers/net/ethernet/broadcom/tg3.c ((otp & TG3_OTP_HPFOVER_MASK) >> TG3_OTP_HPFOVER_SHIFT); otp 2335 drivers/net/ethernet/broadcom/tg3.c phy = ((otp & TG3_OTP_LPFDIS_MASK) >> TG3_OTP_LPFDIS_SHIFT); otp 2339 drivers/net/ethernet/broadcom/tg3.c phy = ((otp & TG3_OTP_VDAC_MASK) >> TG3_OTP_VDAC_SHIFT); otp 2342 drivers/net/ethernet/broadcom/tg3.c phy = ((otp & TG3_OTP_10BTAMP_MASK) >> TG3_OTP_10BTAMP_SHIFT); otp 2345 drivers/net/ethernet/broadcom/tg3.c phy = ((otp & TG3_OTP_ROFF_MASK) >> TG3_OTP_ROFF_SHIFT) | otp 2346 drivers/net/ethernet/broadcom/tg3.c ((otp & TG3_OTP_RCOFF_MASK) >> TG3_OTP_RCOFF_SHIFT); otp 793 drivers/net/wireless/ath/ath6kl/core.h const char *otp; otp 52 drivers/net/wireless/ath/ath6kl/init.c .otp = AR6003_HW_2_0_OTP_FILE, otp 75 drivers/net/wireless/ath/ath6kl/init.c .otp = AR6003_HW_2_1_1_OTP_FILE, otp 792 drivers/net/wireless/ath/ath6kl/init.c if (ar->hw.fw.otp == NULL) { otp 799 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.otp); otp 91 drivers/net/wireless/mediatek/mt76/debugfs.c if (dev->otp.data) otp 92 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_blob("otp", 0400, dir, &dev->otp); otp 476 drivers/net/wireless/mediatek/mt76/mt76.h struct debugfs_blob_wrapper otp; otp 50 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); otp 51 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c dev->mt76.otp.size = len; otp 52 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (!dev->mt76.otp.data) otp 55 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c buf = dev->mt76.otp.data; otp 153 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (dev->mt76.otp.data) { otp 155 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); otp 157 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, otp 53 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); otp 54 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c dev->mt76.otp.size = len; otp 55 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c if (!dev->mt76.otp.data) otp 58 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c buf = dev->mt76.otp.data; otp 176 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c u8 *otp = dev->mt76.otp.data; otp 179 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c if (!otp) otp 183 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c if (!otp[ical[i]]) otp 187 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c eeprom[ical[i]] = otp[ical[i]]; otp 190 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c eeprom[ical_nocheck[i]] = otp[ical_nocheck[i]]; otp 202 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c if (ret && dev->mt76.otp.data) otp 203 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, otp 150 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, MT7662_EEPROM_SIZE, otp 152 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c dev->mt76.otp.size = MT7662_EEPROM_SIZE; otp 153 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c if (!dev->mt76.otp.data) otp 156 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c efuse = dev->mt76.otp.data; otp 44 drivers/nvmem/lpc18xx_otp.c struct lpc18xx_otp *otp = context; otp 54 drivers/nvmem/lpc18xx_otp.c *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); otp 70 drivers/nvmem/lpc18xx_otp.c struct lpc18xx_otp *otp; otp 73 drivers/nvmem/lpc18xx_otp.c otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); otp 74 drivers/nvmem/lpc18xx_otp.c if (!otp) otp 78 drivers/nvmem/lpc18xx_otp.c otp->base = devm_ioremap_resource(&pdev->dev, res); otp 79 drivers/nvmem/lpc18xx_otp.c if (IS_ERR(otp->base)) otp 80 drivers/nvmem/lpc18xx_otp.c return PTR_ERR(otp->base); otp 84 drivers/nvmem/lpc18xx_otp.c lpc18xx_otp_nvmem_config.priv = otp; otp 36 drivers/nvmem/mxs-ocotp.c static int mxs_ocotp_wait(struct mxs_ocotp *otp) otp 42 drivers/nvmem/mxs-ocotp.c status = readl(otp->base); otp 61 drivers/nvmem/mxs-ocotp.c struct mxs_ocotp *otp = context; otp 65 drivers/nvmem/mxs-ocotp.c ret = clk_enable(otp->clk); otp 69 drivers/nvmem/mxs-ocotp.c writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); otp 71 drivers/nvmem/mxs-ocotp.c ret = mxs_ocotp_wait(otp); otp 76 drivers/nvmem/mxs-ocotp.c writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); otp 81 drivers/nvmem/mxs-ocotp.c ret = mxs_ocotp_wait(otp); otp 90 drivers/nvmem/mxs-ocotp.c *buf++ = readl(otp->base + offset); otp 99 drivers/nvmem/mxs-ocotp.c writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); otp 102 drivers/nvmem/mxs-ocotp.c clk_disable(otp->clk); otp 137 drivers/nvmem/mxs-ocotp.c struct mxs_ocotp *otp; otp 145 drivers/nvmem/mxs-ocotp.c otp = devm_kzalloc(dev, sizeof(*otp), GFP_KERNEL); otp 146 drivers/nvmem/mxs-ocotp.c if (!otp) otp 149 drivers/nvmem/mxs-ocotp.c otp->base = devm_platform_ioremap_resource(pdev, 0); otp 150 drivers/nvmem/mxs-ocotp.c if (IS_ERR(otp->base)) otp 151 drivers/nvmem/mxs-ocotp.c return PTR_ERR(otp->base); otp 153 drivers/nvmem/mxs-ocotp.c otp->clk = devm_clk_get(&pdev->dev, NULL); otp 154 drivers/nvmem/mxs-ocotp.c if (IS_ERR(otp->clk)) otp 155 drivers/nvmem/mxs-ocotp.c return PTR_ERR(otp->clk); otp 157 drivers/nvmem/mxs-ocotp.c ret = clk_prepare(otp->clk); otp 166 drivers/nvmem/mxs-ocotp.c ocotp_config.priv = otp; otp 168 drivers/nvmem/mxs-ocotp.c otp->nvmem = devm_nvmem_register(dev, &ocotp_config); otp 169 drivers/nvmem/mxs-ocotp.c if (IS_ERR(otp->nvmem)) { otp 170 drivers/nvmem/mxs-ocotp.c ret = PTR_ERR(otp->nvmem); otp 174 drivers/nvmem/mxs-ocotp.c platform_set_drvdata(pdev, otp); otp 179 drivers/nvmem/mxs-ocotp.c clk_unprepare(otp->clk); otp 186 drivers/nvmem/mxs-ocotp.c struct mxs_ocotp *otp = platform_get_drvdata(pdev); otp 188 drivers/nvmem/mxs-ocotp.c clk_unprepare(otp->clk); otp 50 drivers/nvmem/stm32-romem.c static int stm32_bsec_smc(u8 op, u32 otp, u32 data, u32 *result) otp 55 drivers/nvmem/stm32-romem.c arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res); otp 86 drivers/nvmem/stm32-romem.c u32 otp = i >> 2; otp 88 drivers/nvmem/stm32-romem.c if (otp < STM32MP15_BSEC_NUM_LOWER) { otp 93 drivers/nvmem/stm32-romem.c ret = stm32_bsec_smc(STM32_SMC_READ_SHADOW, otp, 0, otp 96 drivers/nvmem/stm32-romem.c dev_err(dev, "Can't read data%d (%d)\n", otp, otp 67 fs/xfs/xfs_trans_dquot.c struct xfs_trans *otp, otp 75 fs/xfs/xfs_trans_dquot.c if (!otp->t_dqinfo) otp 84 fs/xfs/xfs_trans_dquot.c if (otp->t_flags & XFS_TRANS_DQ_DIRTY) otp 88 fs/xfs/xfs_trans_dquot.c oqa = otp->t_dqinfo->dqs[j]; otp 160 security/smack/smack_lsm.c static int smk_bu_task(struct task_struct *otp, int mode, int rc) otp 163 security/smack/smack_lsm.c struct smack_known *smk_task = smk_of_task_struct(otp); otp 174 security/smack/smack_lsm.c current->comm, otp->comm); otp 178 security/smack/smack_lsm.c #define smk_bu_task(otp, mode, RC) (RC)