Lines Matching defs:state
18 * Once one starts to get the resource registering state, one cannot register
19 * new resources. This ensures resource state cannot change.
26 * Each resource assignation is stored in a table. The state defaults
82 static const char __unused *shres2str_state(unsigned int state)
84 assert(state < ARRAY_SIZE(shres2str_state_tbl));
86 return shres2str_state_tbl[state];
89 /* Get resource state: these accesses lock the registering support */
137 static void register_periph(enum stm32mp_shres id, unsigned int state)
140 ((state == SHRES_SECURE) || (state == SHRES_NON_SECURE)));
143 if (shres_state[id] == state) {
150 (shres_state[id] != state)) {
154 shres2str_state(state));
160 shres2str_id(id), shres2str_state(state));
171 shres_state[id] = (uint8_t)state;
174 if (state == SHRES_SECURE) {
235 static void register_periph_iomem(uintptr_t base, unsigned int state)
290 if (state != SHRES_NON_SECURE) {
300 register_periph(id, state);