Lines Matching refs:hr_dev

577 	struct hns_roce_dev *hr_dev;  member
673 struct hns_roce_dev *hr_dev; member
870 int (*cmq_init)(struct hns_roce_dev *hr_dev);
871 void (*cmq_exit)(struct hns_roce_dev *hr_dev);
872 int (*hw_profile)(struct hns_roce_dev *hr_dev);
873 int (*hw_init)(struct hns_roce_dev *hr_dev);
874 void (*hw_exit)(struct hns_roce_dev *hr_dev);
875 int (*post_mbox)(struct hns_roce_dev *hr_dev,
877 int (*poll_mbox_done)(struct hns_roce_dev *hr_dev);
878 bool (*chk_mbox_avail)(struct hns_roce_dev *hr_dev, bool *is_busy);
879 int (*set_gid)(struct hns_roce_dev *hr_dev, int gid_index,
881 int (*set_mac)(struct hns_roce_dev *hr_dev, u8 phy_port,
883 int (*write_mtpt)(struct hns_roce_dev *hr_dev, void *mb_buf,
885 int (*rereg_write_mtpt)(struct hns_roce_dev *hr_dev,
888 int (*frmr_write_mtpt)(struct hns_roce_dev *hr_dev, void *mb_buf,
891 void (*write_cqc)(struct hns_roce_dev *hr_dev,
894 int (*set_hem)(struct hns_roce_dev *hr_dev,
896 int (*clear_hem)(struct hns_roce_dev *hr_dev,
902 int (*qp_flow_control_init)(struct hns_roce_dev *hr_dev,
904 void (*dereg_mr)(struct hns_roce_dev *hr_dev);
905 int (*init_eq)(struct hns_roce_dev *hr_dev);
906 void (*cleanup_eq)(struct hns_roce_dev *hr_dev);
908 int (*query_cqc)(struct hns_roce_dev *hr_dev, u32 cqn, void *buffer);
909 int (*query_qpc)(struct hns_roce_dev *hr_dev, u32 qpn, void *buffer);
910 int (*query_mpt)(struct hns_roce_dev *hr_dev, u32 key, void *buffer);
911 int (*query_hw_counter)(struct hns_roce_dev *hr_dev,
1043 *__hns_roce_qp_lookup(struct hns_roce_dev *hr_dev, u32 qpn) in __hns_roce_qp_lookup() argument
1045 return xa_load(&hr_dev->qp_table_xa, qpn); in __hns_roce_qp_lookup()
1116 int hns_roce_cmd_init(struct hns_roce_dev *hr_dev);
1117 void hns_roce_cmd_cleanup(struct hns_roce_dev *hr_dev);
1118 void hns_roce_cmd_event(struct hns_roce_dev *hr_dev, u16 token, u8 status,
1120 int hns_roce_cmd_use_events(struct hns_roce_dev *hr_dev);
1121 void hns_roce_cmd_use_polling(struct hns_roce_dev *hr_dev);
1125 int hns_roce_mtr_find(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1127 int hns_roce_mtr_create(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1131 void hns_roce_mtr_destroy(struct hns_roce_dev *hr_dev,
1133 int hns_roce_mtr_map(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
1136 void hns_roce_init_pd_table(struct hns_roce_dev *hr_dev);
1137 void hns_roce_init_mr_table(struct hns_roce_dev *hr_dev);
1138 void hns_roce_init_cq_table(struct hns_roce_dev *hr_dev);
1139 int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev);
1140 void hns_roce_init_srq_table(struct hns_roce_dev *hr_dev);
1141 void hns_roce_init_xrcd_table(struct hns_roce_dev *hr_dev);
1143 void hns_roce_cleanup_cq_table(struct hns_roce_dev *hr_dev);
1144 void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev);
1146 void hns_roce_cleanup_bitmap(struct hns_roce_dev *hr_dev);
1177 void hns_roce_buf_free(struct hns_roce_dev *hr_dev, struct hns_roce_buf *buf);
1178 struct hns_roce_buf *hns_roce_buf_alloc(struct hns_roce_dev *hr_dev, u32 size,
1181 int hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs,
1184 int hns_roce_get_umem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs,
1200 void init_flush_work(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1210 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1211 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp,
1224 int hns_roce_alloc_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db,
1226 void hns_roce_free_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db);
1228 void hns_roce_cq_completion(struct hns_roce_dev *hr_dev, u32 cqn);
1229 void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type);
1231 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type);
1232 void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type);
1233 void hns_roce_handle_device_err(struct hns_roce_dev *hr_dev);
1234 int hns_roce_init(struct hns_roce_dev *hr_dev);
1235 void hns_roce_exit(struct hns_roce_dev *hr_dev);