Lines Matching defs:tgtp
210 iscsi_ibft_tgt_t *tgtp);
516 iscsi_parse_ibft_target(char *begin_of_ibft, iscsi_ibft_tgt_t *tgtp)
522 if (tgtp == NULL) {
526 if (tgtp->header.Structure_id != Target) {
530 if ((tgtp->header.Flags & IBFT_FIRMWARE_BOOT_SELECTED) &&
531 (tgtp->header.Flags & IBFT_BLOCK_VALID_YES)) {
535 ret = iscsi_copy_ibft_ipaddr(tgtp->ip_addr,
544 if (tgtp->target_name_len != 0) {
546 (uchar_t *)kmem_zalloc(tgtp->target_name_len + 1,
549 tgtp->target_name_len + 1;
552 tgtp->target_name_len + 1, "%s",
553 begin_of_ibft + tgtp->target_name_offset);
559 boot_property.boot_tgt.tgt_port = tgtp->port;
566 if (tgtp->chap_type != NO_CHAP) {
567 if (tgtp->chap_name_len != 0) {
570 tgtp->chap_name_len + 1,
573 tgtp->chap_name_len + 1;
578 tgtp->chap_name_len + 1, "%s",
579 begin_of_ibft + tgtp->chap_name_offset);
588 if (tgtp->chap_secret_len != 0) {
591 tgtp->chap_secret_len + 1,
594 tgtp->chap_secret_len + 1;
596 tgtp->chap_secret_offset,
598 tgtp->chap_secret_len);
604 if (tgtp->chap_type == Mutual_CHAP) {
605 if (tgtp->rev_chap_name_len != 0) {
608 tgtp->rev_chap_name_len + 1,
611 = tgtp->rev_chap_name_len + 1;
617 tgtp->rev_chap_name_len + 1,
620 tgtp->rev_chap_name_offset);
630 if (tgtp->rev_chap_secret_len != 0) {
633 tgtp->rev_chap_secret_len + 1,
636 = tgtp->rev_chap_secret_len + 1;
641 tgtp->rev_chap_secret_len + 1,
644 tgtp->chap_secret_offset);
659 (void) bcopy(tgtp->boot_lun,