For QLogic HBAs
# cat /proc/scsi/qla2xxx/* | grep adapter-port
For Emulex HBAs
# cat /sys/class/scsi_host/host*/port_name
If I know of any other variants of kernel version, HBA types, I'll update this post to add them. Please feel free to comment, I'll add your comments to the main post.