mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 01:20:01 -04:00
qed: Remove unused qed_memset_*ctx functions
qed_memset_session_ctx() and qed_memset_task_ctx() were added in 2017
as part of
commit da09091732 ("qed*: Utilize FW 8.33.1.0")
but have not been used.
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250414005247.341243-2-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
f99564688f
commit
e056d3d703
@@ -2694,30 +2694,6 @@ void qed_calc_session_ctx_validation(void *p_ctx_mem,
|
||||
void qed_calc_task_ctx_validation(void *p_ctx_mem,
|
||||
u16 ctx_size, u8 ctx_type, u32 tid);
|
||||
|
||||
/**
|
||||
* qed_memset_session_ctx(): Memset session context to 0 while
|
||||
* preserving validation bytes.
|
||||
*
|
||||
* @p_ctx_mem: Pointer to context memory.
|
||||
* @ctx_size: Size to initialzie.
|
||||
* @ctx_type: Context type.
|
||||
*
|
||||
* Return: Void.
|
||||
*/
|
||||
void qed_memset_session_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type);
|
||||
|
||||
/**
|
||||
* qed_memset_task_ctx(): Memset task context to 0 while preserving
|
||||
* validation bytes.
|
||||
*
|
||||
* @p_ctx_mem: Pointer to context memory.
|
||||
* @ctx_size: size to initialzie.
|
||||
* @ctx_type: context type.
|
||||
*
|
||||
* Return: Void.
|
||||
*/
|
||||
void qed_memset_task_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type);
|
||||
|
||||
#define NUM_STORMS 6
|
||||
|
||||
/**
|
||||
|
||||
@@ -1666,44 +1666,6 @@ void qed_calc_task_ctx_validation(void *p_ctx_mem,
|
||||
*region1_val_ptr = qed_calc_cdu_validation_byte(ctx_type, 1, tid);
|
||||
}
|
||||
|
||||
/* Memset session context to 0 while preserving validation bytes */
|
||||
void qed_memset_session_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type)
|
||||
{
|
||||
u8 *x_val_ptr, *t_val_ptr, *u_val_ptr, *p_ctx;
|
||||
u8 x_val, t_val, u_val;
|
||||
|
||||
p_ctx = (u8 * const)p_ctx_mem;
|
||||
x_val_ptr = &p_ctx[con_region_offsets[0][ctx_type]];
|
||||
t_val_ptr = &p_ctx[con_region_offsets[1][ctx_type]];
|
||||
u_val_ptr = &p_ctx[con_region_offsets[2][ctx_type]];
|
||||
|
||||
x_val = *x_val_ptr;
|
||||
t_val = *t_val_ptr;
|
||||
u_val = *u_val_ptr;
|
||||
|
||||
memset(p_ctx, 0, ctx_size);
|
||||
|
||||
*x_val_ptr = x_val;
|
||||
*t_val_ptr = t_val;
|
||||
*u_val_ptr = u_val;
|
||||
}
|
||||
|
||||
/* Memset task context to 0 while preserving validation bytes */
|
||||
void qed_memset_task_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type)
|
||||
{
|
||||
u8 *p_ctx, *region1_val_ptr;
|
||||
u8 region1_val;
|
||||
|
||||
p_ctx = (u8 * const)p_ctx_mem;
|
||||
region1_val_ptr = &p_ctx[task_region_offsets[0][ctx_type]];
|
||||
|
||||
region1_val = *region1_val_ptr;
|
||||
|
||||
memset(p_ctx, 0, ctx_size);
|
||||
|
||||
*region1_val_ptr = region1_val;
|
||||
}
|
||||
|
||||
/* Enable and configure context validation */
|
||||
void qed_enable_context_validation(struct qed_hwfn *p_hwfn,
|
||||
struct qed_ptt *p_ptt)
|
||||
|
||||
Reference in New Issue
Block a user