Lines Matching refs:dist_fields
4012 static const struct dpaa2_eth_dist_fields dist_fields[] = { variable
4172 for (i = 0; i < ARRAY_SIZE(dist_fields); i++) { in dpaa2_eth_cls_key_size()
4173 if (!(fields & dist_fields[i].id)) in dpaa2_eth_cls_key_size()
4175 size += dist_fields[i].size; in dpaa2_eth_cls_key_size()
4186 for (i = 0; i < ARRAY_SIZE(dist_fields); i++) { in dpaa2_eth_cls_fld_off()
4187 if (dist_fields[i].cls_prot == prot && in dpaa2_eth_cls_fld_off()
4188 dist_fields[i].cls_field == field) in dpaa2_eth_cls_fld_off()
4190 off += dist_fields[i].size; in dpaa2_eth_cls_fld_off()
4205 for (i = 0; i < ARRAY_SIZE(dist_fields); i++) { in dpaa2_eth_cls_trim_rule()
4206 size = dist_fields[i].size; in dpaa2_eth_cls_trim_rule()
4207 if (dist_fields[i].id & fields) { in dpaa2_eth_cls_trim_rule()
4232 for (i = 0; i < ARRAY_SIZE(dist_fields); i++) { in dpaa2_eth_set_dist_key()
4239 if (!(flags & dist_fields[i].id)) in dpaa2_eth_set_dist_key()
4242 rx_hash_fields |= dist_fields[i].rxnfc_field; in dpaa2_eth_set_dist_key()
4250 key->extract.from_hdr.prot = dist_fields[i].cls_prot; in dpaa2_eth_set_dist_key()
4252 key->extract.from_hdr.field = dist_fields[i].cls_field; in dpaa2_eth_set_dist_key()
4303 for (i = 0; i < ARRAY_SIZE(dist_fields); i++) in dpaa2_eth_set_hash()
4304 if (dist_fields[i].rxnfc_field & flags) in dpaa2_eth_set_hash()
4305 key |= dist_fields[i].id; in dpaa2_eth_set_hash()