Lines Matching refs:fw_ddb_entry

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