mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
qla2x00t-32gbit/qla_attr: Use whitespace according to the Linux kernel coding style
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8304 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -674,6 +674,7 @@ qla2x00_sysfs_write_reset(struct file *filp, struct kobject *kobj,
|
||||
int type;
|
||||
uint32_t idc_control;
|
||||
uint8_t *tmp_data = NULL;
|
||||
|
||||
if (off != 0)
|
||||
return -EINVAL;
|
||||
|
||||
@@ -887,7 +888,7 @@ do_read:
|
||||
count = 0;
|
||||
}
|
||||
|
||||
count = actual_size > count ? count: actual_size;
|
||||
count = actual_size > count ? count : actual_size;
|
||||
memcpy(buf, ha->xgmac_data, count);
|
||||
|
||||
return count;
|
||||
@@ -1079,6 +1080,7 @@ qla2x00_isp_name_show(struct device *dev, struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "ISP%04X\n", vha->hw->pdev->device);
|
||||
}
|
||||
|
||||
@@ -1112,6 +1114,7 @@ qla2x00_model_desc_show(struct device *dev, struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_desc);
|
||||
}
|
||||
|
||||
@@ -1324,6 +1327,7 @@ qla2x00_optrom_bios_version_show(struct device *dev,
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->bios_revision[1],
|
||||
ha->bios_revision[0]);
|
||||
}
|
||||
@@ -1334,6 +1338,7 @@ qla2x00_optrom_efi_version_show(struct device *dev,
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->efi_revision[1],
|
||||
ha->efi_revision[0]);
|
||||
}
|
||||
@@ -1344,6 +1349,7 @@ qla2x00_optrom_fcode_version_show(struct device *dev,
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->fcode_revision[1],
|
||||
ha->fcode_revision[0]);
|
||||
}
|
||||
@@ -1354,6 +1360,7 @@ qla2x00_optrom_fw_version_show(struct device *dev,
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%d.%02d.%02d %d\n",
|
||||
ha->fw_revision[0], ha->fw_revision[1], ha->fw_revision[2],
|
||||
ha->fw_revision[3]);
|
||||
@@ -1380,6 +1387,7 @@ qla2x00_total_isp_aborts_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%d\n",
|
||||
vha->qla_stats.total_isp_aborts);
|
||||
}
|
||||
@@ -2803,8 +2811,8 @@ qla24xx_vport_create(struct fc_vport *fc_vport, bool disable)
|
||||
|
||||
/* initialized vport states */
|
||||
atomic_set(&vha->loop_state, LOOP_DOWN);
|
||||
vha->vp_err_state= VP_ERR_PORTDWN;
|
||||
vha->vp_prev_err_state= VP_ERR_UNKWN;
|
||||
vha->vp_err_state = VP_ERR_PORTDWN;
|
||||
vha->vp_prev_err_state = VP_ERR_UNKWN;
|
||||
/* Check if physical ha port is Up */
|
||||
if (atomic_read(&base_vha->loop_state) == LOOP_DOWN ||
|
||||
atomic_read(&base_vha->loop_state) == LOOP_DEAD) {
|
||||
@@ -2819,6 +2827,7 @@ qla24xx_vport_create(struct fc_vport *fc_vport, bool disable)
|
||||
if (IS_T10_PI_CAPABLE(ha) && ql2xenabledif) {
|
||||
if (ha->fw_attributes & BIT_4) {
|
||||
int prot = 0, guard;
|
||||
|
||||
vha->flags.difdix_supported = 1;
|
||||
ql_dbg(ql_dbg_user, vha, 0x7082,
|
||||
"Registered for DIF/DIX type 1 and 3 protection.\n");
|
||||
|
||||
Reference in New Issue
Block a user