/kernel/linux/linux-5.10/drivers/nvmem/ |
D | rockchip-otp.c | 74 static int rockchip_otp_reset(struct rockchip_otp *otp) in rockchip_otp_reset() argument 78 ret = reset_control_assert(otp->rst); in rockchip_otp_reset() 80 dev_err(otp->dev, "failed to assert otp phy %d\n", ret); in rockchip_otp_reset() 86 ret = reset_control_deassert(otp->rst); in rockchip_otp_reset() 88 dev_err(otp->dev, "failed to deassert otp phy %d\n", ret); in rockchip_otp_reset() 95 static int rockchip_otp_wait_status(struct rockchip_otp *otp, u32 flag) in rockchip_otp_wait_status() argument 100 ret = readl_poll_timeout_atomic(otp->base + OTPC_INT_STATUS, status, in rockchip_otp_wait_status() 106 writel(flag, otp->base + OTPC_INT_STATUS); in rockchip_otp_wait_status() 111 static int rockchip_otp_ecc_enable(struct rockchip_otp *otp, bool enable) in rockchip_otp_ecc_enable() argument 116 otp->base + OTPC_SBPI_CTRL); in rockchip_otp_ecc_enable() [all …]
|
D | mxs-ocotp.c | 36 static int mxs_ocotp_wait(struct mxs_ocotp *otp) in mxs_ocotp_wait() argument 42 status = readl(otp->base); in mxs_ocotp_wait() 61 struct mxs_ocotp *otp = context; in mxs_ocotp_read() local 65 ret = clk_enable(otp->clk); in mxs_ocotp_read() 69 writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() 71 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 76 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); in mxs_ocotp_read() 81 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 90 *buf++ = readl(otp->base + offset); in mxs_ocotp_read() 99 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() [all …]
|
D | lpc18xx_otp.c | 44 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local 54 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read() 70 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local 73 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe() 74 if (!otp) in lpc18xx_otp_probe() 78 otp->base = devm_ioremap_resource(&pdev->dev, res); in lpc18xx_otp_probe() 79 if (IS_ERR(otp->base)) in lpc18xx_otp_probe() 80 return PTR_ERR(otp->base); in lpc18xx_otp_probe() 84 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
|
D | stm32-romem.c | 50 static int stm32_bsec_smc(u8 op, u32 otp, u32 data, u32 *result) in stm32_bsec_smc() argument 55 arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res); in stm32_bsec_smc() 86 u32 otp = i >> 2; in stm32_bsec_read() local 88 if (otp < STM32MP15_BSEC_NUM_LOWER) { in stm32_bsec_read() 93 ret = stm32_bsec_smc(STM32_SMC_READ_SHADOW, otp, 0, in stm32_bsec_read() 96 dev_err(dev, "Can't read data%d (%d)\n", otp, in stm32_bsec_read()
|
D | Makefile | 34 obj-$(CONFIG_ROCKCHIP_OTP) += nvmem-rockchip-otp.o 35 nvmem-rockchip-otp-y := rockchip-otp.o
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | ab3100-otp.c | 62 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 …]
|
D | Makefile | 65 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o 182 obj-$(CONFIG_AB3100_OTP) += ab3100-otp.o
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | eeprom.c | 54 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init() 55 dev->mt76.otp.size = len; in mt7615_efuse_init() 56 if (!dev->mt76.otp.data) in mt7615_efuse_init() 59 buf = dev->mt76.otp.data; in mt7615_efuse_init() 273 u8 *otp = dev->mt76.otp.data; in mt7615_apply_cal_free_data() local 276 if (!otp) in mt7615_apply_cal_free_data() 280 if (!otp[ical[i]]) in mt7615_apply_cal_free_data() 284 eeprom[ical[i]] = otp[ical[i]]; in mt7615_apply_cal_free_data() 287 eeprom[ical_nocheck[i]] = otp[ical_nocheck[i]]; in mt7615_apply_cal_free_data() 296 u8 *otp = dev->mt76.otp.data; in mt7622_apply_cal_free_data() local [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/nvmem/ |
D | rockchip-otp.txt | 5 - "rockchip,px30-otp" - for PX30 SoCs. 6 - "rockchip,rk3308-otp" - for RK3308 SoCs. 9 - clock-names: Should be "otp", "apb_pclk" and "phy". 17 otp: otp@ff290000 { 18 compatible = "rockchip,px30-otp"; 24 clock-names = "otp", "apb_pclk", "phy";
|
D | lpc1850-otp.txt | 6 - compatible: Should be "nxp,lpc1850-otp" 15 otp: otp@40045000 { 16 compatible = "nxp,lpc1850-otp";
|
D | brcm,ocotp.txt | 13 otp: otp@301c800 {
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | eeprom.c | 51 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7603_efuse_init() 52 dev->mt76.otp.size = len; in mt7603_efuse_init() 53 if (!dev->mt76.otp.data) in mt7603_efuse_init() 56 buf = dev->mt76.otp.data; in mt7603_efuse_init() 164 if (dev->mt76.otp.data) { in mt7603_eeprom_init() 166 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init() 168 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init()
|
/kernel/linux/linux-5.10/drivers/iio/gyro/ |
D | mpu3050-core.c | 798 u8 otp[8]; in mpu3050_hw_init() local 829 sizeof(otp), in mpu3050_hw_init() 830 otp); in mpu3050_hw_init() 835 add_device_randomness(otp, sizeof(otp)); in mpu3050_hw_init() 841 (otp[1] << 8 | otp[0]) & 0x1fff, in mpu3050_hw_init() 843 ((otp[2] << 8 | otp[1]) & 0x03e0) >> 5, in mpu3050_hw_init() 845 ((otp[4] << 16 | otp[3] << 8 | otp[2]) & 0x3fffc) >> 2, in mpu3050_hw_init() 847 ((otp[5] << 8 | otp[4]) & 0x3ffc) >> 2, in mpu3050_hw_init() 849 ((otp[6] << 8 | otp[5]) & 0x0380) >> 7, in mpu3050_hw_init() 851 otp[6] >> 2); in mpu3050_hw_init()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/ |
D | nand-macronix.txt | 17 - randomizer enable: should be "mxic,enable-randomizer-otp" 25 mxic,enable-randomizer-otp;
|
/kernel/linux/linux-5.10/drivers/input/mouse/ |
D | alps.c | 2462 unsigned char index, unsigned char otp[]) in alps_get_otp_values_ss4_v2() argument 2470 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2() 2478 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2() 2487 static int alps_update_device_area_ss4_v2(unsigned char otp[][4], in alps_update_device_area_ss4_v2() 2496 SS4PLUS_NUMSENSOR_XOFFSET + (otp[0][2] & 0x0F); in alps_update_device_area_ss4_v2() 2498 SS4PLUS_NUMSENSOR_YOFFSET + ((otp[0][2] >> 4) & 0x0F); in alps_update_device_area_ss4_v2() 2505 x_pitch = (otp[0][1] & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2() 2506 y_pitch = ((otp[0][1] >> 4) & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2() 2510 SS4_NUMSENSOR_XOFFSET + (otp[1][0] & 0x0F); in alps_update_device_area_ss4_v2() 2512 SS4_NUMSENSOR_YOFFSET + ((otp[1][0] >> 4) & 0x0F); in alps_update_device_area_ss4_v2() [all …]
|
/kernel/linux/linux-5.10/arch/x86/crypto/ |
D | poly1305-x86_64-cryptogams.pl | 3872 my ($out,$inp,$otp,$len)=$win64 ? ("%rcx","%rdx","%r8", "%r9") : # Win64 order 3879 sub $otp,$inp 3880 sub $otp,$out 3886 movdqu ($inp,$otp),%xmm0 3887 pxor ($otp),%xmm0 3888 movdqu %xmm0,($out,$otp) 3889 movdqa %xmm0,($otp) 3890 lea 16($otp),$otp 3902 mov ($inp,$otp),%al 3903 xor ($otp),%al [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
D | debugfs.c | 106 if (dev->otp.data) in mt76_register_debugfs() 107 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | eeprom.c | 155 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, MT7662_EEPROM_SIZE, in mt76x2_eeprom_load() 157 dev->mt76.otp.size = MT7662_EEPROM_SIZE; in mt76x2_eeprom_load() 158 if (!dev->mt76.otp.data) in mt76x2_eeprom_load() 161 efuse = dev->mt76.otp.data; in mt76x2_eeprom_load()
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_trans_dquot.c | 74 struct xfs_trans *otp, in xfs_trans_dup_dqinfo() argument 82 if (!otp->t_dqinfo) in xfs_trans_dup_dqinfo() 91 if (otp->t_flags & XFS_TRANS_DQ_DIRTY) in xfs_trans_dup_dqinfo() 95 oqa = otp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo()
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | picoxcell-pc3x3.dtsi | 350 otp@ffff8000 { 351 compatible = "picochip,otp-pc3x3";
|
D | bcm-cygnus.dtsi | 108 otp: otp@301c800 { label
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/wireless/ |
D | mediatek,mt76.txt | 28 - mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on
|
/kernel/linux/linux-5.10/drivers/mtd/chips/ |
D | cfi_cmdset_0001.c | 2306 struct cfi_intelext_otpinfo *otp; in cfi_intelext_otp_walk() local 2336 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; in cfi_intelext_otp_walk() 2420 reg_prot_offset = otp->ProtRegAddr; in cfi_intelext_otp_walk() 2421 reg_fact_groups = otp->FactGroups; in cfi_intelext_otp_walk() 2422 reg_fact_size = 1 << otp->FactProtRegSize; in cfi_intelext_otp_walk() 2423 reg_user_groups = otp->UserGroups; in cfi_intelext_otp_walk() 2424 reg_user_size = 1 << otp->UserProtRegSize; in cfi_intelext_otp_walk() 2425 otp++; in cfi_intelext_otp_walk()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
D | init.c | 52 .otp = AR6003_HW_2_0_OTP_FILE, 75 .otp = AR6003_HW_2_1_1_OTP_FILE, 792 if (ar->hw.fw.otp == NULL) { in ath6kl_fetch_otp_file() 799 ar->hw.fw.dir, ar->hw.fw.otp); in ath6kl_fetch_otp_file()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 51 static int otp; variable 53 module_param(otp, int, 0400); 54 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP" 3219 if (otp == 1) in onenand_lock_user_prot_reg() 3221 else if (otp == 2) in onenand_lock_user_prot_reg() 3223 else if (otp == 3) in onenand_lock_user_prot_reg() 3225 else if (otp != 0) in onenand_lock_user_prot_reg()
|