Home
last modified time | relevance | path

Searched full:rcfw (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.c101 * @rcfw: rcfw channel instance of rdev
104 * If firmware has not responded any rcfw command within
105 * rcfw->max_timeout, consider firmware as stalled.
111 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()
136 * @rcfw: rcfw channel instance of rdev
[all …]
H A Dmain.c158 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx()
184 rdev->rcfw.res = &rdev->qplib_res; in bnxt_re_setup_chip_ctx()
312 bnxt_qplib_set_func_resources(&rdev->qplib_res, &rdev->rcfw, in bnxt_re_vf_res_config()
444 struct bnxt_qplib_rcfw *rcfw; in bnxt_re_stop_irq() local
452 rcfw = &rdev->rcfw; in bnxt_re_stop_irq()
455 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop_irq()
457 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_stop_irq()
467 bnxt_qplib_rcfw_stop_irq(rcfw, false); in bnxt_re_stop_irq()
474 struct bnxt_qplib_rcfw *rcfw; in bnxt_re_start_irq() local
483 rcfw = &rdev->rcfw; in bnxt_re_start_irq()
[all …]
/linux/drivers/infiniband/hw/bng_re/
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_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()
260 "Failed to deinitialize RCFW: %#x", rc); 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()
318 "Failed to allocate RCFW Channel: %#x\n", rc); in bng_re_dev_init()
334 creq = &rdev->rcfw.creq; in bng_re_dev_init()
[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_sp.h46 int bng_re_get_dev_attr(struct bng_re_rcfw *rcfw);
H A Dbng_re.h77 struct bng_re_rcfw rcfw; member