Lines Matching refs:auth
342 struct iscsi_node_auth *auth = &nacl->node_auth; \
346 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
354 struct iscsi_node_auth *auth = &nacl->node_auth; \
358 if (count >= sizeof(auth->name)) \
360 snprintf(auth->name, sizeof(auth->name), "%s", page); \
361 if (!strncmp("NULL", auth->name, 4)) \
362 auth->naf_flags &= ~flags; \
364 auth->naf_flags |= flags; \
366 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
367 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
368 auth->authenticate_target = 1; \
370 auth->authenticate_target = 0; \
407 struct iscsi_node_auth *auth = &nacl->node_auth; \
412 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
806 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
811 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
819 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
824 snprintf(auth->name, sizeof(auth->name), "%s", page); \
825 if (!(strncmp("NULL", auth->name, 4))) \
826 auth->naf_flags &= ~flags; \
828 auth->naf_flags |= flags; \
830 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
831 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
832 auth->authenticate_target = 1; \
834 auth->authenticate_target = 0; \
867 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
872 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \