Lines Matching refs:ve
553 stmf_view_op_entry_t *ve; in stmf_ioctl() local
1047 ve = (stmf_view_op_entry_t *)ibuf; in stmf_ioctl()
1053 if (!ve->ve_lu_number_valid) in stmf_ioctl()
1054 ve->ve_lu_nbr[2] = 0xFF; in stmf_ioctl()
1055 if (ve->ve_all_hosts) { in stmf_ioctl()
1056 ve->ve_host_group.name[0] = '*'; in stmf_ioctl()
1057 ve->ve_host_group.name_size = 1; in stmf_ioctl()
1059 if (ve->ve_all_targets) { in stmf_ioctl()
1060 ve->ve_target_group.name[0] = '*'; in stmf_ioctl()
1061 ve->ve_target_group.name_size = 1; in stmf_ioctl()
1063 if (ve->ve_ndx_valid) in stmf_ioctl()
1064 veid = ve->ve_ndx; in stmf_ioctl()
1069 ret = stmf_add_ve(ve->ve_host_group.name, in stmf_ioctl()
1070 ve->ve_host_group.name_size, in stmf_ioctl()
1071 ve->ve_target_group.name, in stmf_ioctl()
1072 ve->ve_target_group.name_size, in stmf_ioctl()
1073 ve->ve_guid, in stmf_ioctl()
1075 ve->ve_lu_nbr, in stmf_ioctl()
1078 ret = stmf_validate_lun_ve(ve->ve_host_group.name, in stmf_ioctl()
1079 ve->ve_host_group.name_size, in stmf_ioctl()
1080 ve->ve_target_group.name, in stmf_ioctl()
1081 ve->ve_target_group.name_size, in stmf_ioctl()
1082 ve->ve_lu_nbr, in stmf_ioctl()
1087 (!ve->ve_ndx_valid || !ve->ve_lu_number_valid) && in stmf_ioctl()
1093 if (!ve->ve_ndx_valid) { in stmf_ioctl()
1097 if (!ve->ve_lu_number_valid) { in stmf_ioctl()
1099 bcopy(ve->ve_lu_nbr, ve_ret->ve_lu_nbr, 8); in stmf_ioctl()
1109 ve = (stmf_view_op_entry_t *)ibuf; in stmf_ioctl()
1115 if (!ve->ve_ndx_valid) { in stmf_ioctl()
1120 ret = stmf_remove_ve_by_id(ve->ve_guid, ve->ve_ndx, in stmf_ioctl()
1194 ve = (stmf_view_op_entry_t *)obuf; in stmf_ioctl()
1203 ve->ve_ndx_valid = 1; in stmf_ioctl()
1204 ve->ve_ndx = view_entry->ve_id; in stmf_ioctl()
1205 ve->ve_lu_number_valid = 1; in stmf_ioctl()
1206 bcopy(view_entry->ve_lun, ve->ve_lu_nbr, 8); in stmf_ioctl()
1207 bcopy(view_entry->ve_luid->id_data, ve->ve_guid, in stmf_ioctl()
1210 ve->ve_all_hosts = 1; in stmf_ioctl()
1213 ve->ve_host_group.name, in stmf_ioctl()
1215 ve->ve_host_group.name_size = in stmf_ioctl()
1220 ve->ve_all_targets = 1; in stmf_ioctl()
1223 ve->ve_target_group.name, in stmf_ioctl()
1225 ve->ve_target_group.name_size = in stmf_ioctl()
1228 ve++; in stmf_ioctl()
1245 ve = (stmf_view_op_entry_t *)obuf; in stmf_ioctl()
1256 ve->ve_ndx_valid = 1; in stmf_ioctl()
1257 ve->ve_ndx = view_entry->ve_id; in stmf_ioctl()
1258 ve->ve_lu_number_valid = 1; in stmf_ioctl()
1259 bcopy(view_entry->ve_lun, ve->ve_lu_nbr, 8); in stmf_ioctl()
1260 bcopy(view_entry->ve_luid->id_data, ve->ve_guid, in stmf_ioctl()
1263 ve->ve_all_hosts = 1; in stmf_ioctl()
1266 ve->ve_host_group.name, in stmf_ioctl()
1268 ve->ve_host_group.name_size = in stmf_ioctl()
1273 ve->ve_all_targets = 1; in stmf_ioctl()
1276 ve->ve_target_group.name, in stmf_ioctl()
1278 ve->ve_target_group.name_size = in stmf_ioctl()
1281 ve++; in stmf_ioctl()