Lines Matching refs:tgtp
207 iscsi_ibft_tgt_t *tgtp);
513 iscsi_parse_ibft_target(char *begin_of_ibft, iscsi_ibft_tgt_t *tgtp)
519 if (tgtp == NULL) {
523 if (tgtp->header.Structure_id != Target) {
527 if ((tgtp->header.Flags & IBFT_FIRMWARE_BOOT_SELECTED) &&
528 (tgtp->header.Flags & IBFT_BLOCK_VALID_YES)) {
532 ret = iscsi_copy_ibft_ipaddr(tgtp->ip_addr,
541 if (tgtp->target_name_len != 0) {
543 (uchar_t *)kmem_zalloc(tgtp->target_name_len + 1,
546 tgtp->target_name_len + 1;
549 tgtp->target_name_len + 1, "%s",
550 begin_of_ibft + tgtp->target_name_offset);
556 boot_property.boot_tgt.tgt_port = tgtp->port;
563 if (tgtp->chap_type != NO_CHAP) {
564 if (tgtp->chap_name_len != 0) {
567 tgtp->chap_name_len + 1,
570 tgtp->chap_name_len + 1;
575 tgtp->chap_name_len + 1, "%s",
576 begin_of_ibft + tgtp->chap_name_offset);
585 if (tgtp->chap_secret_len != 0) {
588 tgtp->chap_secret_len + 1,
591 tgtp->chap_secret_len + 1;
593 tgtp->chap_secret_offset,
595 tgtp->chap_secret_len);
601 if (tgtp->chap_type == Mutual_CHAP) {
602 if (tgtp->rev_chap_name_len != 0) {
605 tgtp->rev_chap_name_len + 1,
608 = tgtp->rev_chap_name_len + 1;
614 tgtp->rev_chap_name_len + 1,
617 tgtp->rev_chap_name_offset);
627 if (tgtp->rev_chap_secret_len != 0) {
630 tgtp->rev_chap_secret_len + 1,
633 = tgtp->rev_chap_secret_len + 1;
638 tgtp->rev_chap_secret_len + 1,
641 tgtp->chap_secret_offset);
656 (void) bcopy(tgtp->boot_lun,