/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_pd.c | 38 static int hns_roce_pd_alloc(struct hns_roce_dev *hr_dev, unsigned long *pdn) in hns_roce_pd_alloc() 43 static void hns_roce_pd_free(struct hns_roce_dev *hr_dev, unsigned long pdn) in hns_roce_pd_free() 48 int hns_roce_init_pd_table(struct hns_roce_dev *hr_dev) in hns_roce_init_pd_table() 55 void hns_roce_cleanup_pd_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_pd_table() 64 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_alloc_pd() local 104 int hns_roce_uar_alloc(struct hns_roce_dev *hr_dev, struct hns_roce_uar *uar) in hns_roce_uar_alloc() 135 void hns_roce_uar_free(struct hns_roce_dev *hr_dev, struct hns_roce_uar *uar) in hns_roce_uar_free() 141 int hns_roce_init_uar_table(struct hns_roce_dev *hr_dev) in hns_roce_init_uar_table() 149 void hns_roce_cleanup_uar_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_uar_table()
|
D | hns_roce_cmd.c | 43 static int hns_roce_cmd_mbox_post_hw(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_post_hw() 60 static int __hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, in __hns_roce_cmd_mbox_poll() 79 static int hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_poll() 93 void hns_roce_cmd_event(struct hns_roce_dev *hr_dev, u16 token, u8 status, in hns_roce_cmd_event() 109 static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in __hns_roce_cmd_mbox_wait() 161 static int hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_wait() 175 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param, in hns_roce_cmd_mbox() 193 int hns_roce_cmd_init(struct hns_roce_dev *hr_dev) in hns_roce_cmd_init() 211 void hns_roce_cmd_cleanup(struct hns_roce_dev *hr_dev) in hns_roce_cmd_cleanup() 216 int hns_roce_cmd_use_events(struct hns_roce_dev *hr_dev) in hns_roce_cmd_use_events() [all …]
|
D | hns_roce_main.c | 56 int hns_get_gid_index(struct hns_roce_dev *hr_dev, u8 port, int gid_index) in hns_get_gid_index() 62 static int hns_roce_set_mac(struct hns_roce_dev *hr_dev, u8 port, u8 *addr) in hns_roce_set_mac() 79 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_add_gid() local 98 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_del_gid() local 116 static int handle_en_event(struct hns_roce_dev *hr_dev, u8 port, in handle_en_event() 154 struct hns_roce_dev *hr_dev = NULL; in hns_roce_netdev_event() local 173 static int hns_roce_setup_mtu_mac(struct hns_roce_dev *hr_dev) in hns_roce_setup_mtu_mac() 195 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_device() local 228 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_get_netdev() local 247 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_port() local [all …]
|
D | hns_roce_hw_v2.c | 109 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in set_rwqe_data_seg() local 177 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send() local 558 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv() local 664 static int hns_roce_alloc_cmq_desc(struct hns_roce_dev *hr_dev, in hns_roce_alloc_cmq_desc() 685 static void hns_roce_free_cmq_desc(struct hns_roce_dev *hr_dev, in hns_roce_free_cmq_desc() 696 static int hns_roce_init_cmq_ring(struct hns_roce_dev *hr_dev, bool ring_type) in hns_roce_init_cmq_ring() 709 static void hns_roce_cmq_init_regs(struct hns_roce_dev *hr_dev, bool ring_type) in hns_roce_cmq_init_regs() 737 static int hns_roce_v2_cmq_init(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmq_init() 781 static void hns_roce_v2_cmq_exit(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmq_exit() 803 static int hns_roce_cmq_csq_done(struct hns_roce_dev *hr_dev) in hns_roce_cmq_csq_done() [all …]
|
D | hns_roce_hw_v1.c | 65 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_send() local 363 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_recv() local 452 static void hns_roce_set_db_event_mode(struct hns_roce_dev *hr_dev, in hns_roce_set_db_event_mode() 466 static void hns_roce_set_db_ext_mode(struct hns_roce_dev *hr_dev, u32 sdb_mode, in hns_roce_set_db_ext_mode() 481 static void hns_roce_set_sdb(struct hns_roce_dev *hr_dev, u32 sdb_alept, in hns_roce_set_sdb() 498 static void hns_roce_set_odb(struct hns_roce_dev *hr_dev, u32 odb_alept, in hns_roce_set_odb() 515 static void hns_roce_set_sdb_ext(struct hns_roce_dev *hr_dev, u32 ext_sdb_alept, in hns_roce_set_sdb_ext() 557 static void hns_roce_set_odb_ext(struct hns_roce_dev *hr_dev, u32 ext_odb_alept, in hns_roce_set_odb_ext() 595 static int hns_roce_db_ext_init(struct hns_roce_dev *hr_dev, u32 sdb_ext_mod, in hns_roce_db_ext_init() 683 static struct hns_roce_qp *hns_roce_v1_create_lp_qp(struct hns_roce_dev *hr_dev, in hns_roce_v1_create_lp_qp() [all …]
|
D | hns_roce_cq.c | 51 struct hns_roce_dev *hr_dev; in hns_roce_ib_cq_event() local 83 static int hns_roce_cq_alloc(struct hns_roce_dev *hr_dev, int nent, in hns_roce_cq_alloc() 189 void hns_roce_free_cq(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in hns_roce_free_cq() 217 static int hns_roce_ib_get_cq_umem(struct hns_roce_dev *hr_dev, in hns_roce_ib_get_cq_umem() 265 static int hns_roce_ib_alloc_cq_buf(struct hns_roce_dev *hr_dev, in hns_roce_ib_alloc_cq_buf() 303 static void hns_roce_ib_free_cq_buf(struct hns_roce_dev *hr_dev, in hns_roce_ib_free_cq_buf() 315 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_ib_create_cq() local 456 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_ib_destroy_cq() local 488 void hns_roce_cq_completion(struct hns_roce_dev *hr_dev, u32 cqn) in hns_roce_cq_completion() 505 void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type) in hns_roce_cq_event() [all …]
|
D | hns_roce_mr.c | 52 static int hns_roce_sw2hw_mpt(struct hns_roce_dev *hr_dev, in hns_roce_sw2hw_mpt() 61 int hns_roce_hw2sw_mpt(struct hns_roce_dev *hr_dev, in hns_roce_hw2sw_mpt() 179 static int hns_roce_alloc_mtt_range(struct hns_roce_dev *hr_dev, int order, in hns_roce_alloc_mtt_range() 208 int hns_roce_mtt_init(struct hns_roce_dev *hr_dev, int npages, int page_shift, in hns_roce_mtt_init() 238 void hns_roce_mtt_cleanup(struct hns_roce_dev *hr_dev, struct hns_roce_mtt *mtt) in hns_roce_mtt_cleanup() 261 static void hns_roce_loop_free(struct hns_roce_dev *hr_dev, in hns_roce_loop_free() 318 static int hns_roce_mhop_alloc(struct hns_roce_dev *hr_dev, int npages, in hns_roce_mhop_alloc() 493 static int hns_roce_mr_alloc(struct hns_roce_dev *hr_dev, u32 pd, u64 iova, in hns_roce_mr_alloc() 540 static void hns_roce_mhop_free(struct hns_roce_dev *hr_dev, in hns_roce_mhop_free() 624 static void hns_roce_mr_free(struct hns_roce_dev *hr_dev, in hns_roce_mr_free() [all …]
|
D | hns_roce_qp.c | 44 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type) in hns_roce_qp_event() 113 static int hns_roce_reserve_range_qp(struct hns_roce_dev *hr_dev, int cnt, in hns_roce_reserve_range_qp() 145 static int hns_roce_gsi_qp_alloc(struct hns_roce_dev *hr_dev, unsigned long qpn, in hns_roce_gsi_qp_alloc() 175 static int hns_roce_qp_alloc(struct hns_roce_dev *hr_dev, unsigned long qpn, in hns_roce_qp_alloc() 239 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_remove() 251 void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_free() 269 void hns_roce_release_range_qp(struct hns_roce_dev *hr_dev, int base_qpn, in hns_roce_release_range_qp() 281 static int hns_roce_set_rq_size(struct hns_roce_dev *hr_dev, in hns_roce_set_rq_size() 339 static int hns_roce_set_user_sq_size(struct hns_roce_dev *hr_dev, in hns_roce_set_user_sq_size() 417 static int hns_roce_set_kernel_sq_size(struct hns_roce_dev *hr_dev, in hns_roce_set_kernel_sq_size() [all …]
|
D | hns_roce_hem.c | 42 bool hns_roce_check_whether_mhop(struct hns_roce_dev *hr_dev, u32 type) in hns_roce_check_whether_mhop() 91 int hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, in hns_roce_calc_hem_mhop() 194 static struct hns_roce_hem *hns_roce_alloc_hem(struct hns_roce_dev *hr_dev, in hns_roce_alloc_hem() 259 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem) in hns_roce_free_hem() 279 static int hns_roce_set_hem(struct hns_roce_dev *hr_dev, in hns_roce_set_hem() 363 static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_get() 534 int hns_roce_table_get(struct hns_roce_dev *hr_dev, in hns_roce_table_get() 579 static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_put() 693 void hns_roce_table_put(struct hns_roce_dev *hr_dev, in hns_roce_table_put() 721 void *hns_roce_table_find(struct hns_roce_dev *hr_dev, in hns_roce_table_find() [all …]
|
D | hns_roce_alloc.c | 160 void hns_roce_buf_free(struct hns_roce_dev *hr_dev, u32 size, in hns_roce_buf_free() 179 int hns_roce_buf_alloc(struct hns_roce_dev *hr_dev, u32 size, u32 max_direct, in hns_roce_buf_alloc() 240 void hns_roce_cleanup_bitmap(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_bitmap()
|
D | hns_roce_db.c | 125 int hns_roce_alloc_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db, in hns_roce_alloc_db() 155 void hns_roce_free_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db) in hns_roce_free_db()
|
D | hns_roce_ah.c | 46 struct hns_roce_dev *hr_dev = to_hr_dev(ibpd->device); in hns_roce_create_ah() local
|
D | hns_roce_device.h | 617 struct hns_roce_dev *hr_dev; member 738 struct hns_roce_dev *hr_dev; member 892 *__hns_roce_qp_lookup(struct hns_roce_dev *hr_dev, u32 qpn) in __hns_roce_qp_lookup()
|