Lines Matching defs:hr_dev
243 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in check_inl_data_len() local
260 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_rc_inl() local
353 static int check_send_valid(struct hns_roce_dev *hr_dev, in check_send_valid()
430 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_ud_wqe() local
609 static inline void update_sq_db(struct hns_roce_dev *hr_dev, in update_sq_db()
644 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send() local
714 static int check_recv_valid(struct hns_roce_dev *hr_dev, in check_recv_valid()
729 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_recv() local
866 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_v2_post_srq_recv() local
948 static int hns_roce_v2_cmd_hw_reseted(struct hns_roce_dev *hr_dev, in hns_roce_v2_cmd_hw_reseted()
971 static int hns_roce_v2_cmd_hw_resetting(struct hns_roce_dev *hr_dev, in hns_roce_v2_cmd_hw_resetting()
999 static int hns_roce_v2_cmd_sw_resetting(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmd_sw_resetting()
1016 static int hns_roce_v2_rst_process_cmd(struct hns_roce_dev *hr_dev) in hns_roce_v2_rst_process_cmd()
1064 static int hns_roce_alloc_cmq_desc(struct hns_roce_dev *hr_dev, in hns_roce_alloc_cmq_desc()
1085 static void hns_roce_free_cmq_desc(struct hns_roce_dev *hr_dev, in hns_roce_free_cmq_desc()
1096 static int hns_roce_init_cmq_ring(struct hns_roce_dev *hr_dev, bool ring_type) in hns_roce_init_cmq_ring()
1109 static void hns_roce_cmq_init_regs(struct hns_roce_dev *hr_dev, bool ring_type) in hns_roce_cmq_init_regs()
1135 static int hns_roce_v2_cmq_init(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmq_init()
1179 static void hns_roce_v2_cmq_exit(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmq_exit()
1201 static int hns_roce_cmq_csq_done(struct hns_roce_dev *hr_dev) in hns_roce_cmq_csq_done()
1209 static int hns_roce_cmq_csq_clean(struct hns_roce_dev *hr_dev) in hns_roce_cmq_csq_clean()
1233 static int __hns_roce_cmq_send(struct hns_roce_dev *hr_dev, in __hns_roce_cmq_send()
1320 static int hns_roce_cmq_send(struct hns_roce_dev *hr_dev, in hns_roce_cmq_send()
1344 static int hns_roce_cmq_query_hw_info(struct hns_roce_dev *hr_dev) in hns_roce_cmq_query_hw_info()
1362 static bool hns_roce_func_clr_chk_rst(struct hns_roce_dev *hr_dev) in hns_roce_func_clr_chk_rst()
1381 static void hns_roce_func_clr_rst_prc(struct hns_roce_dev *hr_dev, int retval, in hns_roce_func_clr_rst_prc()
1447 static void hns_roce_function_clear(struct hns_roce_dev *hr_dev) in hns_roce_function_clear()
1494 static int hns_roce_query_fw_ver(struct hns_roce_dev *hr_dev) in hns_roce_query_fw_ver()
1511 static int hns_roce_config_global_param(struct hns_roce_dev *hr_dev) in hns_roce_config_global_param()
1531 static int hns_roce_query_pf_resource(struct hns_roce_dev *hr_dev) in hns_roce_query_pf_resource()
1579 static int hns_roce_query_pf_timer_resource(struct hns_roce_dev *hr_dev) in hns_roce_query_pf_timer_resource()
1606 static int hns_roce_set_vf_switch_param(struct hns_roce_dev *hr_dev, int vf_id) in hns_roce_set_vf_switch_param()
1631 static int hns_roce_alloc_vf_resource(struct hns_roce_dev *hr_dev) in hns_roce_alloc_vf_resource()
1708 static int hns_roce_v2_set_bt(struct hns_roce_dev *hr_dev) in hns_roce_v2_set_bt()
1779 static void set_default_caps(struct hns_roce_dev *hr_dev) in set_default_caps()
1944 static int hns_roce_query_pf_caps(struct hns_roce_dev *hr_dev) in hns_roce_query_pf_caps()
2164 static int hns_roce_config_qpc_size(struct hns_roce_dev *hr_dev) in hns_roce_config_qpc_size()
2179 static int hns_roce_config_sccc_size(struct hns_roce_dev *hr_dev) in hns_roce_config_sccc_size()
2194 static int hns_roce_config_entry_size(struct hns_roce_dev *hr_dev) in hns_roce_config_entry_size()
2214 static int hns_roce_v2_profile(struct hns_roce_dev *hr_dev) in hns_roce_v2_profile()
2298 static int hns_roce_config_link_table(struct hns_roce_dev *hr_dev, in hns_roce_config_link_table()
2364 static int hns_roce_init_link_table(struct hns_roce_dev *hr_dev, in hns_roce_init_link_table()
2448 static void hns_roce_free_link_table(struct hns_roce_dev *hr_dev, in hns_roce_free_link_table()
2468 static int hns_roce_v2_init(struct hns_roce_dev *hr_dev) in hns_roce_v2_init()
2527 static void hns_roce_v2_exit(struct hns_roce_dev *hr_dev) in hns_roce_v2_exit()
2537 static int hns_roce_query_mbox_status(struct hns_roce_dev *hr_dev) in hns_roce_query_mbox_status()
2553 static int hns_roce_v2_cmd_pending(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmd_pending()
2560 static int hns_roce_v2_cmd_complete(struct hns_roce_dev *hr_dev) in hns_roce_v2_cmd_complete()
2567 static int hns_roce_mbox_post(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_mbox_post()
2586 static int hns_roce_v2_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_v2_post_mbox()
2612 static int hns_roce_v2_chk_mbox(struct hns_roce_dev *hr_dev, in hns_roce_v2_chk_mbox()
2640 static int hns_roce_config_sgid_table(struct hns_roce_dev *hr_dev, in hns_roce_config_sgid_table()
2671 static int hns_roce_v2_set_gid(struct hns_roce_dev *hr_dev, u8 port, in hns_roce_v2_set_gid()
2700 static int hns_roce_v2_set_mac(struct hns_roce_dev *hr_dev, u8 phy_port, in hns_roce_v2_set_mac()
2723 static int set_mtpt_pbl(struct hns_roce_dev *hr_dev, in set_mtpt_pbl()
2765 static int hns_roce_v2_write_mtpt(struct hns_roce_dev *hr_dev, in hns_roce_v2_write_mtpt()
2820 static int hns_roce_v2_rereg_write_mtpt(struct hns_roce_dev *hr_dev, in hns_roce_v2_rereg_write_mtpt()
2867 static int hns_roce_v2_frmr_write_mtpt(struct hns_roce_dev *hr_dev, in hns_roce_v2_frmr_write_mtpt()
3038 static void hns_roce_v2_write_cqc(struct hns_roce_dev *hr_dev, in hns_roce_v2_write_cqc()
3116 struct hns_roce_dev *hr_dev = to_hr_dev(ibcq->device); in hns_roce_v2_req_notify_cq() local
3229 static void get_cqe_status(struct hns_roce_dev *hr_dev, struct hns_roce_qp *qp, in get_cqe_status()
3298 struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device); in hns_roce_v2_poll_one() local
3506 struct hns_roce_dev *hr_dev = to_hr_dev(ibcq->device); in hns_roce_v2_poll_cq() local
3543 static int get_op_for_set_hem(struct hns_roce_dev *hr_dev, u32 type, in get_op_for_set_hem()
3582 static int set_hem_to_hw(struct hns_roce_dev *hr_dev, int obj, u64 bt_ba, in set_hem_to_hw()
3605 static int hns_roce_v2_set_hem(struct hns_roce_dev *hr_dev, in hns_roce_v2_set_hem()
3664 static int hns_roce_v2_clear_hem(struct hns_roce_dev *hr_dev, in hns_roce_v2_clear_hem()
3718 static int hns_roce_v2_qp_modify(struct hns_roce_dev *hr_dev, in hns_roce_v2_qp_modify()
3802 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_reset_to_init() local
3962 static int config_qp_rq_buf(struct hns_roce_dev *hr_dev, in config_qp_rq_buf()
4072 static int config_qp_sq_buf(struct hns_roce_dev *hr_dev, in config_qp_sq_buf()
4156 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_init_to_rtr() local
4318 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in modify_qp_rtr_to_rts() local
4397 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_set_path() local
4535 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_set_abs_fields() local
4567 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_set_opt_fields() local
4732 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_record_opt_fields() local
4751 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_modify_qp() local
4865 static int hns_roce_v2_query_qpc(struct hns_roce_dev *hr_dev, in hns_roce_v2_query_qpc()
4893 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_query_qp() local
5020 static int hns_roce_v2_destroy_qp_common(struct hns_roce_dev *hr_dev, in hns_roce_v2_destroy_qp_common()
5067 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_destroy_qp() local
5082 static int hns_roce_v2_qp_flow_control_init(struct hns_roce_dev *hr_dev, in hns_roce_v2_qp_flow_control_init()
5137 static void hns_roce_v2_write_srqc(struct hns_roce_dev *hr_dev, in hns_roce_v2_write_srqc()
5236 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_v2_modify_srq() local
5284 struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device); in hns_roce_v2_query_srq() local
5321 struct hns_roce_dev *hr_dev = to_hr_dev(cq->device); in hns_roce_v2_modify_cq() local
5422 static void hns_roce_v2_init_irq_work(struct hns_roce_dev *hr_dev, in hns_roce_v2_init_irq_work()
5443 struct hns_roce_dev *hr_dev = eq->hr_dev; in set_eq_cons_index_v2() local
5482 static int hns_roce_v2_aeq_int(struct hns_roce_dev *hr_dev, in hns_roce_v2_aeq_int()
5582 static int hns_roce_v2_ceq_int(struct hns_roce_dev *hr_dev, in hns_roce_v2_ceq_int()
5617 struct hns_roce_dev *hr_dev = eq->hr_dev; in hns_roce_v2_msix_interrupt_eq() local
5632 struct hns_roce_dev *hr_dev = dev_id; in hns_roce_v2_msix_interrupt_abn() local
5689 static void hns_roce_v2_int_mask_enable(struct hns_roce_dev *hr_dev, in hns_roce_v2_int_mask_enable()
5717 static void hns_roce_v2_destroy_eqc(struct hns_roce_dev *hr_dev, int eqn) in hns_roce_v2_destroy_eqc()
5734 static void free_eq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_eq *eq) in free_eq_buf()
5739 static int config_eqc(struct hns_roce_dev *hr_dev, struct hns_roce_eq *eq, in config_eqc()
5866 static int alloc_eq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_eq *eq) in alloc_eq_buf()
5891 static int hns_roce_v2_create_eq(struct hns_roce_dev *hr_dev, in hns_roce_v2_create_eq()
5931 static int __hns_roce_request_irq(struct hns_roce_dev *hr_dev, int irq_num, in __hns_roce_request_irq()
5999 static void __hns_roce_free_irq(struct hns_roce_dev *hr_dev) in __hns_roce_free_irq()
6018 static int hns_roce_v2_init_eq_table(struct hns_roce_dev *hr_dev) in hns_roce_v2_init_eq_table()
6108 static void hns_roce_v2_cleanup_eq_table(struct hns_roce_dev *hr_dev) in hns_roce_v2_cleanup_eq_table()
6202 static void hns_roce_hw_v2_get_cfg(struct hns_roce_dev *hr_dev, in hns_roce_hw_v2_get_cfg()
6238 struct hns_roce_dev *hr_dev; in __hns_roce_hw_v2_init_instance() local
6275 struct hns_roce_dev *hr_dev = handle->priv; in __hns_roce_hw_v2_uninit_instance() local
6345 struct hns_roce_dev *hr_dev; in hns_roce_hw_v2_reset_notify_down() local