hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/scsi/qla4xxx/ql4_mbx.c
....@@ -1,8 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * QLogic iSCSI HBA Driver
34 * Copyright (c) 2003-2013 QLogic Corporation
4
- *
5
- * See LICENSE.qla4xxx for copyright and licensing details.
65 */
76
87 #include <linux/ctype.h>
....@@ -47,7 +46,7 @@
4746 /**
4847 * qla4xxx_is_intr_poll_mode – Are we allowed to poll for interrupts?
4948 * @ha: Pointer to host adapter structure.
50
- * @ret: 1=polling mode, 0=non-polling mode
49
+ * returns: 1=polling mode, 0=non-polling mode
5150 **/
5251 static int qla4xxx_is_intr_poll_mode(struct scsi_qla_host *ha)
5352 {
....@@ -625,9 +624,9 @@
625624 uint32_t mbox_sts[MBOX_REG_COUNT];
626625 int status = QLA_ERROR;
627626
628
- init_fw_cb = dma_zalloc_coherent(&ha->pdev->dev,
629
- sizeof(struct addr_ctrl_blk),
630
- &init_fw_cb_dma, GFP_KERNEL);
627
+ init_fw_cb = dma_alloc_coherent(&ha->pdev->dev,
628
+ sizeof(struct addr_ctrl_blk),
629
+ &init_fw_cb_dma, GFP_KERNEL);
631630 if (init_fw_cb == NULL) {
632631 DEBUG2(printk("scsi%ld: %s: Unable to alloc init_cb\n",
633632 ha->host_no, __func__));
....@@ -706,9 +705,9 @@
706705 uint32_t mbox_cmd[MBOX_REG_COUNT];
707706 uint32_t mbox_sts[MBOX_REG_COUNT];
708707
709
- init_fw_cb = dma_zalloc_coherent(&ha->pdev->dev,
710
- sizeof(struct addr_ctrl_blk),
711
- &init_fw_cb_dma, GFP_KERNEL);
708
+ init_fw_cb = dma_alloc_coherent(&ha->pdev->dev,
709
+ sizeof(struct addr_ctrl_blk),
710
+ &init_fw_cb_dma, GFP_KERNEL);
712711 if (init_fw_cb == NULL) {
713712 printk("scsi%ld: %s: Unable to alloc init_cb\n", ha->host_no,
714713 __func__);
....@@ -810,7 +809,7 @@
810809 return QLA_SUCCESS;
811810 }
812811
813
-/**
812
+/*
814813 * qla4xxx_get_fwddb_entry - retrieves firmware ddb entry
815814 * @ha: Pointer to host adapter structure.
816815 * @fw_ddb_index: Firmware's device database index
....@@ -1259,8 +1258,7 @@
12591258 /**
12601259 * qla4xxx_reset_target - issues target Reset
12611260 * @ha: Pointer to host adapter structure.
1262
- * @db_entry: Pointer to device database entry
1263
- * @un_entry: Pointer to lun entry structure
1261
+ * @ddb_entry: Pointer to device database entry
12641262 *
12651263 * This routine performs a TARGET RESET on the specified target.
12661264 * The caller must ensure that the ddb_entry pointers
....@@ -1337,9 +1335,9 @@
13371335 uint32_t mbox_sts[MBOX_REG_COUNT];
13381336 int status = QLA_ERROR;
13391337
1340
- about_fw = dma_zalloc_coherent(&ha->pdev->dev,
1341
- sizeof(struct about_fw_info),
1342
- &about_fw_dma, GFP_KERNEL);
1338
+ about_fw = dma_alloc_coherent(&ha->pdev->dev,
1339
+ sizeof(struct about_fw_info),
1340
+ &about_fw_dma, GFP_KERNEL);
13431341 if (!about_fw) {
13441342 DEBUG2(ql4_printk(KERN_ERR, ha, "%s: Unable to alloc memory "
13451343 "for about_fw\n", __func__));