Lines Matching refs:mac_vid
332 u64 mac_vid, u32 fwd_entry) in b53_arl_to_entry() argument
339 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry()
340 ent->vid = mac_vid >> ARLTBL_VID_S; in b53_arl_to_entry()
344 u64 mac_vid, u8 vid_entry) in b53_arl_to_entry_25() argument
347 ent->is_valid = !!(mac_vid & ARLTBL_VALID_25); in b53_arl_to_entry_25()
348 ent->is_age = !!(mac_vid & ARLTBL_AGE_25); in b53_arl_to_entry_25()
349 ent->is_static = !!(mac_vid & ARLTBL_STATIC_25); in b53_arl_to_entry_25()
350 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry_25()
351 ent->port = (mac_vid & ARLTBL_DATA_PORT_ID_MASK_25) >> in b53_arl_to_entry_25()
359 u64 mac_vid, u16 fwd_entry) in b53_arl_to_entry_89() argument
366 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry_89()
367 ent->vid = mac_vid >> ARLTBL_VID_S; in b53_arl_to_entry_89()
370 static inline void b53_arl_from_entry(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry() argument
373 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry()
374 *mac_vid |= (u64)(ent->vid & ARLTBL_VID_MASK) << ARLTBL_VID_S; in b53_arl_from_entry()
384 static inline void b53_arl_from_entry_25(u64 *mac_vid, u8 *vid_entry, in b53_arl_from_entry_25() argument
387 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry_25()
389 *mac_vid |= (u64)B53_CPU_PORT << ARLTBL_DATA_PORT_ID_S_25; in b53_arl_from_entry_25()
391 *mac_vid |= ((u64)ent->port << ARLTBL_DATA_PORT_ID_S_25) & in b53_arl_from_entry_25()
394 *mac_vid |= ARLTBL_VALID_25; in b53_arl_from_entry_25()
396 *mac_vid |= ARLTBL_STATIC_25; in b53_arl_from_entry_25()
398 *mac_vid |= ARLTBL_AGE_25; in b53_arl_from_entry_25()
402 static inline void b53_arl_from_entry_89(u64 *mac_vid, u32 *fwd_entry, in b53_arl_from_entry_89() argument
405 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry_89()
406 *mac_vid |= (u64)(ent->vid & ARLTBL_VID_MASK) << ARLTBL_VID_S; in b53_arl_from_entry_89()
417 u64 mac_vid, u8 ext) in b53_arl_search_to_entry_25() argument
420 ent->is_valid = !!(mac_vid & ARLTBL_VALID_25); in b53_arl_search_to_entry_25()
421 ent->is_age = !!(mac_vid & ARLTBL_AGE_25); in b53_arl_search_to_entry_25()
422 ent->is_static = !!(mac_vid & ARLTBL_STATIC_25); in b53_arl_search_to_entry_25()
423 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_search_to_entry_25()
424 ent->vid = (mac_vid & ARL_SRCH_RSLT_VID_MASK_25) >> in b53_arl_search_to_entry_25()
426 ent->port = (mac_vid & ARL_SRCH_RSLT_PORT_ID_MASK_25) >> in b53_arl_search_to_entry_25()
435 u64 mac_vid, u16 fwd_entry) in b53_arl_search_to_entry_63xx() argument
438 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_search_to_entry_63xx()
439 ent->vid = mac_vid >> ARLTBL_VID_S; in b53_arl_search_to_entry_63xx()