Lines Matching refs:target

51 static struct target *target = NULL;  variable
106 target
548 target: TARGET target_name
551 target = NULL;
557 target = target_new(conf, $1);
559 if (target == NULL)
599 if (target->t_alias != NULL) {
601 "specified more than once", target->t_name);
604 target->t_alias = $2;
610 if (target->t_auth_group != NULL) {
611 if (target->t_auth_group->ag_name != NULL)
613 "specified more than once", target->t_name);
617 target->t_name);
620 target->t_auth_group = auth_group_find(conf, $2);
621 if (target->t_auth_group == NULL) {
623 "\"%s\"", $2, target->t_name);
634 if (target->t_auth_group != NULL) {
635 if (target->t_auth_group->ag_name != NULL) {
638 target->t_name);
642 target->t_auth_group = auth_group_new(conf, NULL);
643 if (target->t_auth_group == NULL) {
647 target->t_auth_group->ag_target = target;
649 error = auth_group_set_type(target->t_auth_group, $2);
660 if (target->t_auth_group != NULL) {
661 if (target->t_auth_group->ag_name != NULL) {
664 target->t_name);
670 target->t_auth_group = auth_group_new(conf, NULL);
671 if (target->t_auth_group == NULL) {
676 target->t_auth_group->ag_target = target;
678 ca = auth_new_chap(target->t_auth_group, $2, $3);
690 if (target->t_auth_group != NULL) {
691 if (target->t_auth_group->ag_name != NULL) {
694 target->t_name);
702 target->t_auth_group = auth_group_new(conf, NULL);
703 if (target->t_auth_group == NULL) {
710 target->t_auth_group->ag_target = target;
712 ca = auth_new_chap_mutual(target->t_auth_group,
727 if (target->t_auth_group != NULL) {
728 if (target->t_auth_group->ag_name != NULL) {
731 target->t_name);
736 target->t_auth_group = auth_group_new(conf, NULL);
737 if (target->t_auth_group == NULL) {
741 target->t_auth_group->ag_target = target;
743 an = auth_name_new(target->t_auth_group, $2);
754 if (target->t_auth_group != NULL) {
755 if (target->t_auth_group->ag_name != NULL) {
758 target->t_name);
763 target->t_auth_group = auth_group_new(conf, NULL);
764 if (target->t_auth_group == NULL) {
768 target->t_auth_group->ag_target = target;
770 ap = auth_portal_new(target->t_auth_group, $2);
786 "\"%s\"", $2, target->t_name);
794 "\"%s\"", $3, target->t_name);
799 tp = port_new(conf, target, tpg);
802 "\"%s\"", $2, target->t_name);
818 "\"%s\"", $2, target->t_name);
822 tp = port_new(conf, target, tpg);
825 "\"%s\"", $2, target->t_name);
835 target->t_pport = strdup($2);
845 error = target_set_redirection(target, $2);
876 ret = asprintf(&name, "%s,lun,%ju", target->t_name, tmp);
884 target->t_luns[tmp] = lun;
910 target->t_luns[tmp] = lun;
1120 target = NULL; in parse_conf()