Lines Matching refs:attrs

597 	struct nlattr *attrs;  in __tipc_nl_add_bearer()  local
605 attrs = nla_nest_start(msg->skb, TIPC_NLA_BEARER); in __tipc_nl_add_bearer()
606 if (!attrs) in __tipc_nl_add_bearer()
623 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_bearer()
631 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_bearer()
677 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_get() local
680 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_get()
683 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_get()
684 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_get()
689 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_get()
691 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_get()
726 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_disable() local
729 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_disable()
732 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_disable()
733 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_disable()
738 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_disable()
741 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_disable()
760 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_enable() local
769 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_enable()
772 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_enable()
773 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_enable()
778 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_enable()
781 bearer = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_enable()
783 if (attrs[TIPC_NLA_BEARER_DOMAIN]) in tipc_nl_bearer_enable()
784 domain = nla_get_u32(attrs[TIPC_NLA_BEARER_DOMAIN]); in tipc_nl_bearer_enable()
786 if (attrs[TIPC_NLA_BEARER_PROP]) { in tipc_nl_bearer_enable()
789 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_BEARER_PROP], in tipc_nl_bearer_enable()
799 err = tipc_enable_bearer(net, bearer, domain, prio, attrs); in tipc_nl_bearer_enable()
814 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_set() local
817 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_set()
820 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_set()
821 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_set()
826 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_set()
828 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_set()
837 if (attrs[TIPC_NLA_BEARER_PROP]) { in tipc_nl_bearer_set()
840 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_BEARER_PROP], in tipc_nl_bearer_set()
863 struct nlattr *attrs; in __tipc_nl_add_media() local
871 attrs = nla_nest_start(msg->skb, TIPC_NLA_MEDIA); in __tipc_nl_add_media()
872 if (!attrs) in __tipc_nl_add_media()
889 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_media()
897 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_media()
937 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_media_get() local
939 if (!info->attrs[TIPC_NLA_MEDIA]) in tipc_nl_media_get()
942 err = nla_parse_nested(attrs, TIPC_NLA_MEDIA_MAX, in tipc_nl_media_get()
943 info->attrs[TIPC_NLA_MEDIA], in tipc_nl_media_get()
948 if (!attrs[TIPC_NLA_MEDIA_NAME]) in tipc_nl_media_get()
950 name = nla_data(attrs[TIPC_NLA_MEDIA_NAME]); in tipc_nl_media_get()
985 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_media_set() local
987 if (!info->attrs[TIPC_NLA_MEDIA]) in tipc_nl_media_set()
990 err = nla_parse_nested(attrs, TIPC_NLA_MEDIA_MAX, in tipc_nl_media_set()
991 info->attrs[TIPC_NLA_MEDIA], in tipc_nl_media_set()
994 if (!attrs[TIPC_NLA_MEDIA_NAME]) in tipc_nl_media_set()
996 name = nla_data(attrs[TIPC_NLA_MEDIA_NAME]); in tipc_nl_media_set()
1005 if (attrs[TIPC_NLA_MEDIA_PROP]) { in tipc_nl_media_set()
1008 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_MEDIA_PROP], in tipc_nl_media_set()