Lines Matching refs:tgt

525  *    tgt		Pointer to an iSCSI target structure
539 it_tgt_create(it_config_t *cfg, it_tgt_t **tgt, char *tgt_name)
547 if (!cfg || !tgt) {
592 *tgt = ptr;
609 * tgt Pointer to an iSCSI target structure
620 it_tgt_setprop(it_config_t *cfg, it_tgt_t *tgt, nvlist_t *proplist,
628 if (!cfg || !tgt || !proplist) {
633 if (!validate_iscsi_name(tgt->tgt_name)) {
636 canonical_iscsi_name(tgt->tgt_name);
647 if (tgt->tgt_properties) {
648 ret = nvlist_dup(tgt->tgt_properties, &tprops, 0);
709 if (tgt->tgt_properties) {
710 nvlist_free(tgt->tgt_properties);
712 tgt->tgt_properties = tprops;
723 * Delete target represented by 'tgt', where 'tgt' is an existing
731 * tgt Pointer to an iSCSI target structure
741 it_tgt_delete(it_config_t *cfg, it_tgt_t *tgt, boolean_t force)
749 if (!cfg || !tgt) {
755 if (strcasecmp(tgt->tgt_name, ptgt->tgt_name) == 0) {
816 it_tgt_free(it_tgt_t *tgt)
818 it_tgt_free_cmn(tgt);
833 * tgt Pointer to the iSCSI target structure associated
851 it_tpgt_create(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t **tpgt,
859 if (!cfg || !tgt || !tpgt || !tpg_name) {
875 cfgt = tgt->tgt_tpgt_list;
922 ptr->tpgt_next = tgt->tgt_tpgt_list;
923 tgt->tgt_tpgt_list = ptr;
924 tgt->tgt_tpgt_count++;
925 tgt->tgt_generation++;
936 * 'tpgt' is an existing is_tpgt_t structure within the target 'tgt'.
943 * tgt Pointer to the iSCSI target structure associated
948 it_tpgt_delete(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t *tpgt)
953 if (!cfg || !tgt || !tpgt) {
957 ptr = tgt->tgt_tpgt_list;
973 tgt->tgt_tpgt_list = ptr->tpgt_next;
977 tgt->tgt_tpgt_count--;
978 tgt->tgt_generation++;
1098 it_tgt_t *tgt;
1123 tgt = cfg->config_tgt_list;
1124 while (tgt) {
1125 tpgt = tgt->tgt_tpgt_list;
1134 it_tpgt_delete(cfg, tgt, tpgt);
1139 tgt = tgt->tgt_next;
2017 canonical_iscsi_name(char *tgt)
2019 if (IS_IQN_NAME(tgt)) {
2021 iqnstr(tgt);
2024 euistr(tgt);