Lines Matching refs:stmfIoctl

299 	stmf_iocdata_t stmfIoctl;
308 bzero(&stmfIoctl, sizeof (stmfIoctl));
312 stmfIoctl.stmf_version = STMF_VERSION_1;
313 stmfIoctl.stmf_ibuf_size = sizeof (iGroupName);
314 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&iGroupName;
315 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
323 switch (stmfIoctl.stmf_error) {
339 stmfIoctl.stmf_error);
364 stmf_iocdata_t stmfIoctl;
376 bzero(&stmfIoctl, sizeof (stmfIoctl));
380 stmfIoctl.stmf_version = STMF_VERSION_1;
381 stmfIoctl.stmf_ibuf_size = sizeof (stmfGroupData);
382 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&stmfGroupData;
383 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
387 switch (stmfIoctl.stmf_error) {
401 switch (stmfIoctl.stmf_error) {
420 stmfIoctl.stmf_error);
634 stmf_iocdata_t stmfIoctl;
665 bzero(&stmfIoctl, sizeof (stmfIoctl));
669 stmfIoctl.stmf_version = STMF_VERSION_1;
670 stmfIoctl.stmf_ibuf_size = sizeof (ioctlViewEntry);
671 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&ioctlViewEntry;
672 stmfIoctl.stmf_obuf_size = sizeof (ioctlViewEntry);
673 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)&ioctlViewEntry;
674 ioctlRet = ioctl(fd, STMF_IOCTL_ADD_VIEW_ENTRY, &stmfIoctl);
684 switch (stmfIoctl.stmf_error) {
694 switch (stmfIoctl.stmf_error) {
714 stmfIoctl.stmf_error);
868 stmf_iocdata_t stmfIoctl;
908 bzero(&stmfIoctl, sizeof (stmfIoctl));
910 stmfIoctl.stmf_version = STMF_VERSION_1;
911 stmfIoctl.stmf_ibuf_size = sizeof (stmf_ppioctl_data_t);
912 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&ppi;
914 ioctlRet = ioctl(fd, STMF_IOCTL_CLEAR_PP_DATA, &stmfIoctl);
3494 stmf_iocdata_t stmfIoctl;
3534 bzero(&stmfIoctl, sizeof (stmfIoctl));
3538 stmfIoctl.stmf_version = STMF_VERSION_1;
3539 stmfIoctl.stmf_obuf_size = groupListSize;
3540 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)iGroupList;
3541 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
3563 if (stmfIoctl.stmf_obuf_max_nentries > ALLOC_GROUP) {
3564 groupListSize = stmfIoctl.stmf_obuf_max_nentries *
3571 stmfIoctl.stmf_obuf_size = groupListSize;
3572 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)iGroupList;
3573 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
3596 sizeof (stmfGroupName) * stmfIoctl.stmf_obuf_nentries);
3601 (*groupList)->cnt = stmfIoctl.stmf_obuf_nentries;
3602 for (i = 0; i < stmfIoctl.stmf_obuf_nentries; i++) {
3629 stmf_iocdata_t stmfIoctl;
3676 bzero(&stmfIoctl, sizeof (stmfIoctl));
3680 stmfIoctl.stmf_version = STMF_VERSION_1;
3681 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&iGroupName;
3682 stmfIoctl.stmf_ibuf_size = sizeof (stmf_group_name_t);
3683 stmfIoctl.stmf_obuf_size = groupListSize;
3684 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)iGroupMembers;
3685 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
3707 if (stmfIoctl.stmf_obuf_max_nentries > ALLOC_GRP_MEMBER) {
3708 groupListSize = stmfIoctl.stmf_obuf_max_nentries *
3715 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&iGroupName;
3716 stmfIoctl.stmf_ibuf_size = sizeof (stmf_group_name_t);
3717 stmfIoctl.stmf_obuf_size = groupListSize;
3718 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)iGroupMembers;
3719 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
3743 sizeof (stmfDevid) * stmfIoctl.stmf_obuf_nentries);
3748 (*groupProps)->cnt = stmfIoctl.stmf_obuf_nentries;
3749 for (i = 0; i < stmfIoctl.stmf_obuf_nentries; i++) {
4010 stmf_iocdata_t stmfIoctl;
4047 bzero(&stmfIoctl, sizeof (stmfIoctl));
4051 stmfIoctl.stmf_version = STMF_VERSION_1;
4052 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&ident;
4053 stmfIoctl.stmf_ibuf_size = sizeof (ident);
4054 stmfIoctl.stmf_obuf_size = fSessionListSize;
4055 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fSessionList;
4056 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4078 if (stmfIoctl.stmf_obuf_max_nentries > ALLOC_SESSION) {
4079 fSessionListSize = stmfIoctl.stmf_obuf_max_nentries *
4087 stmfIoctl.stmf_obuf_size = fSessionListSize;
4088 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fSessionList;
4089 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4114 stmfIoctl.stmf_obuf_max_nentries * sizeof (stmfSession));
4121 (*sessionList)->cnt = stmfIoctl.stmf_obuf_max_nentries;
4205 stmf_iocdata_t stmfIoctl;
4237 bzero(&stmfIoctl, sizeof (stmfIoctl));
4241 stmfIoctl.stmf_version = STMF_VERSION_1;
4242 stmfIoctl.stmf_obuf_size = fTargetListSize;
4243 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fTargetList;
4244 ioctlRet = ioctl(fd, STMF_IOCTL_TARGET_PORT_LIST, &stmfIoctl);
4265 if (stmfIoctl.stmf_obuf_max_nentries > ALLOC_TARGET_PORT) {
4266 fTargetListSize = stmfIoctl.stmf_obuf_max_nentries *
4274 stmfIoctl.stmf_obuf_size = fTargetListSize;
4275 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fTargetList;
4277 &stmfIoctl);
4299 stmfIoctl.stmf_obuf_max_nentries * sizeof (stmfDevid) +
4306 (*targetList)->cnt = stmfIoctl.stmf_obuf_max_nentries;
4307 for (i = 0; i < stmfIoctl.stmf_obuf_max_nentries; i++, fTargetList++) {
4337 stmf_iocdata_t stmfIoctl;
4361 bzero(&stmfIoctl, sizeof (stmfIoctl));
4365 stmfIoctl.stmf_version = STMF_VERSION_1;
4366 stmfIoctl.stmf_ibuf_size = sizeof (targetProperties.tgt_id);
4367 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&targetProperties.tgt_id;
4368 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)&targetProperties;
4369 stmfIoctl.stmf_obuf_size = sizeof (targetProperties);
4371 &stmfIoctl);
4433 stmf_iocdata_t stmfIoctl;
4465 bzero(&stmfIoctl, sizeof (stmfIoctl));
4469 stmfIoctl.stmf_version = STMF_VERSION_1;
4470 stmfIoctl.stmf_obuf_size = fLuListSize;
4471 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fLuList;
4472 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4494 if (stmfIoctl.stmf_obuf_max_nentries > ALLOC_LU) {
4495 fLuListSize = stmfIoctl.stmf_obuf_max_nentries *
4503 stmfIoctl.stmf_obuf_size = fLuListSize;
4504 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fLuList;
4505 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4530 listCnt = stmfIoctl.stmf_obuf_nentries;
4583 stmf_iocdata_t stmfIoctl;
4604 bzero(&stmfIoctl, sizeof (stmfIoctl));
4608 stmfIoctl.stmf_version = STMF_VERSION_1;
4609 stmfIoctl.stmf_ibuf_size = sizeof (stmfGuid);
4610 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)lu;
4611 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)&fLuProps;
4612 stmfIoctl.stmf_obuf_size = sizeof (fLuProps);
4613 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4747 stmf_iocdata_t stmfIoctl;
4779 bzero(&stmfIoctl, sizeof (stmfIoctl));
4783 stmfIoctl.stmf_version = STMF_VERSION_1;
4784 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)lu;
4785 stmfIoctl.stmf_ibuf_size = sizeof (stmfGuid);
4786 stmfIoctl.stmf_obuf_size = fVeListSize;
4787 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fVeList;
4788 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4810 if (stmfIoctl.stmf_obuf_max_nentries > ALLOC_VE) {
4811 bzero(&stmfIoctl, sizeof (stmfIoctl));
4812 fVeListSize = stmfIoctl.stmf_obuf_max_nentries *
4819 stmfIoctl.stmf_obuf_size = fVeListSize;
4820 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)fVeList;
4821 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
4846 listCnt = stmfIoctl.stmf_obuf_nentries;
5200 stmf_iocdata_t stmfIoctl = {0};
5217 stmfIoctl.stmf_version = STMF_VERSION_1;
5218 stmfIoctl.stmf_obuf_size = sizeof (alua_state);
5219 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)&alua_state;
5220 ioctlRet = ioctl(fd, STMF_IOCTL_GET_ALUA_STATE, &stmfIoctl);
5262 stmf_iocdata_t stmfIoctl = {0};
5285 stmfIoctl.stmf_version = STMF_VERSION_1;
5286 stmfIoctl.stmf_ibuf_size = sizeof (alua_state);
5287 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&alua_state;
5288 ioctlRet = ioctl(fd, STMF_IOCTL_SET_ALUA_STATE, &stmfIoctl);
5443 stmf_iocdata_t stmfIoctl;
5451 bzero(&stmfIoctl, sizeof (stmfIoctl));
5455 stmfIoctl.stmf_version = STMF_VERSION_1;
5456 stmfIoctl.stmf_ibuf_size = sizeof (stmf_state_desc_t);
5457 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)stmfState;
5458 stmfIoctl.stmf_obuf_size = sizeof (stmf_state_desc_t);
5459 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)stmfState;
5460 ioctlRet = ioctl(fd, STMF_IOCTL_GET_STMF_STATE, &stmfIoctl);
5499 stmf_iocdata_t stmfIoctl;
5516 bzero(&stmfIoctl, sizeof (stmfIoctl));
5520 stmfIoctl.stmf_version = STMF_VERSION_1;
5521 stmfIoctl.stmf_ibuf_size = sizeof (stmf_state_desc_t);
5522 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)stmfState;
5523 ioctlRet = ioctl(fd, cmd, &stmfIoctl);
5678 stmf_iocdata_t stmfIoctl = {0};
5693 stmfIoctl.stmf_version = STMF_VERSION_1;
5694 stmfIoctl.stmf_ibuf_size = sizeof (stmf_set_props_t);
5695 stmfIoctl.stmf_ibuf =
5699 &stmfIoctl);
6120 stmf_iocdata_t stmfIoctl;
6144 bzero(&stmfIoctl, sizeof (stmfIoctl));
6148 stmfIoctl.stmf_version = STMF_VERSION_1;
6149 stmfIoctl.stmf_ibuf_size = sizeof (ioctlViewEntry);
6150 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&ioctlViewEntry;
6151 ioctlRet = ioctl(fd, STMF_IOCTL_REMOVE_VIEW_ENTRY, &stmfIoctl);
6161 switch (stmfIoctl.stmf_error) {
6344 stmf_iocdata_t stmfIoctl;
6388 bzero(&stmfIoctl, sizeof (stmfIoctl));
6390 stmfIoctl.stmf_version = STMF_VERSION_1;
6391 stmfIoctl.stmf_ibuf_size = sizeof (stmf_ppioctl_data_t);
6392 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&ppi;
6393 stmfIoctl.stmf_obuf_size = sizeof (stmf_ppioctl_data_t) +
6395 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)ppi_out;
6396 ioctlRet = ioctl(fd, STMF_IOCTL_GET_PP_DATA, &stmfIoctl);
6407 if (stmfIoctl.stmf_error ==
6441 } while (retry && stmfIoctl.stmf_error == STMF_IOCERR_INSUFFICIENT_BUF);
6479 stmf_iocdata_t stmfIoctl;
6524 bzero(&stmfIoctl, sizeof (stmfIoctl));
6526 stmfIoctl.stmf_version = STMF_VERSION_1;
6531 stmfIoctl.stmf_ibuf_size = nvlistEncodedSize +
6533 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)ppi;
6534 stmfIoctl.stmf_obuf_size = sizeof (uint64_t);
6535 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)&outToken;
6536 ioctlRet = ioctl(fd, STMF_IOCTL_LOAD_PP_DATA, &stmfIoctl);
6547 if (stmfIoctl.stmf_error ==
6776 stmf_iocdata_t stmfIoctl;
6807 bzero(&stmfIoctl, sizeof (stmfIoctl));
6811 stmfIoctl.stmf_version = STMF_VERSION_1;
6812 stmfIoctl.stmf_ibuf_size = sizeof (ioctlViewEntry);
6813 stmfIoctl.stmf_ibuf = (uint64_t)(unsigned long)&ioctlViewEntry;
6814 stmfIoctl.stmf_obuf_size = sizeof (ioctlViewEntry);
6815 stmfIoctl.stmf_obuf = (uint64_t)(unsigned long)&ioctlViewEntry;
6816 ioctlRet = ioctl(fd, STMF_IOCTL_VALIDATE_VIEW, &stmfIoctl);
6832 switch (stmfIoctl.stmf_error) {
6842 switch (stmfIoctl.stmf_error) {
6862 stmfIoctl.stmf_error);