Lines Matching refs:tddb
6276 struct ql4_tuple_ddb *tddb) in qla4xxx_get_param_ddb() argument
6289 tddb->tpgt = sess->tpgt; in qla4xxx_get_param_ddb()
6290 tddb->port = conn->persistent_port; in qla4xxx_get_param_ddb()
6291 strlcpy(tddb->iscsi_name, sess->targetname, ISCSI_NAME_SIZE); in qla4xxx_get_param_ddb()
6292 strlcpy(tddb->ip_addr, conn->persistent_address, DDB_IPADDR_LEN); in qla4xxx_get_param_ddb()
6296 struct ql4_tuple_ddb *tddb, in qla4xxx_convert_param_ddb() argument
6301 tddb->tpgt = le32_to_cpu(fw_ddb_entry->tgt_portal_grp); in qla4xxx_convert_param_ddb()
6302 memcpy(&tddb->iscsi_name[0], &fw_ddb_entry->iscsi_name[0], in qla4xxx_convert_param_ddb()
6303 min(sizeof(tddb->iscsi_name), sizeof(fw_ddb_entry->iscsi_name))); in qla4xxx_convert_param_ddb()
6307 sprintf(tddb->ip_addr, "%pI6", fw_ddb_entry->ip_addr); in qla4xxx_convert_param_ddb()
6309 sprintf(tddb->ip_addr, "%pI4", fw_ddb_entry->ip_addr); in qla4xxx_convert_param_ddb()
6311 tddb->port = le16_to_cpu(fw_ddb_entry->port); in qla4xxx_convert_param_ddb()
6314 memcpy(&tddb->isid[0], &fw_ddb_entry->isid[0], in qla4xxx_convert_param_ddb()
6315 sizeof(tddb->isid)); in qla4xxx_convert_param_ddb()
6317 memcpy(&tddb->isid[0], &flash_isid[0], sizeof(tddb->isid)); in qla4xxx_convert_param_ddb()