Lines Matching refs:ocrdma_dev
121 static inline void *ocrdma_get_mcqe(struct ocrdma_dev *dev) in ocrdma_get_mcqe()
131 static inline void ocrdma_mcq_inc_tail(struct ocrdma_dev *dev) in ocrdma_mcq_inc_tail()
136 static inline struct ocrdma_mqe *ocrdma_get_mqe(struct ocrdma_dev *dev) in ocrdma_get_mqe()
141 static inline void ocrdma_mq_inc_head(struct ocrdma_dev *dev) in ocrdma_mq_inc_head()
146 static inline void *ocrdma_get_mqe_rsp(struct ocrdma_dev *dev) in ocrdma_get_mqe_rsp()
265 char *port_speed_string(struct ocrdma_dev *dev) in port_speed_string()
305 void ocrdma_ring_cq_db(struct ocrdma_dev *dev, u16 cq_id, bool armed, in ocrdma_ring_cq_db()
321 static void ocrdma_ring_mq_db(struct ocrdma_dev *dev) in ocrdma_ring_mq_db()
330 static void ocrdma_ring_eq_db(struct ocrdma_dev *dev, u16 eq_id, in ocrdma_ring_eq_db()
371 static void ocrdma_free_q(struct ocrdma_dev *dev, struct ocrdma_queue_info *q) in ocrdma_free_q()
376 static int ocrdma_alloc_q(struct ocrdma_dev *dev, in ocrdma_alloc_q()
402 static int ocrdma_mbx_delete_q(struct ocrdma_dev *dev, in ocrdma_mbx_delete_q()
433 static int ocrdma_mbx_create_eq(struct ocrdma_dev *dev, struct ocrdma_eq *eq) in ocrdma_mbx_create_eq()
460 static int ocrdma_create_eq(struct ocrdma_dev *dev, in ocrdma_create_eq()
482 int ocrdma_get_irq(struct ocrdma_dev *dev, struct ocrdma_eq *eq) in ocrdma_get_irq()
493 static void _ocrdma_destroy_eq(struct ocrdma_dev *dev, struct ocrdma_eq *eq) in _ocrdma_destroy_eq()
501 static void ocrdma_destroy_eq(struct ocrdma_dev *dev, struct ocrdma_eq *eq) in ocrdma_destroy_eq()
515 static void ocrdma_destroy_eqs(struct ocrdma_dev *dev) in ocrdma_destroy_eqs()
523 static int ocrdma_mbx_mq_cq_create(struct ocrdma_dev *dev, in ocrdma_mbx_mq_cq_create()
564 static int ocrdma_mbx_create_mq(struct ocrdma_dev *dev, in ocrdma_mbx_create_mq()
604 static int ocrdma_create_mq(struct ocrdma_dev *dev) in ocrdma_create_mq()
644 static void ocrdma_destroy_mq(struct ocrdma_dev *dev) in ocrdma_destroy_mq()
664 static void ocrdma_process_qpcat_error(struct ocrdma_dev *dev, in ocrdma_process_qpcat_error()
675 static void ocrdma_dispatch_ibevent(struct ocrdma_dev *dev, in ocrdma_dispatch_ibevent()
801 static void ocrdma_process_grp5_aync(struct ocrdma_dev *dev, in ocrdma_process_grp5_aync()
827 static void ocrdma_process_link_state(struct ocrdma_dev *dev, in ocrdma_process_link_state()
843 static void ocrdma_process_acqe(struct ocrdma_dev *dev, void *ae_cqe) in ocrdma_process_acqe()
865 static void ocrdma_process_mcqe(struct ocrdma_dev *dev, struct ocrdma_mcqe *cqe) in ocrdma_process_mcqe()
880 static int ocrdma_mq_cq_handler(struct ocrdma_dev *dev, u16 cq_id) in ocrdma_mq_cq_handler()
902 static struct ocrdma_cq *_ocrdma_qp_buddy_cq_handler(struct ocrdma_dev *dev, in _ocrdma_qp_buddy_cq_handler()
935 static void ocrdma_qp_buddy_cq_handler(struct ocrdma_dev *dev, in ocrdma_qp_buddy_cq_handler()
965 static void ocrdma_qp_cq_handler(struct ocrdma_dev *dev, u16 cq_idx) in ocrdma_qp_cq_handler()
985 static void ocrdma_cq_handler(struct ocrdma_dev *dev, u16 cq_id) in ocrdma_cq_handler()
997 struct ocrdma_dev *dev = eq->dev; in ocrdma_irq_handler()
1039 static void ocrdma_post_mqe(struct ocrdma_dev *dev, struct ocrdma_mqe *cmd) in ocrdma_post_mqe()
1054 static int ocrdma_wait_mqe_cmpl(struct ocrdma_dev *dev) in ocrdma_wait_mqe_cmpl()
1072 static int ocrdma_mbx_cmd(struct ocrdma_dev *dev, struct ocrdma_mqe *mqe) in ocrdma_mbx_cmd()
1116 static int ocrdma_nonemb_mbx_cmd(struct ocrdma_dev *dev, struct ocrdma_mqe *mqe, in ocrdma_nonemb_mbx_cmd()
1143 static void ocrdma_get_attr(struct ocrdma_dev *dev, in ocrdma_get_attr()
1222 static int ocrdma_check_fw_config(struct ocrdma_dev *dev, in ocrdma_check_fw_config()
1236 static int ocrdma_mbx_query_fw_ver(struct ocrdma_dev *dev) in ocrdma_mbx_query_fw_ver()
1263 static int ocrdma_mbx_query_fw_config(struct ocrdma_dev *dev) in ocrdma_mbx_query_fw_config()
1285 int ocrdma_mbx_rdma_stats(struct ocrdma_dev *dev, bool reset) in ocrdma_mbx_rdma_stats()
1327 static int ocrdma_mbx_get_ctrl_attribs(struct ocrdma_dev *dev) in ocrdma_mbx_get_ctrl_attribs()
1376 static int ocrdma_mbx_query_dev(struct ocrdma_dev *dev) in ocrdma_mbx_query_dev()
1395 int ocrdma_mbx_get_link_speed(struct ocrdma_dev *dev, u8 *lnk_speed, in ocrdma_mbx_get_link_speed()
1428 static int ocrdma_mbx_get_phy_info(struct ocrdma_dev *dev) in ocrdma_mbx_get_phy_info()
1462 int ocrdma_mbx_alloc_pd(struct ocrdma_dev *dev, struct ocrdma_pd *pd) in ocrdma_mbx_alloc_pd()
1491 int ocrdma_mbx_dealloc_pd(struct ocrdma_dev *dev, struct ocrdma_pd *pd) in ocrdma_mbx_dealloc_pd()
1506 static int ocrdma_mbx_alloc_pd_range(struct ocrdma_dev *dev) in ocrdma_mbx_alloc_pd_range()
1560 static void ocrdma_mbx_dealloc_pd_range(struct ocrdma_dev *dev) in ocrdma_mbx_dealloc_pd_range()
1591 void ocrdma_alloc_pd_pool(struct ocrdma_dev *dev) in ocrdma_alloc_pd_pool()
1607 static void ocrdma_free_pd_pool(struct ocrdma_dev *dev) in ocrdma_free_pd_pool()
1639 static int ocrdma_mbx_create_ah_tbl(struct ocrdma_dev *dev) in ocrdma_mbx_create_ah_tbl()
1718 static void ocrdma_mbx_delete_ah_tbl(struct ocrdma_dev *dev) in ocrdma_mbx_delete_ah_tbl()
1744 static u16 ocrdma_bind_eq(struct ocrdma_dev *dev) in ocrdma_bind_eq()
1767 static void ocrdma_unbind_eq(struct ocrdma_dev *dev, u16 eq_id) in ocrdma_unbind_eq()
1779 int ocrdma_mbx_create_cq(struct ocrdma_dev *dev, struct ocrdma_cq *cq, in ocrdma_mbx_create_cq()
1884 void ocrdma_mbx_destroy_cq(struct ocrdma_dev *dev, struct ocrdma_cq *cq) in ocrdma_mbx_destroy_cq()
1904 int ocrdma_mbx_alloc_lkey(struct ocrdma_dev *dev, struct ocrdma_hw_mr *hwmr, in ocrdma_mbx_alloc_lkey()
1938 int ocrdma_mbx_dealloc_lkey(struct ocrdma_dev *dev, int fr_mr, u32 lkey) in ocrdma_mbx_dealloc_lkey()
1954 static int ocrdma_mbx_reg_mr(struct ocrdma_dev *dev, struct ocrdma_hw_mr *hwmr, in ocrdma_mbx_reg_mr()
2006 static int ocrdma_mbx_reg_mr_cont(struct ocrdma_dev *dev, in ocrdma_mbx_reg_mr_cont()
2034 int ocrdma_reg_mr(struct ocrdma_dev *dev, in ocrdma_reg_mr()
2108 struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); in ocrdma_flush_qp()
2185 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_set_create_qp_sq_cmd()
2240 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_set_create_qp_rq_cmd()
2299 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_set_create_qp_ird_cmd()
2370 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_mbx_create_qp()
2462 int ocrdma_mbx_query_qp(struct ocrdma_dev *dev, struct ocrdma_qp *qp, in ocrdma_mbx_query_qp()
2497 struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); in ocrdma_set_av_params()
2574 struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); in ocrdma_set_qp_params()
2678 int ocrdma_mbx_modify_qp(struct ocrdma_dev *dev, struct ocrdma_qp *qp, in ocrdma_mbx_modify_qp()
2714 int ocrdma_mbx_destroy_qp(struct ocrdma_dev *dev, struct ocrdma_qp *qp) in ocrdma_mbx_destroy_qp()
2739 int ocrdma_mbx_create_srq(struct ocrdma_dev *dev, struct ocrdma_srq *srq, in ocrdma_mbx_create_srq()
2819 struct ocrdma_dev *dev = get_ocrdma_dev(pd->ibpd.device); in ocrdma_mbx_modify_srq()
2836 struct ocrdma_dev *dev = get_ocrdma_dev(srq->ibsrq.device); in ocrdma_mbx_query_srq()
2858 void ocrdma_mbx_destroy_srq(struct ocrdma_dev *dev, struct ocrdma_srq *srq) in ocrdma_mbx_destroy_srq()
2873 static int ocrdma_mbx_get_dcbx_config(struct ocrdma_dev *dev, u32 ptype, in ocrdma_mbx_get_dcbx_config()
2921 static int ocrdma_parse_dcbxcfg_rsp(struct ocrdma_dev *dev, int ptype, in ocrdma_parse_dcbxcfg_rsp()
2997 void ocrdma_init_service_level(struct ocrdma_dev *dev) in ocrdma_init_service_level()
3034 int ocrdma_alloc_av(struct ocrdma_dev *dev, struct ocrdma_ah *ah) in ocrdma_alloc_av()
3059 void ocrdma_free_av(struct ocrdma_dev *dev, struct ocrdma_ah *ah) in ocrdma_free_av()
3067 static int ocrdma_create_eqs(struct ocrdma_dev *dev) in ocrdma_create_eqs()
3113 static int ocrdma_mbx_modify_eqd(struct ocrdma_dev *dev, struct ocrdma_eq *eq, in ocrdma_mbx_modify_eqd()
3139 static int ocrdma_modify_eqd(struct ocrdma_dev *dev, struct ocrdma_eq *eq, in ocrdma_modify_eqd()
3158 struct ocrdma_dev *dev = in ocrdma_eqd_set_task()
3159 container_of(work, struct ocrdma_dev, eqd_work.work); in ocrdma_eqd_set_task()
3187 int ocrdma_init_hw(struct ocrdma_dev *dev) in ocrdma_init_hw()
3230 void ocrdma_cleanup_hw(struct ocrdma_dev *dev) in ocrdma_cleanup_hw()