Lines Matching refs:auth
458 struct iscsi_node_auth *auth = &nacl->node_auth; \
462 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
470 struct iscsi_node_auth *auth = &nacl->node_auth; \
474 if (count >= sizeof(auth->name)) \
476 snprintf(auth->name, sizeof(auth->name), "%s", page); \
477 if (!strncmp("NULL", auth->name, 4)) \
478 auth->naf_flags &= ~flags; \
480 auth->naf_flags |= flags; \
482 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
483 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
484 auth->authenticate_target = 1; \
486 auth->authenticate_target = 0; \
496 struct iscsi_node_auth *auth = &nacl->node_auth; \
501 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
1085 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
1090 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
1100 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
1105 snprintf(auth->name, sizeof(auth->name), "%s", page); \
1106 if (!(strncmp("NULL", auth->name, 4))) \
1107 auth->naf_flags &= ~flags; \
1109 auth->naf_flags |= flags; \
1111 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
1112 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
1113 auth->authenticate_target = 1; \
1115 auth->authenticate_target = 0; \
1127 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
1132 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \