/Linux-v4.19/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 | 60 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o 169 obj-$(CONFIG_AB3100_OTP) += ab3100-otp.o
|
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/nvmem/ |
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 {
|
/Linux-v4.19/drivers/staging/mt29f_spinand/ |
D | mt29f_spinand.c | 206 static int spinand_get_otp(struct spi_device *spi_nand, u8 *otp) in spinand_get_otp() argument 215 cmd.rx_buf = otp; in spinand_get_otp() 230 static int spinand_set_otp(struct spi_device *spi_nand, u8 *otp) in spinand_set_otp() argument 239 cmd.tx_buf = otp; in spinand_set_otp() 259 u8 otp = 0; in spinand_enable_ecc() local 261 retval = spinand_get_otp(spi_nand, &otp); in spinand_enable_ecc() 265 if ((otp & OTP_ECC_MASK) == OTP_ECC_MASK) in spinand_enable_ecc() 267 otp |= OTP_ECC_MASK; in spinand_enable_ecc() 268 retval = spinand_set_otp(spi_nand, &otp); in spinand_enable_ecc() 271 return spinand_get_otp(spi_nand, &otp); in spinand_enable_ecc() [all …]
|
/Linux-v4.19/drivers/iio/gyro/ |
D | mpu3050-core.c | 787 u8 otp[8]; in mpu3050_hw_init() local 818 sizeof(otp), in mpu3050_hw_init() 819 otp); in mpu3050_hw_init() 824 add_device_randomness(otp, sizeof(otp)); in mpu3050_hw_init() 830 (otp[1] << 8 | otp[0]) & 0x1fff, in mpu3050_hw_init() 832 ((otp[2] << 8 | otp[1]) & 0x03e0) >> 5, in mpu3050_hw_init() 834 ((otp[4] << 16 | otp[3] << 8 | otp[2]) & 0x3fffc) >> 2, in mpu3050_hw_init() 836 ((otp[5] << 8 | otp[4]) & 0x3ffc) >> 2, in mpu3050_hw_init() 838 ((otp[6] << 8 | otp[5]) & 0x0380) >> 7, in mpu3050_hw_init() 840 otp[6] >> 2); in mpu3050_hw_init()
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/ |
D | debugfs.c | 72 if (dev->otp.data) in mt76_register_debugfs() 73 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs()
|
D | mt76x2_eeprom.c | 236 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, MT7662_EEPROM_SIZE, in mt76x2_eeprom_load() 238 dev->mt76.otp.size = MT7662_EEPROM_SIZE; in mt76x2_eeprom_load() 239 if (!dev->mt76.otp.data) in mt76x2_eeprom_load() 242 efuse = dev->mt76.otp.data; in mt76x2_eeprom_load()
|
D | mt76.h | 346 struct debugfs_blob_wrapper otp; member
|
/Linux-v4.19/drivers/input/mouse/ |
D | alps.c | 2464 unsigned char index, unsigned char otp[]) in alps_get_otp_values_ss4_v2() argument 2472 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2() 2480 ps2_command(ps2dev, otp, PSMOUSE_CMD_GETINFO)) in alps_get_otp_values_ss4_v2() 2489 static int alps_update_device_area_ss4_v2(unsigned char otp[][4], in alps_update_device_area_ss4_v2() 2498 SS4PLUS_NUMSENSOR_XOFFSET + (otp[0][2] & 0x0F); in alps_update_device_area_ss4_v2() 2500 SS4PLUS_NUMSENSOR_YOFFSET + ((otp[0][2] >> 4) & 0x0F); in alps_update_device_area_ss4_v2() 2507 x_pitch = (otp[0][1] & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2() 2508 y_pitch = ((otp[0][1] >> 4) & 0x0F) + SS4PLUS_MIN_PITCH_MM; in alps_update_device_area_ss4_v2() 2512 SS4_NUMSENSOR_XOFFSET + (otp[1][0] & 0x0F); in alps_update_device_area_ss4_v2() 2514 SS4_NUMSENSOR_YOFFSET + ((otp[1][0] >> 4) & 0x0F); in alps_update_device_area_ss4_v2() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | picoxcell-pc3x3.dtsi | 360 otp@ffff8000 { 361 compatible = "picochip,otp-pc3x3";
|
D | bcm-cygnus.dtsi | 103 otp: otp@301c800 { label
|
D | rv1108.dtsi | 763 otp_out: otp-out { 767 otp_gpio: otp-gpio {
|
D | rk322x.dtsi | 1028 otp_gpio: otp-gpio { 1032 otp_out: otp-out {
|
/Linux-v4.19/drivers/mtd/chips/ |
D | cfi_cmdset_0001.c | 2302 struct cfi_intelext_otpinfo *otp; in cfi_intelext_otp_walk() local 2332 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0]; in cfi_intelext_otp_walk() 2416 reg_prot_offset = otp->ProtRegAddr; in cfi_intelext_otp_walk() 2417 reg_fact_groups = otp->FactGroups; in cfi_intelext_otp_walk() 2418 reg_fact_size = 1 << otp->FactProtRegSize; in cfi_intelext_otp_walk() 2419 reg_user_groups = otp->UserGroups; in cfi_intelext_otp_walk() 2420 reg_user_size = 1 << otp->UserProtRegSize; in cfi_intelext_otp_walk() 2421 otp++; in cfi_intelext_otp_walk()
|
D | cfi_cmdset_0002.c | 1396 uint8_t otp, lockreg; in cfi_amdstd_otp_walk() local 1423 otp = cfi_read_query(map, base + 0x3 * ofs_factor); in cfi_amdstd_otp_walk() 1428 if (otp & 0x80) { in cfi_amdstd_otp_walk()
|
/Linux-v4.19/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()
|
D | core.h | 793 const char *otp; member
|
/Linux-v4.19/arch/arm64/boot/dts/broadcom/stingray/ |
D | stingray.dtsi | 266 otp: otp@1c400 { label
|
/Linux-v4.19/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 54 static int otp; variable 56 module_param(otp, int, 0400); 57 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP" 3227 if (otp == 1) in onenand_lock_user_prot_reg() 3229 else if (otp == 2) in onenand_lock_user_prot_reg() 3231 else if (otp == 3) in onenand_lock_user_prot_reg() 3233 else if (otp != 0) in onenand_lock_user_prot_reg()
|
/Linux-v4.19/arch/arm64/boot/dts/rockchip/ |
D | rk3368.dtsi | 1140 otp_gpio: otp-gpio { 1144 otp_out: otp-out {
|
/Linux-v4.19/security/smack/ |
D | smack_lsm.c | 144 static int smk_bu_task(struct task_struct *otp, int mode, int rc) in smk_bu_task() argument 147 struct smack_known *smk_task = smk_of_task_struct(otp); in smk_bu_task() 158 current->comm, otp->comm); in smk_bu_task() 162 #define smk_bu_task(otp, mode, RC) (RC) argument
|