Lines Matching refs:compat
423 struct stm32_tamp_compat *compat; member
842 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_set_secure_bkpregs()
843 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_REGISTER_SECCFGR)) { in stm32_tamp_set_secure_bkpregs()
872 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_set_secure()
873 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_REGISTER_SECCFGR)) { in stm32_tamp_set_secure()
893 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_set_privilege()
894 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_REGISTER_PRIVCFGR)) in stm32_tamp_set_privilege()
918 if (!(pdata->compat->tags & TAMP_HAS_RIF_SUPPORT)) { in parse_bkpregs_dt_conf()
1062 while (int_it && i < stm32_tamp_dev->pdata.compat->int_tamp_size) { in stm32_tamp_it_handler()
1064 stm32_tamp_dev->pdata.compat->int_tamp[i]; in stm32_tamp_it_handler()
1087 while (ext_it && i < stm32_tamp_dev->pdata.compat->ext_tamp_size) { in stm32_tamp_it_handler()
1089 stm32_tamp_dev->pdata.compat->ext_tamp[i]; in stm32_tamp_it_handler()
1329 if (!stm32_tamp_dev->pdata.compat || in stm32_tamp_set_config()
1330 !stm32_tamp_dev->pdata.compat->int_tamp || in stm32_tamp_set_config()
1331 !stm32_tamp_dev->pdata.compat->ext_tamp) in stm32_tamp_set_config()
1341 for (i = 0; i < stm32_tamp_dev->pdata.compat->int_tamp_size; i++) { in stm32_tamp_set_config()
1342 ret = stm32_tamp_set_int_config(stm32_tamp_dev->pdata.compat, i, in stm32_tamp_set_config()
1348 for (i = 0; i < stm32_tamp_dev->pdata.compat->ext_tamp_size; i++) { in stm32_tamp_set_config()
1349 ret = stm32_tamp_set_ext_config(stm32_tamp_dev->pdata.compat, i, in stm32_tamp_set_config()
1369 if (stm32_tamp_dev->pdata.compat->tags & in stm32_tamp_set_config()
1378 if (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_REGISTER_CR3) in stm32_tamp_set_config()
1446 if (cnt_idx < 0 || !stm32_tamp_dev->pdata.compat || in stm32_tamp_write_mcounter()
1447 cnt_idx >= stm32_tamp_dev->pdata.compat->nb_monotonic_counter) in stm32_tamp_write_mcounter()
1459 if (cnt_idx < 0 || !stm32_tamp_dev->pdata.compat || in stm32_tamp_read_mcounter()
1460 cnt_idx >= stm32_tamp_dev->pdata.compat->nb_monotonic_counter) in stm32_tamp_read_mcounter()
1541 if (!stm32_tamp_dev->pdata.compat) in stm32_tamp_activate_tamp()
1550 for (i = 0; i < stm32_tamp_dev->pdata.compat->int_tamp_size; i++) { in stm32_tamp_activate_tamp()
1551 if (stm32_tamp_dev->pdata.compat->int_tamp[i].id == id) { in stm32_tamp_activate_tamp()
1552 tamp_conf = &stm32_tamp_dev->pdata.compat->int_tamp[i]; in stm32_tamp_activate_tamp()
1558 for (i = 0; i < stm32_tamp_dev->pdata.compat->ext_tamp_size; i++) { in stm32_tamp_activate_tamp()
1559 if (stm32_tamp_dev->pdata.compat->ext_tamp[i].id == id) { in stm32_tamp_activate_tamp()
1560 tamp_conf = &stm32_tamp_dev->pdata.compat->ext_tamp[i]; in stm32_tamp_activate_tamp()
1572 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_are_secrets_blocked()
1573 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_CR2_SECRET_STATUS)) { in stm32_tamp_are_secrets_blocked()
1587 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_block_secrets()
1588 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_CR2_SECRET_STATUS)) in stm32_tamp_block_secrets()
1596 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_unblock_secrets()
1597 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_CR2_SECRET_STATUS)) in stm32_tamp_unblock_secrets()
1605 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_erase_secrets()
1606 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_CR2_SECRET_STATUS)) in stm32_tamp_erase_secrets()
1614 if (stm32_tamp_dev->pdata.compat && in stm32_tamp_lock_boot_hardware_key()
1615 (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_REGISTER_SECCFGR)) in stm32_tamp_lock_boot_hardware_key()
1622 struct stm32_tamp_compat *compat = pdata->compat; in stm32_tamp_configure_pin() local
1627 if (!compat) in stm32_tamp_configure_pin()
1631 for (i = 0; i < compat->pin_map_size; i++) { in stm32_tamp_configure_pin()
1632 if (id == compat->pin_map[i].id && in stm32_tamp_configure_pin()
1633 bank == compat->pin_map[i].bank && in stm32_tamp_configure_pin()
1634 pin == compat->pin_map[i].pin && in stm32_tamp_configure_pin()
1635 out == compat->pin_map[i].out) { in stm32_tamp_configure_pin()
1636 pdata->pins_conf |= compat->pin_map[i].conf; in stm32_tamp_configure_pin()
1670 if (out_tamp_id > pdata->compat->ext_tamp_size) { in stm32_tamp_configure_pin_from_dt()
1688 for (i = 0; i < pdata->compat->ext_tamp_size; i++) { in stm32_tamp_configure_pin_from_dt()
1689 if (pdata->compat->ext_tamp[i].id == id) { in stm32_tamp_configure_pin_from_dt()
1690 tamp_ext = &pdata->compat->ext_tamp[i]; in stm32_tamp_configure_pin_from_dt()
2002 if (pdata->compat && in stm32_tamp_parse_active_conf()
2003 (pdata->compat->tags & TAMP_SIZE_ATCR1_ATCKSEL_IS_4)) { in stm32_tamp_parse_active_conf()
2023 const void *compat) in stm32_tamp_parse_fdt() argument
2029 pdata->compat = (struct stm32_tamp_compat *)compat; in stm32_tamp_parse_fdt()
2031 if (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_RIF_SUPPORT) { in stm32_tamp_parse_fdt()
2060 if (pdata->compat->tags & TAMP_HAS_RIF_SUPPORT) { in stm32_tamp_parse_fdt()
2148 if (stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_RIF_SUPPORT) { in stm32_tamp_probe()
2172 if (!(stm32_tamp_dev->pdata.compat->tags & TAMP_HAS_RIF_SUPPORT) || in stm32_tamp_probe()