Lines Matching refs:master
507 static int sdla_activate(struct net_device *slave, struct net_device *master)
515 if (flp->master[i] == master)
529 static int sdla_deactivate(struct net_device *slave, struct net_device *master)
537 if (flp->master[i] == master)
551 static int sdla_assoc(struct net_device *slave, struct net_device *master)
556 if (master->type != ARPHRD_DLCI)
563 if (!flp->master[i])
565 if (abs(flp->dlci[i]) == *(short *)(master->dev_addr))
573 flp->master[i] = master;
574 flp->dlci[i] = -*(short *)(master->dev_addr);
575 master->mtu = slave->mtu;
581 sdla_cmd(slave, SDLA_ADD_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL);
587 static int sdla_deassoc(struct net_device *slave, struct net_device *master)
595 if (flp->master[i] == master)
601 flp->master[i] = NULL;
609 sdla_cmd(slave, SDLA_DELETE_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL);
615 static int sdla_dlci_conf(struct net_device *slave, struct net_device *master, int get)
625 if (flp->master[i] == master)
631 dlp = netdev_priv(master);
736 if(flp->master[i]!=NULL)
737 netif_wake_queue(flp->master[i]);
746 struct net_device *master;
764 master = NULL;
818 master = flp->master[i];
864 dlp = netdev_priv(master);
865 (*dlp->receive)(skb, master);
1083 dlp = netdev_priv(flp->master[i]);
1155 if (flp->master[i])
1156 flp->master[i]->mtu = flp->config.mtu;