Lines Matching full:ent

319 static inline void b53_arl_to_entry(struct b53_arl_entry *ent,  in b53_arl_to_entry()  argument
322 memset(ent, 0, sizeof(*ent)); in b53_arl_to_entry()
323 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry()
324 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry()
325 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry()
326 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry()
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()
331 static inline void b53_arl_to_entry_25(struct b53_arl_entry *ent, in b53_arl_to_entry_25() argument
334 memset(ent, 0, sizeof(*ent)); in b53_arl_to_entry_25()
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()
345 const struct b53_arl_entry *ent) 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()
349 *fwd_entry = ent->port & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_from_entry()
350 if (ent->is_valid) in b53_arl_from_entry()
352 if (ent->is_static) in b53_arl_from_entry()
354 if (ent->is_age) in b53_arl_from_entry()
359 const struct b53_arl_entry *ent) 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()
366 if (ent->is_valid) in b53_arl_from_entry_25()
368 if (ent->is_static) in b53_arl_from_entry_25()
370 if (ent->is_age) in b53_arl_from_entry_25()