Lines Matching defs:hiop

137 	vsw_hio_t	*hiop = &vswp->vhio;
154 hiop->vh_num_shares = num_shares;
155 hiop->vh_shares = kmem_zalloc((sizeof (vsw_share_t) *
156 hiop->vh_num_shares), KM_SLEEP);
157 for (i = 0; i < hiop->vh_num_shares; i++) {
158 hiop->vh_shares[i].vs_state = VSW_SHARE_FREE;
159 hiop->vh_shares[i].vs_index = i;
160 hiop->vh_shares[i].vs_vswp = vswp;
175 hiop->vh_ksp = vsw_hio_setup_kstats(DRV_NAME, "hio", vswp);
176 if (hiop->vh_ksp == NULL) {
181 vswp->physname, hiop->vh_num_shares);
229 vsw_hio_t *hiop = &vswp->vhio;
234 for (i = 0; i < hiop->vh_num_shares; i++) {
235 vsharep = &hiop->vh_shares[i];
253 vsw_hio_t *hiop = &vswp->vhio;
258 for (i = 0; i < hiop->vh_num_shares; i++) {
259 vsharep = &hiop->vh_shares[i];
280 vsw_hio_t *hiop = &vswp->vhio;
285 for (i = 0; i < hiop->vh_num_shares; i++) {
286 vsharep = &hiop->vh_shares[i];
365 vsw_hio_t *hiop = &vswp->vhio;
389 for (i = 0; i < hiop->vh_num_shares; i++) {
390 vsharep = &hiop->vh_shares[i];
429 if (free_shares == hiop->vh_num_shares) {
444 } while ((free_shares < hiop->vh_num_shares) && (max_retries > 0));
447 if (free_shares != hiop->vh_num_shares) {
454 kmem_free(hiop->vh_shares, sizeof (vsw_share_t) * hiop->vh_num_shares);
455 hiop->vh_shares = NULL;
456 hiop->vh_num_shares = 0;
873 vsw_hio_t *hiop = &vswp->vhio;
882 for (i = 0; i < hiop->vh_num_shares; i++) {
883 vsharep = &hiop->vh_shares[i];
937 vsw_hio_t *hiop;
942 hiop = &vswp->vhio;
949 ASSERT(hiop->vh_num_shares >= 1);
950 size += ((hiop->vh_num_shares - 1) * 2);
962 hiop->vh_ksp = ksp;
963 hiop->vh_kstatsp = hiokp;
964 hiop->vh_kstat_size = size;
970 for (i = 0; i < hiop->vh_num_shares; i++) {
994 vsw_hio_t *hiop;
999 hiop = &vswp->vhio;
1001 kmem_free(hiop->vh_kstatsp, sizeof (kstat_named_t) *
1002 hiop->vh_kstat_size);
1004 hiop->vh_kstatsp = NULL;
1005 hiop->vh_ksp = NULL;
1016 vsw_hio_t *hiop;
1023 hiop = &vswp->vhio;
1024 hiokp = hiop->vh_kstatsp;
1036 hiokp->hio_num_shares.value.ul = (uint32_t)hiop->vh_num_shares;
1037 for (i = 0; i < hiop->vh_num_shares; i++) {
1039 hiop->vh_shares[i].vs_macaddr;
1041 hiop->vh_shares[i].vs_state;