Lines Matching refs:nd
133 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit()
163 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate()
165 if (ifp->nd == NULL) in ifrotate()
274 && t->ifp->nd) { in newframe()
365 skb->dev = t->ifp->nd; in ata_rw_frameinit()
486 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in resend()
488 skb->dev = t->ifp->nd; in resend()
544 getif(struct aoetgt *t, struct net_device *nd) in getif() argument
551 if (p->nd == nd) in getif()
560 struct net_device *nd; in ejectif() local
563 nd = ifp->nd; in ejectif()
567 e->nd = NULL; in ejectif()
568 dev_put(nd); in ejectif()
823 && (ifp != t->ifs || t->ifs[1].nd)) { in rexmit_timer()
1469 skb->dev = t->ifp->nd; in aoecmd_ata_id()
1555 setifbcnt(struct aoetgt *t, struct net_device *nd, int bcnt) in setifbcnt() argument
1566 if (p->nd == NULL) in setifbcnt()
1568 if (p->nd == nd) { in setifbcnt()
1570 nd = NULL; in setifbcnt()
1574 if (nd) { in setifbcnt()
1579 dev_hold(nd); in setifbcnt()
1580 p->nd = nd; in setifbcnt()