Lines Matching refs:lpath
399 lpath_t *lpath, *next_lpath; in oplmsu_detach() local
416 lpath = oplmsu_uinst->first_lpath; in oplmsu_detach()
438 while (lpath) { in oplmsu_detach()
439 if (lpath->rbuf_id) { in oplmsu_detach()
440 unbufcall(lpath->rbuf_id); in oplmsu_detach()
443 if (lpath->rtout_id) { in oplmsu_detach()
444 (void) untimeout(lpath->rtout_id); in oplmsu_detach()
447 if (lpath->rbuftbl) { in oplmsu_detach()
448 kmem_free(lpath->rbuftbl, sizeof (struct buf_tbl)); in oplmsu_detach()
451 cv_destroy(&lpath->sw_cv); in oplmsu_detach()
452 next_lpath = lpath->l_next; in oplmsu_detach()
453 kmem_free(lpath, sizeof (lpath_t)); in oplmsu_detach()
454 lpath = next_lpath; in oplmsu_detach()
592 lpath_t *lpath; in oplmsu_close() local
626 for (lpath = oplmsu_uinst->first_lpath; lpath; ) { in oplmsu_close()
627 if (((RD(urq) == lpath->hndl_uqueue) || in oplmsu_close()
628 (WR(urq) == lpath->hndl_uqueue)) && in oplmsu_close()
629 (lpath->hndl_mp != NULL)) { in oplmsu_close()
634 lpath = lpath->l_next; in oplmsu_close()
640 if (lpath) { in oplmsu_close()
828 lpath_t *lpath; in oplmsu_lwsrv() local
853 lpath = (lpath_t *)lwq->q_ptr; in oplmsu_lwsrv()
854 if (lpath->uwq_flag != 0) { in oplmsu_lwsrv()
855 qenable(WR(lpath->uwq_queue)); in oplmsu_lwsrv()
856 lpath->uwq_flag = 0; in oplmsu_lwsrv()
857 lpath->uwq_queue = NULL; in oplmsu_lwsrv()
887 lpath_t *lpath; in oplmsu_lrput() local
891 lpath = lrq->q_ptr; in oplmsu_lrput()
894 oplmsu_link_high_primsg(&lpath->first_lpri_hi, in oplmsu_lrput()
895 &lpath->last_lpri_hi, mp); in oplmsu_lrput()
934 lpath_t *lpath; in oplmsu_lrsrv() local
937 lpath = lrq->q_ptr; in oplmsu_lrsrv()
939 if (*rx_char == *lpath->abt_char) { in oplmsu_lrsrv()
940 lpath->abt_char++; in oplmsu_lrsrv()
941 if (*lpath->abt_char == '\0') { in oplmsu_lrsrv()
944 lpath->abt_char in oplmsu_lrsrv()
950 lpath->abt_char = (*rx_char == in oplmsu_lrsrv()
1023 lpath_t *lpath; in oplmsu_ursrv() local
1040 lpath = oplmsu_uinst->first_lpath; in oplmsu_ursrv()
1041 while (lpath) { in oplmsu_ursrv()
1042 qenable(RD(lpath->lower_queue)); in oplmsu_ursrv()
1043 lpath = lpath->l_next; in oplmsu_ursrv()
1170 lpath_t *lpath; in oplmsu_set_lpathnum() local
1175 lpath = oplmsu_uinst->first_lpath; in oplmsu_set_lpathnum()
1176 while (lpath) { in oplmsu_set_lpathnum()
1177 if ((lpath->path_no == UNDEFINED) && in oplmsu_set_lpathnum()
1178 (lpath->link_id == lnk_id)) { in oplmsu_set_lpathnum()
1179 lpath->path_no = instance; /* Set instance number */ in oplmsu_set_lpathnum()
1180 lpath->src_upath = NULL; in oplmsu_set_lpathnum()
1181 lpath->status = MSU_SETID_NU; in oplmsu_set_lpathnum()
1184 lpath = lpath->l_next; in oplmsu_set_lpathnum()
1189 if (lpath == NULL) { in oplmsu_set_lpathnum()
1315 lpath_t *lpath; in oplmsu_dr_detach() local
1380 lpath = oplmsu_uinst->first_lpath; in oplmsu_dr_detach()
1381 while (lpath) { in oplmsu_dr_detach()
1382 if (lpath->path_no == instance) { /* Get link ID */ in oplmsu_dr_detach()
1385 lpath = lpath->l_next; in oplmsu_dr_detach()
1390 if (lpath == NULL) { in oplmsu_dr_detach()
1404 rval = ldi_ioctl(msu_lh, I_PUNLINK, (intptr_t)lpath->link_id, FKIOCTL, in oplmsu_dr_detach()
1714 lpath_t *lpath; in oplmsu_create_upath() local
1729 lpath = oplmsu_uinst->first_lpath; in oplmsu_create_upath()
1730 while (lpath) { in oplmsu_create_upath()
1731 if (lpath->path_no == instance) { in oplmsu_create_upath()
1734 lpath = lpath->l_next; in oplmsu_create_upath()
1737 if (lpath == NULL) { in oplmsu_create_upath()
1749 upath->lpath = lpath; in oplmsu_create_upath()
1755 lpath->src_upath = NULL; in oplmsu_create_upath()
1756 lpath->status = MSU_EXT_NOTUSED; in oplmsu_create_upath()
1915 lpath_t *lpath; in oplmsu_config_del() local
1937 lpath = upath->lpath; in oplmsu_config_del()
1938 if (lpath == NULL) { in oplmsu_config_del()
1964 use_flag = oplmsu_set_ioctl_path(lpath, NULL, NULL); in oplmsu_config_del()
1978 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_del()
1986 lpath->src_upath = NULL; in oplmsu_config_del()
1987 lpath->status = MSU_SETID_NU; in oplmsu_config_del()
1988 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_del()
2008 lpath_t *lpath, *altn_lpath; in oplmsu_config_stop() local
2038 lpath = upath->lpath; in oplmsu_config_stop()
2039 if (lpath == NULL) { in oplmsu_config_stop()
2050 use_flag = oplmsu_set_ioctl_path(lpath, NULL, NULL); in oplmsu_config_stop()
2061 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2068 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2077 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2078 lpath->src_upath = NULL; in oplmsu_config_stop()
2079 lpath->status = MSU_EXT_NOTUSED; in oplmsu_config_stop()
2092 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2100 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2109 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2117 altn_lpath = altn_upath->lpath; in oplmsu_config_stop()
2120 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2200 lpath->uinst = NULL; in oplmsu_config_stop()
2201 lpath->src_upath = NULL; in oplmsu_config_stop()
2202 lpath->status = MSU_EXT_NOTUSED; in oplmsu_config_stop()
2203 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2219 lpath->uinst = NULL; in oplmsu_config_stop()
2240 lpath->sw_flag = 1; in oplmsu_config_stop()
2241 while (lpath->sw_flag != 0) { in oplmsu_config_stop()
2243 cv_wait(&lpath->sw_cv, &oplmsu_uinst->l_lock); in oplmsu_config_stop()
2249 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2259 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_stop()
2276 lpath_t *lpath = NULL; in oplmsu_config_start() local
2303 lpath = upath->lpath; in oplmsu_config_start()
2304 if (lpath == NULL) { in oplmsu_config_start()
2316 lpath->src_upath = NULL; in oplmsu_config_start()
2317 lpath->status = MSU_EXT_NOTUSED; in oplmsu_config_start()
2327 lpath = upath->lpath; in oplmsu_config_start()
2328 if (lpath == NULL) { in oplmsu_config_start()
2347 main_rq = RD(lpath->lower_queue); in oplmsu_config_start()
2348 dst_queue = WR(lpath->lower_queue); in oplmsu_config_start()
2349 lpath->src_upath = NULL; in oplmsu_config_start()
2350 lpath->status = MSU_EXT_NOTUSED; in oplmsu_config_start()
2351 lpath->uinst = oplmsu_uinst; in oplmsu_config_start()
2361 lpath->src_upath = NULL; in oplmsu_config_start()
2362 lpath->status = MSU_EXT_NOTUSED; in oplmsu_config_start()
2381 altn_lpath = altn_upath->lpath; in oplmsu_config_start()
2423 lpath_t *lpath; in oplmsu_config_disc() local
2457 lpath = upath->lpath; in oplmsu_config_disc()
2458 if (lpath == NULL) { in oplmsu_config_disc()
2469 use_flag = oplmsu_set_ioctl_path(lpath, NULL, NULL); in oplmsu_config_disc()
2482 oplmsu_clear_ioctl_path(lpath); in oplmsu_config_disc()