Lines Matching defs:sleep

70     uint_t sleep, uint_t *dereg_level);
74 ddi_dma_handle_t dmahdl, uint_t sleep, uint_t is_buffer);
185 uint_t sleep, mr_is_umem;
189 * Check the sleep flag. Ensure that it is consistent with the
191 * context, then we shouldn't be attempting to sleep).
193 sleep = (mr_attr->mr_flags & IBT_MR_NOSLEEP) ? HERMON_NOSLEEP :
195 if ((sleep == HERMON_SLEEP) &&
196 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
212 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
224 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep, &rsrc);
372 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
452 uint_t sleep, mtt_pgsize_bits;
460 * Check the sleep flag. Ensure that it is consistent with the
462 * context, then we shouldn't be attempting to sleep).
464 sleep = (fmr_pool->fmr_flags & IBT_MR_SLEEP) ? HERMON_SLEEP :
466 if ((sleep == HERMON_SLEEP) &&
467 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
482 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
494 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep, &rsrc);
547 status = hermon_rsrc_alloc(state, HERMON_MTT, nummtt, sleep, &mtt);
593 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
746 uint_t sleep)
758 * Check the sleep flag. Ensure that it is consistent with the
760 * context, then we shouldn't be attempting to sleep).
762 if ((sleep == HERMON_SLEEP) &&
763 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
827 NULL, 0, mpt->hr_indx, sleep);
1230 uint_t sleep;
1237 * Check the sleep flag. Ensure that it is consistent with the
1239 * context, then we shouldn't be attempting to sleep).
1241 sleep = (flags & IBT_MW_NOSLEEP) ? HERMON_NOSLEEP : HERMON_SLEEP;
1242 if ((sleep == HERMON_SLEEP) &&
1243 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
1260 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
1274 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep, &rsrc);
1310 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
1350 hermon_mw_free(hermon_state_t *state, hermon_mwhdl_t *mwhdl, uint_t sleep)
1358 * Check the sleep flag. Ensure that it is consistent with the
1360 * context, then we shouldn't be attempting to sleep).
1362 if ((sleep == HERMON_SLEEP) &&
1363 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
1386 0, mpt->hr_indx, sleep);
1484 uint_t sleep, mtt_pgsize_bits, bind_type, mr_is_umem;
1522 * Check the sleep flag. Ensure that it is consistent with the
1524 * context, then we shouldn't be attempting to sleep).
1526 sleep = (flags & IBT_MR_NOSLEEP) ? HERMON_NOSLEEP: HERMON_SLEEP;
1527 if ((sleep == HERMON_SLEEP) &&
1528 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
1544 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
1559 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep, &rsrc);
1669 status = hermon_rsrc_alloc(state, HERMON_REFCNT, 1, sleep,
1737 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
1837 uint_t sleep;
1844 * Check the sleep flag. Ensure that it is consistent with the
1846 * context, then we shouldn't be attempting to sleep).
1848 sleep = (flags & IBT_MR_NOSLEEP) ? HERMON_NOSLEEP: HERMON_SLEEP;
1849 if ((sleep == HERMON_SLEEP) &&
1850 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
1865 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
1877 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep, &rsrc);
1964 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
2027 uint_t sleep;
2033 sleep = (flags & IBT_KEY_NOSLEEP) ? HERMON_NOSLEEP: HERMON_SLEEP;
2044 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
2056 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep, &rsrc);
2068 status = hermon_rsrc_alloc(state, HERMON_MTT, nummtt, sleep, &mtt);
2082 status = hermon_rsrc_alloc(state, HERMON_REFCNT, 1, sleep,
2125 sizeof (hermon_hw_dmpt_t), mpt->hr_indx, sleep);
2176 uint32_t mpt_indx, uint_t nummtt, uint64_t mtt_addr, uint_t sleep)
2215 sizeof (hermon_hw_dmpt_t), mpt_indx, sleep);
2239 uint32_t mpt_indx, uint_t sleep)
2244 NULL, 0, mpt_indx, sleep);
2271 uint_t sleep;
2275 * Check the sleep flag. Ensure that it is consistent with the
2277 * context, then we shouldn't be attempting to sleep).
2279 sleep = (bind->bi_flags & IBT_MR_NOSLEEP) ?
2281 if ((sleep == HERMON_SLEEP) &&
2282 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
2298 status = hermon_mr_mem_bind(state, bind, bind_dmahdl, sleep, is_buffer);
2318 status = hermon_rsrc_alloc(state, HERMON_MTT, nummtt, sleep, mtt);
2388 uint_t sleep, dereg_level;
2412 * Check the sleep flag. Ensure that it is consistent with the
2414 * context, then we shouldn't be attempting to sleep).
2416 sleep = (flags & IBT_MR_NOSLEEP) ? HERMON_NOSLEEP: HERMON_SLEEP;
2417 if ((sleep == HERMON_SLEEP) &&
2418 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
2455 HERMON_MR_DEREG_ALL, sleep) != DDI_SUCCESS) {
2479 HERMON_MR_DEREG_NO_HW2SW_MPT, sleep) !=
2516 HERMON_MR_DEREG_NO_HW2SW_MPT, sleep) !=
2562 &mtt_addr_to_use, sleep, &dereg_level);
2570 sleep) != DDI_SUCCESS) {
2648 HERMON_MR_DEREG_NO_HW2SW_MPT, sleep) != DDI_SUCCESS) {
2698 uint_t sleep, uint_t *dereg_level)
2802 status = hermon_mr_mem_bind(state, bind, dmahdl, sleep, 1);
2906 status = hermon_mr_mem_bind(state, bind, dmahdl, sleep, 1);
2934 sleep, &mtt);
2967 sleep, &mtt_refcnt);
3097 ddi_dma_handle_t dmahdl, uint_t sleep, uint_t is_buffer)
3111 callback = (sleep == HERMON_SLEEP) ? DDI_DMA_SLEEP : DDI_DMA_DONTWAIT;