Skip to content

Commit a292f25

Browse files
Weili Qianherbertx
authored andcommitted
crypto: hisilicon/qm - remove some unused defines
1. Remove some macros define since it is not used. 2. Remove enum QM_HW_UNKNOWN since it is not used. 3. Remove unused member 'is_frozen' in 'hisi_qm' structure. Signed-off-by: Weili Qian <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent c43cc88 commit a292f25

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

drivers/crypto/hisilicon/qm.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@
9595
#define QM_VFT_CFG_RDY 0x10006c
9696
#define QM_VFT_CFG_OP_WR 0x100058
9797
#define QM_VFT_CFG_TYPE 0x10005c
98-
#define QM_SQC_VFT 0x0
99-
#define QM_CQC_VFT 0x1
10098
#define QM_VFT_CFG 0x100060
10199
#define QM_VFT_CFG_OP_ENABLE 0x100054
102100
#define QM_PM_CTRL 0x100148
@@ -164,7 +162,6 @@
164162

165163
/* interfunction communication */
166164
#define QM_IFC_READY_STATUS 0x100128
167-
#define QM_IFC_C_STS_M 0x10012C
168165
#define QM_IFC_INT_SET_P 0x100130
169166
#define QM_IFC_INT_CFG 0x100134
170167
#define QM_IFC_INT_SOURCE_P 0x100138
@@ -198,7 +195,6 @@
198195

199196
#define PCI_BAR_2 2
200197
#define PCI_BAR_4 4
201-
#define QM_SQE_DATA_ALIGN_MASK GENMASK(6, 0)
202198
#define QMC_ALIGN(sz) ALIGN(sz, 32)
203199

204200
#define QM_DBG_READ_LEN 256
@@ -212,8 +208,6 @@
212208
#define QM_DRIVER_REMOVING 0
213209
#define QM_RST_SCHED 1
214210
#define QM_QOS_PARAM_NUM 2
215-
#define QM_QOS_VAL_NUM 1
216-
#define QM_QOS_BDF_PARAM_NUM 4
217211
#define QM_QOS_MAX_VAL 1000
218212
#define QM_QOS_RATE 100
219213
#define QM_QOS_EXPAND_RATE 1000
@@ -225,18 +219,14 @@
225219
#define QM_SHAPER_FACTOR_CBS_B_SHIFT 15
226220
#define QM_SHAPER_FACTOR_CBS_S_SHIFT 19
227221
#define QM_SHAPER_CBS_B 1
228-
#define QM_SHAPER_CBS_S 16
229222
#define QM_SHAPER_VFT_OFFSET 6
230-
#define WAIT_FOR_QOS_VF 100
231223
#define QM_QOS_MIN_ERROR_RATE 5
232-
#define QM_QOS_TYPICAL_NUM 8
233224
#define QM_SHAPER_MIN_CBS_S 8
234225
#define QM_QOS_TICK 0x300U
235226
#define QM_QOS_DIVISOR_CLK 0x1f40U
236227
#define QM_QOS_MAX_CIR_B 200
237228
#define QM_QOS_MIN_CIR_B 100
238229
#define QM_QOS_MAX_CIR_U 6
239-
#define QM_QOS_MAX_CIR_S 11
240230
#define QM_AUTOSUSPEND_DELAY 3000
241231

242232
#define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \

include/linux/hisi_acc_qm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ enum qp_state {
122122
};
123123

124124
enum qm_hw_ver {
125-
QM_HW_UNKNOWN = -1,
126125
QM_HW_V1 = 0x20,
127126
QM_HW_V2 = 0x21,
128127
QM_HW_V3 = 0x30,
@@ -332,7 +331,6 @@ struct hisi_qm {
332331

333332
const char *algs;
334333
bool use_sva;
335-
bool is_frozen;
336334

337335
resource_size_t phys_base;
338336
resource_size_t db_phys_base;

0 commit comments

Comments
 (0)