Lines Matching refs:fwb
778 struct fw_bind *fwb;
861 fwb = malloc(sizeof(struct fw_bind), M_FW, M_NOWAIT);
862 if (fwb == NULL) {
870 fwb->start_hi = 0x2;
871 fwb->start_lo = 0;
872 fwb->addrlen = 0xffffffff;
873 fwb->xfer = xfer;
874 fw_bindadd(fc, fwb);
878 #define BIND_CMP(addr, fwb) (((addr) < (fwb)->start)? -1 : \
879 ((fwb)->end < (addr)) ? 1 : 0)
905 fw_bindadd(struct firewire_comm *fc, struct fw_bind *fwb)
910 if (fwb->start > fwb->end) {
917 if (fwb->end < tfw->start)
922 STAILQ_INSERT_HEAD(&fc->binds, fwb, fclist);
923 else if (prev->end < fwb->start)
924 STAILQ_INSERT_AFTER(&fc->binds, prev, fwb, fclist);
937 fw_bindremove(struct firewire_comm *fc, struct fw_bind *fwb)
948 if (tfw == fwb) {
949 STAILQ_REMOVE(&fc->binds, fwb, fw_bind, fclist);
960 for (xfer = STAILQ_FIRST(&fwb->xferlist); xfer != NULL; xfer = next) {
964 STAILQ_INIT(&fwb->xferlist);