Lines Matching +full:non +full:- +full:secure

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved
21 #include <soc/tegra/tegra-cbb.h>
47 rd_str = (cache & BIT(2)) ? "Read-Allocate " : ""; in tegra_cbb_print_cache()
48 wr_str = (cache & BIT(3)) ? "Write-Allocate" : ""; in tegra_cbb_print_cache()
51 buff_str = "Device Non-Bufferable"; in tegra_cbb_print_cache()
53 tegra_cbb_print_err(file, "\t Cache\t\t\t: 0x%x -- %s%s%s%s\n", in tegra_cbb_print_cache()
62 secure_str = (prot & 0x2) ? "Non-Secure" : "Secure"; in tegra_cbb_print_prot()
65 tegra_cbb_print_err(file, "\t Protection\t\t: 0x%x -- %s, %s, %s Access\n", in tegra_cbb_print_prot()
71 struct tegra_cbb *cbb = file->private; in tegra_cbb_err_show()
73 return cbb->ops->debugfs_show(cbb, file, data); in tegra_cbb_err_show()
78 return single_open(file, tegra_cbb_err_show, inode->i_private); in tegra_cbb_err_open()
105 if (cbb->ops->stall_enable) in tegra_cbb_stall_enable()
106 cbb->ops->stall_enable(cbb); in tegra_cbb_stall_enable()
111 if (cbb->ops->fault_enable) in tegra_cbb_fault_enable()
112 cbb->ops->fault_enable(cbb); in tegra_cbb_fault_enable()
117 if (cbb->ops->error_clear) in tegra_cbb_error_clear()
118 cbb->ops->error_clear(cbb); in tegra_cbb_error_clear()
123 if (cbb->ops->get_status) in tegra_cbb_get_status()
124 return cbb->ops->get_status(cbb); in tegra_cbb_get_status()
137 return -EINVAL; in tegra_cbb_get_irq()
142 dev_err(&pdev->dev, "failed to get non-secure IRQ: %d\n", irq); in tegra_cbb_get_irq()
143 return -ENOENT; in tegra_cbb_get_irq()
152 dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq); in tegra_cbb_get_irq()
153 return -ENOENT; in tegra_cbb_get_irq()
159 dev_dbg(&pdev->dev, "secure IRQ: %u\n", *sec_irq); in tegra_cbb_get_irq()
162 dev_dbg(&pdev->dev, "secure IRQ: %u, non-secure IRQ: %u\n", *sec_irq, *nonsec_irq); in tegra_cbb_get_irq()
174 dev_err(cbb->dev, "failed to create debugfs\n"); in tegra_cbb_register()
180 ret = cbb->ops->interrupt_enable(cbb); in tegra_cbb_register()
182 dev_err(cbb->dev, "Failed to register CBB Interrupt ISR"); in tegra_cbb_register()
186 cbb->ops->error_enable(cbb); in tegra_cbb_register()