Lines Matching defs:ptr

814 	it_tgt_t	*ptr;
841 ptr = cfg->config_tgt_list;
851 for (; ptr != NULL; ptr = ptr->tgt_next) {
861 if (strcasecmp(tgt, ptr->tgt_name) != 0) {
876 ret = stmfDevidFromIscsiName(ptr->tgt_name, &devid);
910 (void) printf("%-61s", ptr->tgt_name);
911 if (strlen(ptr->tgt_name) > 60) {
916 (void) printf("%s\t%s\t%d", ptr->tgt_name,
930 if (ptr->tgt_properties) {
931 (void) nvlist_lookup_string(ptr->tgt_properties,
933 (void) nvlist_lookup_string(ptr->tgt_properties,
935 if (nvlist_exists(ptr->tgt_properties,
939 (void) nvlist_lookup_string(ptr->tgt_properties,
958 tagp = ptr->tgt_tpgt_list;
994 it_tgt_t *ptr;
1012 ptr = cfg->config_tgt_list;
1013 while (ptr) {
1018 if (strcasecmp(ptr->tgt_name, tgt) == 0) {
1022 ptr = ptr->tgt_next;
1025 if (ptr) {
1026 ret = it_tgt_delete(cfg, ptr, force);
1062 it_tgt_t *ptr = NULL;
1112 ptr = cfg->config_tgt_list;
1113 while (ptr) {
1118 (strcasecmp(newname, ptr->tgt_name) == 0)) {
1127 if (strcasecmp(ptr->tgt_name, tgt) == 0) {
1128 tgtp = ptr;
1131 ptr = ptr ->tgt_next;
1203 it_tpgt_t *ptr = tpgt;
1205 tpgt = ptr->tpgt_next;
1206 it_tpgt_delete(cfg, tgtp, ptr);
1429 it_tpg_t *ptr;
1446 ptr = cfg->config_tpg_list;
1448 for (; ptr != NULL; ptr = ptr->tpg_next) {
1454 if (strcmp(tpg, ptr->tpg_name) != 0) {
1468 (void) printf("%-30s", ptr->tpg_name);
1469 if (strlen(ptr->tpg_name) > 30) {
1472 (void) printf("%-9d", ptr->tpg_portal_count);
1474 (void) printf("%s\t%d", ptr->tpg_name,
1475 ptr->tpg_portal_count);
1489 portal = ptr->tpg_portal_list;
1725 it_ini_t *ptr;
1741 ptr = cfg->config_ini_list;
1743 for (; ptr != NULL; ptr = ptr->ini_next) {
1752 if (strcasecmp(ini, ptr->ini_name) != 0) {
1759 if (ptr->ini_properties) {
1760 if (nvlist_exists(ptr->ini_properties, "chapsecret")) {
1763 (void) nvlist_lookup_string(ptr->ini_properties,
1781 (void) printf("%-61s", ptr->ini_name);
1783 if (strlen(ptr->ini_name) > 60) {
1794 (void) printf("%s\t%s\t%s", ptr->ini_name,
1818 it_ini_t *ptr;
1836 ptr = cfg->config_ini_list;
1837 while (ptr) {
1838 if (strcasecmp(ptr->ini_name, ini) == 0) {
1842 ptr = ptr->ini_next;
1845 if (ptr) {
1846 it_ini_delete(cfg, ptr);
2163 char *ptr = NULL;
2171 id = strtoul(tagname, &ptr, 10);
2174 if (ptr && (*ptr != '\0')) {