Lines Matching defs:im
346 struct iop_msg *im;
357 im = iop_msg_alloc(iop, 0);
358 im->im_dvcontext = bp;
386 mf->msgtctx = im->im_tctx;
393 rv = iop_msg_map_bio(iop, im, mb, bp->b_data, bp->b_bcount, write);
396 iop_msg_unmap(iop, im);
397 iop_msg_free(iop, im);
406 struct iop_msg *im;
418 im = iop_msg_alloc(iop, IM_POLL);
424 mf->msgtctx = im->im_tctx;
430 if ((rv = iop_msg_map(iop, im, mb, data, bcount, 1, NULL)) != 0) {
431 iop_msg_free(iop, im);
435 rv = iop_msg_post(iop, im, mb, LD_IOP_TIMEOUT * 2);
436 iop_msg_unmap(iop, im);
437 iop_msg_free(iop, im);
444 struct iop_msg *im;
452 im = iop_msg_alloc(iop, poll ? IM_POLL : IM_WAIT);
457 mf.msgtctx = im->im_tctx;
461 rv = iop_msg_post(iop, im, &mf, LD_IOP_TIMEOUT * 2);
462 iop_msg_free(iop, im);
485 ld_iop_intr(device_t dv, struct iop_msg *im, void *reply)
495 bp = im->im_dvcontext;
517 iop_msg_unmap(iop, im);
518 iop_msg_free(iop, im);
523 ld_iop_intr_event(device_t dv, struct iop_msg *im, void *reply)