Lines Matching refs:slave
509 static int sdla_activate(struct net_device *slave, struct net_device *master)
514 flp = netdev_priv(slave);
525 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))
526 sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL);
531 static int sdla_deactivate(struct net_device *slave, struct net_device *master)
536 flp = netdev_priv(slave);
547 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))
548 sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL);
553 static int sdla_assoc(struct net_device *slave, struct net_device *master)
561 flp = netdev_priv(slave);
577 master->mtu = slave->mtu;
579 if (netif_running(slave)) {
581 sdla_reconfig(slave);
583 sdla_cmd(slave, SDLA_ADD_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL);
589 static int sdla_deassoc(struct net_device *slave, struct net_device *master)
594 flp = netdev_priv(slave);
607 if (netif_running(slave)) {
609 sdla_reconfig(slave);
611 sdla_cmd(slave, SDLA_DELETE_DLCI, 0, 0, master->dev_addr, sizeof(short), NULL, NULL);
617 static int sdla_dlci_conf(struct net_device *slave, struct net_device *master, int get)
624 flp = netdev_priv(slave);
637 if (netif_running(slave)) {
639 ret = sdla_cmd(slave, SDLA_READ_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0,
642 ret = sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0,