Searched refs:otp (Results 1 – 4 of 4) sorted by relevance
/linux-4.19.296/drivers/nvmem/ |
D | mxs-ocotp.c | 46 static int mxs_ocotp_wait(struct mxs_ocotp *otp) in mxs_ocotp_wait() argument 52 status = readl(otp->base); in mxs_ocotp_wait() 71 struct mxs_ocotp *otp = context; in mxs_ocotp_read() local 75 ret = clk_enable(otp->clk); in mxs_ocotp_read() 79 writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() 81 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 86 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); in mxs_ocotp_read() 91 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 100 *buf++ = readl(otp->base + offset); in mxs_ocotp_read() 109 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() [all …]
|
D | lpc18xx_otp.c | 47 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local 57 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read() 73 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local 76 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe() 77 if (!otp) in lpc18xx_otp_probe() 81 otp->base = devm_ioremap_resource(&pdev->dev, res); in lpc18xx_otp_probe() 82 if (IS_ERR(otp->base)) in lpc18xx_otp_probe() 83 return PTR_ERR(otp->base); in lpc18xx_otp_probe() 87 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
|
/linux-4.19.296/drivers/iio/gyro/ |
D | mpu3050-core.c | 799 u8 otp[8]; in mpu3050_hw_init() local 830 sizeof(otp), in mpu3050_hw_init() 831 otp); in mpu3050_hw_init() 836 add_device_randomness(otp, sizeof(otp)); in mpu3050_hw_init() 842 (otp[1] << 8 | otp[0]) & 0x1fff, in mpu3050_hw_init() 844 ((otp[2] << 8 | otp[1]) & 0x03e0) >> 5, in mpu3050_hw_init() 846 ((otp[4] << 16 | otp[3] << 8 | otp[2]) & 0x3fffc) >> 2, in mpu3050_hw_init() 848 ((otp[5] << 8 | otp[4]) & 0x3ffc) >> 2, in mpu3050_hw_init() 850 ((otp[6] << 8 | otp[5]) & 0x0380) >> 7, in mpu3050_hw_init() 852 otp[6] >> 2); in mpu3050_hw_init()
|
/linux-4.19.296/fs/xfs/ |
D | xfs_trans_dquot.c | 77 xfs_trans_t *otp, in xfs_trans_dup_dqinfo() argument 85 if (!otp->t_dqinfo) in xfs_trans_dup_dqinfo() 94 if (otp->t_flags & XFS_TRANS_DQ_DIRTY) in xfs_trans_dup_dqinfo() 98 oqa = otp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo()
|