tl_hba 103 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 109 drivers/target/loopback/tcm_loop.c tl_hba = *(struct tcm_loop_hba **)shost_priv(sc->device->host); tl_hba 110 drivers/target/loopback/tcm_loop.c tl_tpg = &tl_hba->tl_hba_tpgs[sc->device->id]; tl_hba 116 drivers/target/loopback/tcm_loop.c if (!tl_tpg->tl_hba) { tl_hba 240 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 247 drivers/target/loopback/tcm_loop.c tl_hba = *(struct tcm_loop_hba **)shost_priv(sc->device->host); tl_hba 248 drivers/target/loopback/tcm_loop.c tl_tpg = &tl_hba->tl_hba_tpgs[sc->device->id]; tl_hba 260 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 267 drivers/target/loopback/tcm_loop.c tl_hba = *(struct tcm_loop_hba **)shost_priv(sc->device->host); tl_hba 268 drivers/target/loopback/tcm_loop.c tl_tpg = &tl_hba->tl_hba_tpgs[sc->device->id]; tl_hba 277 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 283 drivers/target/loopback/tcm_loop.c tl_hba = *(struct tcm_loop_hba **)shost_priv(sc->device->host); tl_hba 284 drivers/target/loopback/tcm_loop.c if (!tl_hba) { tl_hba 291 drivers/target/loopback/tcm_loop.c tl_tpg = &tl_hba->tl_hba_tpgs[sc->device->id]; tl_hba 320 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 324 drivers/target/loopback/tcm_loop.c tl_hba = to_tcm_loop_hba(dev); tl_hba 332 drivers/target/loopback/tcm_loop.c tl_hba->sh = sh; tl_hba 337 drivers/target/loopback/tcm_loop.c *((struct tcm_loop_hba **)sh->hostdata) = tl_hba; tl_hba 353 drivers/target/loopback/tcm_loop.c error = scsi_add_host(sh, &tl_hba->dev); tl_hba 364 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 367 drivers/target/loopback/tcm_loop.c tl_hba = to_tcm_loop_hba(dev); tl_hba 368 drivers/target/loopback/tcm_loop.c sh = tl_hba->sh; tl_hba 377 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = to_tcm_loop_hba(dev); tl_hba 379 drivers/target/loopback/tcm_loop.c kfree(tl_hba); tl_hba 385 drivers/target/loopback/tcm_loop.c static int tcm_loop_setup_hba_bus(struct tcm_loop_hba *tl_hba, int tcm_loop_host_id) tl_hba 389 drivers/target/loopback/tcm_loop.c tl_hba->dev.bus = &tcm_loop_lld_bus; tl_hba 390 drivers/target/loopback/tcm_loop.c tl_hba->dev.parent = tcm_loop_primary; tl_hba 391 drivers/target/loopback/tcm_loop.c tl_hba->dev.release = &tcm_loop_release_adapter; tl_hba 392 drivers/target/loopback/tcm_loop.c dev_set_name(&tl_hba->dev, "tcm_loop_adapter_%d", tcm_loop_host_id); tl_hba 394 drivers/target/loopback/tcm_loop.c ret = device_register(&tl_hba->dev); tl_hba 458 drivers/target/loopback/tcm_loop.c return &tl_tpg(se_tpg)->tl_hba->tl_wwn_address[0]; tl_hba 608 drivers/target/loopback/tcm_loop.c static char *tcm_loop_dump_proto_id(struct tcm_loop_hba *tl_hba) tl_hba 610 drivers/target/loopback/tcm_loop.c switch (tl_hba->tl_proto_id) { tl_hba 632 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = tl_tpg->tl_hba; tl_hba 638 drivers/target/loopback/tcm_loop.c scsi_add_device(tl_hba->sh, 0, tl_tpg->tl_tpgt, lun->unpacked_lun); tl_hba 649 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 653 drivers/target/loopback/tcm_loop.c tl_hba = tl_tpg->tl_hba; tl_hba 655 drivers/target/loopback/tcm_loop.c sd = scsi_device_lookup(tl_hba->sh, 0, tl_tpg->tl_tpgt, tl_hba 730 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = tl_tpg->tl_hba; tl_hba 753 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tl_hba), name); tl_hba 778 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tpg->tl_hba), tl_hba 815 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = tl_tpg->tl_hba; tl_hba 839 drivers/target/loopback/tcm_loop.c if (tl_hba->tl_proto_id != SCSI_PROTOCOL_SAS) { tl_hba 841 drivers/target/loopback/tcm_loop.c i_port, tcm_loop_dump_proto_id(tl_hba)); tl_hba 849 drivers/target/loopback/tcm_loop.c if (tl_hba->tl_proto_id != SCSI_PROTOCOL_FCP) { tl_hba 851 drivers/target/loopback/tcm_loop.c i_port, tcm_loop_dump_proto_id(tl_hba)); tl_hba 859 drivers/target/loopback/tcm_loop.c if (tl_hba->tl_proto_id != SCSI_PROTOCOL_ISCSI) { tl_hba 861 drivers/target/loopback/tcm_loop.c i_port, tcm_loop_dump_proto_id(tl_hba)); tl_hba 939 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = tl_tpg->tl_hba; tl_hba 942 drivers/target/loopback/tcm_loop.c tl_hba->sh->host_no, tl_tpg->tl_tpgt); tl_hba 961 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = container_of(wwn, tl_hba 979 drivers/target/loopback/tcm_loop.c tl_tpg = &tl_hba->tl_hba_tpgs[tpgt]; tl_hba 980 drivers/target/loopback/tcm_loop.c tl_tpg->tl_hba = tl_hba; tl_hba 985 drivers/target/loopback/tcm_loop.c ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); tl_hba 990 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tl_hba), tl_hba 1001 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 1004 drivers/target/loopback/tcm_loop.c tl_hba = tl_tpg->tl_hba; tl_hba 1015 drivers/target/loopback/tcm_loop.c tl_tpg->tl_hba = NULL; tl_hba 1019 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tl_hba), tl_hba 1032 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba; tl_hba 1037 drivers/target/loopback/tcm_loop.c tl_hba = kzalloc(sizeof(*tl_hba), GFP_KERNEL); tl_hba 1038 drivers/target/loopback/tcm_loop.c if (!tl_hba) tl_hba 1047 drivers/target/loopback/tcm_loop.c tl_hba->tl_proto_id = SCSI_PROTOCOL_SAS; tl_hba 1052 drivers/target/loopback/tcm_loop.c tl_hba->tl_proto_id = SCSI_PROTOCOL_FCP; tl_hba 1063 drivers/target/loopback/tcm_loop.c tl_hba->tl_proto_id = SCSI_PROTOCOL_ISCSI; tl_hba 1068 drivers/target/loopback/tcm_loop.c name, tcm_loop_dump_proto_id(tl_hba), TL_WWN_ADDR_LEN); tl_hba 1072 drivers/target/loopback/tcm_loop.c snprintf(&tl_hba->tl_wwn_address[0], TL_WWN_ADDR_LEN, "%s", &name[off]); tl_hba 1079 drivers/target/loopback/tcm_loop.c ret = tcm_loop_setup_hba_bus(tl_hba, tcm_loop_hba_no_cnt); tl_hba 1083 drivers/target/loopback/tcm_loop.c sh = tl_hba->sh; tl_hba 1086 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tl_hba), name, sh->host_no); tl_hba 1087 drivers/target/loopback/tcm_loop.c return &tl_hba->tl_hba_wwn; tl_hba 1089 drivers/target/loopback/tcm_loop.c kfree(tl_hba); tl_hba 1096 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = container_of(wwn, tl_hba 1100 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tl_hba), tl_hba->tl_wwn_address, tl_hba 1101 drivers/target/loopback/tcm_loop.c tl_hba->sh->host_no); tl_hba 1107 drivers/target/loopback/tcm_loop.c device_unregister(&tl_hba->dev); tl_hba 41 drivers/target/loopback/tcm_loop.h struct tcm_loop_hba *tl_hba;