| /freebsd/sys/arm64/broadcom/genet/ |
| H A D | if_genetreg.h | 126 #define GENET_RX_DMA_RINGBASE(qid) (GENET_RX_BASE + 0xc00 + GENET_DMA_RING_SIZE * (qid)) argument 127 #define GENET_RX_DMA_WRITE_PTR_LO(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x00) argument 128 #define GENET_RX_DMA_WRITE_PTR_HI(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x04) argument 129 #define GENET_RX_DMA_PROD_INDEX(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x08) argument 130 #define GENET_RX_DMA_CONS_INDEX(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x0c) argument 132 #define GENET_RX_DMA_RING_BUF_SIZE(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x10) argument 137 #define GENET_RX_DMA_START_ADDR_LO(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x14) argument 138 #define GENET_RX_DMA_START_ADDR_HI(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x18) argument 139 #define GENET_RX_DMA_END_ADDR_LO(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x1c) argument 140 #define GENET_RX_DMA_END_ADDR_HI(qid) (GENET_RX_DMA_RINGBASE(qid) + 0x20) argument [all …]
|
| H A D | if_genet.c | 722 gen_init_txring(struct gen_softc *sc, int queue, int qid, int base, in gen_init_txring() argument 730 q->hwindex = qid; in gen_init_txring() 740 WR4(sc, GENET_TX_DMA_READ_PTR_LO(qid), 0); in gen_init_txring() 741 WR4(sc, GENET_TX_DMA_READ_PTR_HI(qid), 0); in gen_init_txring() 742 WR4(sc, GENET_TX_DMA_CONS_INDEX(qid), 0); in gen_init_txring() 743 WR4(sc, GENET_TX_DMA_PROD_INDEX(qid), 0); in gen_init_txring() 744 WR4(sc, GENET_TX_DMA_RING_BUF_SIZE(qid), in gen_init_txring() 747 WR4(sc, GENET_TX_DMA_START_ADDR_LO(qid), 0); in gen_init_txring() 748 WR4(sc, GENET_TX_DMA_START_ADDR_HI(qid), 0); in gen_init_txring() 749 WR4(sc, GENET_TX_DMA_END_ADDR_LO(qid), in gen_init_txring() [all …]
|
| /freebsd/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | resource.c | 101 u32 qid; in c4iw_put_resource() 109 qid = entry->qid; in c4iw_get_cqid() 112 qid = c4iw_get_resource(&rdev->resource.qid_table); in c4iw_get_cqid() 113 if (!qid) in c4iw_get_cqid() 116 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid() 118 for (i = qid+1; i & rdev->qpmask; i++) { in c4iw_get_cqid() 122 entry->qid = i; in c4iw_get_cqid() 133 entry->qid = qid; in c4iw_get_cqid() 107 u32 qid; c4iw_get_cqid() local 159 c4iw_put_cqid(struct c4iw_rdev * rdev,u32 qid,struct c4iw_dev_ucontext * uctx) c4iw_put_cqid() argument 177 u32 qid; c4iw_get_qpid() local 229 c4iw_put_qpid(struct c4iw_rdev * rdev,u32 qid,struct c4iw_dev_ucontext * uctx) c4iw_put_qpid() argument [all...] |
| /freebsd/sys/contrib/alpine-hal/ |
| H A D | al_hal_udma_debug.c | 206 static void al_udma_regs_m2s_q_print(struct al_udma *udma, uint32_t qid) in al_udma_regs_m2s_q_print() argument 208 al_dbg("M2S Q[%d] status regs:\n", qid); in al_udma_regs_m2s_q_print() 209 al_reg_write32(&udma->udma_regs->m2s.m2s.indirect_ctrl, qid); in al_udma_regs_m2s_q_print() 215 al_dbg("M2S Q[%d] regs:\n", qid); in al_udma_regs_m2s_q_print() 216 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, m2s_q[qid], cfg); in al_udma_regs_m2s_q_print() 217 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, m2s_q[qid], status); in al_udma_regs_m2s_q_print() 218 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, m2s_q[qid], tdrbp_low); in al_udma_regs_m2s_q_print() 219 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, m2s_q[qid], tdrbp_high); in al_udma_regs_m2s_q_print() 220 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, m2s_q[qid], tdrl); in al_udma_regs_m2s_q_print() 221 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, m2s_q[qid], tdrhp); in al_udma_regs_m2s_q_print() [all …]
|
| H A D | al_hal_udma_main.c | 274 int al_udma_q_init(struct al_udma *udma, uint32_t qid, in al_udma_q_init() argument 282 if (qid >= udma->num_of_queues) { in al_udma_q_init() 283 al_err("udma: invalid queue id (%d)\n", qid); in al_udma_q_init() 287 if (udma->udma_q[qid].status == AL_QUEUE_ENABLED) { in al_udma_q_init() 288 al_err("udma: queue (%d) already enabled!\n", qid); in al_udma_q_init() 293 al_err("udma: queue (%d) size too small\n", qid); in al_udma_q_init() 298 al_err("udma: queue (%d) size too large\n", qid); in al_udma_q_init() 304 q_params->size, qid); in al_udma_q_init() 308 udma_q = &udma->udma_q[qid]; in al_udma_q_init() 312 &udma->udma_regs->m2s.m2s_q[qid]; in al_udma_q_init() [all …]
|
| H A D | al_hal_udma_regs_gen.h | 262 #define UDMA_GEN_TGTID_CFG_TGTID_SHIFT(qid) (((qid) & 0x1) ? 16 : 0) argument 263 #define UDMA_GEN_TGTID_CFG_TGTID_MASK(qid) (((qid) & 0x1) ? 0xFFFF0000 : 0x0000FFFF) argument 297 #define UDMA_GEN_TGTADDR_CFG_SHIFT(qid) (((qid) & 0x1) ? 16 : 0) argument 298 #define UDMA_GEN_TGTADDR_CFG_MASK(qid) (((qid) & 0x1) ? 0xFFFF0000 : 0x0000FFFF) argument
|
| H A D | al_hal_udma_config.c | 832 udma_q->udma->name, udma_q->qid, act); in al_udma_m2s_q_rlimit_act() 1121 uint32_t qid) in al_udma_gen_tgtid_conf_queue_set() argument 1126 al_assert(qid < DMA_MAX_Q); in al_udma_gen_tgtid_conf_queue_set() 1131 (conf->tx_q_conf[qid].desc_en << qid) << in al_udma_gen_tgtid_conf_queue_set() 1133 (conf->tx_q_conf[qid].desc_en << qid) << in al_udma_gen_tgtid_conf_queue_set() 1138 (conf->tx_q_conf[qid].queue_en << qid) << in al_udma_gen_tgtid_conf_queue_set() 1140 (conf->tx_q_conf[qid].queue_en << qid) << in al_udma_gen_tgtid_conf_queue_set() 1145 (conf->rx_q_conf[qid].desc_en << qid) << in al_udma_gen_tgtid_conf_queue_set() 1147 (conf->rx_q_conf[qid].desc_en << qid) << in al_udma_gen_tgtid_conf_queue_set() 1152 (conf->rx_q_conf[qid].queue_en << qid) << in al_udma_gen_tgtid_conf_queue_set() [all …]
|
| /freebsd/sys/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 …]
|
| /freebsd/sys/dev/apple_bce/ |
| H A D | apple_bce_queue.c | 67 bce_alloc_cq(struct apple_bce_softc *sc, int qid, uint32_t el_count) in bce_alloc_cq() argument 74 cq->qid = qid; in bce_alloc_cq() 130 cfg->qid = (uint16_t)cq->qid; in bce_get_cq_memcfg() 156 if (e->qid > 0 && e->qid < BCE_MAX_QUEUE_COUNT) { in bce_handle_cq_completions() 157 sq = (struct bce_queue_sq *)sc->sc_queues[e->qid]; in bce_handle_cq_completions() 180 bus_write_4(sc->sc_bar2, BCE_REG_DOORBELL_BASE + cq->qid * 4, in bce_handle_cq_completions() 198 bce_alloc_sq(struct apple_bce_softc *sc, int qid, uint32_t el_size, in bce_alloc_sq() argument 206 sq->qid = qid; in bce_alloc_sq() 266 cfg->qid = (uint16_t)sq->qid; in bce_get_sq_memcfg() 268 cfg->vector_or_cq = (uint16_t)cq->qid; in bce_get_sq_memcfg() [all …]
|
| H A D | apple_bce.h | 90 uint16_t qid; /* Source SQ */ member 122 uint16_t qid; member 149 int qid; member 162 int qid; member 217 uint16_t qid; member 234 uint16_t qid; member
|
| H A D | apple_bce_queue.h | 17 struct bce_queue_cq *bce_alloc_cq(struct apple_bce_softc *sc, int qid, 26 struct bce_queue_sq *bce_alloc_sq(struct apple_bce_softc *sc, int qid, 48 struct apple_bce_softc *sc, int qid); 50 struct apple_bce_softc *sc, int qid);
|
| /freebsd/sbin/ipfw/ |
| H A D | altq.c | 103 if (pfioc.altq.qid == 0) in altq_fetch() 123 return altq->qid; in altq_name_to_qid() 127 altq_qid_to_name(u_int32_t qid) in altq_qid_to_name() argument 133 if (qid == altq->qid) in altq_qid_to_name() 146 qname = altq_qid_to_name(altqptr->qid); in print_altq_cmd() 148 bprintf(bp, " altq ?<%u>", altqptr->qid); in print_altq_cmd()
|
| /freebsd/tools/tools/nvmf/nvmfd/ |
| H A D | io.c | 451 handle_io_qpair(struct io_controller *ioc, struct nvmf_qpair *qp, int qid) in handle_io_qpair() argument 456 snprintf(name, sizeof(name), "I/O queue %d", qid); in handle_io_qpair() 463 ioc->io_qpairs[qid - 1] = NULL; in handle_io_qpair() 464 if (ioc->io_sockets[qid - 1] != -1) { in handle_io_qpair() 465 close(ioc->io_sockets[qid - 1]); in handle_io_qpair() 466 ioc->io_sockets[qid - 1] = -1; in handle_io_qpair() 529 const struct nvmf_fabric_connect_data *data, uint16_t qid) in connect_io_qpair() argument 572 if (qid > io_controller->num_io_queues) { in connect_io_qpair() 574 warnx("Attempt to create invalid I/O qpair %u", qid); in connect_io_qpair() 576 offsetof(struct nvmf_fabric_connect_cmd, qid)); in connect_io_qpair() [all …]
|
| /freebsd/contrib/lib9p/pytest/ |
| H A D | p9conn.py | 794 self.rootqid = resp.qid 898 return rfid, statval.qid 965 if resp.qid.type == protocol.td.QTFILE: 969 return resp.qid, resp.iounit 979 return resp.qid, resp.iounit 989 return resp.qid, resp.iounit 1044 'qid': protocol.td.qid(0, 0, 0), 1079 statobj.qid = None 1185 return resp.qid, resp.iounit 1197 return resp.qid [all …]
|
| /freebsd/sys/dev/ena/ |
| H A D | ena_netmap.h | 54 bool ena_rx_ring_in_netmap(struct ena_adapter *adapter, int qid); 55 bool ena_tx_ring_in_netmap(struct ena_adapter *adapter, int qid); 56 void ena_netmap_reset_rx_ring(struct ena_adapter *adapter, int qid); 57 void ena_netmap_reset_tx_ring(struct ena_adapter *adapter, int qid);
|
| H A D | ena_netmap.c | 113 int nm_i, qid, head, lim, rc; in ena_netmap_alloc_rx_slot() local 119 qid = rx_ring->qid; in ena_netmap_alloc_rx_slot() 120 kring = na->rx_rings[qid]; in ena_netmap_alloc_rx_slot() 137 ena_log_nm(adapter->pdev, ERR, "Rx ring %d is NULL\n", qid); in ena_netmap_alloc_rx_slot() 175 int nm_i, qid, lim; in ena_netmap_free_rx_slot() local 188 qid = rx_ring->qid; in ena_netmap_free_rx_slot() 189 kring = na->rx_rings[qid]; in ena_netmap_free_rx_slot() 192 "netmap kernel ring %d is NULL\n", qid); in ena_netmap_free_rx_slot() 219 ena_ring_in_netmap(struct ena_adapter *adapter, int qid, enum txrx x) in ena_ring_in_netmap() argument 227 kring = (x == NR_RX) ? na->rx_rings[qid] : na->tx_rings[qid]; in ena_ring_in_netmap() [all …]
|
| /freebsd/sys/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_mtwreg.h | 49 #define RT2860_TX_BASE_PTR(qid) (0x0230 + (qid) * 16) argument 50 #define RT2860_TX_MAX_CNT(qid) (0x0234 + (qid) * 16) argument 51 #define RT2860_TX_CTX_IDX(qid) (0x0238 + (qid) * 16) argument 52 #define RT2860_TX_DTX_IDX(qid) (0x023c + (qid) * 16) argument 73 #define RT2860_TXQ_IO(qid) (0x041c + (qid) * 4) argument 398 #define RT2860_WRITE_TXQ(qid) (1 << (11 - (qid))) argument 402 #define RT2860_READ_TXQ(qid) (1 << (3 - (qid)) argument
|
| /freebsd/sys/fs/p9fs/ |
| H A D | p9_client.c | 606 struct p9_qid qid; in p9_client_attach() local 622 *error = p9_buf_readf(&req->rc, clnt->proto_version, "Q", &qid); in p9_client_attach() 630 qid.type, (unsigned long long)qid.path, qid.version); in p9_client_attach() 632 memmove(&fid->qid, &qid, sizeof(struct p9_qid)); in p9_client_attach() 795 memmove(&fid->qid, &wqids[nwqids - 1], sizeof(struct p9_qid)); in p9_client_walk() 797 fid->qid = oldfid->qid; in p9_client_walk() 841 error = p9_buf_readf(&req->rc, clnt->proto_version, "Qd", &fid->qid, in p9_client_open() 848 (fid->qid).type, (unsigned long long)(fid->qid).path, in p9_client_open() 849 (fid->qid).version, mtu); in p9_client_open() 1051 struct p9_qid qid; in p9_client_file_create() local [all …]
|
| H A D | p9_protocol.c | 187 struct p9_qid *qid = va_arg(ap, struct p9_qid *); in p9_buf_vreadf() local 190 &qid->type, &qid->version, &qid->path); in p9_buf_vreadf() 199 &stbuf->size, &stbuf->type, &stbuf->dev, &stbuf->qid, in p9_buf_vreadf() 213 &stbuf->st_result_mask, &stbuf->qid, &stbuf->st_mode, in p9_buf_vreadf() 407 const struct p9_qid *qid = va_arg(ap, const struct p9_qid *); in p9_buf_vwritef() local 410 qid->type, qid->version, qid->path); in p9_buf_vwritef() 418 "wwdQdddqssss?sddd", stbuf->size, stbuf->type, stbuf->dev, &stbuf->qid, in p9_buf_vwritef() 619 ret = p9_buf_readf(&msg_buf, clnt->proto_version, "Qqbs", &dent->qid, in p9_dirent_read()
|
| /freebsd/sys/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 | 1402 int qid; in iwn_detach() local 1433 for (qid = 0; qid < sc->ntxqs; qid++) in iwn_detach() 1434 iwn_free_tx_ring(sc, &sc->txq[qid]); in iwn_detach() 1991 iwn_alloc_tx_ring(struct iwn_softc *sc, struct iwn_tx_ring *ring, int qid) in iwn_alloc_tx_ring() argument 1997 ring->qid = qid; in iwn_alloc_tx_ring() 2088 sc->qfullmsk &= ~(1 << ring->qid); in iwn_reset_tx_ring() 2122 iwn_check_tx_ring(struct iwn_softc *sc, int qid) in iwn_check_tx_ring() argument 2124 struct iwn_tx_ring *ring = &sc->txq[qid]; in iwn_check_tx_ring() 2127 __func__, ring->queued, qid)); in iwn_check_tx_ring() 2129 if (qid >= sc->firstaggqueue) { in iwn_check_tx_ring() [all …]
|
| /freebsd/sys/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()
|
| /freebsd/sys/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
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | usb.c | 362 enum mt76_rxq_id qid = q - &dev->q_rx[MT_RXQ_MAIN]; in mt76u_refill_rx() local 365 if (qid == MT_RXQ_MAIN && dev->usb.sg_en) in mt76u_refill_rx() 399 enum mt76_rxq_id qid = q - &dev->q_rx[MT_RXQ_MAIN]; in mt76u_rx_urb_alloc() local 402 sg_size = qid == MT_RXQ_MAIN ? MT_RX_SG_MAX_SIZE : 0; in mt76u_rx_urb_alloc() 603 mt76u_submit_rx_buf(struct mt76_dev *dev, enum mt76_rxq_id qid, in mt76u_submit_rx_buf() argument 606 int ep = qid == MT_RXQ_MAIN ? MT_EP_IN_PKT_RX : MT_EP_IN_CMD_RESP; in mt76u_submit_rx_buf() 609 mt76u_complete_rx, &dev->q_rx[qid]); in mt76u_submit_rx_buf() 618 int qid = q - &dev->q_rx[MT_RXQ_MAIN]; in mt76u_process_rx_queue() local 633 mt76u_submit_rx_buf(dev, qid, urb); in mt76u_process_rx_queue() 635 if (qid == MT_RXQ_MAIN) { in mt76u_process_rx_queue() [all …]
|