Lines Matching refs:map
410 fetch_mappings(HBA_HANDLE handle, HBA_WWN pwwn, HBA_FCPTARGETMAPPINGV2 **map) { in fetch_mappings() argument
414 *map = (HBA_FCPTARGETMAPPINGV2 *) calloc(1, in fetch_mappings()
422 status = HBA_GetFcpTargetMappingV2(handle, pwwn, *map); in fetch_mappings()
426 count = (*map)->NumberOfEntries; in fetch_mappings()
427 free(*map); in fetch_mappings()
428 *map = (HBA_FCPTARGETMAPPINGV2 *) calloc(1, in fetch_mappings()
431 (*map)->NumberOfEntries = count; in fetch_mappings()
452 match_mappings(char *compare, HBA_FCPTARGETMAPPINGV2 *map) { in match_mappings() argument
459 if (map == NULL || compare == NULL) { in match_mappings()
472 for (mapIndex = 0; mapIndex < map->NumberOfEntries; mapIndex ++) { in match_mappings()
475 map->entry[mapIndex].FcpId.NodeWWN.wwn) || in match_mappings()
477 map->entry[mapIndex].FcpId.PortWWN.wwn)) { in match_mappings()
483 map->entry[mapIndex].ScsiId.OSDeviceName, in match_mappings()
520 HBA_FCPTARGETMAPPINGV2 *map; in fchba_non_encl_probe() local
568 if (fetch_mappings(handle, portAttrs.PortWWN, &map)) { in fchba_non_encl_probe()
573 for (mapIndex = 0; mapIndex < map->NumberOfEntries; in fchba_non_encl_probe()
582 map->entry[mapIndex].ScsiId.OSDeviceName, in fchba_non_encl_probe()
583 sizeof (map->entry[mapIndex].ScsiId.OSDeviceName)); in fchba_non_encl_probe()
585 map->entry[mapIndex].FcpId.NodeWWN.wwn, in fchba_non_encl_probe()
589 map->entry[mapIndex].ScsiId.OSDeviceName)) { in fchba_non_encl_probe()
599 map->entry[mapIndex].ScsiId.OSDeviceName, in fchba_non_encl_probe()
600 sizeof (map->entry[mapIndex].ScsiId.OSDeviceName)); in fchba_non_encl_probe()
602 map->entry[mapIndex].FcpId.NodeWWN.wwn, in fchba_non_encl_probe()
609 lun = map->entry[mapIndex].FcpId.FcpLun; in fchba_non_encl_probe()
614 map->entry[mapIndex].FcpId.PortWWN, in fchba_non_encl_probe()
682 HBA_FCPTARGETMAPPINGV2 *map; in fchba_inquiry() local
761 if (fetch_mappings(handle, portAttrs.PortWWN, &map)) { in fchba_inquiry()
765 for (mapIndex = 0; mapIndex < map->NumberOfEntries; in fchba_inquiry()
770 map->entry[mapIndex].FcpId.NodeWWN.wwn) || in fchba_inquiry()
772 map->entry[mapIndex].FcpId.PortWWN.wwn)) { in fchba_inquiry()
773 lun = map->entry[mapIndex].FcpId.FcpLun; in fchba_inquiry()
778 map->entry[mapIndex].ScsiId.OSDeviceName, in fchba_inquiry()
782 lun = map->entry[mapIndex].FcpId.FcpLun; in fchba_inquiry()
793 map->entry[mapIndex].FcpId.PortWWN, in fchba_inquiry()
807 map->entry[mapIndex].FcpId.PortWWN, in fchba_inquiry()
811 map->entry[mapIndex].FcpId.PortWWN, in fchba_inquiry()
838 map->entry[mapIndex].ScsiId.OSDeviceName, in fchba_inquiry()
848 map->entry[mapIndex].ScsiId.OSDeviceName); in fchba_inquiry()
889 HBA_FCPTARGETMAPPINGV2 *map; in fchba_dump_map() local
997 if (!fetch_mappings(handle, portAttrs.PortWWN, &map)) { in fchba_dump_map()
998 mapIndex = match_mappings(argv[path_index], map); in fchba_dump_map()
1065 map->entry[mapIndex].FcpId.PortWWN.wwn, in fchba_dump_map()
1099 HBA_FCPTARGETMAPPINGV2 *map; in fchba_display_link_status() local
1198 if (fetch_mappings(handle, portAttrs.PortWWN, &map)) { in fchba_display_link_status()
1203 if (matched || match_mappings(argv[path_index], map) >= 0) { in fchba_display_link_status()
1318 HBA_FCPSCSIENTRYV2 map; member
1335 HBA_FCPSCSIENTRYV2 entry = lun->map; in scsi_vhci_details()
1451 add_lun_path(struct lun_tracking *head, HBA_FCPSCSIENTRYV2 *map, in add_lun_path() argument
1457 if (memcmp(&tmp->map.LUID, &map->LUID, in add_lun_path()
1463 if (memcmp(&cmp->map, map, sizeof (cmp->map)) == 0) { in add_lun_path()
1467 if (memcmp(&cmp->map, map, sizeof (cmp->map)) == 0) { in add_lun_path()
1475 (void) memcpy(&cmp->map, map, in add_lun_path()
1476 sizeof (cmp->map)); in add_lun_path()
1490 (void) memcpy(&tmp->map, map, in add_lun_path()
1491 sizeof (tmp->map)); in add_lun_path()
1509 HBA_FCPTARGETMAPPINGV2 *map; in fchba_display_config() local
1606 if (fetch_mappings(handle, portAttrs.PortWWN, &map)) { in fchba_display_config()
1612 for (mapIndex = 0; mapIndex < map->NumberOfEntries; in fchba_display_config()
1617 map->entry[mapIndex].FcpId.NodeWWN.wwn) || in fchba_display_config()
1619 map->entry[mapIndex].FcpId.PortWWN.wwn)) { in fchba_display_config()
1624 map->entry[mapIndex].ScsiId.OSDeviceName, in fchba_display_config()
1636 (void) memcpy(&head->map, &map->entry[mapIndex], in fchba_display_config()
1637 sizeof (head->map)); in fchba_display_config()
1645 add_lun_path(head, &map->entry[mapIndex], in fchba_display_config()
1689 if (fetch_mappings(handle, portAttrs.PortWWN, &map)) { in fchba_display_config()
1694 for (mapIndex = 0; mapIndex < map->NumberOfEntries; in fchba_display_config()
1703 if (memcmp(&inner->map.LUID, in fchba_display_config()
1704 &map->entry[mapIndex].LUID, in fchba_display_config()
1718 (void) memcpy(&head->map, &map->entry[mapIndex], in fchba_display_config()
1719 sizeof (head->map)); in fchba_display_config()
1727 add_lun_path(head, &map->entry[mapIndex], in fchba_display_config()
1751 first_time->map.ScsiId.OSDeviceName, in fchba_display_config()
1779 lun = tmp_path->map.FcpId.FcpLun; in fchba_display_config()
1785 tmp_path->map.FcpId.PortWWN, in fchba_display_config()
1800 first_time->map.ScsiId.OSDeviceName); in fchba_display_config()
1810 first_time->map.ScsiId.OSDeviceName); in fchba_display_config()
1815 first_time->map.ScsiId.OSDeviceName); in fchba_display_config()
1820 first_time->map.ScsiId.OSDeviceName); in fchba_display_config()
1844 first_time->map.FcpId.PortWWN, lun, 0x80))) { in fchba_display_config()
1848 first_time->map.FcpId.PortWWN, in fchba_display_config()
1881 tmp_path->map.FcpId.PortWWN, in fchba_display_config()
1882 tmp_path->map.FcpId.FcpLun, in fchba_display_config()
1896 tmp_path->map.FcpId.PortWWN, in fchba_display_config()
1897 tmp_path->map.FcpId.FcpLun, in fchba_display_config()
1934 if (get_mode_page(first_time->map.ScsiId.OSDeviceName, in fchba_display_config()
1986 first_time->map.ScsiId.OSDeviceName); in fchba_display_config()
2001 path->map.FcpId.PortWWN.wwn), in fchba_display_config()
2002 path->map.ScsiId.ScsiOSLun); in fchba_display_config()