Lines Matching refs:mpath
1280 struct msu_path *mpath; in oplmsu_dr_attach() local
1287 mpath = (struct msu_path *)kmem_zalloc((size_t)len, KM_SLEEP); in oplmsu_dr_attach()
1288 mpath->num = 1; in oplmsu_dr_attach()
1289 mdev = (struct msu_dev *)(mpath + 1); in oplmsu_dr_attach()
1293 if ((oplmsu_config_del(mpath)) == 0) { in oplmsu_dr_attach()
1298 kmem_free(mpath, (size_t)len); in oplmsu_dr_attach()
1312 struct msu_path *mpath; in oplmsu_dr_detach() local
1419 mpath = (struct msu_path *)kmem_zalloc((size_t)len, KM_SLEEP); in oplmsu_dr_detach()
1420 mpath->num = 1; in oplmsu_dr_detach()
1421 mdev = (struct msu_dev *)(mpath + 1); in oplmsu_dr_detach()
1425 rval = oplmsu_config_del(mpath); in oplmsu_dr_detach()
1431 kmem_free(mpath, (size_t)len); in oplmsu_dr_detach()
1553 struct msu_path *mpath; in oplmsu_conf_stream() local
1584 mpath = (struct msu_path *)kmem_zalloc((size_t)size, KM_SLEEP); in oplmsu_conf_stream()
1587 mdev = (struct msu_dev *)(mpath + 1); in oplmsu_conf_stream()
1629 kmem_free(mpath, size); in oplmsu_conf_stream()
1634 mpath->num = connected; in oplmsu_conf_stream()
1635 rval = oplmsu_config_new(mpath); in oplmsu_conf_stream()
1643 kmem_free(mpath, size); in oplmsu_conf_stream()
1654 rval = oplmsu_config_del(mpath); in oplmsu_conf_stream()
1663 kmem_free(mpath, size); in oplmsu_conf_stream()
1765 oplmsu_config_new(struct msu_path *mpath) in oplmsu_config_new() argument
1772 ASSERT(mpath); in oplmsu_config_new()
1774 if (mpath->num == 0) { in oplmsu_config_new()
1776 "Number of paths = %d", mpath->num); in oplmsu_config_new()
1827 mdev = (struct msu_dev *)(mpath + 1); in oplmsu_config_new()
1828 for (i = 0; i < mpath->num; i++) { in oplmsu_config_new()
1855 oplmsu_uinst->path_num = mpath->num; in oplmsu_config_new()
1911 oplmsu_config_del(struct msu_path *mpath) in oplmsu_config_del() argument
1921 ASSERT(mpath); in oplmsu_config_del()
1923 mdev = (struct msu_dev *)(mpath + 1); in oplmsu_config_del()
1927 for (i = 0; i < mpath->num; i++) { in oplmsu_config_del()