/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() 58 /* No activity on CMDQ or CREQ. FW down */ 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() [all …]
|
H A D | qplib_rcfw.h | 113 /* Cmdq contains a fix number of a 16-Byte slots */ 132 /* CMDQ elements */ 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() 1063 /* No need to check for cmdq stall during module exit, 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 [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | storage_common.h | 115 * Scsi Drv CMDQ struct 119 __le16 cmdq_cons /* CMDQ consumer - updated by driver when CMDQ is consumed */; 136 * SCSI RQ/CQ/CMDQ firmware function init parameters 140 struct regpair glbl_q_params_addr /* Global Qs (CQ/RQ/CMDQ) params host address */; 143 __le16 cmdq_num_entries /* CMDQ num entries */; 158 __le16 cq_cmdq_sb_num_arr[SCSI_MAX_NUM_OF_CMDQS] /* CQ/CMDQ status block number array */; 162 u8 cmdq_sb_pi /* Protocol Index of CMDQ in status block (CMDQ consumer) */; 167 …__le16 cmdq_xoff_threshold /* CMDQ XOFF threshold - when number of entries will be below that TH, … 169 …__le16 cmdq_xon_threshold /* CMDQ XON threshold - when number of entries will be above that TH, it… 209 __le16 cmdq_count /* Counts number of CMDQ placements on this connection */;
|
/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() 104 device_printf(sc->sc_dev, "%s: cmdq overflow\n", __func__); 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/contrib/device-tree/include/dt-bindings/gce/ |
H A D | mt8186-gce.h | 82 /* CMDQ: debug */ 85 /* CMDQ: P7: debug */ 348 /* CMDQ sw tokens 367 /* Notify normal CMDQ there are some secure task done 372 /* CMDQ use sw token */ 419 /* CMDQ sw tokens END */
|
/freebsd/sys/contrib/device-tree/Bindings/mailbox/ |
H A D | mediatek,gce-props.yaml | 15 (CMDQ) mailbox driver is a driver for GCE, implemented using the Linux 18 We use mediatek,gce-mailbox.yaml to define the properties for CMDQ mailbox 19 driver. A device driver that uses the CMDQ driver to configure its hardware
|
H A D | mtk-gce.txt | 6 vblank. The GCE can be used to implement the Command Queue (CMDQ) driver. 8 CMDQ driver uses mailbox framework for communication. Please refer to
|
H A D | mediatek,gce-mailbox.yaml | 15 vblank. The GCE can be used to implement the Command Queue (CMDQ) driver.
|
/freebsd/sys/arm64/iommu/ |
H A D | smmu_fdt.c | 101 * Interrupt lines are "eventq", "priq", "cmdq-sync", "gerror". in smmu_fdt_attach() 125 err = ofw_bus_find_string_index(node, "interrupt-names", "cmdq-sync", in smmu_fdt_attach() 128 device_printf(dev, "Can't get cmdq-sync IRQ.\n"); in smmu_fdt_attach() 135 device_printf(dev, "Can't allocate cmdq-sync IRQ resource.\n"); in smmu_fdt_attach()
|
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 …]
|
H A D | smmu_acpi.c | 216 * Interrupt lines are "eventq", "priq", "cmdq-sync", "gerror". in smmu_acpi_attach() 230 device_printf(dev, "Can't allocate cmdq-sync IRQ resource.\n"); in smmu_acpi_attach()
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_mtw.c | 126 * '& MTW_CMDQ_MASQ' is to loop cmdq[]. 894 * '& MTW_CMDQ_MASQ' is to loop cmdq[]. 901 /* call cmdq[].func locked */ in mtw_cmdq_cb() 903 for (i = sc->cmdq_exec; sc->cmdq[i].func && pending; in mtw_cmdq_cb() 910 * than one arg. So, pass ptr to cmdq struct. 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() [all …]
|
H A D | if_rumvar.h | 134 struct rum_cmdq cmdq[RUM_CMDQ_SIZE]; member 182 mtx_init(&(sc)->cmdq_mtx, "cmdq lock", NULL, MTX_DEF)
|
H A D | if_run.c | 124 * '& RUN_CMDQ_MASQ' is to loop cmdq[]. 1140 * '& RUN_CMDQ_MASQ' is to loop cmdq[]. 1148 /* call cmdq[].func locked */ in run_cmdq_cb() 1150 for (i = sc->cmdq_exec; sc->cmdq[i].func && pending; in run_cmdq_cb() 1157 * than one arg. So, pass ptr to cmdq struct. 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() [all …]
|
H A D | if_mtwvar.h | 299 struct mtw_cmdq cmdq[MTW_CMDQ_MAX]; member 362 //struct mtw_host_cmd_ring cmdq;
|
H A D | if_runvar.h | 223 struct run_cmdq cmdq[RUN_CMDQ_MAX]; member
|
/freebsd/sys/contrib/device-tree/Bindings/iommu/ |
H A D | arm,smmu-v3.yaml | 45 - cmdq-sync # CMD_SYNC complete 91 interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
|
/freebsd/sys/dev/firmware/arm/ |
H A D | scmi_virtio.c | 132 "VirtIO cmdq virtqueue not found. Aborting.\n"); in scmi_virtio_transport_init() 150 device_printf(dev, "Failed to set VirtIO cmdq callback.\n"); in scmi_virtio_transport_init() 155 "VirtIO cmdq virtqueue configured - cmdq_sz:%d\n", sc->cmdq_sz); in scmi_virtio_transport_init()
|
/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()
|
/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 …]
|
/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/dev/wpi/ |
H A D | if_wpivar.h | 284 mtx_init(&(_sc)->txq_mtx, "txq/cmdq lock", NULL, MTX_DEF)
|