Home
last modified time | relevance | path

Searched refs:cmdq (Results 1 – 23 of 23) sorted by relevance

/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_rcfw.c52 struct bnxt_qplib_cmdq_ctx *cmdq; in __check_cmdq_stall() local
54 cmdq = &rcfw->cmdq; in __check_cmdq_stall()
56 if (*cur_prod == cmdq->hwq.prod && in __check_cmdq_stall()
57 *cur_cons == cmdq->hwq.cons) in __check_cmdq_stall()
61 *cur_prod = cmdq->hwq.prod; in __check_cmdq_stall()
62 *cur_cons = cmdq->hwq.cons; in __check_cmdq_stall()
100 struct bnxt_qplib_cmdq_ctx *cmdq; in bnxt_re_is_fw_stalled() local
104 cmdq = &rcfw->cmdq; in bnxt_re_is_fw_stalled()
106 if (time_after(jiffies, cmdq->last_seen + in bnxt_re_is_fw_stalled()
111 (long)jiffies_to_msecs(jiffies - cmdq->last_seen), in bnxt_re_is_fw_stalled()
[all …]
H A Dqplib_rcfw.h149 (test_bit(ERR_DEVICE_DETACHED, &(rcfw)->cmdq.flags) || \
275 struct bnxt_qplib_cmdq_ctx cmdq; member
H A Dmain.c321 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_detach_err_device()
323 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_detach_err_device()
774 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_async_notifier()
777 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_async_notifier()
1036 cur_prod = rdev->rcfw.cmdq.hwq.prod; in __wait_for_ib_unregister()
1037 cur_cons = rdev->rcfw.cmdq.hwq.cons; in __wait_for_ib_unregister()
1163 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags); in bnxt_re_stop()
1166 wake_up_all(&rdev->rcfw.cmdq.waitq); in bnxt_re_stop()
3829 struct bnxt_qplib_cmdq_ctx *cmdq; in bnxt_re_remove_device() local
3833 cmdq = &rcfw->cmdq; in bnxt_re_remove_device()
[all …]
/freebsd/sys/dev/rtwn/
H A Dif_rtwn_task.c61 while (sc->cmdq[sc->cmdq_first].func != NULL) { in rtwn_cmdq_cb()
62 item = &sc->cmdq[sc->cmdq_first]; in rtwn_cmdq_cb()
103 if (sc->cmdq[sc->cmdq_last].func != NULL) { in rtwn_cmd_sleepable()
111 memcpy(&sc->cmdq[sc->cmdq_last].data, ptr, len); in rtwn_cmd_sleepable()
112 sc->cmdq[sc->cmdq_last].func = func; in rtwn_cmd_sleepable()
/freebsd/sys/arm64/iommu/
H A Dsmmu.c345 err = smmu_init_queue(sc, &sc->cmdq, in smmu_init_queues()
532 struct smmu_queue *cmdq; in smmu_cmdq_enqueue_cmd() local
535 cmdq = &sc->cmdq; in smmu_cmdq_enqueue_cmd()
543 cmdq->lc.cons = bus_read_4(sc->res[0], cmdq->cons_off); in smmu_cmdq_enqueue_cmd()
544 } while (smmu_q_has_space(cmdq) == 0); in smmu_cmdq_enqueue_cmd()
547 entry_addr = (void *)((uint64_t)cmdq->vaddr + in smmu_cmdq_enqueue_cmd()
548 Q_IDX(cmdq, cmdq->lc.prod) * CMDQ_ENTRY_DWORDS * 8); in smmu_cmdq_enqueue_cmd()
552 cmdq->lc.prod = smmu_q_inc_prod(cmdq); in smmu_cmdq_enqueue_cmd()
553 bus_write_4(sc->res[0], cmdq->prod_off, cmdq->lc.prod); in smmu_cmdq_enqueue_cmd()
579 q = &sc->cmdq; in smmu_sync()
[all …]
/freebsd/sys/dev/usb/wlan/
H A Dif_mtw.c903 for (i = sc->cmdq_exec; sc->cmdq[i].func && pending; in mtw_cmdq_cb()
912 if (sc->cmdq[i].arg0) in mtw_cmdq_cb()
913 sc->cmdq[i].func(sc->cmdq[i].arg0); in mtw_cmdq_cb()
915 sc->cmdq[i].func(&sc->cmdq[i]); in mtw_cmdq_cb()
917 sc->cmdq[i].arg0 = NULL; in mtw_cmdq_cb()
918 sc->cmdq[i].func = NULL; in mtw_cmdq_cb()
1863 sc->cmdq[i].func = mtw_key_set_cb; in mtw_key_set()
1864 sc->cmdq[i].arg0 = NULL; in mtw_key_set()
1865 sc->cmdq[i].arg1 = vap; in mtw_key_set()
1866 sc->cmdq[i].k = k; in mtw_key_set()
[all …]
H A Dif_run.c1150 for (i = sc->cmdq_exec; sc->cmdq[i].func && pending; in run_cmdq_cb()
1159 if (sc->cmdq[i].arg0) in run_cmdq_cb()
1160 sc->cmdq[i].func(sc->cmdq[i].arg0); in run_cmdq_cb()
1162 sc->cmdq[i].func(&sc->cmdq[i]); in run_cmdq_cb()
1164 sc->cmdq[i].arg0 = NULL; in run_cmdq_cb()
1165 sc->cmdq[i].func = NULL; in run_cmdq_cb()
2354 struct run_cmdq *cmdq = arg; in run_key_set_cb() local
2355 struct ieee80211vap *vap = cmdq->arg1; in run_key_set_cb()
2356 struct ieee80211_key *k = cmdq->k; in run_key_set_cb()
2368 ni = ieee80211_find_vap_node(&ic->ic_sta, vap, cmdq->mac); in run_key_set_cb()
[all …]
H A Dif_rumvar.h134 struct rum_cmdq cmdq[RUM_CMDQ_SIZE]; member
H A Dif_runvar.h223 struct run_cmdq cmdq[RUN_CMDQ_MAX]; member
H A Dif_mtwvar.h299 struct mtw_cmdq cmdq[MTW_CMDQ_MAX]; member
H A Dif_rum.c748 while (sc->cmdq[sc->cmdq_first].func != NULL) { in rum_cmdq_cb()
749 rc = &sc->cmdq[sc->cmdq_first]; in rum_cmdq_cb()
772 if (sc->cmdq[sc->cmdq_last].func != NULL) { in rum_cmd_sleepable()
780 memcpy(&sc->cmdq[sc->cmdq_last].data, ptr, len); in rum_cmd_sleepable()
781 sc->cmdq[sc->cmdq_last].rvp_id = rvp_id; in rum_cmd_sleepable()
782 sc->cmdq[sc->cmdq_last].func = func; in rum_cmd_sleepable()
/freebsd/sys/netgraph/bluetooth/hci/
H A Dng_hci_main.c151 NG_BT_MBUFQ_INIT(&unit->cmdq, NG_HCI_CMD_QUEUE_LEN); in ng_hci_constructor()
183 NG_BT_MBUFQ_DESTROY(&unit->cmdq); in ng_hci_shutdown()
337 NG_BT_MBUFQ_LEN(&unit->cmdq), in ng_hci_default_rcvmsg()
1080 if (NG_BT_MBUFQ_FULL(&unit->cmdq)) { in ng_hci_raw_rcvdata()
1084 NG_BT_MBUFQ_LEN(&unit->cmdq)); in ng_hci_raw_rcvdata()
1086 NG_BT_MBUFQ_DROP(&unit->cmdq); in ng_hci_raw_rcvdata()
1093 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_raw_rcvdata()
H A Dng_hci_cmds.c110 NG_BT_MBUFQ_DRAIN(&unit->cmdq); in ng_hci_send_command()
120 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq); in ng_hci_send_command()
348 m = NG_BT_MBUFQ_FIRST(&unit->cmdq); in complete_command()
381 NG_BT_MBUFQ_DEQUEUE(&unit->cmdq, *cp); in complete_command()
408 NG_BT_MBUFQ_DEQUEUE(&unit->cmdq, m); in ng_hci_process_command_timeout()
H A Dng_hci_ulpi.c307 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_lp_acl_con_req()
476 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_lp_sco_con_req()
649 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_lp_le_con_req()
741 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_lp_discon_req()
1060 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_lp_con_rsp()
1249 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in ng_hci_lp_qos_req()
H A Dng_hci_var.h155 ng_bt_mbufq_t cmdq; /* command queue */ member
H A Dng_hci_misc.c141 NG_BT_MBUFQ_DRAIN(&unit->cmdq); in ng_hci_unit_clean()
H A Dng_hci_evnt.c789 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in con_compl()
/freebsd/sys/dev/iwi/
H A Dif_iwi.c332 if (iwi_alloc_cmd_ring(sc, &sc->cmdq, IWI_CMD_RING_COUNT) != 0) { in iwi_attach()
459 iwi_free_cmd_ring(sc, &sc->cmdq); in iwi_detach()
1729 desc = &sc->cmdq.desc[sc->cmdq.cur]; in iwi_cmd()
1737 bus_dmamap_sync(sc->cmdq.desc_dmat, sc->cmdq.desc_map, in iwi_cmd()
1740 DPRINTFN(2, ("sending command idx=%u type=%u len=%u\n", sc->cmdq.cur, in iwi_cmd()
1743 sc->cmdq.cur = (sc->cmdq.cur + 1) % IWI_CMD_RING_COUNT; in iwi_cmd()
1744 CSR_WRITE_4(sc, IWI_CSR_CMD_WIDX, sc->cmdq.cur); in iwi_cmd()
3117 CSR_WRITE_4(sc, IWI_CSR_CMD_BASE, sc->cmdq.physaddr); in iwi_init_locked()
3118 CSR_WRITE_4(sc, IWI_CSR_CMD_SIZE, sc->cmdq.count); in iwi_init_locked()
3119 CSR_WRITE_4(sc, IWI_CSR_CMD_WIDX, sc->cmdq.cur); in iwi_init_locked()
[all …]
H A Dif_iwivar.h151 struct iwi_cmd_ring cmdq; member
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtrans.c3417 struct iwl_txq *cmdq = trans_pcie->txqs.txq[trans_pcie->txqs.cmd.q_id]; in iwl_trans_pcie_dump_data()
3433 if (dump_mask & BIT(IWL_FW_ERROR_DUMP_TXCMD) && cmdq) in iwl_trans_pcie_dump_data()
3435 cmdq->n_window * (sizeof(*txcmd) + in iwl_trans_pcie_dump_data()
3483 if (dump_mask & BIT(IWL_FW_ERROR_DUMP_TXCMD) && cmdq) { in iwl_trans_pcie_dump_data()
3488 spin_lock_bh(&cmdq->lock); in iwl_trans_pcie_dump_data()
3489 ptr = cmdq->write_ptr; in iwl_trans_pcie_dump_data()
3490 for (i = 0; i < cmdq->n_window; i++) { in iwl_trans_pcie_dump_data()
3491 u8 idx = iwl_txq_get_cmd_index(cmdq, ptr); in iwl_trans_pcie_dump_data()
3501 (u8 *)cmdq->tfds + in iwl_trans_pcie_dump_data()
3509 memcpy(txcmd->data, cmdq in iwl_trans_pcie_dump_data()
3374 struct iwl_txq *cmdq = trans->txqs.txq[trans->txqs.cmd.q_id]; iwl_trans_pcie_dump_data() local
[all...]
/freebsd/sys/contrib/device-tree/src/arm64/arm/
H A Dfvp-base-revc.dts258 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
/freebsd/sys/contrib/device-tree/src/arm64/rockchip/
H A Drk3588-base.dtsi556 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
568 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dimx95.dtsi1470 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";