/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_rcfw.c | 52 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 D | qplib_rcfw.h | 149 (test_bit(ERR_DEVICE_DETACHED, &(rcfw)->cmdq.flags) || \ 275 struct bnxt_qplib_cmdq_ctx cmdq; member
|
H A D | main.c | 321 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 D | if_rtwn_task.c | 61 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 D | smmu.c | 345 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 D | if_mtw.c | 903 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 D | if_run.c | 1150 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 D | if_rumvar.h | 134 struct rum_cmdq cmdq[RUM_CMDQ_SIZE]; member
|
H A D | if_runvar.h | 223 struct run_cmdq cmdq[RUN_CMDQ_MAX]; member
|
H A D | if_mtwvar.h | 299 struct mtw_cmdq cmdq[MTW_CMDQ_MAX]; member
|
H A D | if_rum.c | 748 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 D | ng_hci_main.c | 151 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 D | ng_hci_cmds.c | 110 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 D | ng_hci_ulpi.c | 307 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 D | ng_hci_var.h | 155 ng_bt_mbufq_t cmdq; /* command queue */ member
|
H A D | ng_hci_misc.c | 141 NG_BT_MBUFQ_DRAIN(&unit->cmdq); in ng_hci_unit_clean()
|
H A D | ng_hci_evnt.c | 789 NG_BT_MBUFQ_ENQUEUE(&unit->cmdq, m); in con_compl()
|
/freebsd/sys/dev/iwi/ |
H A D | if_iwi.c | 332 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 D | if_iwivar.h | 151 struct iwi_cmd_ring cmdq; member
|
/freebsd/sys/contrib/dev/iwlwifi/pcie/ |
H A D | trans.c | 3417 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 D | fvp-base-revc.dts | 258 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
|
/freebsd/sys/contrib/device-tree/src/arm64/rockchip/ |
H A D | rk3588-base.dtsi | 556 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 D | imx95.dtsi | 1470 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
|