It is possible to determine the correspondence between HBA port WWNs and fp instance numbers using the following command:
# for dev in $(devprop -a initiator-port | grep fp@); do devprop -n $dev initiator-port; prtconf $dev; echo; done 10000000c9722de0 fp, instance #2 10000000c9722ddf fp, instance #0
Here, HBA port WWN 10000000c9722de0 corresponds to fp instance 2 and HBA port WWN 10000000c9722ddf corresponds to fp instance 0.
You can determine the HBA port instance number from the physical device path. In this example, the physical device path is /pci@0,0/pci10de,377@f/pci10df,fc22@0/fp@0,0.
# grep '"/pci@0,0/pci10de,377@f/pci10df,fc22@0/fp@0,0"' /etc/path_to_inst "/pci@0,0/pci10de,377@f/pci10df,fc22@0/fp@0,0" 2 "fp"
The HBA port instance number is 2.