Lines Matching defs:map

49     int portIndex, HBA_PORTATTRIBUTES port, HBA_FCPTARGETMAPPINGV2 *map,
52 HBA_FCPTARGETMAPPINGV2 *map, int wwnCount, char **wwn_argv, int flags);
58 HBA_WWN scsiTargetWWN, HBA_FCPTARGETMAPPINGV2 *map);
171 HBA_FCPTARGETMAPPINGV2 *map;
181 if ((map = calloc(1, sizeof (HBA_FCPTARGETMAPPINGV2))) == NULL) {
183 gettext("Internal Error: Unable to calloc map"));
186 status = HBA_GetFcpTargetMappingV2(handle, hbaPortWWN, map);
187 count = map->NumberOfEntries;
189 free(map);
190 if ((map = calloc(1, (sizeof (HBA_FCPSCSIENTRYV2)*(count-1)) +
193 gettext("Unable to calloc map of size: %d"), count);
196 map->NumberOfEntries = count;
197 status = HBA_GetFcpTargetMappingV2(handle, hbaPortWWN, map);
204 free(map);
207 *mapping = map;
372 HBA_PORTATTRIBUTES port, HBA_FCPTARGETMAPPINGV2 *map,
415 discPort.PortWWN, map);
434 HBA_FCPTARGETMAPPINGV2 *map, int wwnCount, char **wwn_argv, int flags)
476 myremotePortWWN, map);
490 * map - a pointer to the target mapping structure for the given HBA port
494 HBA_FCPTARGETMAPPINGV2 *map)
558 if (map != NULL) {
559 for (count = 0; count < map->NumberOfEntries; count++) {
560 if ((memcmp(map->entry[count].FcpId.PortWWN.wwn,
564 (memcmp(&(map->entry[count].FcpId.FcpLun),
567 map->entry[count].ScsiId.ScsiOSLun,
568 map->entry[count].ScsiId.OSDeviceName);
572 if (count == map->NumberOfEntries) {
608 HBA_FCPTARGETMAPPINGV2 *map = NULL;
676 getTargetMapping(handle, myhbaPortWWN, &map);
684 if (map != NULL) {
685 free(map);
691 processHBA(handle, attrs, portCount, port, map, REMOTE_PORT,
694 processRemotePort(handle, myhbaPortWWN, map, wwnCount,
697 if (map != NULL) {
698 free(map);
1042 * map - target mapping data
1269 HBA_FCPTARGETMAPPINGV2 *map = NULL;
1358 getTargetMapping(handle, port.PortWWN, &map);
1359 if (map != NULL) {
1360 for (count = 0; count < map->NumberOfEntries;
1363 map->entry[count], port.PortWWN,