Home
last modified time | relevance | path

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

/drivers/net/ethernet/ti/
Dcpsw_ale.c54 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument
61 return (ale_entry[idx] >> start) & BITMASK(bits); in cpsw_ale_get_field()
64 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument
73 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field()
74 ale_entry[idx] |= (value << start); in cpsw_ale_set_field()
78 static inline int cpsw_ale_get_##name(u32 *ale_entry) \
80 return cpsw_ale_get_field(ale_entry, start, bits); \
82 static inline void cpsw_ale_set_##name(u32 *ale_entry, u32 value) \
84 cpsw_ale_set_field(ale_entry, start, bits, value); \
103 static inline void cpsw_ale_get_addr(u32 *ale_entry, u8 *addr) in cpsw_ale_get_addr() argument
[all …]