/Linux-v5.4/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() 63 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_alloc_pd() local 92 int hns_roce_uar_alloc(struct hns_roce_dev *hr_dev, struct hns_roce_uar *uar) in hns_roce_uar_alloc() 123 void hns_roce_uar_free(struct hns_roce_dev *hr_dev, struct hns_roce_uar *uar) in hns_roce_uar_free() 129 int hns_roce_init_uar_table(struct hns_roce_dev *hr_dev) in hns_roce_init_uar_table() 137 void hns_roce_cleanup_uar_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_uar_table()
|
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() 61 static int hns_roce_set_mac(struct hns_roce_dev *hr_dev, u8 port, u8 *addr) in hns_roce_set_mac() 78 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_add_gid() local 92 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_del_gid() local 105 static int handle_en_event(struct hns_roce_dev *hr_dev, u8 port, in handle_en_event() 143 struct hns_roce_dev *hr_dev = NULL; in hns_roce_netdev_event() local 162 static int hns_roce_setup_mtu_mac(struct hns_roce_dev *hr_dev) in hns_roce_setup_mtu_mac() 184 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_device() local 229 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_port() local 316 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext() local [all …]
|
D | hns_roce_cq.c | 52 struct hns_roce_dev *hr_dev; in hns_roce_ib_cq_event() local 84 static int hns_roce_cq_alloc(struct hns_roce_dev *hr_dev, int nent, in hns_roce_cq_alloc() 182 void hns_roce_free_cq(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in hns_roce_free_cq() 207 static int hns_roce_ib_get_cq_umem(struct hns_roce_dev *hr_dev, in hns_roce_ib_get_cq_umem() 254 static int hns_roce_ib_alloc_cq_buf(struct hns_roce_dev *hr_dev, in hns_roce_ib_alloc_cq_buf() 292 static void hns_roce_ib_free_cq_buf(struct hns_roce_dev *hr_dev, in hns_roce_ib_free_cq_buf() 299 static int create_user_cq(struct hns_roce_dev *hr_dev, in create_user_cq() 346 static int create_kernel_cq(struct hns_roce_dev *hr_dev, in create_kernel_cq() 383 static void destroy_user_cq(struct hns_roce_dev *hr_dev, in destroy_user_cq() 399 static void destroy_kernel_cq(struct hns_roce_dev *hr_dev, in destroy_kernel_cq() [all …]
|
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() 108 static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in __hns_roce_cmd_mbox_wait() 160 static int hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_wait() 174 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param, in hns_roce_cmd_mbox() 207 int hns_roce_cmd_init(struct hns_roce_dev *hr_dev) in hns_roce_cmd_init() 224 void hns_roce_cmd_cleanup(struct hns_roce_dev *hr_dev) in hns_roce_cmd_cleanup() 229 int hns_roce_cmd_use_events(struct hns_roce_dev *hr_dev) in hns_roce_cmd_use_events() [all …]
|
D | hns_roce_srq.c | 12 void hns_roce_srq_event(struct hns_roce_dev *hr_dev, u32 srqn, int event_type) in hns_roce_srq_event() 37 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in hns_roce_ib_srq_event() local 80 static int hns_roce_srq_alloc(struct hns_roce_dev *hr_dev, u32 pdn, u32 cqn, in hns_roce_srq_alloc() 157 static void hns_roce_srq_free(struct hns_roce_dev *hr_dev, in hns_roce_srq_free() 181 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in create_user_srq() local 251 struct hns_roce_dev *hr_dev = to_hr_dev(pd->device); in hns_roce_create_idx_que() local 271 struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device); in create_kernel_srq() local 336 static void destroy_user_srq(struct hns_roce_dev *hr_dev, in destroy_user_srq() 345 static void destroy_kernel_srq(struct hns_roce_dev *hr_dev, in destroy_kernel_srq() 360 struct hns_roce_dev *hr_dev = to_hr_dev(ib_srq->device); in hns_roce_create_srq() local [all …]
|
D | hns_roce_hw_v2.c | 164 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in set_rwqe_data_seg() local 233 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send() local 617 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv() local 714 static int hns_roce_v2_cmd_hw_reseted(struct hns_roce_dev *hr_dev, in hns_roce_v2_cmd_hw_reseted() 737 static int hns_roce_v2_cmd_hw_resetting(struct hns_roce_dev *hr_dev, in hns_roce_v2_cmd_hw_resetting() 765 static int hns_roce_v2_cmd_sw_resetting(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmd_sw_resetting() 782 static int hns_roce_v2_rst_process_cmd(struct hns_roce_dev *hr_dev) in hns_roce_v2_rst_process_cmd() 830 static int hns_roce_alloc_cmq_desc(struct hns_roce_dev *hr_dev, in hns_roce_alloc_cmq_desc() 851 static void hns_roce_free_cmq_desc(struct hns_roce_dev *hr_dev, in hns_roce_free_cmq_desc() 862 static int hns_roce_init_cmq_ring(struct hns_roce_dev *hr_dev, bool ring_type) in hns_roce_init_cmq_ring() [all …]
|
D | hns_roce_mr.c | 51 static int hns_roce_sw2hw_mpt(struct hns_roce_dev *hr_dev, in hns_roce_sw2hw_mpt() 60 int hns_roce_hw2sw_mpt(struct hns_roce_dev *hr_dev, in hns_roce_hw2sw_mpt() 177 static int hns_roce_alloc_mtt_range(struct hns_roce_dev *hr_dev, int order, in hns_roce_alloc_mtt_range() 221 int hns_roce_mtt_init(struct hns_roce_dev *hr_dev, int npages, int page_shift, in hns_roce_mtt_init() 251 void hns_roce_mtt_cleanup(struct hns_roce_dev *hr_dev, struct hns_roce_mtt *mtt) in hns_roce_mtt_cleanup() 295 static void hns_roce_loop_free(struct hns_roce_dev *hr_dev, in hns_roce_loop_free() 350 static int pbl_1hop_alloc(struct hns_roce_dev *hr_dev, int npages, in pbl_1hop_alloc() 376 static int pbl_2hop_alloc(struct hns_roce_dev *hr_dev, int npages, in pbl_2hop_alloc() 416 static int pbl_3hop_alloc(struct hns_roce_dev *hr_dev, int npages, in pbl_3hop_alloc() 507 static int hns_roce_mhop_alloc(struct hns_roce_dev *hr_dev, int npages, in hns_roce_mhop_alloc() [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 360 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_recv() local 448 static void hns_roce_set_db_event_mode(struct hns_roce_dev *hr_dev, in hns_roce_set_db_event_mode() 462 static void hns_roce_set_db_ext_mode(struct hns_roce_dev *hr_dev, u32 sdb_mode, in hns_roce_set_db_ext_mode() 477 static void hns_roce_set_sdb(struct hns_roce_dev *hr_dev, u32 sdb_alept, in hns_roce_set_sdb() 494 static void hns_roce_set_odb(struct hns_roce_dev *hr_dev, u32 odb_alept, in hns_roce_set_odb() 511 static void hns_roce_set_sdb_ext(struct hns_roce_dev *hr_dev, u32 ext_sdb_alept, in hns_roce_set_sdb_ext() 553 static void hns_roce_set_odb_ext(struct hns_roce_dev *hr_dev, u32 ext_odb_alept, in hns_roce_set_odb_ext() 591 static int hns_roce_db_ext_init(struct hns_roce_dev *hr_dev, u32 sdb_ext_mod, in hns_roce_db_ext_init() 679 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_qp.c | 46 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type) in hns_roce_qp_event() 111 static int hns_roce_reserve_range_qp(struct hns_roce_dev *hr_dev, int cnt, in hns_roce_reserve_range_qp() 142 static int hns_roce_gsi_qp_alloc(struct hns_roce_dev *hr_dev, unsigned long qpn, in hns_roce_gsi_qp_alloc() 163 static int hns_roce_qp_alloc(struct hns_roce_dev *hr_dev, unsigned long qpn, in hns_roce_qp_alloc() 234 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_remove() 244 void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_free() 260 void hns_roce_release_range_qp(struct hns_roce_dev *hr_dev, int base_qpn, in hns_roce_release_range_qp() 271 static int hns_roce_set_rq_size(struct hns_roce_dev *hr_dev, in hns_roce_set_rq_size() 327 static int check_sq_size_with_integrity(struct hns_roce_dev *hr_dev, in check_sq_size_with_integrity() 351 static int hns_roce_set_user_sq_size(struct hns_roce_dev *hr_dev, in hns_roce_set_user_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() 123 static int get_hem_table_config(struct hns_roce_dev *hr_dev, in get_hem_table_config() 227 int hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, in hns_roce_calc_hem_mhop() 277 static struct hns_roce_hem *hns_roce_alloc_hem(struct hns_roce_dev *hr_dev, in hns_roce_alloc_hem() 342 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem) in hns_roce_free_hem() 362 static int hns_roce_set_hem(struct hns_roce_dev *hr_dev, in hns_roce_set_hem() 437 static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_get() 614 int hns_roce_table_get(struct hns_roce_dev *hr_dev, in hns_roce_table_get() 659 static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_put() 773 void hns_roce_table_put(struct hns_roce_dev *hr_dev, in hns_roce_table_put() [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() 178 int hns_roce_buf_alloc(struct hns_roce_dev *hr_dev, u32 size, u32 max_direct, in hns_roce_buf_alloc() 240 int hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, in hns_roce_get_kmem_bufs() 265 int hns_roce_get_umem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, in hns_roce_get_umem_bufs() 338 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() 154 void hns_roce_free_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db) in hns_roce_free_db()
|
D | hns_roce_hw_v2_dfx.c | 9 int hns_roce_v2_query_cqc_info(struct hns_roce_dev *hr_dev, u32 cqn, in hns_roce_v2_query_cqc_info()
|
D | hns_roce_restrack.c | 83 struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device); in hns_roce_fill_res_cq_entry() local
|
D | hns_roce_ah.c | 45 struct hns_roce_dev *hr_dev = to_hr_dev(ibah->device); in hns_roce_create_ah() local
|
D | hns_roce_device.h | 755 struct hns_roce_dev *hr_dev; member 916 struct hns_roce_dev *hr_dev; member 1106 *__hns_roce_qp_lookup(struct hns_roce_dev *hr_dev, u32 qpn) in __hns_roce_qp_lookup()
|
D | hns_roce_hw_v2.h | 1827 static inline void hns_roce_write64(struct hns_roce_dev *hr_dev, __le32 val[2], in hns_roce_write64()
|