Lines Matching defs:dlp
189 struct dlci_local *dlp = netdev_priv(dev);
193 netdev_start_xmit(skb, dlp->slave, txq, false);
201 struct dlci_local *dlp;
205 dlp = netdev_priv(dev);
207 flp = netdev_priv(dlp->slave);
215 memcpy(&dlp->config, &config, sizeof(struct dlci_conf));
216 dlp->configured = 1;
219 err = (*flp->dlci_conf)(dlp->slave, dev, get);
225 if (copy_to_user(conf, &dlp->config, sizeof(struct dlci_conf)))
234 struct dlci_local *dlp;
239 dlp = netdev_priv(dev);
247 strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave));
265 struct dlci_local *dlp = netdev_priv(dev);
267 return dev_set_mtu(dlp->slave, new_mtu);
272 struct dlci_local *dlp;
276 dlp = netdev_priv(dev);
281 if (!netif_running(dlp->slave))
284 flp = netdev_priv(dlp->slave);
285 err = (*flp->activate)(dlp->slave, dev);
296 struct dlci_local *dlp;
301 dlp = netdev_priv(dev);
303 flp = netdev_priv(dlp->slave);
304 (*flp->deactivate)(dlp->slave, dev);
312 struct dlci_local *dlp;
335 list_for_each_entry(dlp, &dlci_devs, list) {
336 if (dlp->slave == slave) {
344 dlp = netdev_priv(master);
345 dlp->slave = slave;
346 dlp->master = master;
359 list_add(&dlp->list, &dlci_devs);
374 struct dlci_local *dlp;
389 list_for_each_entry(dlp, &dlci_devs, list) {
390 if (dlp->master == master) {
405 dlp = netdev_priv(master);
406 slave = dlp->slave;
411 list_del(&dlp->list);
468 struct dlci_local *dlp = netdev_priv(dev);
475 dlp->receive = dlci_receive;
493 struct dlci_local *dlp;
495 list_for_each_entry(dlp, &dlci_devs, list) {
496 if (dlp->slave == dev) {
497 list_del(&dlp->list);
498 unregister_netdevice(dlp->master);
499 dev_put(dlp->slave);
523 struct dlci_local *dlp, *nxt;
529 list_for_each_entry_safe(dlp, nxt, &dlci_devs, list) {
530 unregister_netdevice(dlp->master);
531 dev_put(dlp->slave);