Lines Matching refs:entry

199 uintptr_t xtensa_mpu_entry_start_address_get(const struct xtensa_mpu_entry *entry)  in xtensa_mpu_entry_start_address_get()  argument
201 return (entry->as.p.start_addr << XTENSA_MPU_ENTRY_REG_START_ADDR_SHIFT); in xtensa_mpu_entry_start_address_get()
211 void xtensa_mpu_entry_start_address_set(struct xtensa_mpu_entry *entry, uintptr_t addr) in xtensa_mpu_entry_start_address_set() argument
213 entry->as.p.start_addr = addr >> XTENSA_MPU_ENTRY_REG_START_ADDR_SHIFT; in xtensa_mpu_entry_start_address_set()
225 bool xtensa_mpu_entry_lock_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_lock_get() argument
227 return entry->as.p.lock != 0; in xtensa_mpu_entry_lock_get()
237 void xtensa_mpu_entry_lock_set(struct xtensa_mpu_entry *entry, bool lock) in xtensa_mpu_entry_lock_set() argument
239 entry->as.p.lock = lock ? 1 : 0; in xtensa_mpu_entry_lock_set()
251 bool xtensa_mpu_entry_enable_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_enable_get() argument
253 return entry->as.p.enable != 0; in xtensa_mpu_entry_enable_get()
263 void xtensa_mpu_entry_enable_set(struct xtensa_mpu_entry *entry, bool en) in xtensa_mpu_entry_enable_set() argument
265 entry->as.p.enable = en ? 1 : 0; in xtensa_mpu_entry_enable_set()
276 uint8_t xtensa_mpu_entry_access_rights_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_access_rights_get() argument
278 return entry->at.p.access_rights; in xtensa_mpu_entry_access_rights_get()
288 void xtensa_mpu_entry_access_rights_set(struct xtensa_mpu_entry *entry, uint8_t access_rights) in xtensa_mpu_entry_access_rights_set() argument
290 entry->at.p.access_rights = access_rights; in xtensa_mpu_entry_access_rights_set()
301 uint16_t xtensa_mpu_entry_memory_type_get(const struct xtensa_mpu_entry *entry) in xtensa_mpu_entry_memory_type_get() argument
303 return entry->at.p.memory_type; in xtensa_mpu_entry_memory_type_get()
313 void xtensa_mpu_entry_memory_type_set(struct xtensa_mpu_entry *entry, uint16_t memory_type) in xtensa_mpu_entry_memory_type_set() argument
315 entry->at.p.memory_type = memory_type; in xtensa_mpu_entry_memory_type_set()
326 void xtensa_mpu_entry_attributes_set(struct xtensa_mpu_entry *entry, in xtensa_mpu_entry_attributes_set() argument
329 xtensa_mpu_entry_access_rights_set(entry, access_rights); in xtensa_mpu_entry_attributes_set()
330 xtensa_mpu_entry_memory_type_set(entry, memory_type); in xtensa_mpu_entry_attributes_set()
348 void xtensa_mpu_entry_set(struct xtensa_mpu_entry *entry, uintptr_t start_address, in xtensa_mpu_entry_set() argument
351 uint8_t segment = entry->at.p.segment; in xtensa_mpu_entry_set()
354 entry->as.raw = 0; in xtensa_mpu_entry_set()
355 entry->at.raw = 0; in xtensa_mpu_entry_set()
357 xtensa_mpu_entry_start_address_set(entry, start_address); in xtensa_mpu_entry_set()
358 xtensa_mpu_entry_enable_set(entry, enable); in xtensa_mpu_entry_set()
359 xtensa_mpu_entry_access_rights_set(entry, access_rights); in xtensa_mpu_entry_set()
360 xtensa_mpu_entry_memory_type_set(entry, memory_type); in xtensa_mpu_entry_set()
362 entry->at.p.segment = segment; in xtensa_mpu_entry_set()