Lines Matching refs:mac_vid
320 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument
327 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry()
328 ent->vid = mac_vid >> ARLTBL_VID_S; in b53_arl_to_entry()
332 u64 mac_vid) in b53_arl_to_entry_25() argument
335 ent->port = (mac_vid >> ARLTBL_DATA_PORT_ID_S_25) & in b53_arl_to_entry_25()
337 ent->is_valid = !!(mac_vid & ARLTBL_VALID_25); in b53_arl_to_entry_25()
338 ent->is_age = !!(mac_vid & ARLTBL_AGE_25); in b53_arl_to_entry_25()
339 ent->is_static = !!(mac_vid & ARLTBL_STATIC_25); in b53_arl_to_entry_25()
340 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry_25()
341 ent->vid = mac_vid >> ARLTBL_VID_S_65; in b53_arl_to_entry_25()
344 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument
347 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry()
348 *mac_vid |= (u64)(ent->vid & ARLTBL_VID_MASK) << ARLTBL_VID_S; in b53_arl_from_entry()
358 static inline void b53_arl_from_entry_25(u64 *mac_vid, in b53_arl_from_entry_25() argument
361 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry_25()
362 *mac_vid |= (u64)(ent->port & ARLTBL_DATA_PORT_ID_MASK_25) << in b53_arl_from_entry_25()
364 *mac_vid |= (u64)(ent->vid & ARLTBL_VID_MASK_25) << in b53_arl_from_entry_25()
367 *mac_vid |= ARLTBL_VALID_25; in b53_arl_from_entry_25()
369 *mac_vid |= ARLTBL_STATIC_25; in b53_arl_from_entry_25()
371 *mac_vid |= ARLTBL_AGE_25; in b53_arl_from_entry_25()