Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e9bcec7 authored by Vikas Chaudhary's avatar Vikas Chaudhary Committed by James Bottomley
Browse files

[SCSI] qla4xxx: Update func name from ql4_ to qla4_



ql4_8xxx_mark_entry_skipped to qla4_8xxx_mark_entry_skipped
ql4_attr_is_visible to qla4_attr_is_visible

Signed-off-by: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 7664a1fd
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -2077,7 +2077,7 @@ static int qla4_8xxx_minidump_process_rdmem(struct scsi_qla_host *ha,
	return QLA_SUCCESS;
	return QLA_SUCCESS;
}
}


static void ql4_8xxx_mark_entry_skipped(struct scsi_qla_host *ha,
static void qla4_8xxx_mark_entry_skipped(struct scsi_qla_host *ha,
				struct qla8xxx_minidump_entry_hdr *entry_hdr,
				struct qla8xxx_minidump_entry_hdr *entry_hdr,
				int index)
				int index)
{
{
@@ -2161,13 +2161,13 @@ static int qla4_8xxx_collect_md_data(struct scsi_qla_host *ha)
		 */
		 */
		switch (entry_hdr->entry_type) {
		switch (entry_hdr->entry_type) {
		case QLA82XX_RDEND:
		case QLA82XX_RDEND:
			ql4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
			qla4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
			break;
			break;
		case QLA82XX_CNTRL:
		case QLA82XX_CNTRL:
			rval = qla4_8xxx_minidump_process_control(ha,
			rval = qla4_8xxx_minidump_process_control(ha,
								  entry_hdr);
								  entry_hdr);
			if (rval != QLA_SUCCESS) {
			if (rval != QLA_SUCCESS) {
				ql4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
				qla4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
				goto md_failed;
				goto md_failed;
			}
			}
			break;
			break;
@@ -2179,7 +2179,7 @@ static int qla4_8xxx_collect_md_data(struct scsi_qla_host *ha)
			rval = qla4_8xxx_minidump_process_rdmem(ha, entry_hdr,
			rval = qla4_8xxx_minidump_process_rdmem(ha, entry_hdr,
								&data_ptr);
								&data_ptr);
			if (rval != QLA_SUCCESS) {
			if (rval != QLA_SUCCESS) {
				ql4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
				qla4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
				goto md_failed;
				goto md_failed;
			}
			}
			break;
			break;
@@ -2195,7 +2195,7 @@ static int qla4_8xxx_collect_md_data(struct scsi_qla_host *ha)
			rval = qla4_8xxx_minidump_process_l2tag(ha, entry_hdr,
			rval = qla4_8xxx_minidump_process_l2tag(ha, entry_hdr,
								&data_ptr);
								&data_ptr);
			if (rval != QLA_SUCCESS) {
			if (rval != QLA_SUCCESS) {
				ql4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
				qla4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
				goto md_failed;
				goto md_failed;
			}
			}
			break;
			break;
@@ -2218,7 +2218,7 @@ static int qla4_8xxx_collect_md_data(struct scsi_qla_host *ha)
			break;
			break;
		case QLA82XX_RDNOP:
		case QLA82XX_RDNOP:
		default:
		default:
			ql4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
			qla4_8xxx_mark_entry_skipped(ha, entry_hdr, i);
			break;
			break;
		}
		}


+3 −3
Original line number Original line Diff line number Diff line
@@ -160,7 +160,7 @@ static int qla4xxx_eh_host_reset(struct scsi_cmnd *cmd);
static int qla4xxx_slave_alloc(struct scsi_device *device);
static int qla4xxx_slave_alloc(struct scsi_device *device);
static int qla4xxx_slave_configure(struct scsi_device *device);
static int qla4xxx_slave_configure(struct scsi_device *device);
static void qla4xxx_slave_destroy(struct scsi_device *sdev);
static void qla4xxx_slave_destroy(struct scsi_device *sdev);
static umode_t ql4_attr_is_visible(int param_type, int param);
static umode_t qla4_attr_is_visible(int param_type, int param);
static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type);
static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type);
static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth,
static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth,
				      int reason);
				      int reason);
@@ -203,7 +203,7 @@ static struct iscsi_transport qla4xxx_iscsi_transport = {
				  CAP_DATA_PATH_OFFLOAD | CAP_HDRDGST |
				  CAP_DATA_PATH_OFFLOAD | CAP_HDRDGST |
				  CAP_DATADGST | CAP_LOGIN_OFFLOAD |
				  CAP_DATADGST | CAP_LOGIN_OFFLOAD |
				  CAP_MULTI_R2T,
				  CAP_MULTI_R2T,
	.attr_is_visible	= ql4_attr_is_visible,
	.attr_is_visible	= qla4_attr_is_visible,
	.create_session         = qla4xxx_session_create,
	.create_session         = qla4xxx_session_create,
	.destroy_session        = qla4xxx_session_destroy,
	.destroy_session        = qla4xxx_session_destroy,
	.start_conn             = qla4xxx_conn_start,
	.start_conn             = qla4xxx_conn_start,
@@ -315,7 +315,7 @@ static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num,
	return rval;
	return rval;
}
}


static umode_t ql4_attr_is_visible(int param_type, int param)
static umode_t qla4_attr_is_visible(int param_type, int param)
{
{
	switch (param_type) {
	switch (param_type) {
	case ISCSI_HOST_PARAM:
	case ISCSI_HOST_PARAM: