Lines Matching defs:tpg
1000 * tpg list (cfg_tgt_list) in the it_config_t structure. The new target
1007 * tpg Pointer to the it_tpg_t structure representing
1023 it_tpg_create(it_config_t *cfg, it_tpg_t **tpg, char *tpg_name,
1030 if (!cfg || !tpg || !tpg_name || !portal_ip_port) {
1034 *tpg = NULL;
1067 *tpg = ptr;
1075 * Delete target portal group represented by 'tpg', where 'tpg' is an
1083 * tpg Pointer to the it_tpg_t structure representing
1094 it_tpg_delete(it_config_t *cfg, it_tpg_t *tpg, boolean_t force)
1102 if (!cfg || !tpg) {
1108 if (strcmp(ptr->tpg_name, tpg->tpg_name) == 0) {
1129 if (strcmp(tpgt->tpgt_tpg_name, tpg->tpg_name)
1161 * If tpg->next is not NULL, frees all members of the list.
1164 it_tpg_free(it_tpg_t *tpg)
1166 it_tpg_free_cmn(tpg);
1180 * tpg Pointer to the it_tpg_t structure representing the
1194 it_portal_create(it_config_t *cfg, it_tpg_t *tpg, it_portal_t **portal,
1201 if (!cfg || !tpg || !portal || !portal_ip_port) {
1223 if (strcmp(ctpg->tpg_name, tpg->tpg_name) == 0) {
1240 ptr->portal_next = tpg->tpg_portal_list;
1241 tpg->tpg_portal_list = ptr;
1242 tpg->tpg_portal_count++;
1243 tpg->tpg_generation++;
1258 * tpg Pointer to the it_tpg_t structure representing the
1264 it_portal_delete(it_config_t *cfg, it_tpg_t *tpg, it_portal_t *portal)
1269 if (!cfg || !tpg || !portal) {
1273 ptr = tpg->tpg_portal_list;
1290 tpg->tpg_portal_list = ptr->portal_next;
1292 tpg->tpg_portal_count--;
1293 tpg->tpg_generation++;