These functions 'hisi_qm_create_qp' and 'hisi_qm_set_vft' are not used outside qm.c, so they are marked as static.
Unified · Split
| @@ -2835,7 +2835,7 @@ static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type) · 2834 unmodified lines | |||
| 2835 | * return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating | 2835 | * return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating |
| 2836 | * qp memory fails. | 2836 | * qp memory fails. |
| 2837 | */ | 2837 | */ |
| 2838 | struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) | 2838 | static struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) |
| 2839 | { | 2839 | { |
| 2840 | struct hisi_qp *qp; | 2840 | struct hisi_qp *qp; |
| 2841 | int ret; | 2841 | int ret; |
| @@ -2853,7 +2853,6 @@ struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) · 11 unmodified lines | |||
| 2853 | 2853 | ||
| 2854 | return qp; | 2854 | return qp; |
| 2855 | } | 2855 | } |
| 2856 | EXPORT_SYMBOL_GPL(hisi_qm_create_qp); | ||
| 2857 | 2856 | ||
| 2858 | /** | 2857 | /** |
| 2859 | * hisi_qm_release_qp() - Release a qp back to its qm. | 2858 | * hisi_qm_release_qp() - Release a qp back to its qm. |
| @@ -3738,7 +3737,7 @@ EXPORT_SYMBOL_GPL(hisi_qm_uninit); · 878 unmodified lines | |||
| 3738 | * | 3737 | * |
| 3739 | * qm hw v1 does not support this interface. | 3738 | * qm hw v1 does not support this interface. |
| 3740 | */ | 3739 | */ |
| 3741 | int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) | 3740 | static int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) |
| 3742 | { | 3741 | { |
| 3743 | if (!base || !number) | 3742 | if (!base || !number) |
| 3744 | return -EINVAL; | 3743 | return -EINVAL; |
| @@ -3750,7 +3749,6 @@ int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) · 5 unmodified lines | |||
| 3750 | 3749 | ||
| 3751 | return qm->ops->get_vft(qm, base, number); | 3750 | return qm->ops->get_vft(qm, base, number); |
| 3752 | } | 3751 | } |
| 3753 | EXPORT_SYMBOL_GPL(hisi_qm_get_vft); | ||
| 3754 | 3752 | ||
| 3755 | /** | 3753 | /** |
| 3756 | * hisi_qm_set_vft() - Set vft to a qm. | 3754 | * hisi_qm_set_vft() - Set vft to a qm. |
| @@ -445,13 +445,11 @@ int hisi_qm_init(struct hisi_qm *qm); · 444 unmodified lines | |||
| 445 | void hisi_qm_uninit(struct hisi_qm *qm); | 445 | void hisi_qm_uninit(struct hisi_qm *qm); |
| 446 | int hisi_qm_start(struct hisi_qm *qm); | 446 | int hisi_qm_start(struct hisi_qm *qm); |
| 447 | int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r); | 447 | int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r); |
| 448 | struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type); | ||
| 449 | int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg); | 448 | int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg); |
| 450 | int hisi_qm_stop_qp(struct hisi_qp *qp); | 449 | int hisi_qm_stop_qp(struct hisi_qp *qp); |
| 451 | void hisi_qm_release_qp(struct hisi_qp *qp); | 450 | void hisi_qm_release_qp(struct hisi_qp *qp); |
| 452 | int hisi_qp_send(struct hisi_qp *qp, const void *msg); | 451 | int hisi_qp_send(struct hisi_qp *qp, const void *msg); |
| 453 | int hisi_qm_get_free_qp_num(struct hisi_qm *qm); | 452 | int hisi_qm_get_free_qp_num(struct hisi_qm *qm); |
| 454 | int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number); | ||
| 455 | void hisi_qm_debug_init(struct hisi_qm *qm); | 453 | void hisi_qm_debug_init(struct hisi_qm *qm); |
| 456 | void hisi_qm_debug_regs_clear(struct hisi_qm *qm); | 454 | void hisi_qm_debug_regs_clear(struct hisi_qm *qm); |
| 457 | int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs); | 455 | int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs); |