Home
last modified time | relevance | path

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

123

/Linux-v6.6/drivers/nvmem/
Drockchip-otp.c85 static int rockchip_otp_reset(struct rockchip_otp *otp) in rockchip_otp_reset() argument
89 ret = reset_control_assert(otp->rst); in rockchip_otp_reset()
91 dev_err(otp->dev, "failed to assert otp phy %d\n", ret); in rockchip_otp_reset()
97 ret = reset_control_deassert(otp->rst); in rockchip_otp_reset()
99 dev_err(otp->dev, "failed to deassert otp phy %d\n", ret); in rockchip_otp_reset()
106 static int rockchip_otp_wait_status(struct rockchip_otp *otp, in rockchip_otp_wait_status() argument
112 ret = readl_poll_timeout_atomic(otp->base + reg, status, in rockchip_otp_wait_status()
118 writel(flag, otp->base + reg); in rockchip_otp_wait_status()
123 static int rockchip_otp_ecc_enable(struct rockchip_otp *otp, bool enable) in rockchip_otp_ecc_enable() argument
128 otp->base + OTPC_SBPI_CTRL); in rockchip_otp_ecc_enable()
[all …]
Dlan9662-otpc.c47 static int lan9662_otp_power(struct lan9662_otp *otp, bool up) in lan9662_otp_power() argument
49 void __iomem *pwrdn = OTP_OTP_PWR_DN(otp->base); in lan9662_otp_power()
53 if (lan9662_otp_wait_flag_clear(OTP_OTP_STATUS(otp->base), in lan9662_otp_power()
63 static int lan9662_otp_execute(struct lan9662_otp *otp) in lan9662_otp_execute() argument
65 if (lan9662_otp_wait_flag_clear(OTP_OTP_CMD_GO(otp->base), in lan9662_otp_execute()
69 if (lan9662_otp_wait_flag_clear(OTP_OTP_STATUS(otp->base), in lan9662_otp_execute()
76 static void lan9662_otp_set_address(struct lan9662_otp *otp, u32 offset) in lan9662_otp_set_address() argument
78 writel(0xff & (offset >> 8), OTP_OTP_ADDR_HI(otp->base)); in lan9662_otp_set_address()
79 writel(0xff & offset, OTP_OTP_ADDR_LO(otp->base)); in lan9662_otp_set_address()
82 static int lan9662_otp_read_byte(struct lan9662_otp *otp, u32 offset, u8 *dst) in lan9662_otp_read_byte() argument
[all …]
Dmxs-ocotp.c36 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 …]
Dsunplus-ocotp.c78 static int sp_otp_read_real(struct sp_ocotp_priv *otp, int addr, char *value) in sp_otp_read_real() argument
94 writel(readl(otp->base[OTPRX] + OTP_STATUS) & OTP_READ_DONE_MASK & in sp_otp_read_real()
95 OTP_LOAD_SECURE_DONE_MASK, otp->base[OTPRX] + OTP_STATUS); in sp_otp_read_real()
96 writel(addr, otp->base[OTPRX] + OTP_READ_ADDRESS); in sp_otp_read_real()
97 writel(readl(otp->base[OTPRX] + OTP_CONTROL_2) | OTP_READ, in sp_otp_read_real()
98 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real()
99 writel(readl(otp->base[OTPRX] + OTP_CONTROL_2) & SEL_BAK_KEY2_MASK & SW_TRIM_EN_MASK in sp_otp_read_real()
101 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real()
102 writel((readl(otp->base[OTPRX] + OTP_CONTROL_2) & OTP_RD_PERIOD_MASK) | CPU_CLOCK, in sp_otp_read_real()
103 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real()
[all …]
Dlpc18xx_otp.c43 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local
53 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read()
69 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local
71 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe()
72 if (!otp) in lpc18xx_otp_probe()
75 otp->base = devm_platform_ioremap_resource(pdev, 0); in lpc18xx_otp_probe()
76 if (IS_ERR(otp->base)) in lpc18xx_otp_probe()
77 return PTR_ERR(otp->base); in lpc18xx_otp_probe()
81 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
DMakefile45 obj-$(CONFIG_NVMEM_NINTENDO_OTP) += nvmem-nintendo-otp.o
46 nvmem-nintendo-otp-y := nintendo-otp.o
57 obj-$(CONFIG_NVMEM_ROCKCHIP_OTP) += nvmem-rockchip-otp.o
58 nvmem-rockchip-otp-y := rockchip-otp.o
Dstm32-romem.c54 static int stm32_bsec_smc(u8 op, u32 otp, u32 data, u32 *result) in stm32_bsec_smc() argument
59 arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res); in stm32_bsec_smc()
90 u32 otp = i >> 2; in stm32_bsec_read() local
92 if (otp < priv->lower) { in stm32_bsec_read()
97 ret = stm32_bsec_smc(STM32_SMC_READ_SHADOW, otp, 0, in stm32_bsec_read()
100 dev_err(dev, "Can't read data%d (%d)\n", otp, in stm32_bsec_read()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7615/
Deeprom.c57 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init()
58 dev->mt76.otp.size = len; in mt7615_efuse_init()
59 if (!dev->mt76.otp.data) in mt7615_efuse_init()
62 buf = dev->mt76.otp.data; in mt7615_efuse_init()
278 u8 *otp = dev->mt76.otp.data; in mt7615_apply_cal_free_data() local
281 if (!otp) in mt7615_apply_cal_free_data()
285 if (!otp[ical[i]]) in mt7615_apply_cal_free_data()
289 eeprom[ical[i]] = otp[ical[i]]; in mt7615_apply_cal_free_data()
292 eeprom[ical_nocheck[i]] = otp[ical_nocheck[i]]; in mt7615_apply_cal_free_data()
301 u8 *otp = dev->mt76.otp.data; in mt7622_apply_cal_free_data() local
[all …]
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7603/
Deeprom.c51 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()
165 if (dev->mt76.otp.data) { in mt7603_eeprom_init()
167 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init()
169 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init()
/Linux-v6.6/Documentation/devicetree/bindings/nvmem/
Dlpc1850-otp.txt6 - compatible: Should be "nxp,lpc1850-otp"
15 otp: otp@40045000 {
16 compatible = "nxp,lpc1850-otp";
Dbrcm,ocotp.txt13 otp: otp@301c800 {
/Linux-v6.6/drivers/mtd/spi-nor/
Dotp.c14 #define spi_nor_otp_region_len(nor) ((nor)->params->otp.org->len)
15 #define spi_nor_otp_n_regions(nor) ((nor)->params->otp.org->n_regions)
225 const struct spi_nor_otp_organization *org = nor->params->otp.org; in spi_nor_otp_region_start()
250 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_info()
287 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_range_is_locked()
312 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_read_write()
398 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_erase()
451 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_lock()
487 if (!nor->params->otp.ops) in spi_nor_set_mtd_otp_ops()
Dwinbond.c224 if (params->otp.org->n_regions) in winbond_nor_late_init()
225 params->otp.ops = &winbond_nor_otp_ops; in winbond_nor_late_init()
DMakefile3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c360 struct brcmf_otp_params otp; member
1714 if (devinfo->otp.valid) { in brcmf_pcie_download_fw_nvram()
1969 strscpy(devinfo->otp.module, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1972 strscpy(devinfo->otp.vendor, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1975 strscpy(devinfo->otp.version, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1984 devinfo->otp.module, devinfo->otp.vendor, in brcmf_pcie_parse_otp_sys_vendor()
1985 devinfo->otp.version); in brcmf_pcie_parse_otp_sys_vendor()
1987 if (!devinfo->otp.module[0] || in brcmf_pcie_parse_otp_sys_vendor()
1988 !devinfo->otp.vendor[0] || in brcmf_pcie_parse_otp_sys_vendor()
1989 !devinfo->otp.version[0]) in brcmf_pcie_parse_otp_sys_vendor()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/mtd/
Dnand-macronix.txt17 - randomizer enable: should be "mxic,enable-randomizer-otp"
25 mxic,enable-randomizer-otp;
/Linux-v6.6/drivers/input/mouse/
Dalps.c2462 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 …]
/Linux-v6.6/arch/x86/crypto/
Dpoly1305-x86_64-cryptogams.pl3871 my ($out,$inp,$otp,$len)=$win64 ? ("%rcx","%rdx","%r8", "%r9") : # Win64 order
3878 sub $otp,$inp
3879 sub $otp,$out
3885 movdqu ($inp,$otp),%xmm0
3886 pxor ($otp),%xmm0
3887 movdqu %xmm0,($out,$otp)
3888 movdqa %xmm0,($otp)
3889 lea 16($otp),$otp
3901 mov ($inp,$otp),%al
3902 xor ($otp),%al
[all …]
/Linux-v6.6/drivers/iio/gyro/
Dmpu3050-core.c799 u64 otp; in mpu3050_hw_init() local
838 otp = le64_to_cpu(otp_le); in mpu3050_hw_init()
844 FIELD_GET(GENMASK_ULL(12, 0), otp), in mpu3050_hw_init()
846 FIELD_GET(GENMASK_ULL(17, 13), otp), in mpu3050_hw_init()
848 FIELD_GET(GENMASK_ULL(33, 18), otp), in mpu3050_hw_init()
850 FIELD_GET(GENMASK_ULL(45, 34), otp), in mpu3050_hw_init()
852 FIELD_GET(GENMASK_ULL(49, 47), otp), in mpu3050_hw_init()
854 FIELD_GET(GENMASK_ULL(55, 50), otp)); in mpu3050_hw_init()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/
Ddebugfs.c121 if (dev->otp.data) in mt76_register_debugfs_fops()
122 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs_fops()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
Deeprom.c155 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()
/Linux-v6.6/drivers/bluetooth/
Dhci_bcm4377.c2027 static int bcm4377_parse_otp_sys_vendor(struct bcm4377_data *bcm4377, u8 *otp, in bcm4377_parse_otp_sys_vendor() argument
2039 if (get_unaligned_le32(otp) != BCM4377_OTP_VENDOR_HDR) in bcm4377_parse_otp_sys_vendor()
2042 chip_params = &otp[idx]; in bcm4377_parse_otp_sys_vendor()
2049 board_params = &otp[idx]; in bcm4377_parse_otp_sys_vendor()
2081 u8 *otp; in bcm4377_parse_otp() local
2085 otp = kzalloc(BCM4377_OTP_SIZE, GFP_KERNEL); in bcm4377_parse_otp()
2086 if (!otp) in bcm4377_parse_otp()
2090 otp[i] = ioread8(bcm4377->bar0 + bcm4377->hw->otp_offset + i); in bcm4377_parse_otp()
2094 u8 type = otp[i]; in bcm4377_parse_otp()
2095 u8 length = otp[i + 1]; in bcm4377_parse_otp()
[all …]
/Linux-v6.6/arch/powerpc/boot/dts/
Dwii.dts233 otp@d8001ec {
234 compatible = "nintendo,hollywood-otp";
/Linux-v6.6/arch/arm64/boot/dts/freescale/
Dfsl-ls1028a-kontron-sl28.dts160 otp-1 {
161 compatible = "user-otp";
/Linux-v6.6/fs/xfs/
Dxfs_trans_dquot.c75 struct xfs_trans *otp, in xfs_trans_dup_dqinfo() argument
83 if (!otp->t_dqinfo) in xfs_trans_dup_dqinfo()
89 oqa = otp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo()

123