hpsa.c (70a02f840c5113cd9255ce4c1b1848bb48b0bd21) hpsa.c (b4e9ce1c24934d58dab342d5db6240f7312e2fff)
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2016 Microsemi Corporation
4 * Copyright 2014-2015 PMC-Sierra, Inc.
5 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 3504 unchanged lines hidden (view full) ---

3513 kfree(bssbp);
3514 kfree(id_phys);
3515
3516 if (c)
3517 cmd_free(h, c);
3518
3519 if (rc != IO_OK)
3520 hpsa_show_dev_msg(KERN_INFO, h, encl_dev,
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2016 Microsemi Corporation
4 * Copyright 2014-2015 PMC-Sierra, Inc.
5 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 3504 unchanged lines hidden (view full) ---

3513 kfree(bssbp);
3514 kfree(id_phys);
3515
3516 if (c)
3517 cmd_free(h, c);
3518
3519 if (rc != IO_OK)
3520 hpsa_show_dev_msg(KERN_INFO, h, encl_dev,
3521 "Error, could not get enclosure information\n");
3521 "Error, could not get enclosure information");
3522}
3523
3524static u64 hpsa_get_sas_address_from_report_physical(struct ctlr_info *h,
3525 unsigned char *scsi3addr)
3526{
3527 struct ReportExtendedLUNdata *physdev;
3528 u32 nphysicals;
3529 u64 sa = 0;

--- 4688 unchanged lines hidden (view full) ---

8218 /*
8219 * Run through current device list used during I/O requests.
8220 */
8221 for (i = 0; i < h->ndevices; i++) {
8222 device = h->dev[i];
8223
8224 if (!device)
8225 continue;
3522}
3523
3524static u64 hpsa_get_sas_address_from_report_physical(struct ctlr_info *h,
3525 unsigned char *scsi3addr)
3526{
3527 struct ReportExtendedLUNdata *physdev;
3528 u32 nphysicals;
3529 u64 sa = 0;

--- 4688 unchanged lines hidden (view full) ---

8218 /*
8219 * Run through current device list used during I/O requests.
8220 */
8221 for (i = 0; i < h->ndevices; i++) {
8222 device = h->dev[i];
8223
8224 if (!device)
8225 continue;
8226 if (!device->scsi3addr)
8227 continue;
8228 if (!hpsa_vpd_page_supported(h, device->scsi3addr,
8229 HPSA_VPD_LV_IOACCEL_STATUS))
8230 continue;
8231
8232 memset(buf, 0, 64);
8233
8234 rc = hpsa_scsi_do_inquiry(h, device->scsi3addr,
8235 VPD_PAGE | HPSA_VPD_LV_IOACCEL_STATUS,

--- 1588 unchanged lines hidden ---
8226 if (!hpsa_vpd_page_supported(h, device->scsi3addr,
8227 HPSA_VPD_LV_IOACCEL_STATUS))
8228 continue;
8229
8230 memset(buf, 0, 64);
8231
8232 rc = hpsa_scsi_do_inquiry(h, device->scsi3addr,
8233 VPD_PAGE | HPSA_VPD_LV_IOACCEL_STATUS,

--- 1588 unchanged lines hidden ---