Lines Matching defs:sleep

61     uint_t sleep, uint_t *dereg_level);
65 ddi_dma_handle_t dmahdl, uint_t sleep);
191 uint_t sleep, mr_is_umem;
198 * Check the sleep flag. Ensure that it is consistent with the
200 * context, then we shouldn't be attempting to sleep).
202 sleep = (mr_attr->mr_flags & IBT_MR_NOSLEEP) ? TAVOR_NOSLEEP :
204 if ((sleep == TAVOR_SLEEP) &&
205 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
222 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
235 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
402 sizeof (tavor_hw_mpt_t), mpt->tr_indx, sleep);
477 uint_t sleep)
491 * Check the sleep flag. Ensure that it is consistent with the
493 * context, then we shouldn't be attempting to sleep).
495 if ((sleep == TAVOR_SLEEP) &&
496 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
498 TAVOR_TNF_FAIL(IBT_INVALID_PARAM, "invalid sleep flags");
551 NULL, 0, mpt->tr_indx, sleep);
911 uint_t sleep;
918 * Check the sleep flag. Ensure that it is consistent with the
920 * context, then we shouldn't be attempting to sleep).
922 sleep = (flags & IBT_MW_NOSLEEP) ? TAVOR_NOSLEEP : TAVOR_SLEEP;
923 if ((sleep == TAVOR_SLEEP) &&
924 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
942 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
957 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
993 sizeof (tavor_hw_mpt_t), mpt->tr_indx, sleep);
1037 tavor_mw_free(tavor_state_t *state, tavor_mwhdl_t *mwhdl, uint_t sleep)
1048 * Check the sleep flag. Ensure that it is consistent with the
1050 * context, then we shouldn't be attempting to sleep).
1052 if ((sleep == TAVOR_SLEEP) &&
1053 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
1055 TAVOR_TNF_FAIL(IBT_INVALID_PARAM, "invalid sleep flags");
1080 0, mpt->tr_indx, sleep);
1156 uint_t sleep, mtt_pgsize_bits, bind_type, mr_is_umem;
1196 * Check the sleep flag. Ensure that it is consistent with the
1198 * context, then we shouldn't be attempting to sleep).
1200 sleep = (flags & IBT_MR_NOSLEEP) ? TAVOR_NOSLEEP: TAVOR_SLEEP;
1201 if ((sleep == TAVOR_SLEEP) &&
1202 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
1225 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
1238 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
1358 status = tavor_rsrc_alloc(state, TAVOR_REFCNT, 1, sleep,
1407 sizeof (tavor_hw_mpt_t), mpt->tr_indx, sleep);
1497 uint_t sleep;
1504 * Check the sleep flag. Ensure that it is consistent with the
1506 * context, then we shouldn't be attempting to sleep).
1508 sleep = (flags & IBT_MR_NOSLEEP) ? TAVOR_NOSLEEP: TAVOR_SLEEP;
1509 if ((sleep == TAVOR_SLEEP) &&
1510 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
1525 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
1537 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep, &rsrc);
1621 sizeof (tavor_hw_mpt_t), mpt->tr_indx, sleep);
1670 uint_t sleep;
1677 * Check the sleep flag. Ensure that it is consistent with the
1679 * context, then we shouldn't be attempting to sleep).
1681 sleep = (bind->bi_flags & IBT_MR_NOSLEEP) ? TAVOR_NOSLEEP: TAVOR_SLEEP;
1682 if ((sleep == TAVOR_SLEEP) &&
1683 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
1700 status = tavor_mr_mem_bind(state, bind, bind_dmahdl, sleep);
1725 TAVOR_NUMMTT_TO_MTTSEG(nummtt), sleep, mtt);
1799 uint_t sleep, dereg_level;
1827 * Check the sleep flag. Ensure that it is consistent with the
1829 * context, then we shouldn't be attempting to sleep).
1831 sleep = (flags & IBT_MR_NOSLEEP) ? TAVOR_NOSLEEP: TAVOR_SLEEP;
1832 if ((sleep == TAVOR_SLEEP) &&
1833 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
1869 TAVOR_MR_DEREG_ALL, sleep) != DDI_SUCCESS) {
1896 TAVOR_MR_DEREG_NO_HW2SW_MPT, sleep) !=
1934 TAVOR_MR_DEREG_NO_HW2SW_MPT, sleep) !=
1982 &mtt_addr_to_use, sleep, &dereg_level);
1990 sleep) != DDI_SUCCESS) {
2059 TAVOR_MR_DEREG_NO_HW2SW_MPT, sleep) != DDI_SUCCESS) {
2113 uint_t sleep, uint_t *dereg_level)
2223 status = tavor_mr_mem_bind(state, bind, dmahdl, sleep);
2324 status = tavor_mr_mem_bind(state, bind, dmahdl, sleep);
2353 TAVOR_NUMMTT_TO_MTTSEG(nummtt_needed), sleep, &mtt);
2387 sleep, &mtt_refcnt);
2526 ddi_dma_handle_t dmahdl, uint_t sleep)
2543 callback = (sleep == TAVOR_SLEEP) ? DDI_DMA_SLEEP : DDI_DMA_DONTWAIT;