.. | .. |
---|
129 | 129 | static void mptsas_send_expander_event(struct fw_event_work *fw_event); |
---|
130 | 130 | static void mptsas_not_responding_devices(MPT_ADAPTER *ioc); |
---|
131 | 131 | static void mptsas_scan_sas_topology(MPT_ADAPTER *ioc); |
---|
132 | | -static void mptsas_broadcast_primative_work(struct fw_event_work *fw_event); |
---|
| 132 | +static void mptsas_broadcast_primitive_work(struct fw_event_work *fw_event); |
---|
133 | 133 | static void mptsas_handle_queue_full_event(struct fw_event_work *fw_event); |
---|
134 | 134 | static void mptsas_volume_delete(MPT_ADAPTER *ioc, u8 id); |
---|
135 | 135 | void mptsas_schedule_target_reset(void *ioc); |
---|
.. | .. |
---|
1665 | 1665 | mptsas_free_fw_event(ioc, fw_event); |
---|
1666 | 1666 | break; |
---|
1667 | 1667 | case MPI_EVENT_SAS_BROADCAST_PRIMITIVE: |
---|
1668 | | - mptsas_broadcast_primative_work(fw_event); |
---|
| 1668 | + mptsas_broadcast_primitive_work(fw_event); |
---|
1669 | 1669 | break; |
---|
1670 | 1670 | case MPI_EVENT_SAS_EXPANDER_STATUS_CHANGE: |
---|
1671 | 1671 | mptsas_send_expander_event(fw_event); |
---|
.. | .. |
---|
1992 | 1992 | .sg_tablesize = MPT_SCSI_SG_DEPTH, |
---|
1993 | 1993 | .max_sectors = 8192, |
---|
1994 | 1994 | .cmd_per_lun = 7, |
---|
1995 | | - .use_clustering = ENABLE_CLUSTERING, |
---|
1996 | 1995 | .shost_attrs = mptscsih_host_attrs, |
---|
1997 | 1996 | .no_write_same = 1, |
---|
1998 | 1997 | }; |
---|
.. | .. |
---|
2929 | 2928 | if (ioc->sas_mgmt.status & MPT_MGMT_STATUS_RF_VALID) { |
---|
2930 | 2929 | u8 *tmp; |
---|
2931 | 2930 | |
---|
2932 | | - smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply; |
---|
2933 | | - if (le16_to_cpu(smprep->ResponseDataLength) != |
---|
2934 | | - sizeof(struct rep_manu_reply)) |
---|
| 2931 | + smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply; |
---|
| 2932 | + if (le16_to_cpu(smprep->ResponseDataLength) != |
---|
| 2933 | + sizeof(struct rep_manu_reply)) |
---|
2935 | 2934 | goto out_free; |
---|
2936 | 2935 | |
---|
2937 | | - manufacture_reply = data_out + sizeof(struct rep_manu_request); |
---|
2938 | | - strncpy(edev->vendor_id, manufacture_reply->vendor_id, |
---|
2939 | | - SAS_EXPANDER_VENDOR_ID_LEN); |
---|
2940 | | - strncpy(edev->product_id, manufacture_reply->product_id, |
---|
2941 | | - SAS_EXPANDER_PRODUCT_ID_LEN); |
---|
2942 | | - strncpy(edev->product_rev, manufacture_reply->product_rev, |
---|
2943 | | - SAS_EXPANDER_PRODUCT_REV_LEN); |
---|
2944 | | - edev->level = manufacture_reply->sas_format; |
---|
2945 | | - if (manufacture_reply->sas_format) { |
---|
2946 | | - strncpy(edev->component_vendor_id, |
---|
2947 | | - manufacture_reply->component_vendor_id, |
---|
| 2936 | + manufacture_reply = data_out + sizeof(struct rep_manu_request); |
---|
| 2937 | + strncpy(edev->vendor_id, manufacture_reply->vendor_id, |
---|
| 2938 | + SAS_EXPANDER_VENDOR_ID_LEN); |
---|
| 2939 | + strncpy(edev->product_id, manufacture_reply->product_id, |
---|
| 2940 | + SAS_EXPANDER_PRODUCT_ID_LEN); |
---|
| 2941 | + strncpy(edev->product_rev, manufacture_reply->product_rev, |
---|
| 2942 | + SAS_EXPANDER_PRODUCT_REV_LEN); |
---|
| 2943 | + edev->level = manufacture_reply->sas_format; |
---|
| 2944 | + if (manufacture_reply->sas_format) { |
---|
| 2945 | + strncpy(edev->component_vendor_id, |
---|
| 2946 | + manufacture_reply->component_vendor_id, |
---|
2948 | 2947 | SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN); |
---|
2949 | | - tmp = (u8 *)&manufacture_reply->component_id; |
---|
2950 | | - edev->component_id = tmp[0] << 8 | tmp[1]; |
---|
2951 | | - edev->component_revision_id = |
---|
2952 | | - manufacture_reply->component_revision_id; |
---|
| 2948 | + tmp = (u8 *)&manufacture_reply->component_id; |
---|
| 2949 | + edev->component_id = tmp[0] << 8 | tmp[1]; |
---|
| 2950 | + edev->component_revision_id = |
---|
| 2951 | + manufacture_reply->component_revision_id; |
---|
2953 | 2952 | } |
---|
2954 | 2953 | } else { |
---|
2955 | 2954 | printk(MYIOC_s_ERR_FMT |
---|
.. | .. |
---|
4327 | 4326 | } |
---|
4328 | 4327 | } |
---|
4329 | 4328 | mpt_findImVolumes(ioc); |
---|
4330 | | - /* fall through */ |
---|
| 4329 | + fallthrough; |
---|
4331 | 4330 | |
---|
4332 | 4331 | case MPTSAS_ADD_DEVICE: |
---|
4333 | 4332 | memset(&sas_device, 0, sizeof(struct mptsas_devinfo)); |
---|
.. | .. |
---|
4826 | 4825 | } |
---|
4827 | 4826 | |
---|
4828 | 4827 | /** |
---|
4829 | | - * mptsas_broadcast_primative_work - Handle broadcast primitives |
---|
| 4828 | + * mptsas_broadcast_primitive_work - Handle broadcast primitives |
---|
4830 | 4829 | * @work: work queue payload containing info describing the event |
---|
4831 | 4830 | * |
---|
4832 | 4831 | * this will be handled in workqueue context. |
---|
4833 | 4832 | */ |
---|
4834 | 4833 | static void |
---|
4835 | | -mptsas_broadcast_primative_work(struct fw_event_work *fw_event) |
---|
| 4834 | +mptsas_broadcast_primitive_work(struct fw_event_work *fw_event) |
---|
4836 | 4835 | { |
---|
4837 | 4836 | MPT_ADAPTER *ioc = fw_event->ioc; |
---|
4838 | 4837 | MPT_FRAME_HDR *mf; |
---|