Lines Matching refs:attr
329 struct nlattr *attr; in net_dm_hw_entry_put() local
331 attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRY); in net_dm_hw_entry_put()
332 if (!attr) in net_dm_hw_entry_put()
341 nla_nest_end(msg, attr); in net_dm_hw_entry_put()
346 nla_nest_cancel(msg, attr); in net_dm_hw_entry_put()
353 struct nlattr *attr; in net_dm_hw_entries_put() local
356 attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRIES); in net_dm_hw_entries_put()
357 if (!attr) in net_dm_hw_entries_put()
368 nla_nest_end(msg, attr); in net_dm_hw_entries_put()
373 nla_nest_cancel(msg, attr); in net_dm_hw_entries_put()
590 struct nlattr *attr; in net_dm_packet_report_in_port_put() local
592 attr = nla_nest_start(msg, NET_DM_ATTR_IN_PORT); in net_dm_packet_report_in_port_put()
593 if (!attr) in net_dm_packet_report_in_port_put()
603 nla_nest_end(msg, attr); in net_dm_packet_report_in_port_put()
608 nla_nest_cancel(msg, attr); in net_dm_packet_report_in_port_put()
619 struct nlattr *attr; in net_dm_packet_report_fill() local
675 attr = skb_put(msg, nla_total_size(payload_len)); in net_dm_packet_report_fill()
676 attr->nla_type = NET_DM_ATTR_PAYLOAD; in net_dm_packet_report_fill()
677 attr->nla_len = nla_attr_size(payload_len); in net_dm_packet_report_fill()
678 if (skb_copy_bits(skb, 0, nla_data(attr), payload_len)) in net_dm_packet_report_fill()
785 struct nlattr *attr; in net_dm_hw_packet_report_fill() local
835 attr = skb_put(msg, nla_total_size(payload_len)); in net_dm_hw_packet_report_fill()
836 attr->nla_type = NET_DM_ATTR_PAYLOAD; in net_dm_hw_packet_report_fill()
837 attr->nla_len = nla_attr_size(payload_len); in net_dm_hw_packet_report_fill()
838 if (skb_copy_bits(skb, 0, nla_data(attr), payload_len)) in net_dm_hw_packet_report_fill()
1464 struct nlattr *attr; in net_dm_stats_put() local
1468 attr = nla_nest_start(msg, NET_DM_ATTR_STATS); in net_dm_stats_put()
1469 if (!attr) in net_dm_stats_put()
1476 nla_nest_end(msg, attr); in net_dm_stats_put()
1481 nla_nest_cancel(msg, attr); in net_dm_stats_put()
1508 struct nlattr *attr; in net_dm_hw_stats_put() local
1512 attr = nla_nest_start(msg, NET_DM_ATTR_HW_STATS); in net_dm_hw_stats_put()
1513 if (!attr) in net_dm_hw_stats_put()
1520 nla_nest_end(msg, attr); in net_dm_hw_stats_put()
1525 nla_nest_cancel(msg, attr); in net_dm_hw_stats_put()