Lines Matching refs:hard_iface

235 	struct net_device *hard_iface;  in batadv_netlink_mesh_fill()  local
264 hard_iface = primary_if->net_dev; in batadv_netlink_mesh_fill()
267 hard_iface->ifindex) || in batadv_netlink_mesh_fill()
269 hard_iface->name) || in batadv_netlink_mesh_fill()
271 hard_iface->dev_addr)) in batadv_netlink_mesh_fill()
796 struct batadv_hard_iface *hard_iface, in batadv_netlink_hardif_fill() argument
801 struct net_device *net_dev = hard_iface->net_dev; in batadv_netlink_hardif_fill()
827 if (hard_iface->if_status == BATADV_IF_ACTIVE) { in batadv_netlink_hardif_fill()
833 atomic_read(&hard_iface->hop_penalty))) in batadv_netlink_hardif_fill()
838 atomic_read(&hard_iface->bat_v.elp_interval))) in batadv_netlink_hardif_fill()
842 atomic_read(&hard_iface->bat_v.throughput_override))) in batadv_netlink_hardif_fill()
862 struct batadv_hard_iface *hard_iface) in batadv_netlink_notify_hardif() argument
871 ret = batadv_netlink_hardif_fill(msg, bat_priv, hard_iface, in batadv_netlink_notify_hardif()
895 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_get_hardif() local
904 ret = batadv_netlink_hardif_fill(msg, bat_priv, hard_iface, in batadv_netlink_get_hardif()
928 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_set_hardif() local
935 atomic_set(&hard_iface->hop_penalty, nla_get_u8(attr)); in batadv_netlink_set_hardif()
943 atomic_set(&hard_iface->bat_v.elp_interval, nla_get_u32(attr)); in batadv_netlink_set_hardif()
949 atomic_set(&hard_iface->bat_v.throughput_override, in batadv_netlink_set_hardif()
954 batadv_netlink_notify_hardif(bat_priv, hard_iface); in batadv_netlink_set_hardif()
971 struct batadv_hard_iface *hard_iface; in batadv_netlink_dump_hardif() local
997 list_for_each_entry(hard_iface, &batadv_hardif_list, list) { in batadv_netlink_dump_hardif()
998 if (hard_iface->soft_iface != soft_iface) in batadv_netlink_dump_hardif()
1004 if (batadv_netlink_hardif_fill(msg, bat_priv, hard_iface, in batadv_netlink_dump_hardif()
1201 struct batadv_hard_iface *hard_iface; in batadv_get_hardif_from_info() local
1214 hard_iface = batadv_hardif_get_by_netdev(hard_dev); in batadv_get_hardif_from_info()
1215 if (!hard_iface) in batadv_get_hardif_from_info()
1218 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_get_hardif_from_info()
1224 return hard_iface; in batadv_get_hardif_from_info()
1227 batadv_hardif_put(hard_iface); in batadv_get_hardif_from_info()
1274 struct batadv_hard_iface *hard_iface; in batadv_pre_doit() local
1301 hard_iface = batadv_get_hardif_from_info(bat_priv, net, info); in batadv_pre_doit()
1302 if (IS_ERR(hard_iface)) { in batadv_pre_doit()
1303 ret = PTR_ERR(hard_iface); in batadv_pre_doit()
1307 info->user_ptr[1] = hard_iface; in batadv_pre_doit()
1338 struct batadv_hard_iface *hard_iface; in batadv_post_doit() local
1344 hard_iface = info->user_ptr[1]; in batadv_post_doit()
1346 batadv_hardif_put(hard_iface); in batadv_post_doit()