mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
crypto: hisilicon/qm - set function with static
These functions 'hisi_qm_create_qp' and 'hisi_qm_set_vft' are not used outside qm.c, so they are marked as static. Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
0b0002315a
commit
fb06eb9727
@ -2835,7 +2835,7 @@ static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type)
|
|||||||
* return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating
|
* return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating
|
||||||
* qp memory fails.
|
* qp memory fails.
|
||||||
*/
|
*/
|
||||||
struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
|
static struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
|
||||||
{
|
{
|
||||||
struct hisi_qp *qp;
|
struct hisi_qp *qp;
|
||||||
int ret;
|
int ret;
|
||||||
@ -2853,7 +2853,6 @@ struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
|
|||||||
|
|
||||||
return qp;
|
return qp;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(hisi_qm_create_qp);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hisi_qm_release_qp() - Release a qp back to its qm.
|
* hisi_qm_release_qp() - Release a qp back to its qm.
|
||||||
@ -3738,7 +3737,7 @@ EXPORT_SYMBOL_GPL(hisi_qm_uninit);
|
|||||||
*
|
*
|
||||||
* qm hw v1 does not support this interface.
|
* qm hw v1 does not support this interface.
|
||||||
*/
|
*/
|
||||||
int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number)
|
static int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number)
|
||||||
{
|
{
|
||||||
if (!base || !number)
|
if (!base || !number)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@ -3750,7 +3749,6 @@ int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number)
|
|||||||
|
|
||||||
return qm->ops->get_vft(qm, base, number);
|
return qm->ops->get_vft(qm, base, number);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(hisi_qm_get_vft);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hisi_qm_set_vft() - Set vft to a qm.
|
* hisi_qm_set_vft() - Set vft to a qm.
|
||||||
|
@ -445,13 +445,11 @@ int hisi_qm_init(struct hisi_qm *qm);
|
|||||||
void hisi_qm_uninit(struct hisi_qm *qm);
|
void hisi_qm_uninit(struct hisi_qm *qm);
|
||||||
int hisi_qm_start(struct hisi_qm *qm);
|
int hisi_qm_start(struct hisi_qm *qm);
|
||||||
int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r);
|
int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r);
|
||||||
struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type);
|
|
||||||
int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg);
|
int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg);
|
||||||
int hisi_qm_stop_qp(struct hisi_qp *qp);
|
int hisi_qm_stop_qp(struct hisi_qp *qp);
|
||||||
void hisi_qm_release_qp(struct hisi_qp *qp);
|
void hisi_qm_release_qp(struct hisi_qp *qp);
|
||||||
int hisi_qp_send(struct hisi_qp *qp, const void *msg);
|
int hisi_qp_send(struct hisi_qp *qp, const void *msg);
|
||||||
int hisi_qm_get_free_qp_num(struct hisi_qm *qm);
|
int hisi_qm_get_free_qp_num(struct hisi_qm *qm);
|
||||||
int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number);
|
|
||||||
void hisi_qm_debug_init(struct hisi_qm *qm);
|
void hisi_qm_debug_init(struct hisi_qm *qm);
|
||||||
void hisi_qm_debug_regs_clear(struct hisi_qm *qm);
|
void hisi_qm_debug_regs_clear(struct hisi_qm *qm);
|
||||||
int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs);
|
int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs);
|
||||||
|
Loading…
Reference in New Issue
Block a user