/linux/drivers/nvmem/ |
A D | rockchip-otp.c | 142 ret = clk_bulk_prepare_enable(otp->num_clks, otp->clks); in rockchip_otp_read() 178 clk_bulk_disable_unprepare(otp->num_clks, otp->clks); in rockchip_otp_read() 212 struct rockchip_otp *otp; in rockchip_otp_probe() local 225 if (!otp) in rockchip_otp_probe() 228 otp->dev = dev; in rockchip_otp_probe() 230 if (IS_ERR(otp->base)) in rockchip_otp_probe() 234 otp->clks = devm_kcalloc(dev, otp->num_clks, in rockchip_otp_probe() 236 if (!otp->clks) in rockchip_otp_probe() 242 ret = devm_clk_bulk_get(dev, otp->num_clks, otp->clks); in rockchip_otp_probe() 247 if (IS_ERR(otp->rst)) in rockchip_otp_probe() [all …]
|
A D | mxs-ocotp.c | 42 status = readl(otp->base); in mxs_ocotp_wait() 71 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 81 ret = mxs_ocotp_wait(otp); in mxs_ocotp_read() 102 clk_disable(otp->clk); in mxs_ocotp_read() 142 struct mxs_ocotp *otp; in mxs_ocotp_probe() local 150 otp = devm_kzalloc(dev, sizeof(*otp), GFP_KERNEL); in mxs_ocotp_probe() 151 if (!otp) in mxs_ocotp_probe() 155 if (IS_ERR(otp->base)) in mxs_ocotp_probe() 159 if (IS_ERR(otp->clk)) in mxs_ocotp_probe() 175 ocotp_config.priv = otp; in mxs_ocotp_probe() [all …]
|
A 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()
|
A D | Makefile | 26 obj-$(CONFIG_NVMEM_NINTENDO_OTP) += nvmem-nintendo-otp.o 27 nvmem-nintendo-otp-y := nintendo-otp.o 36 obj-$(CONFIG_ROCKCHIP_OTP) += nvmem-rockchip-otp.o 37 nvmem-rockchip-otp-y := rockchip-otp.o
|
A 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()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | eeprom.c | 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() 296 u8 *otp = dev->mt76.otp.data; in mt7622_apply_cal_free_data() local 299 if (!otp) in mt7622_apply_cal_free_data() 303 if (!otp[ical[i]]) in mt7622_apply_cal_free_data() [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/ |
A 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";
|
A D | nintendo-otp.yaml | 4 $id: http://devicetree.org/schemas/nvmem/nintendo-otp.yaml# 25 - nintendo,hollywood-otp 26 - nintendo,latte-otp 39 otp@d8001ec { 40 compatible = "nintendo,latte-otp";
|
A D | lpc1850-otp.txt | 6 - compatible: Should be "nxp,lpc1850-otp" 15 otp: otp@40045000 { 16 compatible = "nxp,lpc1850-otp";
|
A D | st,stm32-romem.yaml | 24 - st,stm32f4-otp 32 st,non-secure-otp: 50 compatible = "st,stm32f4-otp"; 61 st,non-secure-otp;
|
A D | brcm,ocotp.txt | 13 otp: otp@301c800 {
|
/linux/Documentation/devicetree/bindings/mtd/ |
A D | mtd.yaml | 25 "^otp(-[0-9]+)?$": 37 - user-otp 38 - factory-otp 67 otp-1 { 68 compatible = "factory-otp"; 77 otp-2 { 78 compatible = "user-otp";
|
A D | nand-macronix.txt | 17 - randomizer enable: should be "mxic,enable-randomizer-otp" 25 mxic,enable-randomizer-otp;
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
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() 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/drivers/mtd/spi-nor/ |
A D | otp.c | 14 #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_otp_init()
|
A D | winbond.c | 150 if (nor->params->otp.org->n_regions) in winbond_default_init() 151 nor->params->otp.ops = &winbond_otp_ops; in winbond_default_init()
|
A D | built-in.a | 6 otp.o/
|
A D | Makefile | 3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
|
/linux/drivers/input/mouse/ |
A D | alps.c | 2462 unsigned char index, unsigned char otp[]) in alps_get_otp_values_ss4_v2() argument 2496 SS4PLUS_NUMSENSOR_XOFFSET + (otp[0][2] & 0x0F); in alps_update_device_area_ss4_v2() 2510 SS4_NUMSENSOR_XOFFSET + (otp[1][0] & 0x0F); in alps_update_device_area_ss4_v2() 2538 is_btnless = (otp[1][0] >> 1) & 0x01; in alps_update_btn_info_ss4_v2() 2540 is_btnless = (otp[1][1] >> 3) & 0x01; in alps_update_btn_info_ss4_v2() 2557 is_dual = (otp[0][0] >> 4) & 0x01; in alps_update_dual_info_ss4_v2() 2584 unsigned char otp[2][4]; in alps_set_defaults_ss4_v2() local 2586 memset(otp, 0, sizeof(otp)); in alps_set_defaults_ss4_v2() 2592 alps_update_device_area_ss4_v2(otp, priv); in alps_set_defaults_ss4_v2() 2594 alps_update_btn_info_ss4_v2(otp, priv); in alps_set_defaults_ss4_v2() [all …]
|
/linux/arch/x86/crypto/ |
A D | poly1305-x86_64-cryptogams.pl | 3879 sub $otp,$inp 3880 sub $otp,$out 3890 lea 16($otp),$otp 3906 lea 1($otp),$otp 3913 lea 1($otp),$otp 3918 mov $otp,%rax 3926 sub $otp,$inp 3927 sub $otp,$out 3938 lea 16($otp),$otp 3957 lea 1($otp),$otp [all …]
|
/linux/drivers/iio/gyro/ |
A D | mpu3050-core.c | 798 u64 otp; in mpu3050_hw_init() local 837 otp = le64_to_cpu(otp_le); in mpu3050_hw_init() 843 FIELD_GET(GENMASK_ULL(12, 0), otp), in mpu3050_hw_init() 845 FIELD_GET(GENMASK_ULL(17, 13), otp), in mpu3050_hw_init() 847 FIELD_GET(GENMASK_ULL(33, 18), otp), in mpu3050_hw_init() 849 FIELD_GET(GENMASK_ULL(45, 34), otp), in mpu3050_hw_init() 851 FIELD_GET(GENMASK_ULL(49, 47), otp), in mpu3050_hw_init() 853 FIELD_GET(GENMASK_ULL(55, 50), otp)); in mpu3050_hw_init()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | debugfs.c | 138 if (dev->otp.data) in mt76_register_debugfs_fops() 139 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs_fops()
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
A 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()
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
A D | aspeed,ast2600-adc.yaml | 69 data which will be stored in otp. This property informs the driver that 70 the data store in the otp is valid.
|
/linux/arch/powerpc/boot/dts/ |
A D | wii.dts | 228 otp@d8001ec { 229 compatible = "nintendo,hollywood-otp";
|