Lines Matching refs:hr_dev
576 struct hns_roce_dev *hr_dev; member
672 struct hns_roce_dev *hr_dev; member
844 int (*cmq_init)(struct hns_roce_dev *hr_dev);
845 void (*cmq_exit)(struct hns_roce_dev *hr_dev);
846 int (*hw_profile)(struct hns_roce_dev *hr_dev);
847 int (*hw_init)(struct hns_roce_dev *hr_dev);
848 void (*hw_exit)(struct hns_roce_dev *hr_dev);
849 int (*post_mbox)(struct hns_roce_dev *hr_dev,
851 int (*poll_mbox_done)(struct hns_roce_dev *hr_dev);
852 bool (*chk_mbox_avail)(struct hns_roce_dev *hr_dev, bool *is_busy);
853 int (*set_gid)(struct hns_roce_dev *hr_dev, int gid_index,
855 int (*set_mac)(struct hns_roce_dev *hr_dev, u8 phy_port,
857 int (*write_mtpt)(struct hns_roce_dev *hr_dev, void *mb_buf,
859 int (*rereg_write_mtpt)(struct hns_roce_dev *hr_dev,
862 int (*frmr_write_mtpt)(struct hns_roce_dev *hr_dev, void *mb_buf,
865 void (*write_cqc)(struct hns_roce_dev *hr_dev,
868 int (*set_hem)(struct hns_roce_dev *hr_dev,
870 int (*clear_hem)(struct hns_roce_dev *hr_dev,
876 int (*qp_flow_control_init)(struct hns_roce_dev *hr_dev,
878 void (*dereg_mr)(struct hns_roce_dev *hr_dev);
879 int (*init_eq)(struct hns_roce_dev *hr_dev);
880 void (*cleanup_eq)(struct hns_roce_dev *hr_dev);
882 int (*query_cqc)(struct hns_roce_dev *hr_dev, u32 cqn, void *buffer);
883 int (*query_qpc)(struct hns_roce_dev *hr_dev, u32 qpn, void *buffer);
884 int (*query_mpt)(struct hns_roce_dev *hr_dev, u32 key, void *buffer);
1015 *__hns_roce_qp_lookup(struct hns_roce_dev *hr_dev, u32 qpn) in __hns_roce_qp_lookup() argument
1017 return xa_load(&hr_dev->qp_table_xa, qpn); in __hns_roce_qp_lookup()
1088 int hns_roce_cmd_init(struct hns_roce_dev *hr_dev);
1089 void hns_roce_cmd_cleanup(struct hns_roce_dev *hr_dev);
1090 void hns_roce_cmd_event(struct hns_roce_dev *hr_dev, u16 token, u8 status,
1092 int hns_roce_cmd_use_events(struct hns_roce_dev *hr_dev);
1093 void hns_roce_cmd_use_polling(struct hns_roce_dev *hr_dev);
1097 int hns_roce_mtr_find(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1099 int hns_roce_mtr_create(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1103 void hns_roce_mtr_destroy(struct hns_roce_dev *hr_dev,
1105 int hns_roce_mtr_map(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1108 void hns_roce_init_pd_table(struct hns_roce_dev *hr_dev);
1109 void hns_roce_init_mr_table(struct hns_roce_dev *hr_dev);
1110 void hns_roce_init_cq_table(struct hns_roce_dev *hr_dev);
1111 int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev);
1112 void hns_roce_init_srq_table(struct hns_roce_dev *hr_dev);
1113 void hns_roce_init_xrcd_table(struct hns_roce_dev *hr_dev);
1115 void hns_roce_cleanup_eq_table(struct hns_roce_dev *hr_dev);
1116 void hns_roce_cleanup_cq_table(struct hns_roce_dev *hr_dev);
1117 void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev);
1119 void hns_roce_cleanup_bitmap(struct hns_roce_dev *hr_dev);
1150 void hns_roce_buf_free(struct hns_roce_dev *hr_dev, struct hns_roce_buf *buf);
1151 struct hns_roce_buf *hns_roce_buf_alloc(struct hns_roce_dev *hr_dev, u32 size,
1154 int hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs,
1157 int hns_roce_get_umem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs,
1176 void init_flush_work(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1186 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1187 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp,
1200 int hns_roce_alloc_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db,
1202 void hns_roce_free_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db);
1204 void hns_roce_cq_completion(struct hns_roce_dev *hr_dev, u32 cqn);
1205 void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type);
1207 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type);
1208 void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type);
1209 u8 hns_get_gid_index(struct hns_roce_dev *hr_dev, u32 port, int gid_index);
1210 void hns_roce_handle_device_err(struct hns_roce_dev *hr_dev);
1211 int hns_roce_init(struct hns_roce_dev *hr_dev);
1212 void hns_roce_exit(struct hns_roce_dev *hr_dev);