Lines Matching full:firewall
19 * struct stm32_firewall - Information on a device's firewall. Each device can have more than one
20 * firewall.
22 * @firewall_ctrl: Pointer referencing a firewall controller of the device. It is
26 * @entry: Name of the firewall entry
28 * @firewall_id: Firewall ID associated the device for this firewall controller
40 * stm32_firewall_get_firewall - Get the firewall(s) associated to given device.
41 * The firewall controller reference is always the first argument
43 * The firewall ID is always the second argument of each of the
45 * If there's no argument linked to the phandle, then the firewall ID
49 * @firewall: Array of firewall references
50 * @nb_firewall: Number of firewall references to get. Must be at least 1.
52 * Returns 0 on success, -ENODEV if there's no match with a firewall controller or appropriate errno
55 int stm32_firewall_get_firewall(struct device_node *np, struct stm32_firewall *firewall,
59 * stm32_firewall_grant_access - Request firewall access rights and grant access.
61 * @firewall: Firewall reference containing the ID to check against its firewall
64 * Returns 0 if access is granted, -EACCES if access is denied, -ENODEV if firewall is null or
67 int stm32_firewall_grant_access(struct stm32_firewall *firewall);
73 * @firewall: Firewall reference containing the ID to check against its firewall
76 void stm32_firewall_release_access(struct stm32_firewall *firewall);
79 * stm32_firewall_grant_access_by_id - Request firewall access rights of a given device
80 * based on a specific firewall ID
83 * There is no way to ensure that the given ID will correspond to the firewall referenced in the
86 * This function should be used for subsystem resources that do not have the same firewall ID
90 * @firewall: Firewall reference containing the firewall controller
91 * @subsystem_id: Firewall ID of the subsystem resource
93 * Returns 0 if access is granted, -EACCES if access is denied, -ENODEV if firewall is null or
96 int stm32_firewall_grant_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id);
103 * There is no way to ensure that the given ID will correspond to the firewall referenced in the
106 * This function should be used for subsystem resources that do not have the same firewall ID
110 * @firewall: Firewall reference containing the firewall controller
111 * @subsystem_id: Firewall ID of the subsystem resource
113 void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id);
117 int stm32_firewall_get_firewall(struct device_node *np, struct stm32_firewall *firewall,
123 int stm32_firewall_grant_access(struct stm32_firewall *firewall) in stm32_firewall_grant_access() argument
128 void stm32_firewall_release_access(struct stm32_firewall *firewall) in stm32_firewall_release_access() argument
132 int stm32_firewall_grant_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id) in stm32_firewall_grant_access_by_id() argument
137 void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id) in stm32_firewall_release_access_by_id() argument