Lines Matching refs:firewall_id
108 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()
172 "Couldn't acquire semaphore for peripheral: %d\n", firewall_id); in stm32_rifsc_grant_access()
180 static void stm32_rifsc_release_access(struct stm32_firewall_controller *ctrl, u32 firewall_id) in stm32_rifsc_release_access() argument
182 stm32_rif_release_semaphore(ctrl, firewall_id); in stm32_rifsc_release_access()