/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/usb/ |
H A D | rtwn_usb_tx.c | 136 rtwn_bulk_tx_callback_qid(struct usb_xfer *xfer, usb_error_t error, int qid) in rtwn_bulk_tx_callback_qid() argument 145 "%s: called, qid=%d\n", __func__, qid); in rtwn_bulk_tx_callback_qid() 151 data = STAILQ_FIRST(&uc->uc_tx_active[qid]); in rtwn_bulk_tx_callback_qid() 154 STAILQ_REMOVE_HEAD(&uc->uc_tx_active[qid], next); in rtwn_bulk_tx_callback_qid() 159 data = STAILQ_FIRST(&uc->uc_tx_pending[qid]); in rtwn_bulk_tx_callback_qid() 166 STAILQ_REMOVE_HEAD(&uc->uc_tx_pending[qid], next); in rtwn_bulk_tx_callback_qid() 167 STAILQ_INSERT_TAIL(&uc->uc_tx_active[qid], data, next); in rtwn_bulk_tx_callback_qid() 181 data = STAILQ_FIRST(&uc->uc_tx_active[qid]); in rtwn_bulk_tx_callback_qid() 184 STAILQ_REMOVE_HEAD(&uc->uc_tx_active[qid], next); in rtwn_bulk_tx_callback_qid() 190 qid, in rtwn_bulk_tx_callback_qid() [all …]
|
H A D | rtwn_usb_var.h | 40 int qid; member
|
/haiku/src/libs/compat/freebsd_iflib/ |
H A D | subr_gtaskqueue.c | 736 int cpu, qid, error; in taskqgroup_attach() local 744 qid = taskqgroup_find(qgroup, uniq); in taskqgroup_attach() 745 qgroup->tqg_queue[qid].tgc_cnt++; in taskqgroup_attach() 746 LIST_INSERT_HEAD(&qgroup->tqg_queue[qid].tgc_tasks, gtask, gt_list); in taskqgroup_attach() 747 gtask->gt_taskqueue = qgroup->tqg_queue[qid].tgc_taskq; in taskqgroup_attach() 749 cpu = qgroup->tqg_queue[qid].tgc_cpu; in taskqgroup_attach() 763 int qid, cpu, error; in taskqgroup_attach_deferred() local 766 qid = taskqgroup_find(qgroup, gtask->gt_uniq); in taskqgroup_attach_deferred() 767 cpu = qgroup->tqg_queue[qid].tgc_cpu; in taskqgroup_attach_deferred() 777 qgroup->tqg_queue[qid].tgc_cnt++; in taskqgroup_attach_deferred() [all …]
|
H A D | iflib.c | 1421 #define netmap_rx_irq(ifp, qid, budget) (0) argument 3603 calc_next_txd(iflib_txq_t txq, int cidx, uint8_t qid) in calc_next_txd() argument 3610 size = txq->ift_txd_size[qid]; in calc_next_txd() 3611 start = txq->ift_ifdi[qid].idi_vaddr; in calc_next_txd() 5107 get_cpuid_for_queue(if_ctx_t ctx, unsigned int base_cpuid, unsigned int qid, in get_cpuid_for_queue() argument 5125 is_tx && qid < scctx->isc_nrxqsets) { in get_cpuid_for_queue() 5129 rx_cpuid = cpuid_advance(ctx, base_cpuid, qid); in get_cpuid_for_queue() 5146 core_index = scctx->isc_nrxqsets + qid; in get_cpuid_for_queue() 5148 core_index = qid; in get_cpuid_for_queue() 5150 core_index = qid; in get_cpuid_for_queue() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/ |
H A D | rtwn_pci_tx.c | 98 uint8_t qid; in rtwn_pci_tx_start_frame() local 106 qid = RTWN_PCI_MGNT_QUEUE; in rtwn_pci_tx_start_frame() 109 qid = M_WME_GETAC(m); in rtwn_pci_tx_start_frame() 113 ring = &pc->tx_ring[qid]; in rtwn_pci_tx_start_frame() 117 "%s: ring #%u is full (m %p)\n", __func__, qid, data->m); in rtwn_pci_tx_start_frame() 126 __func__, ring->cur, qid); in rtwn_pci_tx_start_frame() 184 sc->qfullmsk |= (1 << qid); in rtwn_pci_tx_start_frame() 191 rtwn_write_2(sc, R92C_PCIE_CTRL_REG, (1 << qid)); in rtwn_pci_tx_start_frame()
|
H A D | rtwn_pci_attach.c | 265 rtwn_pci_alloc_tx_list(struct rtwn_softc *sc, int qid) in rtwn_pci_alloc_tx_list() argument 268 struct rtwn_tx_ring *tx_ring = &pc->tx_ring[qid]; in rtwn_pci_alloc_tx_list() 325 rtwn_pci_free_tx_list(sc, qid); in rtwn_pci_alloc_tx_list() 330 rtwn_pci_reset_tx_ring_stopped(struct rtwn_softc *sc, int qid) in rtwn_pci_reset_tx_ring_stopped() argument 333 struct rtwn_tx_ring *ring = &pc->tx_ring[qid]; in rtwn_pci_reset_tx_ring_stopped() 358 sc->qfullmsk &= ~(1 << qid); in rtwn_pci_reset_tx_ring_stopped() 395 int qid) in rtwn_pci_reset_tx_list() argument 400 if (qid != RTWN_PCI_BEACON_QUEUE) { in rtwn_pci_reset_tx_list() 404 rtwn_pci_reset_tx_ring_stopped(sc, qid); in rtwn_pci_reset_tx_list() 409 } else if (qid == RTWN_PCI_BEACON_QUEUE && in rtwn_pci_reset_tx_list() [all …]
|
H A D | rtwn_pci_rx.c | 246 rtwn_pci_tx_done(struct rtwn_softc *sc, int qid) in rtwn_pci_tx_done() argument 249 struct rtwn_tx_ring *ring = &pc->tx_ring[qid]; in rtwn_pci_tx_done() 254 __func__, qid, ring->last, ring->cur); in rtwn_pci_tx_done() 280 ("ring->queued (qid %d) underflow!\n", qid)); in rtwn_pci_tx_done() 294 if ((sc->qfullmsk & (1 << qid)) != 0 && in rtwn_pci_tx_done() 296 sc->qfullmsk &= ~(1 << qid); in rtwn_pci_tx_done()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/usb/wlan/ |
H A D | if_runreg.h | 41 #define RT2860_TX_BASE_PTR(qid) (0x0230 + (qid) * 16) argument 42 #define RT2860_TX_MAX_CNT(qid) (0x0234 + (qid) * 16) argument 43 #define RT2860_TX_CTX_IDX(qid) (0x0238 + (qid) * 16) argument 44 #define RT2860_TX_DTX_IDX(qid) (0x023c + (qid) * 16) argument 60 #define RT2860_TXQ_IO(qid) (0x041c + (qid) * 4) argument 328 #define RT2860_WRITE_TXQ(qid) (1 << (11 - (qid))) argument 332 #define RT2860_READ_TXQ(qid) (1 << (3 - (qid)) argument
|
H A D | if_rumreg.h | 253 uint8_t qid; member
|
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/ |
H A D | rt2860reg.h | 46 #define RT2860_TX_BASE_PTR(qid) (0x0230 + (qid) * 16) argument 47 #define RT2860_TX_MAX_CNT(qid) (0x0234 + (qid) * 16) argument 48 #define RT2860_TX_CTX_IDX(qid) (0x0238 + (qid) * 16) argument 49 #define RT2860_TX_DTX_IDX(qid) (0x023c + (qid) * 16) argument 65 #define RT2860_TXQ_IO(qid) (0x041c + (qid) * 4) argument 344 #define RT2860_WRITE_TXQ(qid) (1 << (11 - (qid))) argument 348 #define RT2860_READ_TXQ(qid) (1 << (3 - (qid)) argument
|
H A D | rt2860.c | 240 int error, ntries, qid; in rt2860_attach() local 281 for (qid = 0; qid < 6; qid++) { in rt2860_attach() 282 if ((error = rt2860_alloc_tx_ring(sc, &sc->txq[qid])) != 0) { in rt2860_attach() 284 "could not allocate Tx ring %d\n", qid); in rt2860_attach() 364 fail2: while (--qid >= 0) in rt2860_attach() 365 rt2860_free_tx_ring(sc, &sc->txq[qid]); in rt2860_attach() 375 int qid; in rt2860_detach() local 383 for (qid = 0; qid < 6; qid++) in rt2860_detach() 384 rt2860_free_tx_ring(sc, &sc->txq[qid]); in rt2860_detach() 1127 rt2860_tx_intr(struct rt2860_softc *sc, int qid) in rt2860_tx_intr() argument [all …]
|
H A D | rt2661reg.h | 245 uint8_t qid; member
|
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi4965/dev/iwn/ |
H A D | if_iwnreg.h | 110 #define IWN_FH_TFBD_CTRL0(qid) (0x1900 + (qid) * 8) argument 111 #define IWN_FH_TFBD_CTRL1(qid) (0x1904 + (qid) * 8) argument 113 #define IWN_FH_SRAM_ADDR(qid) (0x19a4 + (qid) * 4) argument 114 #define IWN_FH_CBBC_QUEUE(qid) (0x19d0 + (qid) * 4) argument 120 #define IWN_FH_TX_CONFIG(qid) (0x1d00 + (qid) * 32) argument 121 #define IWN_FH_TXBUF_STATUS(qid) (0x1d08 + (qid) * 32) argument 134 #define IWN4965_SCHED_QUEUE_RDPTR(qid) (IWN_SCHED_BASE + 0x064 + (qid) * 4) argument 135 #define IWN5000_SCHED_QUEUE_RDPTR(qid) (IWN_SCHED_BASE + 0x068 + (qid) * 4) argument 139 #define IWN4965_SCHED_QUEUE_STATUS(qid) (IWN_SCHED_BASE + 0x104 + (qid) * 4) argument 141 #define IWN5000_SCHED_QUEUE_STATUS(qid) (IWN_SCHED_BASE + 0x10c + (qid) * 4) argument [all …]
|
H A D | if_iwn.c | 1401 int qid; in iwn_detach() local 1432 for (qid = 0; qid < sc->ntxqs; qid++) in iwn_detach() 1433 iwn_free_tx_ring(sc, &sc->txq[qid]); in iwn_detach() 1992 iwn_alloc_tx_ring(struct iwn_softc *sc, struct iwn_tx_ring *ring, int qid) in iwn_alloc_tx_ring() argument 1998 ring->qid = qid; in iwn_alloc_tx_ring() 2089 sc->qfullmsk &= ~(1 << ring->qid); in iwn_reset_tx_ring() 2123 iwn_check_tx_ring(struct iwn_softc *sc, int qid) in iwn_check_tx_ring() argument 2125 struct iwn_tx_ring *ring = &sc->txq[qid]; in iwn_check_tx_ring() 2128 __func__, ring->queued, qid)); in iwn_check_tx_ring() 2130 if (qid >= sc->firstaggqueue) { in iwn_check_tx_ring() [all …]
|
H A D | if_iwnvar.h | 116 int qid; member
|
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi/ |
H A D | if_wpireg.h | 81 #define WPI_FH_CBBC_CTRL(qid) (0x940 + (qid) * 8) argument 82 #define WPI_FH_CBBC_BASE(qid) (0x944 + (qid) * 8) argument 89 #define WPI_FH_TX_CONFIG(qid) (0xd00 + (qid) * 32) argument 210 #define WPI_FH_TX_STATUS_IDLE(qid) \ argument 211 (1 << ((qid) + 24) | 1 << ((qid) + 16)) 295 uint8_t qid; member 360 uint8_t qid; member
|
H A D | if_wpi.c | 681 uint8_t qid; in wpi_detach() local 708 for (qid = 0; qid < WPI_DRV_NTXQUEUES; qid++) in wpi_detach() 709 wpi_free_tx_ring(sc, &sc->txq[qid]); in wpi_detach() 1153 wpi_alloc_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring, uint8_t qid) in wpi_alloc_tx_ring() argument 1159 ring->qid = qid; in wpi_alloc_tx_ring() 1179 sc->shared->txbase[qid] = htole32(ring->desc_dma.paddr); in wpi_alloc_tx_ring() 1231 WPI_WRITE(sc, WPI_HBUS_TARG_WRPTR, ring->qid << 8 | ring->cur); in wpi_update_tx_ring() 1246 __func__, ring->qid); in wpi_update_tx_ring_ps() 2054 struct wpi_tx_ring *ring = &sc->txq[desc->qid & 0x3]; in wpi_tx_done() 2068 "status %x\n", __func__, desc->qid, desc->idx, stat->ackfailcnt, in wpi_tx_done() [all …]
|
H A D | if_wpivar.h | 75 uint8_t qid; member
|
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/ |
H A D | if_iwm.c | 1426 iwm_alloc_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring, int qid) in iwm_alloc_tx_ring() argument 1432 ring->qid = qid; in iwm_alloc_tx_ring() 1466 if (qid > IWM_LAST_AGG_TX_QUEUE) in iwm_alloc_tx_ring() 1488 if (qid == IWM_CMD_QUEUE || qid == IWM_DQA_CMD_QUEUE) in iwm_alloc_tx_ring() 1529 sc->qfullmsk &= ~(1 << ring->qid); in iwm_reset_tx_ring() 1530 sc->qenablemsk &= ~(1 << ring->qid); in iwm_reset_tx_ring() 1532 if (ring->qid == sc->cmdqid && ring->queued > 0) { in iwm_reset_tx_ring() 2082 int qid; in iwm_stop_device() local 2111 for (qid = 0; qid < nitems(sc->txq); qid++) in iwm_stop_device() 2112 iwm_reset_tx_ring(sc, &sc->txq[qid]); in iwm_stop_device() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/ |
H A D | igc_txrx.c | 88 qidx_t i, ntxd, qid, cur; in igc_dump_rs() local 94 for (qid = 0; qid < adapter->tx_num_queues; qid++) { in igc_dump_rs() 95 que = &adapter->tx_queues[qid]; in igc_dump_rs() 102 printf("qid[%d]->tx_rsq[%d]: %d clear ", qid, rs_cidx, cur); in igc_dump_rs() 106 printf("qid[%d]->tx_rsq[rs_cidx-1=%d]: %d ", qid, rs_cidx, cur); in igc_dump_rs()
|
/haiku/src/libs/compat/freebsd_iflib/compat/net/ |
H A D | iflib.h | 464 void *filter_arg, int qid, const char *name); 466 iflib_intr_type_t type, void *arg, int qid, 506 int qid, const char *name);
|
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/ |
H A D | em_txrx.c | 100 qidx_t i, ntxd, qid, cur; in em_dump_rs() local 106 for (qid = 0; qid < sc->tx_num_queues; qid++) { in em_dump_rs() 107 que = &sc->tx_queues[qid]; in em_dump_rs() 114 printf("qid[%d]->tx_rsq[%d]: %d clear ", qid, rs_cidx, cur); in em_dump_rs() 118 printf("qid[%d]->tx_rsq[rs_cidx-1=%d]: %d ", qid, rs_cidx, cur); in em_dump_rs()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/ |
H A D | if_iwx.c | 2034 iwx_alloc_tx_ring(struct iwx_softc *sc, struct iwx_tx_ring *ring, int qid) in iwx_alloc_tx_ring() argument 2042 ring->qid = qid; in iwx_alloc_tx_ring() 2109 if (qid == IWX_DQA_CMD_QUEUE) in iwx_alloc_tx_ring() 2154 sc->qfullmsk &= ~(1 << ring->qid); in iwx_reset_tx_ring() 2155 sc->qenablemsk &= ~(1 << ring->qid); in iwx_reset_tx_ring() 2157 if (sc->aggqid[i] == ring->qid) { in iwx_reset_tx_ring() 2824 iwx_enable_txq(struct iwx_softc *sc, int sta_id, int qid, int tid, in iwx_enable_txq() argument 2835 struct iwx_tx_ring *ring = &sc->txq[qid]; in iwx_enable_txq() 2895 if (fwqid != qid) { in iwx_enable_txq() 2905 sc->qenablemsk |= (1 << qid); in iwx_enable_txq() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/ether/vmx/dev/vmxnet3/ |
H A D | if_vmxreg.h | 146 uint32_t qid:10; member
|
H A D | if_vmx.c | 1609 flid = (rxcd->qid >= scctx->isc_nrxqsets) ? 1 : 0; in vmxnet3_isc_rxd_pkt_get() 2071 vmxnet3_txq_timer(if_ctx_t ctx, uint16_t qid) in vmxnet3_txq_timer() argument 2074 if (qid == 0) in vmxnet3_txq_timer() 2468 vmxnet3_tx_queue_intr_enable(if_ctx_t ctx, uint16_t qid) in vmxnet3_tx_queue_intr_enable() argument 2475 vmxnet3_rx_queue_intr_enable(if_ctx_t ctx, uint16_t qid) in vmxnet3_rx_queue_intr_enable() argument 2480 vmxnet3_enable_intr(sc, sc->vmx_rxq[qid].vxrxq_intr_idx); in vmxnet3_rx_queue_intr_enable()
|