Searched refs:ale_entry (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/ti/ |
| H A D | cpsw_ale.c | 105 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument 112 return (ale_entry[idx] >> start) & BITMASK(bits); in cpsw_ale_get_field() 115 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument 124 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field() 125 ale_entry[idx] |= (value << start); in cpsw_ale_set_field() 129 static inline int cpsw_ale_get_##name(u32 *ale_entry) \ 131 return cpsw_ale_get_field(ale_entry, start, bits); \ 133 static inline void cpsw_ale_set_##name(u32 *ale_entry, u32 value) \ 135 cpsw_ale_set_field(ale_entry, start, bits, value); \ 139 static inline int cpsw_ale_get_##name(u32 *ale_entry, u32 bits) \ [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | cpsw.c | 279 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument 286 return (ale_entry[idx] >> start) & BITMASK(bits); in cpsw_ale_get_field() 289 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument 298 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field() 299 ale_entry[idx] |= (value << start); in cpsw_ale_set_field() 303 static inline int cpsw_ale_get_##name(u32 *ale_entry) \ 305 return cpsw_ale_get_field(ale_entry, start, bits); \ 307 static inline void cpsw_ale_set_##name(u32 *ale_entry, u32 value) \ 309 cpsw_ale_set_field(ale_entry, start, bits, value); \ 322 static inline void cpsw_ale_get_addr(u32 *ale_entry, u8 *addr) in cpsw_ale_get_addr() argument [all …]
|