Searched refs:ale_entry (Results 1 – 1 of 1) sorted by relevance
107 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument117 hi_val = ale_entry[idx2] << ((idx2 * 32) - start); in cpsw_ale_get_field()121 return (hi_val + (ale_entry[idx] >> start)) & BITMASK(bits); in cpsw_ale_get_field()124 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument135 ale_entry[idx2] &= ~(BITMASK(bits + start - (idx2 * 32))); in cpsw_ale_set_field()136 ale_entry[idx2] |= (value >> ((idx2 * 32) - start)); in cpsw_ale_set_field()140 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field()141 ale_entry[idx] |= (value << start); in cpsw_ale_set_field()145 static inline int cpsw_ale_get_##name(u32 *ale_entry) \147 return cpsw_ale_get_field(ale_entry, start, bits); \[all …]