Lines Matching defs:wp
253 man_work_t *wp;
270 wp = man_work_alloc(MAN_WORK_DRATTACH, KM_NOSLEEP);
271 if (wp == NULL) {
276 wp->mw_arg.a_man_ppa = 0; /* Domain only has one ppa, 0 */
277 wp->mw_arg.a_pg_id = 0; /* SC is always pathgroup ID 0 */
278 wp->mw_arg.a_sf_dev = mdev;
279 wp->mw_flags = MAN_WFLAGS_NOWAITER;
281 man_work_add(man_iwork_q, wp);
350 man_work_t *wp;
353 wp = man_work_alloc(work_type, KM_NOSLEEP);
354 if (wp == NULL) {
359 wp->mw_arg.a_man_ppa = 0;
360 wp->mw_arg.a_pg_id = 0;
361 wp->mw_arg.a_sf_dev.mdev_major = ddi_driver_major(dip);
362 wp->mw_arg.a_sf_dev.mdev_ppa = ddi_get_instance(dip);
365 wp->mw_flags = MAN_WFLAGS_CVWAITER;
366 man_work_add(man_iwork_q, wp);
372 while (!(wp->mw_flags & MAN_WFLAGS_DONE)) {
373 if (!cv_wait_sig(&wp->mw_cv, &man_lock)) {
374 wp->mw_flags &= ~MAN_WFLAGS_CVWAITER;
393 if (wp->mw_flags & MAN_WFLAGS_DONE) {
394 status = wp->mw_status;
395 man_work_free(wp);