| /linux/drivers/nvmem/ |
| H A D | mxs-ocotp.c | 37 static int mxs_ocotp_wait(struct mxs_ocotp *otp) in mxs_ocotp_wait() argument 43 status = readl(otp->base); in mxs_ocotp_wait() 62 struct mxs_ocotp *otp = context; in mxs_ocotp_read() local 66 ret = clk_enable(otp->clk); in mxs_ocotp_read() 70 writel(BM_OCOTP_CTRL_ERROR, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() 72 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 77 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_SET); in mxs_ocotp_read() 82 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 91 *buf++ = readl(otp->base + offset); in mxs_ocotp_read() 100 writel(BM_OCOTP_CTRL_RD_BANK_OPEN, otp->base + STMP_OFFSET_REG_CLR); in mxs_ocotp_read() [all …]
|
| H A D | sunplus-ocotp.c | 77 static int sp_otp_read_real(struct sp_ocotp_priv *otp, int addr, char *value) in sp_otp_read_real() argument 93 writel(readl(otp->base[OTPRX] + OTP_STATUS) & OTP_READ_DONE_MASK & in sp_otp_read_real() 94 OTP_LOAD_SECURE_DONE_MASK, otp->base[OTPRX] + OTP_STATUS); in sp_otp_read_real() 95 writel(addr, otp->base[OTPRX] + OTP_READ_ADDRESS); in sp_otp_read_real() 96 writel(readl(otp->base[OTPRX] + OTP_CONTROL_2) | OTP_READ, in sp_otp_read_real() 97 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real() 98 writel(readl(otp->base[OTPRX] + OTP_CONTROL_2) & SEL_BAK_KEY2_MASK & SW_TRIM_EN_MASK in sp_otp_read_real() 100 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real() 101 writel((readl(otp->base[OTPRX] + OTP_CONTROL_2) & OTP_RD_PERIOD_MASK) | CPU_CLOCK, in sp_otp_read_real() 102 otp->base[OTPRX] + OTP_CONTROL_2); in sp_otp_read_real() [all …]
|
| H A D | stm32-romem.c | 56 static int stm32_bsec_smc(u8 op, u32 otp, u32 data, u32 *result) in stm32_bsec_smc() argument 61 arm_smccc_smc(STM32_SMC_BSEC, op, otp, data, 0, 0, 0, 0, &res); in stm32_bsec_smc() 92 u32 otp = i >> 2; in stm32_bsec_read() local 94 if (otp < priv->lower) { in stm32_bsec_read() 99 ret = stm32_bsec_smc(STM32_SMC_READ_SHADOW, otp, 0, in stm32_bsec_read() 102 dev_err(dev, "Can't read data%d (%d)\n", otp, in stm32_bsec_read()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
| H A 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() 166 if (dev->mt76.otp.data) { in mt7603_eeprom_init() 168 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init() 170 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init()
|
| /linux/Documentation/devicetree/bindings/nvmem/ |
| H A D | lpc1850-otp.txt | 6 - compatible: Should be "nxp,lpc1850-otp" 15 otp: otp@40045000 { 16 compatible = "nxp,lpc1850-otp";
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | pcie.c | 359 struct brcmf_otp_params otp; member 1980 strscpy(devinfo->otp.module, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor() 1983 strscpy(devinfo->otp.vendor, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor() 1986 strscpy(devinfo->otp.version, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor() 1995 devinfo->otp.module, devinfo->otp.vendor, in brcmf_pcie_parse_otp_sys_vendor() 1996 devinfo->otp.version); in brcmf_pcie_parse_otp_sys_vendor() 1998 if (!devinfo->otp.module[0] || in brcmf_pcie_parse_otp_sys_vendor() 1999 !devinfo->otp.vendor[0] || in brcmf_pcie_parse_otp_sys_vendor() 2000 !devinfo->otp.version[0]) in brcmf_pcie_parse_otp_sys_vendor() 2003 devinfo->otp.valid = true; in brcmf_pcie_parse_otp_sys_vendor() [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/ |
| H A D | nand-macronix.txt | 17 - randomizer enable: should be "mxic,enable-randomizer-otp" 25 mxic,enable-randomizer-otp;
|
| /linux/lib/crypto/x86/ |
| H A D | poly1305-x86_64-cryptogams.pl | 3863 my ($out,$inp,$otp,$len)=$win64 ? ("%rcx","%rdx","%r8", "%r9") : # Win64 order 3870 sub $otp,$inp 3871 sub $otp,$out 3877 movdqu ($inp,$otp),%xmm0 3878 pxor ($otp),%xmm0 3879 movdqu %xmm0,($out,$otp) 3880 movdqa %xmm0,($otp) 3881 lea 16($otp),$otp 3893 mov ($inp,$otp),%al 3894 xor ($otp),%al [all …]
|
| /linux/drivers/mtd/spi-nor/ |
| H A D | Makefile | 3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
|
| /linux/drivers/bluetooth/ |
| H A D | hci_bcm4377.c | 2049 static int bcm4377_parse_otp_sys_vendor(struct bcm4377_data *bcm4377, u8 *otp, in bcm4377_parse_otp_sys_vendor() argument 2061 if (get_unaligned_le32(otp) != BCM4377_OTP_VENDOR_HDR) in bcm4377_parse_otp_sys_vendor() 2064 chip_params = &otp[idx]; in bcm4377_parse_otp_sys_vendor() 2071 board_params = &otp[idx]; in bcm4377_parse_otp_sys_vendor() 2103 u8 *otp; in bcm4377_parse_otp() local 2107 otp = kzalloc(BCM4377_OTP_SIZE, GFP_KERNEL); in bcm4377_parse_otp() 2108 if (!otp) in bcm4377_parse_otp() 2112 otp[i] = ioread8(bcm4377->bar0 + bcm4377->hw->otp_offset + i); in bcm4377_parse_otp() 2116 u8 type = otp[i]; in bcm4377_parse_otp() 2117 u8 length = otp[i + 1]; in bcm4377_parse_otp() [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1028a-kontron-sl28.dts | 160 otp-1 { 161 compatible = "user-otp";
|
| /linux/arch/arm/boot/dts/sunplus/ |
| H A D | sunplus-sp7021.dtsi | 52 otp: otp@af00 { label
|
| /linux/drivers/mtd/ |
| H A D | mtdcore.c | 1034 nvmem = mtd_otp_nvmem_register(mtd, "user-otp", size, in mtd_otp_nvmem_add() 1057 void *otp; in mtd_otp_nvmem_add() local 1059 otp = kmalloc(size, GFP_KERNEL); in mtd_otp_nvmem_add() 1060 if (!otp) { in mtd_otp_nvmem_add() 1064 err = mtd_nvmem_fact_otp_reg_read(mtd, 0, otp, size); in mtd_otp_nvmem_add() 1066 kfree(otp); in mtd_otp_nvmem_add() 1069 add_device_randomness(otp, err); in mtd_otp_nvmem_add() 1070 kfree(otp); in mtd_otp_nvmem_add() 1072 nvmem = mtd_otp_nvmem_register(mtd, "factory-otp", size, in mtd_otp_nvmem_add()
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A 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()
|
| H A D | core.h | 794 const char *otp; member
|
| /linux/drivers/mfd/ |
| H A D | cs42l43.c | 961 unsigned int devid, revid, otp; in cs42l43_boot_work() local 995 ret = regmap_read(cs42l43->regmap, CS42L43_OTP_REVISION_ID, &otp); in cs42l43_boot_work() 1002 "devid: 0x%06x, rev: 0x%02x, otp: 0x%02x\n", devid, revid, otp); in cs42l43_boot_work()
|
| H A D | Makefile | 61 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o
|
| /linux/drivers/mtd/nand/onenand/ |
| H A 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" 3228 if (otp == 1) in onenand_lock_user_prot_reg() 3230 else if (otp == 2) in onenand_lock_user_prot_reg() 3232 else if (otp == 3) in onenand_lock_user_prot_reg() 3234 else if (otp != 0) in onenand_lock_user_prot_reg()
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm-cygnus.dtsi | 108 otp: otp@301c800 { label
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | lan966x.dtsi | 160 otp: otp@e0021000 { label
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3308.dtsi | 564 otp: efuse@ff210000 { label 565 compatible = "rockchip,rk3308-otp"; 571 clock-names = "otp", "apb_pclk", "phy"; 1866 tsadc_otp_pin: tsadc-otp-pin { 1871 tsadc_otp_out: tsadc-otp-out {
|
| H A D | px30.dtsi | 801 otp: nvmem@ff290000 { label 802 compatible = "rockchip,px30-otp"; 806 clock-names = "otp", "apb_pclk", "phy"; 1563 tsadc_otp_pin: tsadc-otp-pin { 1568 tsadc_otp_out: tsadc-otp-out {
|
| /linux/arch/arm/boot/dts/rockchip/ |
| H A D | rv1108.dtsi | 910 otp_out: otp-out { 914 otp_pin: otp-pin {
|
| H A D | rk322x.dtsi | 1245 otp_pin: otp-pin { 1249 otp_out: otp-out {
|
| /linux/security/smack/ |
| H A D | smack_lsm.c | 165 static int smk_bu_task(struct task_struct *otp, int mode, int rc) in smk_bu_task() 168 struct smack_known *smk_task = smk_of_task_struct_obj(otp); in smk_bu_task() 179 current->comm, otp->comm); in smk_bu_inode() 183 #define smk_bu_task(otp, mode, RC) (RC) in smk_bu_inode() 156 smk_bu_task(struct task_struct * otp,int mode,int rc) smk_bu_task() argument 174 smk_bu_task(otp,mode,RC) global() argument
|