Lines Matching defs:db_idx

372     unsigned int db_idx)
378 if (toep->ddp.active_id == db_idx) {
381 KASSERT(toep->ddp.db[db_idx ^ 1].job == NULL,
384 KASSERT(toep->ddp.db[db_idx ^ 1].drb == NULL,
412 db_flag = db_idx == 1 ? DDP_BUF1_ACTIVE : DDP_BUF0_ACTIVE;
430 queue_ddp_rcvbuf_mbuf(struct toepcb *toep, u_int db_idx, u_int len)
445 db = &toep->ddp.db[db_idx];
470 unsigned int db_idx;
489 db_idx = toep->ddp.active_id;
491 db_flag = db_idx == 1 ? DDP_BUF1_ACTIVE : DDP_BUF0_ACTIVE;
494 db = &toep->ddp.db[db_idx];
500 queue_ddp_rcvbuf_mbuf(toep, db_idx, placed);
501 complete_ddp_buffer(toep, db, db_idx);
534 complete_ddp_buffer(toep, db, db_idx);
575 mk_update_tcb_for_ddp(struct adapter *sc, struct toepcb *toep, int db_idx,
584 KASSERT(db_idx == 0 || db_idx == 1,
585 ("%s: bad DDP buffer index %d", __func__, db_idx));
607 W_TCB_RX_DDP_BUF0_TAG + db_idx,
612 if (db_idx == 0)
642 unsigned int db_idx;
651 db_idx = report & F_DDP_BUF_IDX ? 1 : 0;
661 KASSERT(toep->ddp.active_id == db_idx,
662 ("completed DDP buffer (%d) != active_id (%d) for tid %d", db_idx,
664 db = &toep->ddp.db[db_idx];
702 toep->tid, db_idx, len, report);
752 complete_ddp_buffer(toep, db, db_idx);
769 int buf_flag, db_idx;
779 db_idx = 0;
782 db_idx = 1;
792 if (db_idx == 0) {
811 MPASS(db_idx == 0);
822 wr = mk_update_tcb_for_ddp(sc, toep, db_idx, &drb->prsv, 0, drb->len,
833 toep->tid, db_idx, ddp_flags, ddp_flags_mask);
843 db = &toep->ddp.db[db_idx];
849 toep->ddp.active_id = db_idx;
867 unsigned int db_idx;
870 db_idx = report & F_DDP_BUF_IDX ? 1 : 0;
879 KASSERT(toep->ddp.active_id == db_idx,
880 ("completed DDP buffer (%d) != active_id (%d) for tid %d", db_idx,
882 db = &toep->ddp.db[db_idx];
892 complete_ddp_buffer(toep, db, db_idx);
919 toep->tid, db_idx, len, report);
940 queue_ddp_rcvbuf_mbuf(toep, db_idx, len);
948 complete_ddp_buffer(toep, db, db_idx);
1019 unsigned int db_idx;
1039 db_idx = G_COOKIE(cpl->cookie) - CPL_COOKIE_DDP0;
1040 MPASS(db_idx < nitems(toep->ddp.db));
1043 db = &toep->ddp.db[db_idx];
1075 complete_ddp_buffer(toep, db, db_idx);
1097 unsigned int db_idx;
1117 db_idx = toep->ddp.active_id;
1119 db_flag = db_idx == 1 ? DDP_BUF1_ACTIVE : DDP_BUF0_ACTIVE;
1122 db = &toep->ddp.db[db_idx];
1129 queue_ddp_rcvbuf_mbuf(toep, db_idx, placed);
1133 complete_ddp_buffer(toep, db, db_idx);
1156 __func__, toep->tid, db_idx, placed);
1160 complete_ddp_buffer(toep, db, db_idx);
2344 int buf_flag, db_idx, error;
2627 db_idx = 0;
2630 db_idx = 1;
2635 if (db_idx == 0) {
2654 MPASS(db_idx == 0);
2668 wr = mk_update_tcb_for_ddp(sc, toep, db_idx, &ps->prsv,
2698 toep->tid, job, db_idx, ddp_flags, ddp_flags_mask);
2702 db = &toep->ddp.db[db_idx];
2711 toep->ddp.active_id = db_idx;