Lines Matching defs:xfer

331 	struct fw_xfer *xfer;
381 /* pre-allocate xfer */
384 xfer = fw_xfer_alloc(M_FW);
385 if (xfer == NULL)
388 xfer->recv.payload = mtod(m, uint32_t *);
389 xfer->recv.pay_len = MCLBYTES;
390 xfer->hand = fwip_unicast_input;
391 xfer->fc = fc;
392 xfer->sc = (void *) sc;
393 xfer->mbuf = m;
394 STAILQ_INSERT_TAIL(&sc->sc_fwb.xferlist, xfer, link);
400 xfer = fw_xfer_alloc(M_FW);
401 if (xfer == NULL)
403 xfer->send.spd = tx_speed;
404 xfer->fc = sc->sc_fd.fc;
405 xfer->sc = (void *)sc;
406 xfer->hand = fwip_output_callback;
407 STAILQ_INSERT_TAIL(&sc->sc_xferlist, xfer, link);
435 struct fw_xfer *xfer, *next;
453 for (xfer = STAILQ_FIRST(&sc->sc_fwb.xferlist); xfer != NULL;
454 xfer = next) {
455 next = STAILQ_NEXT(xfer, link);
456 fw_xfer_free(xfer);
459 for (xfer = STAILQ_FIRST(&sc->sc_xferlist); xfer != NULL;
460 xfer = next) {
461 next = STAILQ_NEXT(xfer, link);
462 fw_xfer_free(xfer);
504 fwip_output_callback(struct fw_xfer *xfer)
506 struct fwip_softc *sc = (struct fwip_softc *)xfer->sc;
511 FWIPDEBUG(ifp, "resp = %d\n", xfer->resp);
512 if (xfer->resp != 0)
515 m_freem(xfer->mbuf);
516 fw_xfer_unload(xfer);
519 STAILQ_INSERT_TAIL(&sc->sc_xferlist, xfer, link);
535 struct fw_xfer *xfer;
542 xfer = NULL;
550 aprint_normal("if_fwip: lack of xfer\n");
559 xfer = STAILQ_FIRST(&sc->sc_xferlist);
576 * Put the mbuf in the xfer early in case we hit an
580 xfer->mbuf = m;
586 fp = &xfer->send.hdr;
603 xfer->send.spd = 0;
629 fwip_output_callback(xfer);
650 xfer->send.spd = uimin(destfw->sspd, fc->speed);
653 xfer->send.pay_len = m->m_pkthdr.len;
655 error = fw_asyreq(fc, -1, xfer);
661 xfer->mbuf = 0;
663 STAILQ_INSERT_TAIL(&sc->sc_xferlist, xfer, link);
672 fwip_output_callback(xfer);
797 fwip_unicast_input_recycle(struct fwip_softc *sc, struct fw_xfer *xfer)
802 * We have finished with a unicast xfer. Allocate a new
809 xfer->recv.payload = mtod(m, uint32_t *);
810 xfer->recv.pay_len = MCLBYTES;
811 xfer->mbuf = m;
813 STAILQ_INSERT_TAIL(&sc->sc_fwb.xferlist, xfer, link);
818 fwip_unicast_input(struct fw_xfer *xfer)
828 sc = (struct fwip_softc *)xfer->sc;
830 m = xfer->mbuf;
831 xfer->mbuf = 0;
832 fp = &xfer->recv.hdr;
852 fwip_unicast_input_recycle(sc, xfer);