Lines Matching refs:entry_fld
236 const struct ale_entry_fld *entry_fld; in cpsw_ale_entry_get_fld() local
242 entry_fld = &entry_tbl[fld_id]; in cpsw_ale_entry_get_fld()
243 if (!(entry_fld->flags & ALE_FLD_ALLOWED)) { in cpsw_ale_entry_get_fld()
248 bits = entry_fld->num_bits; in cpsw_ale_entry_get_fld()
249 if (entry_fld->flags & ALE_FLD_SIZE_PORT_MASK_BITS) in cpsw_ale_entry_get_fld()
252 return cpsw_ale_get_field(ale_entry, entry_fld->start_bit, bits); in cpsw_ale_entry_get_fld()
261 const struct ale_entry_fld *entry_fld; in cpsw_ale_entry_set_fld() local
267 entry_fld = &entry_tbl[fld_id]; in cpsw_ale_entry_set_fld()
268 if (!(entry_fld->flags & ALE_FLD_ALLOWED)) { in cpsw_ale_entry_set_fld()
273 bits = entry_fld->num_bits; in cpsw_ale_entry_set_fld()
274 if (entry_fld->flags & ALE_FLD_SIZE_PORT_MASK_BITS) in cpsw_ale_entry_set_fld()
277 cpsw_ale_set_field(ale_entry, entry_fld->start_bit, bits, value); in cpsw_ale_entry_set_fld()