Lines Matching defs:fw_ddb_entry
473 struct dev_db_entry *fw_ddb_entry = NULL;
481 fw_ddb_entry = dma_alloc_coherent(&ha->pdev->dev,
482 sizeof(*fw_ddb_entry),
484 if (fw_ddb_entry == NULL) {
490 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index, fw_ddb_entry,
504 if ((memcmp(ddb_entry->iscsi_name, fw_ddb_entry->iscsi_name,
507 le32_to_cpu(fw_ddb_entry->tgt_portal_grp)) &&
508 (memcmp(ddb_entry->isid, fw_ddb_entry->isid,
525 dma_free_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry), fw_ddb_entry,
548 struct dev_db_entry *fw_ddb_entry = NULL;
561 fw_ddb_entry = dma_alloc_coherent(&ha->pdev->dev,
562 sizeof(*fw_ddb_entry),
564 if (fw_ddb_entry == NULL) {
571 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index, fw_ddb_entry,
585 ddb_entry->options = le16_to_cpu(fw_ddb_entry->options);
586 ddb_entry->target_session_id = le16_to_cpu(fw_ddb_entry->tsid);
588 le16_to_cpu(fw_ddb_entry->def_timeout);
590 ddb_entry->exe_throttle = le16_to_cpu(fw_ddb_entry->exec_throttle);
592 le16_to_cpu(fw_ddb_entry->def_timeout);
593 ddb_entry->default_time2wait = le16_to_cpu(fw_ddb_entry->iscsi_def_time2wait);
599 ddb_entry->port = le16_to_cpu(fw_ddb_entry->port);
600 ddb_entry->tpgt = le32_to_cpu(fw_ddb_entry->tgt_portal_grp);
601 memcpy(ddb_entry->isid, fw_ddb_entry->isid, sizeof(ddb_entry->isid));
603 memcpy(&ddb_entry->iscsi_name[0], &fw_ddb_entry->iscsi_name[0],
605 sizeof(fw_ddb_entry->iscsi_name)));
606 memcpy(&ddb_entry->iscsi_alias[0], &fw_ddb_entry->iscsi_alias[0],
608 sizeof(fw_ddb_entry->iscsi_alias)));
609 memcpy(&ddb_entry->ip_addr[0], &fw_ddb_entry->ip_addr[0],
610 min(sizeof(ddb_entry->ip_addr), sizeof(fw_ddb_entry->ip_addr)));
612 ddb_entry->iscsi_max_burst_len = fw_ddb_entry->iscsi_max_burst_len;
613 ddb_entry->iscsi_max_outsnd_r2t = fw_ddb_entry->iscsi_max_outsnd_r2t;
614 ddb_entry->iscsi_first_burst_len = fw_ddb_entry->iscsi_first_burst_len;
616 fw_ddb_entry->iscsi_max_rcv_data_seg_len;
618 fw_ddb_entry->iscsi_max_snd_data_seg_len;
622 fw_ddb_entry->ip_addr,
624 sizeof(fw_ddb_entry->ip_addr)));
626 fw_ddb_entry->link_local_ipv6_addr,
628 sizeof(fw_ddb_entry->link_local_ipv6_addr)));
635 conn_err, fw_ddb_entry->ip_addr,
636 le16_to_cpu(fw_ddb_entry->port),
637 fw_ddb_entry->iscsi_name));
644 conn_err, fw_ddb_entry->ip_addr,
645 le16_to_cpu(fw_ddb_entry->port),
646 fw_ddb_entry->iscsi_name));
648 if (fw_ddb_entry)
649 dma_free_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry),
650 fw_ddb_entry, fw_ddb_entry_dma);
742 struct dev_db_entry *fw_ddb_entry = NULL;
747 fw_ddb_entry = dma_alloc_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry),
749 if (fw_ddb_entry == NULL) {
760 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index, fw_ddb_entry,
781 ipv6_device = le16_to_cpu(fw_ddb_entry->options) &
785 *((uint32_t *)fw_ddb_entry->ip_addr))
843 dma_free_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry), fw_ddb_entry,