Lines Matching defs:mpt

176 	hermon_rsrc_t		*mpt, *mtt, *rsrc;
212 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
258 mr->mr_rkey = mr->mr_lkey = hermon_mr_keycalc(mpt->hr_indx);
372 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
388 mr->mr_mptrsrcp = mpt;
431 hermon_rsrc_free(state, &mpt);
446 hermon_rsrc_t *mpt, *mtt, *rsrc;
482 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
527 mr->mr_rkey = mr->mr_lkey = mpt->hr_indx;
593 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
610 mr->mr_mptrsrcp = mpt;
624 rindx = mpt->hr_indx;
627 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mpt))
628 mpt->hr_addr = (void *)((uintptr_t)(dma_info->vaddr + i * mpt->hr_len));
642 hermon_rsrc_free(state, &mpt);
659 hermon_rsrc_t *mpt;
665 mpt = mr->mr_mptrsrcp;
666 mpt_table = (uint64_t *)mpt->hr_addr;
695 key = mpt->hr_indx | (mr->mr_fmr_key++ << HERMON_MEMKEY_SHIFT);
748 hermon_rsrc_t *mpt, *mtt, *rsrc, *mtt_refcnt;
776 mpt = mr->mr_mptrsrcp;
827 NULL, 0, mpt->hr_indx, sleep);
924 if (mpt != NULL)
925 hermon_rsrc_free(state, &mpt);
944 hermon_rsrc_t *mpt, *mtt, *rsrc;
956 mpt = mr->mr_mptrsrcp;
969 hermon_rsrc_free(state, &mpt);
1227 hermon_rsrc_t *mpt, *rsrc;
1260 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
1288 mw->mr_rkey = hermon_mr_keycalc(mpt->hr_indx);
1310 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
1326 mw->mr_mptrsrcp = mpt;
1337 hermon_rsrc_free(state, &mpt);
1352 hermon_rsrc_t *mpt, *rsrc;
1375 mpt = mw->mr_mptrsrcp;
1386 0, mpt->hr_indx, sleep);
1400 hermon_rsrc_free(state, &mpt);
1472 hermon_rsrc_t *mpt, *mtt, *rsrc, *mtt_refcnt;
1505 /* check what kind of mpt to use */
1544 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
1550 mpt = NULL;
1593 if (mpt)
1594 mr->mr_rkey = mr->mr_lkey = hermon_mr_keycalc(mpt->hr_indx);
1651 &mtt_pgsize_bits, mpt != NULL);
1688 if (mpt == NULL)
1737 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
1760 mr->mr_mptrsrcp = mpt;
1817 if (mpt != NULL)
1818 hermon_rsrc_free(state, &mpt);
1833 hermon_rsrc_t *mpt, *rsrc;
1865 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
1912 if (mpt)
1913 mr->mr_rkey = mr->mr_lkey = hermon_mr_keycalc(mpt->hr_indx);
1964 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
1983 mr->mr_mptrsrcp = mpt;
2007 hermon_rsrc_free(state, &mpt);
2022 hermon_rsrc_t *mpt, *mtt, *rsrc, *mtt_refcnt;
2044 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
2066 mr->mr_lkey = hermon_mr_keycalc(mpt->hr_indx);
2125 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
2144 mr->mr_mptrsrcp = mpt;
2162 hermon_rsrc_free(state, &mpt);
2382 hermon_rsrc_t *mpt;
2406 mpt = mr->mr_mptrsrcp;
2438 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, HERMON_CMD_NOSLEEP_SPIN);
2591 mr->mr_lkey = hermon_mr_keycalc(mpt->hr_indx);
2633 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, HERMON_CMD_NOSLEEP_SPIN);