Lines Matching refs:res
76 int res; in hsr_fill_info() local
80 res = 0; in hsr_fill_info()
85 res = nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex); in hsr_fill_info()
87 if (res) in hsr_fill_info()
93 res = nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex); in hsr_fill_info()
95 if (res) in hsr_fill_info()
146 int res; in hsr_nl_ringerror() local
157 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror()
158 if (res < 0) in hsr_nl_ringerror()
161 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror()
162 if (res < 0) in hsr_nl_ringerror()
188 int res; in hsr_nl_nodedown() local
198 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown()
199 if (res < 0) in hsr_nl_nodedown()
242 int res; in hsr_get_node_status() local
264 res = -ENOMEM; in hsr_get_node_status()
272 res = -ENOMEM; in hsr_get_node_status()
276 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_status()
277 if (res < 0) in hsr_get_node_status()
281 res = hsr_get_node_data(hsr, in hsr_get_node_status()
290 if (res < 0) in hsr_get_node_status()
293 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status()
295 if (res < 0) in hsr_get_node_status()
299 res = nla_put(skb_out, HSR_A_NODE_ADDR_B, ETH_ALEN, in hsr_get_node_status()
301 if (res < 0) in hsr_get_node_status()
304 res = nla_put_u32(skb_out, HSR_A_ADDR_B_IFINDEX, in hsr_get_node_status()
306 if (res < 0) in hsr_get_node_status()
310 res = nla_put_u32(skb_out, HSR_A_IF1_AGE, hsr_node_if1_age); in hsr_get_node_status()
311 if (res < 0) in hsr_get_node_status()
313 res = nla_put_u16(skb_out, HSR_A_IF1_SEQ, hsr_node_if1_seq); in hsr_get_node_status()
314 if (res < 0) in hsr_get_node_status()
319 res = nla_put_u32(skb_out, HSR_A_IF1_IFINDEX, in hsr_get_node_status()
322 if (res < 0) in hsr_get_node_status()
325 res = nla_put_u32(skb_out, HSR_A_IF2_AGE, hsr_node_if2_age); in hsr_get_node_status()
326 if (res < 0) in hsr_get_node_status()
328 res = nla_put_u16(skb_out, HSR_A_IF2_SEQ, hsr_node_if2_seq); in hsr_get_node_status()
329 if (res < 0) in hsr_get_node_status()
334 res = nla_put_u32(skb_out, HSR_A_IF2_IFINDEX, in hsr_get_node_status()
337 if (res < 0) in hsr_get_node_status()
354 return res; in hsr_get_node_status()
371 int res; in hsr_get_node_list() local
390 res = -ENOMEM; in hsr_get_node_list()
398 res = -ENOMEM; in hsr_get_node_list()
402 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_list()
403 if (res < 0) in hsr_get_node_list()
411 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_get_node_list()
412 if (res < 0) { in hsr_get_node_list()
434 return res; in hsr_get_node_list()