Lines Matching refs:brdev
205 struct br2684_dev *brdev = BRPRIV(dev); in br2684_xmit_vcc() local
208 ((brdev->payload == p_bridged) ? in br2684_xmit_vcc()
210 ((brdev->payload == p_bridged) ? BR2684_PAD_LEN : 0); in br2684_xmit_vcc()
224 if (brdev->payload == p_bridged) { in br2684_xmit_vcc()
228 } else if (brdev->payload == p_routed) { in br2684_xmit_vcc()
247 if (brdev->payload == p_bridged) { in br2684_xmit_vcc()
286 const struct br2684_dev *brdev) in pick_outgoing_vcc() argument
288 …return list_empty(&brdev->brvccs) ? NULL : list_entry_brvcc(brdev->brvccs.next); /* 1 vcc/dev righ… in pick_outgoing_vcc()
294 struct br2684_dev *brdev = BRPRIV(dev); in br2684_start_xmit() local
301 brvcc = pick_outgoing_vcc(skb, brdev); in br2684_start_xmit()
372 struct br2684_dev *brdev; in br2684_setfilt() local
374 brdev = BRPRIV(br2684_find_dev(&fs.ifspec)); in br2684_setfilt()
375 if (brdev == NULL || list_empty(&brdev->brvccs) || in br2684_setfilt()
376 brdev->brvccs.next != brdev->brvccs.prev) /* >1 VCC */ in br2684_setfilt()
379 brvcc = list_entry_brvcc(brdev->brvccs.next); in br2684_setfilt()
427 struct br2684_dev *brdev = BRPRIV(net_dev); in br2684_push() local
434 if (list_empty(&brdev->brvccs)) { in br2684_push()
436 list_del(&brdev->br2684_devs); in br2684_push()
446 pr_debug("skb from brdev %p\n", brdev); in br2684_push()
480 if (brdev->payload == p_routed) { in br2684_push()
534 struct br2684_dev *brdev; in br2684_regvcc() local
558 brdev = BRPRIV(net_dev); in br2684_regvcc()
563 if (!list_empty(&brdev->brvccs)) { in br2684_regvcc()
578 if (list_empty(&brdev->brvccs) && !brdev->mac_was_set) { in br2684_regvcc()
587 list_add(&brvcc->brvccs, &brdev->brvccs); in br2684_regvcc()
635 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup() local
639 brdev->net_dev = netdev; in br2684_setup()
643 INIT_LIST_HEAD(&brdev->brvccs); in br2684_setup()
648 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup_routed() local
650 brdev->net_dev = netdev; in br2684_setup_routed()
660 INIT_LIST_HEAD(&brdev->brvccs); in br2684_setup_routed()
667 struct br2684_dev *brdev; in br2684_create() local
692 brdev = BRPRIV(netdev); in br2684_create()
705 brdev->payload = payload; in br2684_create()
709 brdev->number = 1; in br2684_create()
711 brdev->number = BRPRIV(list_entry_brdev(br2684_devs.prev))->number + 1; in br2684_create()
713 list_add_tail(&brdev->br2684_devs, &br2684_devs); in br2684_create()
787 const struct br2684_dev *brdev = list_entry(v, struct br2684_dev, in br2684_seq_show() local
789 const struct net_device *net_dev = brdev->net_dev; in br2684_seq_show()
794 brdev->number, in br2684_seq_show()
796 brdev->mac_was_set ? "set" : "auto"); in br2684_seq_show()
798 list_for_each_entry(brvcc, &brdev->brvccs, brvccs) { in br2684_seq_show()
804 (brdev->payload == p_bridged) ? "bridged" : "routed", in br2684_seq_show()
842 struct br2684_dev *brdev; in br2684_exit() local
855 brdev = BRPRIV(net_dev); in br2684_exit()
856 while (!list_empty(&brdev->brvccs)) { in br2684_exit()
857 brvcc = list_entry_brvcc(brdev->brvccs.next); in br2684_exit()
861 list_del(&brdev->br2684_devs); in br2684_exit()