id
stringlengths
4
63
text
stringlengths
153
8.81M
hinic_rq_prepare_wqe(9)
NAME hinic_rq_prepare_wqe - prepare wqe before insert to the queue SYNOPSIS void hinic_rq_prepare_wqe (struct hinic_rq *rq , u16 prod_idx , struct hinic_rq_wqe *rq_wqe , struct hinic_sge *sge ); ARGUMENTS rq recv queue prod_idx pi value rq_wqe the wqe sge sge for use b...
hinic_rq_put_wqe(9)
NAME hinic_rq_put_wqe - release the ci for new wqes SYNOPSIS void hinic_rq_put_wqe (struct hinic_rq *rq , u16 cons_idx , unsigned int wqe_size ); ARGUMENTS rq recv queue cons_idx consumer index of the wqe wqe_size the size of the wqe SEE ALSO Kernel file ./drivers/net/ethernet/huawei...
hinic_rq_read_next_wqe(9)
NAME hinic_rq_read_next_wqe - increment ci and read the wqe in ci position SYNOPSIS struct hinic_rq_wqe * hinic_rq_read_next_wqe (struct hinic_rq *rq , unsigned int wqe_size , struct sk_buff **skb , u16 *cons_idx ); ARGUMENTS rq recv queue wqe_size the size of the wqe skb return sa...
hinic_rq_read_wqe(9)
NAME hinic_rq_read_wqe - read wqe ptr in the current ci and update the ci SYNOPSIS struct hinic_rq_wqe * hinic_rq_read_wqe (struct hinic_rq *rq , unsigned int wqe_size , struct sk_buff **skb , u16 *cons_idx ); ARGUMENTS rq recv queue wqe_size the size of the wqe skb return saved sk...
hinic_rq_update(9)
NAME hinic_rq_update - update pi of the rq SYNOPSIS void hinic_rq_update (struct hinic_rq *rq , u16 prod_idx ); ARGUMENTS rq recv queue prod_idx pi value SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c alloc_sq_skb_arr(9), free_sq_skb_arr(9), alloc_rq_skb_arr(9), free_...
hinic_rq_write_wqe(9)
NAME hinic_rq_write_wqe - write the wqe to the rq SYNOPSIS void hinic_rq_write_wqe (struct hinic_rq *rq , u16 prod_idx , struct hinic_rq_wqe *rq_wqe , struct sk_buff *skb ); ARGUMENTS rq recv queue prod_idx pi of the wqe rq_wqe the wqe to write skb skb to save SEE ALS...
hinic_rxq_clean_stats(9)
NAME hinic_rxq_clean_stats - Clean the statistics of specific queue SYNOPSIS void hinic_rxq_clean_stats (struct hinic_rxq *rxq ); ARGUMENTS rxq Logical Rx Queue SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_rx.c hinic_rxq_get_stats(9), rxq_stats_init(9), rx_alloc_skb(9), rx_unmap_skb(9...
hinic_rxq_get_stats(9)
NAME hinic_rxq_get_stats - get statistics of Rx Queue SYNOPSIS void hinic_rxq_get_stats (struct hinic_rxq *rxq , struct hinic_rxq_stats *stats ); ARGUMENTS rxq Logical Rx Queue stats return updated stats here SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_rx.c hinic_rxq_clean...
hinic_set_arm_bit(9)
NAME hinic_set_arm_bit - set arm bit for enable interrupt again SYNOPSIS int hinic_set_arm_bit (struct hinic_cmdqs *cmdqs , enum hinic_set_arm_qtype q_type , u32 q_id ); ARGUMENTS cmdqs the cmdqs q_type type of queue to set the arm bit for q_id the queue number DESCRIPTION Return 0 ...
hinic_set_pf_action(9)
NAME hinic_set_pf_action - set action on pf channel SYNOPSIS void hinic_set_pf_action (struct hinic_hwif *hwif , enum hinic_pf_action action ); ARGUMENTS hwif the HW interface of a pci function device action action on pf channel SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_...
hinic_set_sge(9)
NAME hinic_set_sge - set dma area in scatter gather entry SYNOPSIS void hinic_set_sge (struct hinic_sge *sge , dma_addr_t addr , int len ); ARGUMENTS sge scatter gather entry addr dma address len length of relevant data in the dma address SEE ALSO Kernel file ./drivers/net/ethe...
hinic_sge_to_dma(9)
NAME hinic_sge_to_dma - get dma address from scatter gather entry SYNOPSIS dma_addr_t hinic_sge_to_dma (struct hinic_sge *sge ); ARGUMENTS sge scatter gather entry DESCRIPTION Return dma address of sg entry SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_common.c hinic_cpu_to_be32(9), hinic_b...
hinic_sq_get_sges(9)
NAME hinic_sq_get_sges - get sges from the wqe SYNOPSIS void hinic_sq_get_sges (struct hinic_sq_wqe *sq_wqe , struct hinic_sge *sges , int nr_sges ); ARGUMENTS sq_wqe wqe to get the sges from its buffer addresses sges returned sges nr_sges number sges to return SEE ALSO Kernel file ...
hinic_sq_get_wqe(9)
NAME hinic_sq_get_wqe - get wqe ptr in the current pi and update the pi SYNOPSIS struct hinic_sq_wqe * hinic_sq_get_wqe (struct hinic_sq *sq , unsigned int wqe_size , u16 *prod_idx ); ARGUMENTS sq sq to get wqe from wqe_size wqe size prod_idx returned pi DESCRIPTION Return wqe pointer ...
hinic_sq_prepare_wqe(9)
NAME hinic_sq_prepare_wqe - prepare wqe before insert to the queue SYNOPSIS void hinic_sq_prepare_wqe (struct hinic_sq *sq , struct hinic_sq_wqe *sq_wqe , struct hinic_sge *sges , int nr_sges ); ARGUMENTS sq send queue sq_wqe wqe to prepare sges sges for use by the wqe for send fo...
hinic_sq_put_wqe(9)
NAME hinic_sq_put_wqe - release the ci for new wqes SYNOPSIS void hinic_sq_put_wqe (struct hinic_sq *sq , unsigned int wqe_size ); ARGUMENTS sq send queue wqe_size the size of the wqe SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c alloc_sq_skb_arr(9), free_sq_skb_arr(9...
hinic_sq_read_wqe(9)
NAME hinic_sq_read_wqe - read wqe ptr in the current ci and update the ci SYNOPSIS struct hinic_sq_wqe * hinic_sq_read_wqe (struct hinic_sq *sq , struct sk_buff **skb , unsigned int wqe_size , u16 *cons_idx ); ARGUMENTS sq send queue skb return skb that was saved wqe_size the size ...
hinic_sq_read_wqebb(9)
NAME hinic_sq_read_wqebb - read wqe ptr in the current ci and update the ci, the wqe only have one wqebb SYNOPSIS struct hinic_sq_wqe * hinic_sq_read_wqebb (struct hinic_sq *sq , struct sk_buff **skb , unsigned int *wqe_size , u16 *cons_idx ); ARGUMENTS sq send queue skb return skb that was s...
hinic_sq_return_wqe(9)
NAME hinic_sq_return_wqe - return the wqe to the sq SYNOPSIS void hinic_sq_return_wqe (struct hinic_sq *sq , unsigned int wqe_size ); ARGUMENTS sq send queue wqe_size the size of the wqe SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c alloc_sq_skb_arr(9), free_sq_skb_ar...
hinic_sq_write_db(9)
NAME hinic_sq_write_db - write doorbell SYNOPSIS void hinic_sq_write_db (struct hinic_sq *sq , u16 prod_idx , unsigned int wqe_size , unsigned int cos ); ARGUMENTS sq send queue prod_idx pi value for the doorbell wqe_size wqe size cos cos of the wqe SEE ALSO Kernel fil...
hinic_sq_write_wqe(9)
NAME hinic_sq_write_wqe - write the wqe to the sq SYNOPSIS void hinic_sq_write_wqe (struct hinic_sq *sq , u16 prod_idx , struct hinic_sq_wqe *sq_wqe , struct sk_buff *skb , unsigned int wqe_size ); ARGUMENTS sq send queue prod_idx pi of the wqe sq_wqe the wqe to write skb ...
hinic_txq_clean_stats(9)
NAME hinic_txq_clean_stats - Clean the statistics of specific queue SYNOPSIS void hinic_txq_clean_stats (struct hinic_txq *txq ); ARGUMENTS txq Logical Tx Queue SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_tx.c hinic_txq_get_stats(9), txq_stats_init(9), tx_map_skb(9), tx_unmap_sk...
hinic_txq_get_stats(9)
NAME hinic_txq_get_stats - get statistics of Tx Queue SYNOPSIS void hinic_txq_get_stats (struct hinic_txq *txq , struct hinic_txq_stats *stats ); ARGUMENTS txq Logical Tx Queue stats return updated stats here SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_tx.c hinic_txq_cl...
hinic_unregister_mgmt_msg_cb(9)
NAME hinic_unregister_mgmt_msg_cb - unregister msg handler for a msg from a module SYNOPSIS void hinic_unregister_mgmt_msg_cb (struct hinic_pf_to_mgmt *pf_to_mgmt , enum hinic_mod_type mod ); ARGUMENTS pf_to_mgmt PF to MGMT channel mod module in the chip that this handler handles its messages SEE AL...
hinic_unregister_pf_mbox_cb(9)
NAME hinic_unregister_pf_mbox_cb - unregister the mbox callback for pf SYNOPSIS void hinic_unregister_pf_mbox_cb (struct hinic_hwdev *hwdev , enum hinic_mod_type mod ); ARGUMENTS hwdev the pointer to hw device mod specific mod that the callback will handle SEE ALSO Kernel file ./drivers/net/eth...
hinic_unregister_vf_mbox_cb(9)
NAME hinic_unregister_vf_mbox_cb - unregister the mbox callback for vf SYNOPSIS void hinic_unregister_vf_mbox_cb (struct hinic_hwdev *hwdev , enum hinic_mod_type mod ); ARGUMENTS hwdev the pointer to hw device mod specific mod that the callback will handle SEE ALSO Kernel file ./drivers/net/eth...
hinic_wq_allocate(9)
NAME hinic_wq_allocate - Allocate the WQ resources from the WQS SYNOPSIS int hinic_wq_allocate (struct hinic_wqs *wqs , struct hinic_wq *wq , u16 wqebb_size , u32 wq_page_size , u16 q_depth , u16 max_wqe_size ); ARGUMENTS wqs WQ set from which to allocate the WQ resources wq WQ to allocate re...
hinic_wq_free(9)
NAME hinic_wq_free - Free the WQ resources to the WQS SYNOPSIS void hinic_wq_free (struct hinic_wqs *wqs , struct hinic_wq *wq ); ARGUMENTS wqs WQ set to free the WQ resources to it wq WQ to free its resources to the WQ set resources SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hin...
hinic_wqs_alloc(9)
NAME hinic_wqs_alloc - allocate Work Queues set SYNOPSIS int hinic_wqs_alloc (struct hinic_wqs *wqs , int max_wqs , struct hinic_hwif *hwif ); ARGUMENTS wqs Work Queue Set max_wqs maximum wqs to allocate hwif HW interface for use for the allocation DESCRIPTION Return 0 - Success, n...
hinic_wqs_cmdq_alloc(9)
NAME hinic_wqs_cmdq_alloc - Allocate wqs for cmdqs SYNOPSIS int hinic_wqs_cmdq_alloc (struct hinic_cmdq_pages *cmdq_pages , struct hinic_wq *wq , struct hinic_hwif *hwif , int cmdq_blocks , u16 wqebb_size , u32 wq_page_size , u16 q_depth , u16 max_wqe_size ); ARGUMENTS cmdq_pages will hold the pages of the cmdq ...
hinic_wqs_cmdq_free(9)
NAME hinic_wqs_cmdq_free - Free wqs from cmdqs SYNOPSIS void hinic_wqs_cmdq_free (struct hinic_cmdq_pages *cmdq_pages , struct hinic_wq *wq , int cmdq_blocks ); ARGUMENTS cmdq_pages hold the pages of the cmdq wq wqs to free cmdq_blocks number of wqs to free SEE ALSO Kernel file ./driver...
hinic_wqs_free(9)
NAME hinic_wqs_free - free Work Queues set SYNOPSIS void hinic_wqs_free (struct hinic_wqs *wqs ); ARGUMENTS wqs Work Queue Set SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c queue_alloc_page(9), wqs_allocate_page(9), wqs_free_page(9), cmdq_allocate_page(9), cmdq_free_page...
hinic_write_wqe(9)
NAME hinic_write_wqe - write the wqe to the wq SYNOPSIS void hinic_write_wqe (struct hinic_wq *wq , struct hinic_hw_wqe *wqe , unsigned int wqe_size ); ARGUMENTS wq wq to write wqe to wqe wqe to write wqe_size wqe size SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/h...
hisi_acc_create_sgl_pool(9)
NAME hisi_acc_create_sgl_pool - Create a hw sgl pool. SYNOPSIS struct hisi_acc_sgl_pool * hisi_acc_create_sgl_pool (struct device *dev , u32 count , u32 sge_nr ); ARGUMENTS dev The device which hw sgl pool belongs to. count Count of hisi_acc_hw_sgl in pool. sge_nr The count of sge i...
hisi_acc_free_sgl_pool(9)
NAME hisi_acc_free_sgl_pool - Free a hw sgl pool. SYNOPSIS void hisi_acc_free_sgl_pool (struct device *dev , struct hisi_acc_sgl_pool *pool ); ARGUMENTS dev The device which hw sgl pool belongs to. pool Pointer of pool. DESCRIPTION This function frees memory of a hw sgl pool. SEE ALSO Kernel ...
hisi_acc_sg_buf_map_to_hw_sgl(9)
NAME hisi_acc_sg_buf_map_to_hw_sgl - Map a scatterlist to a hw sgl. SYNOPSIS struct hisi_acc_hw_sgl * hisi_acc_sg_buf_map_to_hw_sgl (struct device *dev , struct scatterlist *sgl , struct hisi_acc_sgl_pool *pool , u32 index , dma_addr_t *hw_sgl_dma , enum dma_data_direction dir ); ARGUMENTS dev The device whic...
hisi_acc_sg_buf_unmap(9)
NAME hisi_acc_sg_buf_unmap - Unmap allocated hw sgl. SYNOPSIS void hisi_acc_sg_buf_unmap (struct device *dev , struct scatterlist *sgl , struct hisi_acc_hw_sgl *hw_sgl , enum dma_data_direction dir ); ARGUMENTS dev The device which hw sgl belongs to. sgl Related scatterlist. hw_sgl ...
hisi_qm_acc_diff_regs_dump(9)
NAME hisi_qm_acc_diff_regs_dump - Dump registers's value. SYNOPSIS void hisi_qm_acc_diff_regs_dump (struct hisi_qm *qm , struct seq_file *s , struct dfx_diff_registers *dregs , u32 regs_len ); ARGUMENTS qm device qm handle. s Debugfs file handle. dregs diff registers handle. ...
hisi_qm_alg_register(9)
NAME hisi_qm_alg_register - Register alg to crypto. SYNOPSIS int hisi_qm_alg_register (struct hisi_qm *qm , struct hisi_qm_list *qm_list , int guard ); ARGUMENTS qm The qm needs add. qm_list The qm list. guard Guard of qp_num. DESCRIPTION Register algorithm to crypto when the funct...
hisi_qm_alg_unregister(9)
NAME hisi_qm_alg_unregister - Unregister alg from crypto. SYNOPSIS void hisi_qm_alg_unregister (struct hisi_qm *qm , struct hisi_qm_list *qm_list , int guard ); ARGUMENTS qm The qm needs delete. qm_list The qm list. guard Guard of qp_num. DESCRIPTION Unregister algorithm from crypt...
hisi_qm_alloc_qps_node(9)
NAME hisi_qm_alloc_qps_node - Create multiple queue pairs. SYNOPSIS int hisi_qm_alloc_qps_node (struct hisi_qm_list *qm_list , int qp_num , u8 *alg_type , int node , struct hisi_qp **qps ); ARGUMENTS qm_list The list of all available devices. qp_num The number of queue pairs need created. alg...
hisi_qm_create_qp(9)
NAME hisi_qm_create_qp - Create a queue pair from qm. SYNOPSIS struct hisi_qp * hisi_qm_create_qp (struct hisi_qm *qm , u8 alg_type ); ARGUMENTS qm The qm we create a qp from. alg_type Accelerator specific algorithm type in sqc. DESCRIPTION Return created qp, negative error code if failed. SEE A...
hisi_qm_debug_init(9)
NAME hisi_qm_debug_init - Initialize qm related debugfs files. SYNOPSIS void hisi_qm_debug_init (struct hisi_qm *qm ); ARGUMENTS qm The qm for which we want to add debugfs files. DESCRIPTION Create qm related debugfs files. SEE ALSO Kernel file ./drivers/crypto/hisilicon/debugfs.c hisi_qm_regs_dump(9), his...
hisi_qm_debug_regs_clear(9)
NAME hisi_qm_debug_regs_clear - clear qm debug related registers. SYNOPSIS void hisi_qm_debug_regs_clear (struct hisi_qm *qm ); ARGUMENTS qm The qm for which we want to clear its debug registers. SEE ALSO Kernel file ./drivers/crypto/hisilicon/debugfs.c hisi_qm_regs_dump(9), hisi_qm_regs_debugfs_init(9), hi...
hisi_qm_dev_err_detected(9)
NAME hisi_qm_dev_err_detected - Get device and qm error status then log it. SYNOPSIS pci_ers_result_t hisi_qm_dev_err_detected (struct pci_dev *pdev , pci_channel_state_t state ); ARGUMENTS pdev The PCI device which need report error. state The connectivity between CPU and device. DESCRIPTION We...
hisi_qm_dev_err_init(9)
NAME hisi_qm_dev_err_init - Initialize device error configuration. SYNOPSIS void hisi_qm_dev_err_init (struct hisi_qm *qm ); ARGUMENTS qm The qm for which we want to do error initialization. DESCRIPTION Initialize QM and device error related configuration. SEE ALSO Kernel file ./drivers/crypto/hisilicon/...
hisi_qm_dev_err_uninit(9)
NAME hisi_qm_dev_err_uninit - Uninitialize device error configuration. SYNOPSIS void hisi_qm_dev_err_uninit (struct hisi_qm *qm ); ARGUMENTS qm The qm for which we want to do error uninitialization. DESCRIPTION Uninitialize QM and device error related configuration. SEE ALSO Kernel file ./drivers/crypto/...
hisi_qm_dev_shutdown(9)
NAME hisi_qm_dev_shutdown - Shutdown device. SYNOPSIS void hisi_qm_dev_shutdown (struct pci_dev *pdev ); ARGUMENTS pdev The device will be shutdown. DESCRIPTION This function will stop qm when OS shutdown or rebooting. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get...
hisi_qm_dev_slot_reset(9)
NAME hisi_qm_dev_slot_reset - slot reset SYNOPSIS pci_ers_result_t hisi_qm_dev_slot_reset (struct pci_dev *pdev ); ARGUMENTS pdev the PCIe device DESCRIPTION This function offers QM relate PCIe device reset interface. Drivers which use QM can use this function as slot_reset in its struct pci_error_handlers. ...
hisi_qm_free_qps(9)
NAME hisi_qm_free_qps - free multiple queue pairs. SYNOPSIS void hisi_qm_free_qps (struct hisi_qp **qps , int qp_num ); ARGUMENTS qps The queue pairs need to be freed. qp_num The num of queue pairs. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_inf...
hisi_qm_get_dfx_access(9)
NAME hisi_qm_get_dfx_access - Try to get dfx access. SYNOPSIS int hisi_qm_get_dfx_access (struct hisi_qm *qm ); ARGUMENTS qm pointer to accelerator device. DESCRIPTION Try to get dfx access, then user can get message. If device is in suspended, return failure, otherwise bump up the runtime PM usage counter...
hisi_qm_get_hw_info(9)
NAME hisi_qm_get_hw_info - Get device information. SYNOPSIS u32 hisi_qm_get_hw_info (struct hisi_qm *qm , const struct hisi_qm_cap_info *info_table , u32 index , bool is_read ); ARGUMENTS qm The qm which want to get information. info_table Array for storing device information. index In...
hisi_qm_get_vft(9)
NAME hisi_qm_get_vft - Get vft from a qm. SYNOPSIS int hisi_qm_get_vft (struct hisi_qm *qm , u32 *base , u32 *number ); ARGUMENTS qm The qm we want to get its vft. base The base number of queue in vft. number The number of queues in vft. DESCRIPTION We can allocate multiple queue...
hisi_qm_init(9)
NAME hisi_qm_init - Initialize configures about qm. SYNOPSIS int hisi_qm_init (struct hisi_qm *qm ); ARGUMENTS qm The qm needing init. DESCRIPTION This function init qm, then we can call hisi_qm_start to put qm into work. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_q...
hisi_qm_pm_init(9)
NAME hisi_qm_pm_init - Initialize qm runtime PM. SYNOPSIS void hisi_qm_pm_init (struct hisi_qm *qm ); ARGUMENTS qm pointer to accelerator device. DESCRIPTION Function that initialize qm runtime PM. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9), hisi_...
hisi_qm_pm_uninit(9)
NAME hisi_qm_pm_uninit - Uninitialize qm runtime PM. SYNOPSIS void hisi_qm_pm_uninit (struct hisi_qm *qm ); ARGUMENTS qm pointer to accelerator device. DESCRIPTION Function that uninitialize qm runtime PM. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9)...
hisi_qm_put_dfx_access(9)
NAME hisi_qm_put_dfx_access - Put dfx access. SYNOPSIS void hisi_qm_put_dfx_access (struct hisi_qm *qm ); ARGUMENTS qm pointer to accelerator device. DESCRIPTION Put dfx access, drop runtime PM usage counter. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info...
hisi_qm_regs_debugfs_init(9)
NAME hisi_qm_regs_debugfs_init - Allocate memory for registers. SYNOPSIS int hisi_qm_regs_debugfs_init (struct hisi_qm *qm , struct dfx_diff_registers *dregs , u32 reg_len ); ARGUMENTS qm device qm handle. dregs diff registers handle. reg_len diff registers region length. SEE ALSO ...
hisi_qm_regs_debugfs_uninit(9)
NAME hisi_qm_regs_debugfs_uninit - Free memory for registers. SYNOPSIS void hisi_qm_regs_debugfs_uninit (struct hisi_qm *qm , u32 reg_len ); ARGUMENTS qm device qm handle. reg_len diff registers region length. SEE ALSO Kernel file ./drivers/crypto/hisilicon/debugfs.c hisi_qm_regs_dump(9), hisi_q...
hisi_qm_regs_dump(9)
NAME hisi_qm_regs_dump - Dump registers's value. SYNOPSIS void hisi_qm_regs_dump (struct seq_file *s , struct debugfs_regset32 *regset ); ARGUMENTS s debugfs file handle. regset accelerator registers information. DESCRIPTION Dump accelerator registers. SEE ALSO Kernel file ./drivers/crypto/hi...
hisi_qm_release_qp(9)
NAME hisi_qm_release_qp - Release a qp back to its qm. SYNOPSIS void hisi_qm_release_qp (struct hisi_qp *qp ); ARGUMENTS qp The qp we want to release. DESCRIPTION This function releases the resource of a qp. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9),...
hisi_qm_resume(9)
NAME hisi_qm_resume - Runtime resume of given device. SYNOPSIS int hisi_qm_resume (struct device *dev ); ARGUMENTS dev device to resume. DESCRIPTION Function that resume the device. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9), hisi_qm_create_qp(9), ...
hisi_qm_set_algqos_init(9)
NAME hisi_qm_set_algqos_init - Initialize function qos debugfs files. SYNOPSIS void hisi_qm_set_algqos_init (struct hisi_qm *qm ); ARGUMENTS qm The qm for which we want to add debugfs files. DESCRIPTION Create function qos debugfs files, VF ping PF to get function qos. SEE ALSO Kernel file ./drivers/cryp...
hisi_qm_set_vft(9)
NAME hisi_qm_set_vft - Set vft to a qm. SYNOPSIS int hisi_qm_set_vft (struct hisi_qm *qm , u32 fun_num , u32 base , u32 number ); ARGUMENTS qm The qm we want to set its vft. fun_num The function number. base The base number of queue in vft. number The number of queues ...
hisi_qm_sriov_configure(9)
NAME hisi_qm_sriov_configure - configure the number of VFs SYNOPSIS int hisi_qm_sriov_configure (struct pci_dev *pdev , int num_vfs ); ARGUMENTS pdev The PCI device num_vfs The number of VFs need enabled DESCRIPTION Enable SR-IOV according to num_vfs, 0 means disable. SEE ALSO Kernel file ./dri...
hisi_qm_sriov_disable(9)
NAME hisi_qm_sriov_disable - disable virtual functions SYNOPSIS int hisi_qm_sriov_disable (struct pci_dev *pdev , bool is_frozen ); ARGUMENTS pdev the PCI device. is_frozen true when all the VFs are frozen. DESCRIPTION Return failure if there are VFs assigned already or VF is in used. SEE ALSO Kern...
hisi_qm_sriov_enable(9)
NAME hisi_qm_sriov_enable - enable virtual functions SYNOPSIS int hisi_qm_sriov_enable (struct pci_dev *pdev , int max_vfs ); ARGUMENTS pdev the PCIe device max_vfs the number of virtual functions to enable DESCRIPTION Returns the number of enabled VFs. If there are VFs enabled already or max_vfs ...
hisi_qm_start(9)
NAME hisi_qm_start - start qm SYNOPSIS int hisi_qm_start (struct hisi_qm *qm ); ARGUMENTS qm The qm to be started. DESCRIPTION This function starts a qm, then we can allocate qp from this qm. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9), hisi_qm_cre...
hisi_qm_start_qp(9)
NAME hisi_qm_start_qp - Start a qp into running. SYNOPSIS int hisi_qm_start_qp (struct hisi_qp *qp , unsigned long arg ); ARGUMENTS qp The qp we want to start to run. arg Accelerator specific argument. DESCRIPTION After this function, qp can receive request from user. Return 0 if successful,...
hisi_qm_stop(9)
NAME hisi_qm_stop - Stop a qm. SYNOPSIS int hisi_qm_stop (struct hisi_qm *qm , enum qm_stop_reason r ); ARGUMENTS qm The qm which will be stopped. r The reason to stop qm. DESCRIPTION This function stops qm and its qps, then qm can not accept request. Related resources are not released at...
hisi_qm_stop_qp(9)
NAME hisi_qm_stop_qp - Stop a qp in qm. SYNOPSIS void hisi_qm_stop_qp (struct hisi_qp *qp ); ARGUMENTS qp The qp we want to stop. DESCRIPTION This function is reverse of hisi_qm_start_qp. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9), hisi_qm_crea...
hisi_qm_suspend(9)
NAME hisi_qm_suspend - Runtime suspend of given device. SYNOPSIS int hisi_qm_suspend (struct device *dev ); ARGUMENTS dev device to suspend. DESCRIPTION Function that suspend the device. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9), hisi_qm_create_qp...
hisi_qm_uninit(9)
NAME hisi_qm_uninit - Uninitialize qm. SYNOPSIS void hisi_qm_uninit (struct hisi_qm *qm ); ARGUMENTS qm The qm needed uninit. DESCRIPTION This function uninits qm related device resources. SEE ALSO Kernel file ./drivers/crypto/hisilicon/qm.c struct qm_hw_err(9), hisi_qm_get_hw_info(9), hisi_qm_create...
hisi_qm_wait_task_finish(9)
NAME hisi_qm_wait_task_finish - Wait until the task is finished when removing the driver. SYNOPSIS void hisi_qm_wait_task_finish (struct hisi_qm *qm , struct hisi_qm_list *qm_list ); ARGUMENTS qm The qm needed to wait for the task to finish. qm_list The list of all available devices. SEE ALSO Ke...
hisi_qp_send(9)
NAME hisi_qp_send - Queue up a task in the hardware queue. SYNOPSIS int hisi_qp_send (struct hisi_qp *qp , const void *msg ); ARGUMENTS qp The qp in which to put the message. msg The message. DESCRIPTION This function will return -EBUSY if qp is currently full, and -EAGAIN if qp related qm i...
hist_entry__get_data_type(9)
NAME hist_entry__get_data_type - find data type for given hist entry SYNOPSIS struct annotated_data_type * hist_entry__get_data_type (struct hist_entry *he ); ARGUMENTS he hist entry DESCRIPTION This function first annotates the instruction at he->ip and extracts register and offset info from it. Then it s...
hkdf_expand(9)
NAME hkdf_expand - HKDF-Expand (RFC 5869 section 2.3) SYNOPSIS int hkdf_expand (struct crypto_shash *hmac_tfm , const u8 *info , unsigned int infolen , u8 *okm , unsigned int okmlen ); ARGUMENTS hmac_tfm hash context keyed with pseudorandom key info application-specific information infolen ...
hkdf_expand_label(9)
NAME hkdf_expand_label - HKDF-Expand-Label (RFC 8846 section 7.1) SYNOPSIS int hkdf_expand_label (struct crypto_shash *hmac_tfm , const u8 *label , unsigned int labellen , const u8 *context , unsigned int contextlen , u8 *okm , unsigned int okmlen ); ARGUMENTS hmac_tfm hash context keyed with pseudorandom key ...
hkdf_extract(9)
NAME hkdf_extract - HKDF-Extract (RFC 5869 section 2.2) SYNOPSIS int hkdf_extract (struct crypto_shash *hmac_tfm , const u8 *ikm , unsigned int ikmlen , const u8 *salt , unsigned int saltlen , u8 *prk ); ARGUMENTS hmac_tfm an HMAC transform using the hash function desired for HKDF. The caller is responsible for s...
hl_ack_pb(9)
NAME hl_ack_pb - ack pb in HW according to given configuration SYNOPSIS void hl_ack_pb (struct hl_device *hdev , u32 num_dcores , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size ); ARGUMENTS hdev pointer to hl_device structure num_dcores numbe...
hl_ack_pb_security_violations(9)
NAME hl_ack_pb_security_violations - Ack security violation SYNOPSIS void hl_ack_pb_security_violations (struct hl_device *hdev , const u32 pb_blocks[] , u32 block_offset , int array_size ); ARGUMENTS hdev pointer to hl_device structure pb_blocks blocks array block_offset a...
hl_ack_pb_single_dcore(9)
NAME hl_ack_pb_single_dcore - ack pb for single docre in HW according to given configuration SYNOPSIS void hl_ack_pb_single_dcore (struct hl_device *hdev , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size ); ARGUMENTS hdev pointer to hl_device structure...
hl_ack_pb_with_mask(9)
NAME hl_ack_pb_with_mask - ack pb with mask in HW according to given configuration SYNOPSIS void hl_ack_pb_with_mask (struct hl_device *hdev , u32 num_dcores , u32 dcore_offset , u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32 blocks_array_size , u64 mask ); ARGUMENTS hdev pointer to hl_d...
hl_config_glbl_sec(9)
NAME hl_config_glbl_sec - set pb in HW according to given pb array SYNOPSIS void hl_config_glbl_sec (struct hl_device *hdev , const u32 pb_blocks[] , struct hl_block_glbl_sec sgs_array[] , u32 block_offset , int array_size ); ARGUMENTS hdev pointer to hl_device structure pb_blocks blocks array ...
hl_cq_fini(9)
NAME hl_cq_fini - destroy completion queue SYNOPSIS void hl_cq_fini (struct hl_device *hdev , struct hl_cq *q ); ARGUMENTS hdev pointer to device structure q pointer to cq structure DESCRIPTION Free the completion queue memory SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c ...
hl_cq_inc_ptr(9)
NAME hl_cq_inc_ptr - increment ci or pi of cq SYNOPSIS u32 hl_cq_inc_ptr (u32 ptr ); ARGUMENTS ptr the current ci or pi value of the completion queue DESCRIPTION Increment ptr by 1. If it reaches the number of completion queue entries, set it to 0 SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq...
hl_cq_init(9)
NAME hl_cq_init - main initialization function for an cq object SYNOPSIS int hl_cq_init (struct hl_device *hdev , struct hl_cq *q , u32 hw_queue_id ); ARGUMENTS hdev pointer to device structure q pointer to cq structure hw_queue_id The H/W queue ID this completion queue belongs to HL_...
hl_debugfs_set_state_dump(9)
NAME hl_debugfs_set_state_dump - register state dump making it accessible via debugfs SYNOPSIS void hl_debugfs_set_state_dump (struct hl_device *hdev , char *data , unsigned long length ); ARGUMENTS hdev pointer to the device structure data the actual dump data length the length of ...
hl_eq_fini(9)
NAME hl_eq_fini - destroy event queue SYNOPSIS void hl_eq_fini (struct hl_device *hdev , struct hl_eq *q ); ARGUMENTS hdev pointer to device structure q pointer to eq structure DESCRIPTION Free the event queue memory SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c struct hl...
hl_eq_inc_ptr(9)
NAME hl_eq_inc_ptr - increment ci of eq SYNOPSIS u32 hl_eq_inc_ptr (u32 ptr ); ARGUMENTS ptr the current ci value of the event queue DESCRIPTION Increment ptr by 1. If it reaches the number of event queue entries, set it to 0 SEE ALSO Kernel file ./drivers/accel/habanalabs/common/irq.c struct hl_eqe_work...
hl_eq_init(9)
NAME hl_eq_init - main initialization function for an event queue object SYNOPSIS int hl_eq_init (struct hl_device *hdev , struct hl_eq *q ); ARGUMENTS hdev pointer to device structure q pointer to eq structure DESCRIPTION Allocate dma-able memory for the event queue and initialize fields Re...
hl_format_as_binary(9)
NAME hl_format_as_binary - helper function, format an integer as binary using supplied scratch buffer SYNOPSIS char * hl_format_as_binary (char *buf , size_t buf_len , u32 n ); ARGUMENTS buf the buffer to use buf_len buffer capacity n number to format DESCRIPTION Returns pointer...
hl_fw_boot_fit_update_state(9)
NAME hl_fw_boot_fit_update_state - update internal data structures after boot-fit is loaded SYNOPSIS void hl_fw_boot_fit_update_state (struct hl_device *hdev , u32 cpu_boot_dev_sts0_reg , u32 cpu_boot_dev_sts1_reg ); ARGUMENTS hdev pointer to the habanalabs device structure cpu_boot_dev_sts0_reg ...
hl_fw_compat_crc32(9)
NAME hl_fw_compat_crc32 - CRC compatible with FW SYNOPSIS u32 hl_fw_compat_crc32 (u8 *data , size_t size ); ARGUMENTS data pointer to the data size size of the data DESCRIPTION return the CRC32 result NOTE kernel's CRC32 differs from standard CRC32 calculation. in order to be aligned we need ...
hl_fw_copy_fw_to_device(9)
NAME hl_fw_copy_fw_to_device - copy FW to device SYNOPSIS int hl_fw_copy_fw_to_device (struct hl_device *hdev , const struct firmware *fw , void __iomem *dst , u32 src_offset , u32 size ); ARGUMENTS hdev pointer to hl_device structure. fw fw descriptor dst IO memory mapped addr...
hl_fw_copy_msg_to_device(9)
NAME hl_fw_copy_msg_to_device - copy message to device SYNOPSIS int hl_fw_copy_msg_to_device (struct hl_device *hdev , struct lkd_msg_comms *msg , void __iomem *dst , u32 src_offset , u32 size ); ARGUMENTS hdev pointer to hl_device structure. msg message dst IO memory mapped add...
hl_fw_dynamic_copy_image(9)
NAME hl_fw_dynamic_copy_image - copy image to memory allocated by the FW SYNOPSIS int hl_fw_dynamic_copy_image (struct hl_device *hdev , const struct firmware *fw , struct fw_load_mgr *fw_loader ); ARGUMENTS hdev pointer to the habanalabs device structure fw fw descriptor fw_loader m...
hl_fw_dynamic_copy_msg(9)
NAME hl_fw_dynamic_copy_msg - copy msg to memory allocated by the FW SYNOPSIS int hl_fw_dynamic_copy_msg (struct hl_device *hdev , struct lkd_msg_comms *msg , struct fw_load_mgr *fw_loader ); ARGUMENTS hdev pointer to the habanalabs device structure msg message fw_loader managing stru...
hl_fw_dynamic_extract_fw_response(9)
NAME hl_fw_dynamic_extract_fw_response - update the FW response SYNOPSIS int hl_fw_dynamic_extract_fw_response (struct hl_device *hdev , struct fw_load_mgr *fw_loader , struct fw_response *response , u32 status ); ARGUMENTS hdev pointer to the habanalabs device structure fw_loader managing structure ...
hl_fw_dynamic_init_cpu(9)
NAME hl_fw_dynamic_init_cpu - initialize the device CPU using dynamic protocol SYNOPSIS int hl_fw_dynamic_init_cpu (struct hl_device *hdev , struct fw_load_mgr *fw_loader ); ARGUMENTS hdev pointer to the habanalabs device structure fw_loader managing structure for loading device's FW DESCRIPTION ret...