Home
last modified time | relevance | path

Searched refs:rcfw (Results 1 – 8 of 8) 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()
/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->cmdq; in bng_re_alloc_fw_channel()
71 creq = &rcfw->creq; in bng_re_alloc_fw_channel()
72 rcfw->res = res; in bng_re_alloc_fw_channel()
[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