Searched refs:ale_entry (Results 1 – 1 of 1) sorted by relevance
123 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument133 hi_val = ale_entry[index] << ((idx2 * 32) - start); in cpsw_ale_get_field()137 return (hi_val + (ale_entry[idx] >> start)) & BITMASK(bits); in cpsw_ale_get_field()140 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument151 ale_entry[index] &= ~(BITMASK(bits + start - (idx2 * 32))); in cpsw_ale_set_field()152 ale_entry[index] |= (value >> ((idx2 * 32) - start)); in cpsw_ale_set_field()156 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field()157 ale_entry[idx] |= (value << start); in cpsw_ale_set_field()161 static inline int cpsw_ale_get_##name(u32 *ale_entry) \163 return cpsw_ale_get_field(ale_entry, start, bits); \[all …]