Lines Matching refs:master
406 struct net_device *master, *slave; in dlci_add() local
441 master = kmalloc(sizeof(*master), GFP_KERNEL); in dlci_add()
442 if (!master) in dlci_add()
445 memset(master, 0, sizeof(*master)); in dlci_add()
447 strcpy(master->name, buf); in dlci_add()
448 master->init = dlci_init; in dlci_add()
449 master->flags = 0; in dlci_add()
451 err = register_netdev(master); in dlci_add()
454 kfree(master); in dlci_add()
458 *(short *)(master->dev_addr) = dlci->dlci; in dlci_add()
460 dlp = (struct dlci_local *) master->priv; in dlci_add()
464 err = flp ? (*flp->assoc)(slave, master) : -EINVAL; in dlci_add()
467 unregister_netdev(master); in dlci_add()
468 kfree(master->priv); in dlci_add()
469 kfree(master); in dlci_add()
474 open_dev[i] = master; in dlci_add()
483 struct net_device *master, *slave; in dlci_del() local
487 master = __dev_get_by_name(dlci->devname); in dlci_del()
488 if (!master) in dlci_del()
491 if (netif_running(master)) in dlci_del()
494 dlp = master->priv; in dlci_del()
498 err = (*flp->deassoc)(slave, master); in dlci_del()
502 unregister_netdev(master); in dlci_del()
505 if (master == open_dev[i]) in dlci_del()
511 kfree(master->priv); in dlci_del()
512 kfree(master); in dlci_del()