/linux-4.4.14/drivers/target/loopback/ |
H A D | tcm_loop.c | 919 unsigned char i_port[TL_WWN_ADDR_LEN], *ptr, *port_ptr; tcm_loop_tpg_nexus_store() local 938 snprintf(&i_port[0], TL_WWN_ADDR_LEN, "%s", page); tcm_loop_tpg_nexus_store() 940 ptr = strstr(i_port, "naa."); tcm_loop_tpg_nexus_store() 944 " match target port protoid: %s\n", i_port, tcm_loop_tpg_nexus_store() 948 port_ptr = &i_port[0]; tcm_loop_tpg_nexus_store() 951 ptr = strstr(i_port, "fc."); tcm_loop_tpg_nexus_store() 955 " match target port protoid: %s\n", i_port, tcm_loop_tpg_nexus_store() 959 port_ptr = &i_port[3]; /* Skip over "fc." */ tcm_loop_tpg_nexus_store() 962 ptr = strstr(i_port, "iqn."); tcm_loop_tpg_nexus_store() 966 " match target port protoid: %s\n", i_port, tcm_loop_tpg_nexus_store() 970 port_ptr = &i_port[0]; tcm_loop_tpg_nexus_store() 974 " %s\n", i_port); tcm_loop_tpg_nexus_store() 980 if (i_port[strlen(i_port)-1] == '\n') tcm_loop_tpg_nexus_store() 981 i_port[strlen(i_port)-1] = '\0'; tcm_loop_tpg_nexus_store()
|
/linux-4.4.14/drivers/xen/ |
H A D | xen-scsiback.c | 1617 unsigned char i_port[VSCSI_NAMELEN], *ptr, *port_ptr; scsiback_tpg_nexus_store() local 1636 snprintf(&i_port[0], VSCSI_NAMELEN, "%s", page); scsiback_tpg_nexus_store() 1638 ptr = strstr(i_port, "naa."); scsiback_tpg_nexus_store() 1642 i_port, scsiback_dump_proto_id(tport_wwn)); scsiback_tpg_nexus_store() 1645 port_ptr = &i_port[0]; scsiback_tpg_nexus_store() 1648 ptr = strstr(i_port, "fc."); scsiback_tpg_nexus_store() 1652 i_port, scsiback_dump_proto_id(tport_wwn)); scsiback_tpg_nexus_store() 1655 port_ptr = &i_port[3]; /* Skip over "fc." */ scsiback_tpg_nexus_store() 1658 ptr = strstr(i_port, "iqn."); scsiback_tpg_nexus_store() 1662 i_port, scsiback_dump_proto_id(tport_wwn)); scsiback_tpg_nexus_store() 1665 port_ptr = &i_port[0]; scsiback_tpg_nexus_store() 1669 i_port); scsiback_tpg_nexus_store() 1675 if (i_port[strlen(i_port) - 1] == '\n') scsiback_tpg_nexus_store() 1676 i_port[strlen(i_port) - 1] = '\0'; scsiback_tpg_nexus_store()
|
/linux-4.4.14/drivers/vhost/ |
H A D | scsi.c | 1896 unsigned char i_port[VHOST_SCSI_NAMELEN], *ptr, *port_ptr; vhost_scsi_tpg_nexus_store() local 1915 snprintf(&i_port[0], VHOST_SCSI_NAMELEN, "%s", page); vhost_scsi_tpg_nexus_store() 1917 ptr = strstr(i_port, "naa."); vhost_scsi_tpg_nexus_store() 1921 " match target port protoid: %s\n", i_port, vhost_scsi_tpg_nexus_store() 1925 port_ptr = &i_port[0]; vhost_scsi_tpg_nexus_store() 1928 ptr = strstr(i_port, "fc."); vhost_scsi_tpg_nexus_store() 1932 " match target port protoid: %s\n", i_port, vhost_scsi_tpg_nexus_store() 1936 port_ptr = &i_port[3]; /* Skip over "fc." */ vhost_scsi_tpg_nexus_store() 1939 ptr = strstr(i_port, "iqn."); vhost_scsi_tpg_nexus_store() 1943 " match target port protoid: %s\n", i_port, vhost_scsi_tpg_nexus_store() 1947 port_ptr = &i_port[0]; vhost_scsi_tpg_nexus_store() 1951 " %s\n", i_port); vhost_scsi_tpg_nexus_store() 1957 if (i_port[strlen(i_port)-1] == '\n') vhost_scsi_tpg_nexus_store() 1958 i_port[strlen(i_port)-1] = '\0'; vhost_scsi_tpg_nexus_store()
|
/linux-4.4.14/drivers/usb/gadget/legacy/ |
H A D | tcm_usb_gadget.c | 1637 unsigned char i_port[USBG_NAMELEN], *ptr; tcm_usbg_tpg_nexus_store() local 1649 snprintf(i_port, USBG_NAMELEN, "%s", page); tcm_usbg_tpg_nexus_store() 1651 ptr = strstr(i_port, "naa."); tcm_usbg_tpg_nexus_store() 1657 if (i_port[strlen(i_port) - 1] == '\n') tcm_usbg_tpg_nexus_store() 1658 i_port[strlen(i_port) - 1] = '\0'; tcm_usbg_tpg_nexus_store() 1660 ret = tcm_usbg_make_nexus(tpg, &i_port[4]); tcm_usbg_tpg_nexus_store()
|
/linux-4.4.14/drivers/target/ |
H A D | target_core_configfs.c | 1484 unsigned char *i_fabric = NULL, *i_port = NULL, *isid = NULL; target_pr_res_aptpl_metadata_store() local 1525 i_port = match_strdup(args); target_pr_res_aptpl_metadata_store() 1526 if (!i_port) { target_pr_res_aptpl_metadata_store() 1530 if (strlen(i_port) >= PR_APTPL_MAX_IPORT_LEN) { target_pr_res_aptpl_metadata_store() 1638 if (!i_port || !t_port || !sa_res_key) { target_pr_res_aptpl_metadata_store() 1652 i_port, isid, mapped_lun, t_port, tpgt, target_lun, target_pr_res_aptpl_metadata_store() 1656 kfree(i_port); target_pr_res_aptpl_metadata_store()
|
H A D | target_core_pr.c | 828 unsigned char *i_port, core_scsi3_alloc_aptpl_registration() 840 if (!i_port || !t_port || !sa_res_key) { core_scsi3_alloc_aptpl_registration() 876 * Copy the i_port and t_port information from caller. core_scsi3_alloc_aptpl_registration() 878 snprintf(pr_reg->pr_iport, PR_APTPL_MAX_IPORT_LEN, "%s", i_port); core_scsi3_alloc_aptpl_registration() 933 unsigned char i_port[PR_APTPL_MAX_IPORT_LEN]; __core_scsi3_check_aptpl_registration() local 937 memset(i_port, 0, PR_APTPL_MAX_IPORT_LEN); __core_scsi3_check_aptpl_registration() 942 snprintf(i_port, PR_APTPL_MAX_IPORT_LEN, "%s", nacl->initiatorname); __core_scsi3_check_aptpl_registration() 956 if (!strcmp(pr_reg->pr_iport, i_port) && __core_scsi3_check_aptpl_registration() 825 core_scsi3_alloc_aptpl_registration( struct t10_reservation *pr_tmpl, u64 sa_res_key, unsigned char *i_port, unsigned char *isid, u64 mapped_lun, unsigned char *t_port, u16 tpgt, u64 target_lun, int res_holder, int all_tg_pt, u8 type) core_scsi3_alloc_aptpl_registration() argument
|
/linux-4.4.14/net/decnet/ |
H A D | af_decnet.c | 195 unsigned short i_port = port; port_alloc() local 198 if (port == i_port) port_alloc()
|