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