Lines Matching refs:ddb_index
2934 int qla4xxx_get_ddb_index(struct scsi_qla_host *ha, uint16_t *ddb_index) in qla4xxx_get_ddb_index() argument
2967 *ddb_index = tmp_ddb_index; in qla4xxx_get_ddb_index()
3087 uint16_t ddb_index; in qla4xxx_session_create() local
3101 ret = qla4xxx_get_ddb_index(ha, &ddb_index); in qla4xxx_session_create()
3108 initial_cmdsn, ddb_index); in qla4xxx_session_create()
3114 ddb_entry->fw_ddb_index = ddb_index; in qla4xxx_session_create()
5903 static int get_fw_boot_info(struct scsi_qla_host *ha, uint16_t ddb_index[]) in get_fw_boot_info() argument
5945 ddb_index[0] = (val & 0x7f); in get_fw_boot_info()
5950 ddb_index[1] = (val & 0x7f); in get_fw_boot_info()
5990 ddb_index[0] = buf[2] & 0x7f; in get_fw_boot_info()
5994 ddb_index[1] = buf[11] & 0x7f; in get_fw_boot_info()
6001 " target ID %d\n", __func__, ddb_index[0], in get_fw_boot_info()
6002 ddb_index[1])); in get_fw_boot_info()
6007 ha->pri_ddb_idx = ddb_index[0]; in get_fw_boot_info()
6008 ha->sec_ddb_idx = ddb_index[1]; in get_fw_boot_info()
6068 uint16_t ddb_index) in qla4xxx_get_boot_target() argument
6088 fw_ddb_entry_dma, ddb_index)) { in qla4xxx_get_boot_target()
6090 "index [%d]\n", __func__, ddb_index)); in qla4xxx_get_boot_target()
6159 uint16_t ddb_index[2]; in qla4xxx_get_boot_info() local
6163 memset(ddb_index, 0, sizeof(ddb_index)); in qla4xxx_get_boot_info()
6164 ddb_index[0] = 0xffff; in qla4xxx_get_boot_info()
6165 ddb_index[1] = 0xffff; in qla4xxx_get_boot_info()
6166 ret = get_fw_boot_info(ha, ddb_index); in qla4xxx_get_boot_info()
6176 if (ddb_index[0] == 0xffff) in qla4xxx_get_boot_info()
6180 ddb_index[0]); in qla4xxx_get_boot_info()
6188 if (ddb_index[1] == 0xffff) in qla4xxx_get_boot_info()
6192 ddb_index[1]); in qla4xxx_get_boot_info()
7479 uint16_t ddb_index; in qla4xxx_ddb_login_st() local
7492 ret = qla4xxx_get_ddb_index(ha, &ddb_index); in qla4xxx_ddb_login_st()
7496 ret = qla4xxx_sysfs_ddb_conn_open(ha, fw_ddb_entry, ddb_index); in qla4xxx_ddb_login_st()
7509 if (qla4xxx_clear_ddb_entry(ha, ddb_index) == QLA_ERROR) { in qla4xxx_ddb_login_st()
7511 "Unable to clear DDB index = 0x%x\n", ddb_index); in qla4xxx_ddb_login_st()
7514 clear_bit(ddb_index, ha->ddb_idx_map); in qla4xxx_ddb_login_st()