Lines Matching refs:nla_header
2947 struct nlattr *nla_header[DEVLINK_ATTR_MAX + 1] = {}; in dpipe_header_get() local
2954 err = mnl_attr_parse_nested(nl, attr_cb, nla_header); in dpipe_header_get()
2958 if (!nla_header[DEVLINK_ATTR_DPIPE_HEADER_NAME] || in dpipe_header_get()
2959 !nla_header[DEVLINK_ATTR_DPIPE_HEADER_ID] || in dpipe_header_get()
2960 !nla_header[DEVLINK_ATTR_DPIPE_HEADER_FIELDS]) in dpipe_header_get()
2963 fields_count = dpipe_header_field_count_get(nla_header[DEVLINK_ATTR_DPIPE_HEADER_FIELDS]); in dpipe_header_get()
2968 header_name = mnl_attr_get_str(nla_header[DEVLINK_ATTR_DPIPE_HEADER_NAME]); in dpipe_header_get()
2970 header->id = mnl_attr_get_u32(nla_header[DEVLINK_ATTR_DPIPE_HEADER_ID]); in dpipe_header_get()
2972 global = !!mnl_attr_get_u8(nla_header[DEVLINK_ATTR_DPIPE_HEADER_GLOBAL]); in dpipe_header_get()
2974 err = dpipe_header_fields_get(nla_header[DEVLINK_ATTR_DPIPE_HEADER_FIELDS], in dpipe_header_get()
2989 struct nlattr *nla_header; in dpipe_headers_get() local
2992 mnl_attr_for_each_nested(nla_header, nla_headers) { in dpipe_headers_get()
2993 err = dpipe_header_get(ctx, nla_header); in dpipe_headers_get()