Lines Matching full:ifp
132 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit()
158 struct aoeif *ifp; in ifrotate() local
160 ifp = t->ifp; in ifrotate()
161 ifp++; in ifrotate()
162 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate()
163 ifp = t->ifs; in ifrotate()
164 if (ifp->nd == NULL) in ifrotate()
166 return t->ifp = ifp; in ifrotate()
273 && t->ifp->nd) { in newframe()
364 dev_hold(t->ifp->nd); in ata_rw_frameinit()
365 skb->dev = t->ifp->nd; in ata_rw_frameinit()
406 dev_put(f->t->ifp->nd); in aoecmd_ata_rw()
420 struct net_device *ifp; in aoecmd_cfg_pkts() local
423 for_each_netdev_rcu(&init_net, ifp) { in aoecmd_cfg_pkts()
424 dev_hold(ifp); in aoecmd_cfg_pkts()
425 if (!is_aoe_netif(ifp)) { in aoecmd_cfg_pkts()
426 dev_put(ifp); in aoecmd_cfg_pkts()
433 dev_put(ifp); in aoecmd_cfg_pkts()
437 skb->dev = ifp; in aoecmd_cfg_pkts()
443 memcpy(h->src, ifp->dev_addr, sizeof h->src); in aoecmd_cfg_pkts()
487 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in resend()
489 dev_hold(t->ifp->nd); in resend()
490 skb->dev = t->ifp->nd; in resend()
493 dev_put(t->ifp->nd); in resend()
544 ejectif(struct aoetgt *t, struct aoeif *ifp) in ejectif() argument
550 nd = ifp->nd; in ejectif()
552 n = (e - ifp) * sizeof *ifp; in ejectif()
553 memmove(ifp, ifp+1, n); in ejectif()
627 dev_put(f->t->ifp->nd); in probe()
738 struct aoeif *ifp; in rexmit_timer() local
808 ifp = getif(t, f->skb->dev); in rexmit_timer()
809 if (ifp && ++ifp->lost > (t->nframes << 1) in rexmit_timer()
810 && (ifp != t->ifs || t->ifs[1].nd)) { in rexmit_timer()
811 ejectif(t, ifp); in rexmit_timer()
812 ifp = NULL; in rexmit_timer()
1082 struct aoeif *ifp; in ktiocomplete() local
1140 ifp = getif(t, skb->dev); in ktiocomplete()
1141 if (ifp) in ktiocomplete()
1142 ifp->lost = 0; in ktiocomplete()
1406 dev_hold(t->ifp->nd); in aoecmd_ata_id()
1407 skb->dev = t->ifp->nd; in aoecmd_ata_id()
1417 dev_put(t->ifp->nd); in aoecmd_ata_id()
1463 t->ifp = t->ifs; in addtgt()