Lines Matching refs:slave
507 static int sdla_activate(struct net_device *slave, struct net_device *master)
512 flp = netdev_priv(slave);
523 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))
524 sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL);
529 static int sdla_deactivate(struct net_device *slave, struct net_device *master)
534 flp = netdev_priv(slave);
545 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))
546 sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL);
551 static int sdla_assoc(struct net_device *slave, struct net_device *master)
559 flp = netdev_priv(slave);
575 master->mtu = slave->mtu;
577 if (netif_running(slave)) {
579 sdla_reconfig(slave);
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)
592 flp = netdev_priv(slave);
605 if (netif_running(slave)) {
607 sdla_reconfig(slave);
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)
622 flp = netdev_priv(slave);
635 if (netif_running(slave)) {
637 ret = sdla_cmd(slave, SDLA_READ_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0,
640 ret = sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0,