Lines Matching refs:props
1036 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_bearer_enable() local
1039 props); in __tipc_nl_bearer_enable()
1043 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_bearer_enable()
1044 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_bearer_enable()
1137 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_bearer_set() local
1140 props); in __tipc_nl_bearer_set()
1144 if (props[TIPC_NLA_PROP_TOL]) { in __tipc_nl_bearer_set()
1145 b->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in __tipc_nl_bearer_set()
1148 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_bearer_set()
1149 b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_bearer_set()
1150 if (props[TIPC_NLA_PROP_WIN]) in __tipc_nl_bearer_set()
1151 b->max_win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); in __tipc_nl_bearer_set()
1152 if (props[TIPC_NLA_PROP_MTU]) { in __tipc_nl_bearer_set()
1159 if (nla_get_u32(props[TIPC_NLA_PROP_MTU]) < in __tipc_nl_bearer_set()
1165 b->mtu = nla_get_u32(props[TIPC_NLA_PROP_MTU]); in __tipc_nl_bearer_set()
1334 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_media_set() local
1337 props); in __tipc_nl_media_set()
1341 if (props[TIPC_NLA_PROP_TOL]) in __tipc_nl_media_set()
1342 m->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in __tipc_nl_media_set()
1343 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_media_set()
1344 m->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_media_set()
1345 if (props[TIPC_NLA_PROP_WIN]) in __tipc_nl_media_set()
1346 m->max_win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); in __tipc_nl_media_set()
1347 if (props[TIPC_NLA_PROP_MTU]) { in __tipc_nl_media_set()
1355 (props[TIPC_NLA_PROP_MTU]))) { in __tipc_nl_media_set()
1360 m->mtu = nla_get_u32(props[TIPC_NLA_PROP_MTU]); in __tipc_nl_media_set()