Home
last modified time | relevance | path

Searched refs:ale_entry (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/ti/
Dcpsw_ale.c68 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument
75 return (ale_entry[idx] >> start) & BITMASK(bits); in cpsw_ale_get_field()
78 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument
87 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field()
88 ale_entry[idx] |= (value << start); in cpsw_ale_set_field()
92 static inline int cpsw_ale_get_##name(u32 *ale_entry) \
94 return cpsw_ale_get_field(ale_entry, start, bits); \
96 static inline void cpsw_ale_set_##name(u32 *ale_entry, u32 value) \
98 cpsw_ale_set_field(ale_entry, start, bits, value); \
102 static inline int cpsw_ale_get_##name(u32 *ale_entry, u32 bits) \
[all …]