Lines Matching defs:bpq
33 * the ethernet device (in fact: as soon as another ethernet or bpq
112 struct list_head bpq_list; /* list of bpq devices chain */
114 struct net_device *axdev; /* bpq device (bpq#) */
150 struct bpqdev *bpq = netdev_priv(dev);
152 return bpq ? bpq->ethdev : NULL;
160 struct bpqdev *bpq;
162 list_for_each_entry_rcu(bpq, &bpq_devices, bpq_list) {
163 if (bpq->ethdev == dev)
164 return bpq->axdev;
185 struct bpqdev *bpq;
207 bpq = netdev_priv(dev);
211 if (!(bpq->acpt_addr[0] & 0x01) &&
212 memcmp(eth->h_source, bpq->acpt_addr, ETH_ALEN))
251 struct bpqdev *bpq;
285 bpq = netdev_priv(dev);
296 dev_hard_header(skb, dev, ETH_P_BPQ, bpq->dest_addr, NULL, 0);
327 struct bpqdev *bpq = netdev_priv(dev);
347 if (copy_from_user(bpq->dest_addr, ethaddr->destination, ETH_ALEN))
349 if (copy_from_user(bpq->acpt_addr, ethaddr->accept, ETH_ALEN))
502 struct bpqdev *bpq;
504 ndev = alloc_netdev(sizeof(struct bpqdev), "bpq%d",
510 bpq = netdev_priv(ndev);
512 bpq->ethdev = edev;
513 bpq->axdev = ndev;
515 memcpy(bpq->dest_addr, bcast_addr, sizeof(bpq_eth_addr));
516 memcpy(bpq->acpt_addr, bcast_addr, sizeof(bpq_eth_addr));
528 list_add_rcu(&bpq->bpq_list, &bpq_devices);
540 struct bpqdev *bpq = netdev_priv(ndev);
542 dev_put(bpq->ethdev);
543 list_del_rcu(&bpq->bpq_list);
595 "bpq: cannot create /proc/net/bpqether entry.\n");
611 struct bpqdev *bpq;
621 bpq = list_entry(bpq_devices.next, struct bpqdev, bpq_list);
622 bpq_free_device(bpq->axdev);