Lines Matching refs:nla_field
2896 struct nlattr *nla_field[DEVLINK_ATTR_MAX + 1] = {}; in dpipe_header_field_get() local
2900 err = mnl_attr_parse_nested(nl, attr_cb, nla_field); in dpipe_header_field_get()
2903 if (!nla_field[DEVLINK_ATTR_DPIPE_FIELD_ID] || in dpipe_header_field_get()
2904 !nla_field[DEVLINK_ATTR_DPIPE_FIELD_NAME] || in dpipe_header_field_get()
2905 !nla_field[DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH] || in dpipe_header_field_get()
2906 !nla_field[DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE]) in dpipe_header_field_get()
2909 name = mnl_attr_get_str(nla_field[DEVLINK_ATTR_DPIPE_FIELD_NAME]); in dpipe_header_field_get()
2910 field->id = mnl_attr_get_u32(nla_field[DEVLINK_ATTR_DPIPE_FIELD_ID]); in dpipe_header_field_get()
2911 field->bitwidth = mnl_attr_get_u32(nla_field[DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH]); in dpipe_header_field_get()
2915 field->mapping_type = mnl_attr_get_u32(nla_field[DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE]); in dpipe_header_field_get()
2922 struct nlattr *nla_field; in dpipe_header_fields_get() local
2926 mnl_attr_for_each_nested(nla_field, nla_fields) { in dpipe_header_fields_get()
2927 err = dpipe_header_field_get(nla_field, &fields[count]); in dpipe_header_fields_get()
2937 struct nlattr *nla_field; in dpipe_header_field_count_get() local
2940 mnl_attr_for_each_nested(nla_field, nla_fields) in dpipe_header_field_count_get()