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