Lines Matching refs:master
497 int sdla_activate(struct net_device *slave, struct net_device *master) in sdla_activate() argument
505 if (flp->master[i] == master) in sdla_activate()
519 int sdla_deactivate(struct net_device *slave, struct net_device *master) in sdla_deactivate() argument
527 if (flp->master[i] == master) in sdla_deactivate()
541 int sdla_assoc(struct net_device *slave, struct net_device *master) in sdla_assoc() argument
546 if (master->type != ARPHRD_DLCI) in sdla_assoc()
553 if (!flp->master[i]) in sdla_assoc()
555 if (abs(flp->dlci[i]) == *(short *)(master->dev_addr)) in sdla_assoc()
564 flp->master[i] = master; in sdla_assoc()
565 flp->dlci[i] = -*(short *)(master->dev_addr); in sdla_assoc()
566 master->mtu = slave->mtu; in sdla_assoc()
572 sdla_cmd(slave, SDLA_ADD_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL); in sdla_assoc()
578 int sdla_deassoc(struct net_device *slave, struct net_device *master) in sdla_deassoc() argument
586 if (flp->master[i] == master) in sdla_deassoc()
592 flp->master[i] = NULL; in sdla_deassoc()
601 sdla_cmd(slave, SDLA_DELETE_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL); in sdla_deassoc()
607 int sdla_dlci_conf(struct net_device *slave, struct net_device *master, int get) in sdla_dlci_conf() argument
617 if (flp->master[i] == master) in sdla_dlci_conf()
623 dlp = master->priv; in sdla_dlci_conf()
729 if(flp->master[i]!=NULL) in sdla_transmit()
730 netif_wake_queue(flp->master[i]); in sdla_transmit()
737 struct net_device *master; in sdla_receive() local
755 master = NULL; in sdla_receive()
810 master = flp->master[i]; in sdla_receive()
856 dlp = master->priv; in sdla_receive()
857 (*dlp->receive)(skb, master); in sdla_receive()
1081 dlp = flp->master[i]->priv; in sdla_open()
1155 if (flp->master[i]) in sdla_config()
1156 flp->master[i]->mtu = flp->config.mtu; in sdla_config()