Lines Matching refs:primary_if
345 struct batadv_hard_iface *primary_if; in batadv_bla_send_claim() local
351 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_send_claim()
352 if (!primary_if) in batadv_bla_send_claim()
359 soft_iface = primary_if->soft_iface; in batadv_bla_send_claim()
364 primary_if->soft_iface, in batadv_bla_send_claim()
370 primary_if->net_dev->dev_addr, in batadv_bla_send_claim()
449 batadv_hardif_put(primary_if); in batadv_bla_send_claim()
566 struct batadv_hard_iface *primary_if, in batadv_bla_update_own_backbone_gw() argument
572 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw()
591 struct batadv_hard_iface *primary_if, in batadv_bla_answer_request() argument
605 primary_if->net_dev->dev_addr, in batadv_bla_answer_request()
896 struct batadv_hard_iface *primary_if, in batadv_handle_request() argument
907 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request()
914 batadv_bla_answer_request(bat_priv, primary_if, vid); in batadv_handle_request()
929 struct batadv_hard_iface *primary_if, in batadv_handle_unclaim() argument
936 if (primary_if && batadv_compare_eth(backbone_addr, in batadv_handle_unclaim()
937 primary_if->net_dev->dev_addr)) in batadv_handle_unclaim()
967 struct batadv_hard_iface *primary_if, in batadv_handle_claim() argument
983 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_handle_claim()
1011 struct batadv_hard_iface *primary_if, in batadv_check_claim_group() argument
1039 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_check_claim_group()
1078 struct batadv_hard_iface *primary_if, in batadv_bla_process_claim() argument
1164 ret = batadv_check_claim_group(bat_priv, primary_if, hw_src, hw_dst, in batadv_bla_process_claim()
1176 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_process_claim()
1181 if (batadv_handle_claim(bat_priv, primary_if, hw_src, in batadv_bla_process_claim()
1186 if (batadv_handle_unclaim(bat_priv, primary_if, in batadv_bla_process_claim()
1197 if (batadv_handle_request(bat_priv, primary_if, hw_src, ethhdr, in batadv_bla_process_claim()
1273 struct batadv_hard_iface *primary_if, in batadv_bla_purge_claims() argument
1296 primary_if->net_dev->dev_addr)) in batadv_bla_purge_claims()
1311 batadv_handle_unclaim(bat_priv, primary_if, in batadv_bla_purge_claims()
1329 struct batadv_hard_iface *primary_if, in batadv_bla_update_orig_address() argument
1339 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address()
1367 primary_if->net_dev->dev_addr); in batadv_bla_update_orig_address()
1404 struct batadv_hard_iface *primary_if; in batadv_bla_status_update() local
1406 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_status_update()
1407 if (!primary_if) in batadv_bla_status_update()
1413 batadv_bla_update_orig_address(bat_priv, primary_if, primary_if); in batadv_bla_status_update()
1414 batadv_hardif_put(primary_if); in batadv_bla_status_update()
1433 struct batadv_hard_iface *primary_if; in batadv_bla_periodic_work() local
1440 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_periodic_work()
1441 if (!primary_if) in batadv_bla_periodic_work()
1444 batadv_bla_purge_claims(bat_priv, primary_if, 0); in batadv_bla_periodic_work()
1476 primary_if->net_dev->dev_addr)) in batadv_bla_periodic_work()
1507 batadv_hardif_put(primary_if); in batadv_bla_periodic_work()
1531 struct batadv_hard_iface *primary_if; in batadv_bla_init() local
1542 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_init()
1543 if (primary_if) { in batadv_bla_init()
1544 crc = crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN); in batadv_bla_init()
1546 batadv_hardif_put(primary_if); in batadv_bla_init()
1805 struct batadv_hard_iface *primary_if; in batadv_bla_free() local
1808 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_free()
1811 batadv_bla_purge_claims(bat_priv, primary_if, 1); in batadv_bla_free()
1820 batadv_hardif_put(primary_if); in batadv_bla_free()
1838 struct batadv_hard_iface *primary_if, in batadv_bla_loopdetect_check() argument
1862 primary_if->net_dev->dev_addr, in batadv_bla_loopdetect_check()
1900 struct batadv_hard_iface *primary_if; in batadv_bla_rx() local
1906 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_rx()
1907 if (!primary_if) in batadv_bla_rx()
1913 if (batadv_bla_loopdetect_check(bat_priv, skb, primary_if, vid)) in batadv_bla_rx()
1959 batadv_handle_claim(bat_priv, primary_if, in batadv_bla_rx()
1960 primary_if->net_dev->dev_addr, in batadv_bla_rx()
1968 primary_if->net_dev->dev_addr); in batadv_bla_rx()
1992 batadv_handle_claim(bat_priv, primary_if, in batadv_bla_rx()
1993 primary_if->net_dev->dev_addr, in batadv_bla_rx()
1998 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_rx()
2007 batadv_hardif_put(primary_if); in batadv_bla_rx()
2035 struct batadv_hard_iface *primary_if; in batadv_bla_tx() local
2039 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_tx()
2040 if (!primary_if) in batadv_bla_tx()
2046 if (batadv_bla_process_claim(bat_priv, primary_if, skb)) in batadv_bla_tx()
2068 primary_if->net_dev->dev_addr); in batadv_bla_tx()
2082 batadv_handle_unclaim(bat_priv, primary_if, in batadv_bla_tx()
2083 primary_if->net_dev->dev_addr, in batadv_bla_tx()
2106 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_tx()
2112 batadv_hardif_put(primary_if); in batadv_bla_tx()
2131 struct batadv_hard_iface *primary_if, in batadv_bla_claim_dump_entry() argument
2134 const u8 *primary_addr = primary_if->net_dev->dev_addr; in batadv_bla_claim_dump_entry()
2196 struct batadv_hard_iface *primary_if, in batadv_bla_claim_dump_bucket() argument
2212 primary_if, claim); in batadv_bla_claim_dump_bucket()
2234 struct batadv_hard_iface *primary_if = NULL; in batadv_bla_claim_dump() local
2259 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_claim_dump()
2260 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_bla_claim_dump()
2266 if (batadv_bla_claim_dump_bucket(msg, portid, cb, primary_if, in batadv_bla_claim_dump()
2278 batadv_hardif_put(primary_if); in batadv_bla_claim_dump()
2299 struct batadv_hard_iface *primary_if, in batadv_bla_backbone_dump_entry() argument
2302 const u8 *primary_addr = primary_if->net_dev->dev_addr; in batadv_bla_backbone_dump_entry()
2366 struct batadv_hard_iface *primary_if, in batadv_bla_backbone_dump_bucket() argument
2382 primary_if, backbone_gw); in batadv_bla_backbone_dump_bucket()
2404 struct batadv_hard_iface *primary_if = NULL; in batadv_bla_backbone_dump() local
2429 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_backbone_dump()
2430 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_bla_backbone_dump()
2436 if (batadv_bla_backbone_dump_bucket(msg, portid, cb, primary_if, in batadv_bla_backbone_dump()
2448 batadv_hardif_put(primary_if); in batadv_bla_backbone_dump()
2473 struct batadv_hard_iface *primary_if = NULL; in batadv_bla_check_claim() local
2479 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_check_claim()
2480 if (!primary_if) in batadv_bla_check_claim()
2494 primary_if->net_dev->dev_addr)) in batadv_bla_check_claim()
2499 batadv_hardif_put(primary_if); in batadv_bla_check_claim()