Home
last modified time | relevance | path

Searched refs:rcfw (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.c111 static int bnxt_re_is_fw_stalled(struct bnxt_qplib_rcfw *rcfw, in bnxt_re_is_fw_stalled() argument
117 crsqe = &rcfw->crsqe_tbl[cookie]; in bnxt_re_is_fw_stalled()
118 cmdq = &rcfw->cmdq; in bnxt_re_is_fw_stalled()
121 (rcfw->max_timeout * HZ))) { in bnxt_re_is_fw_stalled()
122 dev_warn_ratelimited(&rcfw->pdev->dev, in bnxt_re_is_fw_stalled()
126 rcfw->max_timeout * 1000, in bnxt_re_is_fw_stalled()
145 static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie) in __wait_for_resp() argument
151 cmdq = &rcfw->cmdq; in __wait_for_resp()
152 crsqe = &rcfw->crsqe_tbl[cookie]; in __wait_for_resp()
163 secs_to_jiffies(rcfw->max_timeout)); in __wait_for_resp()
[all …]
H A Dbnxt_re.h191 struct bnxt_qplib_rcfw rcfw; member
274 rdev->rcfw.res->cctx->hwrm_intf_ver < HWRM_VERSION_READ_CTX) in bnxt_re_read_context_allowed()
H A Dib_verbs.c310 port_attr->gid_tbl_len = (rdev->rcfw.roce_mirror ? (dev_attr->max_sgid - 1) : in bnxt_re_query_port()
991 if (!rdev->rcfw.roce_mirror) in bnxt_re_del_unique_gid()
1921 if (!rdev->rcfw.roce_mirror) in bnxt_re_create_qp()
4892 !rdev->rcfw.roce_mirror) in bnxt_re_process_mad()
/linux/drivers/infiniband/hw/bng_re/
H A Dbng_fw.c53 void bng_re_free_rcfw_channel(struct bng_re_rcfw *rcfw) in bng_re_free_rcfw_channel() argument
55 kfree(rcfw->crsqe_tbl); in bng_re_free_rcfw_channel()
56 bng_re_free_hwq(rcfw->res, &rcfw->cmdq.hwq); in bng_re_free_rcfw_channel()
57 bng_re_free_hwq(rcfw->res, &rcfw->creq.hwq); in bng_re_free_rcfw_channel()
58 rcfw->pdev = NULL; in bng_re_free_rcfw_channel()
62 struct bng_re_rcfw *rcfw) in bng_re_alloc_fw_channel() argument
69 rcfw->pdev = res->pdev; in bng_re_alloc_fw_channel()
70 cmdq = &rcfw in bng_re_alloc_fw_channel()
115 bng_re_process_qp_event(struct bng_re_rcfw * rcfw,struct creq_qp_event * qp_event,u32 * num_wait) bng_re_process_qp_event() argument
189 bng_re_process_func_event(struct bng_re_rcfw * rcfw,struct creq_func_event * func_event) bng_re_process_func_event() argument
217 struct bng_re_rcfw *rcfw = from_tasklet(rcfw, t, creq.creq_tasklet); bng_re_service_creq() local
273 __send_message_basic_sanity(struct bng_re_rcfw * rcfw,struct bng_re_cmdqmsg * msg,u8 opcode) __send_message_basic_sanity() argument
303 __send_message(struct bng_re_rcfw * rcfw,struct bng_re_cmdqmsg * msg,u8 opcode) __send_message() argument
401 __wait_for_resp(struct bng_re_rcfw * rcfw,u16 cookie) __wait_for_resp() argument
437 bng_re_rcfw_send_message(struct bng_re_rcfw * rcfw,struct bng_re_cmdqmsg * msg) bng_re_rcfw_send_message() argument
481 bng_re_map_cmdq_mbox(struct bng_re_rcfw * rcfw) bng_re_map_cmdq_mbox() argument
518 struct bng_re_rcfw *rcfw = dev_instance; bng_re_creq_irq() local
533 bng_re_rcfw_start_irq(struct bng_re_rcfw * rcfw,int msix_vector,bool need_init) bng_re_rcfw_start_irq() argument
572 bng_re_map_creq_db(struct bng_re_rcfw * rcfw,u32 reg_offt) bng_re_map_creq_db() argument
605 bng_re_rcfw_stop_irq(struct bng_re_rcfw * rcfw,bool kill) bng_re_rcfw_stop_irq() argument
628 bng_re_disable_rcfw_channel(struct bng_re_rcfw * rcfw) bng_re_disable_rcfw_channel() argument
646 bng_re_start_rcfw(struct bng_re_rcfw * rcfw) bng_re_start_rcfw() argument
670 bng_re_enable_fw_channel(struct bng_re_rcfw * rcfw,int msix_vector,int cp_bar_reg_off) bng_re_enable_fw_channel() argument
704 bng_re_deinit_rcfw(struct bng_re_rcfw * rcfw) bng_re_deinit_rcfw() argument
737 bng_re_init_rcfw(struct bng_re_rcfw * rcfw,struct bng_re_stats * stats_ctx) bng_re_init_rcfw() argument
[all...]
H A Dbng_sp.c11 static bool bng_re_is_atomic_cap(struct bng_re_rcfw *rcfw) in bng_re_is_atomic_cap() argument
15 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bng_re_is_atomic_cap()
19 static void bng_re_query_version(struct bng_re_rcfw *rcfw, in bng_re_query_version() argument
32 rc = bng_re_rcfw_send_message(rcfw, &msg); in bng_re_query_version()
41 int bng_re_get_dev_attr(struct bng_re_rcfw *rcfw) in bng_re_get_dev_attr() argument
43 struct bng_re_dev_attr *attr = rcfw->res->dattr; in bng_re_get_dev_attr()
58 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bng_re_get_dev_attr()
66 rc = bng_re_rcfw_send_message(rcfw, &msg); in bng_re_get_dev_attr()
115 bng_re_query_version(rcfw, attr->fw_ver); in bng_re_get_dev_attr()
126 attr->is_atomic = bng_re_is_atomic_cap(rcfw); in bng_re_get_dev_attr()
[all …]
H A Dbng_fw.h196 void bng_re_free_rcfw_channel(struct bng_re_rcfw *rcfw);
198 struct bng_re_rcfw *rcfw);
199 int bng_re_enable_fw_channel(struct bng_re_rcfw *rcfw,
202 void bng_re_disable_rcfw_channel(struct bng_re_rcfw *rcfw);
203 int bng_re_rcfw_start_irq(struct bng_re_rcfw *rcfw, int msix_vector,
205 void bng_re_rcfw_stop_irq(struct bng_re_rcfw *rcfw, bool kill);
206 int bng_re_rcfw_send_message(struct bng_re_rcfw *rcfw,
208 int bng_re_init_rcfw(struct bng_re_rcfw *rcfw,
210 int bng_re_deinit_rcfw(struct bng_re_rcfw *rcfw);
H A Dbng_dev.c62 rdev->rcfw.res = NULL; in bng_re_destroy_chip_ctx()
76 rdev->rcfw.res = &rdev->bng_res; in bng_re_setup_chip_ctx()
257 rc = bng_re_deinit_rcfw(&rdev->rcfw); in bng_re_dev_uninit()
263 bng_re_disable_rcfw_channel(&rdev->rcfw); in bng_re_dev_uninit()
264 bng_re_net_ring_free(rdev, rdev->rcfw.creq.ring_id, in bng_re_dev_uninit()
266 bng_re_free_rcfw_channel(&rdev->rcfw); in bng_re_dev_uninit()
315 rc = bng_re_alloc_fw_channel(&rdev->bng_res, &rdev->rcfw); in bng_re_dev_init()
334 creq = &rdev->rcfw.creq; in bng_re_dev_init()
349 rc = bng_re_enable_fw_channel(&rdev->rcfw, in bng_re_dev_init()
357 rc = bng_re_get_dev_attr(&rdev->rcfw); in bng_re_dev_init()
[all …]
H A Dbng_sp.h46 int bng_re_get_dev_attr(struct bng_re_rcfw *rcfw);
H A Dbng_re.h77 struct bng_re_rcfw rcfw; member