Home
last modified time | relevance | path

Searched refs:firewall_id (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/bus/
Dstm32_rifsc.c108 static int stm32_rifsc_grant_access(struct stm32_firewall_controller *ctrl, u32 firewall_id) in stm32_rifsc_grant_access() argument
114 if (firewall_id >= rifsc_controller->max_entries) { in stm32_rifsc_grant_access()
115 dev_err(rifsc_controller->dev, "Invalid sys bus ID %u", firewall_id); in stm32_rifsc_grant_access()
124 reg_id = firewall_id / IDS_PER_RISC_SEC_PRIV_REGS; in stm32_rifsc_grant_access()
125 reg_offset = firewall_id % IDS_PER_RISC_SEC_PRIV_REGS; in stm32_rifsc_grant_access()
127 cid_reg_value = readl(rifsc_controller->mmio + RIFSC_RISC_PER0_CIDCFGR + 0x8 * firewall_id); in stm32_rifsc_grant_access()
136 "Invalid bus semaphore configuration: index %d\n", firewall_id); in stm32_rifsc_grant_access()
152 firewall_id); in stm32_rifsc_grant_access()
160 "Invalid security configuration for peripheral: %d\n", firewall_id); in stm32_rifsc_grant_access()
169 rc = stm32_rif_acquire_semaphore(rifsc_controller, firewall_id); in stm32_rifsc_grant_access()
[all …]
Dstm32_firewall.c94 firewall[j].firewall_id = U32_MAX; in stm32_firewall_get_firewall()
100 firewall[j].firewall_id = provider_args.args[0]; in stm32_firewall_get_firewall()
120 if (!firewall || firewall->firewall_id == U32_MAX) in stm32_firewall_grant_access()
128 return firewall_controller->grant_access(firewall_controller, firewall->firewall_id); in stm32_firewall_grant_access()
136 if (!firewall || subsystem_id == U32_MAX || firewall->firewall_id == U32_MAX) in stm32_firewall_grant_access_by_id()
152 if (!firewall || firewall->firewall_id == U32_MAX) { in stm32_firewall_release_access()
164 firewall_controller->release_access(firewall_controller, firewall->firewall_id); in stm32_firewall_release_access()
172 if (!firewall || subsystem_id == U32_MAX || firewall->firewall_id == U32_MAX) { in stm32_firewall_release_access_by_id()
278 firewalls[i].firewall_id)) { in stm32_firewall_populate_bus()
Dstm32_etzpc.c44 static int stm32_etzpc_grant_access(struct stm32_firewall_controller *ctrl, u32 firewall_id) in stm32_etzpc_grant_access() argument
48 if (firewall_id >= ctrl->max_entries) { in stm32_etzpc_grant_access()
49 dev_err(ctrl->dev, "Invalid sys bus ID %u", firewall_id); in stm32_etzpc_grant_access()
54 reg_offset = ETZPC_DECPROT + 0x4 * (firewall_id / IDS_PER_DECPROT_REGS); in stm32_etzpc_grant_access()
55 offset = (firewall_id % IDS_PER_DECPROT_REGS) << ETZPC_DECPROT_SHIFT; in stm32_etzpc_grant_access()
69 u32 firewall_id __maybe_unused) in stm32_etzpc_release_access()
/linux-6.12.1/include/linux/bus/
Dstm32_firewall_device.h35 u32 firewall_id; member