Lines Matching refs:auth
369 struct iscsi_node_auth *auth = &nacl->node_auth; \
373 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
381 struct iscsi_node_auth *auth = &nacl->node_auth; \
385 if (count >= sizeof(auth->name)) \
387 snprintf(auth->name, sizeof(auth->name), "%s", page); \
388 if (!strncmp("NULL", auth->name, 4)) \
389 auth->naf_flags &= ~flags; \
391 auth->naf_flags |= flags; \
393 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
394 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
395 auth->authenticate_target = 1; \
397 auth->authenticate_target = 0; \
433 struct iscsi_node_auth *auth = &nacl->node_auth; \
438 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
826 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
831 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
838 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
843 snprintf(auth->name, sizeof(auth->name), "%s", page); \
844 if (!(strncmp("NULL", auth->name, 4))) \
845 auth->naf_flags &= ~flags; \
847 auth->naf_flags |= flags; \
849 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
850 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
851 auth->authenticate_target = 1; \
853 auth->authenticate_target = 0; \
885 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
890 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \