Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/block/
Dnull_blk_main.c536 static void put_tag(struct nullb_queue *nq, unsigned int tag) in put_tag() argument
538 clear_bit_unlock(tag, nq->tag_map); in put_tag()
540 if (waitqueue_active(&nq->wait)) in put_tag()
541 wake_up(&nq->wait); in put_tag()
544 static unsigned int get_tag(struct nullb_queue *nq) in get_tag() argument
549 tag = find_first_zero_bit(nq->tag_map, nq->queue_depth); in get_tag()
550 if (tag >= nq->queue_depth) in get_tag()
552 } while (test_and_set_bit_lock(tag, nq->tag_map)); in get_tag()
559 put_tag(cmd->nq, cmd->tag); in free_cmd()
564 static struct nullb_cmd *__alloc_cmd(struct nullb_queue *nq) in __alloc_cmd() argument
[all …]
Dnull_blk_zoned.c104 struct nullb_device *dev = cmd->nq->dev; in null_zone_write()
137 struct nullb_device *dev = cmd->nq->dev; in null_zone_reset()
Dnull_blk.h21 struct nullb_queue *nq; member
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c158 struct bnxt_qplib_nq *nq = nq_work->nq; in bnxt_qpn_cqn_sched_task() local
160 if (cq && nq) { in bnxt_qpn_cqn_sched_task()
162 if (atomic_read(&cq->arm_state) && nq->cqn_handler) { in bnxt_qpn_cqn_sched_task()
163 dev_dbg(&nq->pdev->dev, in bnxt_qpn_cqn_sched_task()
165 __func__, cq, nq); in bnxt_qpn_cqn_sched_task()
166 nq->cqn_handler(nq, cq); in bnxt_qpn_cqn_sched_task()
237 struct bnxt_qplib_nq *nq = (struct bnxt_qplib_nq *)data; in bnxt_qplib_service_nq() local
238 struct bnxt_qplib_hwq *hwq = &nq->hwq; in bnxt_qplib_service_nq()
245 int budget = nq->budget; in bnxt_qplib_service_nq()
276 if (!nq->cqn_handler(nq, (cq))) in bnxt_qplib_service_nq()
[all …]
Dqplib_fp.h379 struct bnxt_qplib_nq *nq; member
455 int (*cqn_handler)(struct bnxt_qplib_nq *nq,
457 int (*srqn_handler)(struct bnxt_qplib_nq *nq,
466 struct bnxt_qplib_nq *nq; member
470 void bnxt_qplib_nq_stop_irq(struct bnxt_qplib_nq *nq, bool kill);
471 void bnxt_qplib_disable_nq(struct bnxt_qplib_nq *nq);
472 int bnxt_qplib_nq_start_irq(struct bnxt_qplib_nq *nq, int nq_indx,
474 int bnxt_qplib_enable_nq(struct pci_dev *pdev, struct bnxt_qplib_nq *nq,
476 int (*cqn_handler)(struct bnxt_qplib_nq *nq,
478 int (*srqn_handler)(struct bnxt_qplib_nq *nq,
[all …]
Dmain.c192 struct bnxt_qplib_nq *nq; in bnxt_re_stop_irq() local
196 nq = &rdev->nq[indx - 1]; in bnxt_re_stop_irq()
197 bnxt_qplib_nq_stop_irq(nq, false); in bnxt_re_stop_irq()
208 struct bnxt_qplib_nq *nq; in bnxt_re_start_irq() local
230 nq = &rdev->nq[indx - 1]; in bnxt_re_start_irq()
231 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq()
814 static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_srqn_handler() argument
844 static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_cqn_handler() argument
867 if (rdev->nq[0].hwq.max_elements) { in bnxt_re_cleanup_res()
869 bnxt_qplib_disable_nq(&rdev->nq[i - 1]); in bnxt_re_cleanup_res()
[all …]
Dib_verbs.c1332 struct bnxt_qplib_nq *nq = NULL; in bnxt_re_destroy_srq() local
1336 nq = qplib_srq->cq->nq; in bnxt_re_destroy_srq()
1347 if (nq) in bnxt_re_destroy_srq()
1348 nq->budget--; in bnxt_re_destroy_srq()
1392 struct bnxt_qplib_nq *nq = NULL; in bnxt_re_create_srq() local
1425 srq->qplib_srq.eventq_hw_ring_id = rdev->nq[0].ring_id; in bnxt_re_create_srq()
1426 nq = &rdev->nq[0]; in bnxt_re_create_srq()
1452 if (nq) in bnxt_re_create_srq()
1453 nq->budget++; in bnxt_re_create_srq()
2560 struct bnxt_qplib_nq *nq; in bnxt_re_destroy_cq() local
[all …]
Dbnxt_re.h144 struct bnxt_qplib_nq nq[BNXT_RE_MAX_MSIX]; member
/Linux-v4.19/fs/xfs/
Dxfs_trans_dquot.c80 xfs_dqtrx_t *oq, *nq; in xfs_trans_dup_dqinfo() local
106 nq = &nqa[i]; in xfs_trans_dup_dqinfo()
111 nq->qt_dquot = oq->qt_dquot; in xfs_trans_dup_dqinfo()
112 nq->qt_bcount_delta = nq->qt_icount_delta = 0; in xfs_trans_dup_dqinfo()
113 nq->qt_rtbcount_delta = 0; in xfs_trans_dup_dqinfo()
118 nq->qt_blk_res = oq->qt_blk_res - blk_res_used; in xfs_trans_dup_dqinfo()
121 nq->qt_rtblk_res = oq->qt_rtblk_res - in xfs_trans_dup_dqinfo()
125 nq->qt_ino_res = oq->qt_ino_res - oq->qt_ino_res_used; in xfs_trans_dup_dqinfo()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.c141 unsigned int nq = rxq_info->nrxq + rxq_info->nciq; in alloc_uld_rxqs() local
155 for (i = 0; i < nq; i++, q++) { in alloc_uld_rxqs()
448 int nq = txq_info->ntxq; in free_sge_txq_uld() local
451 for (i = 0; i < nq; i++) { in free_sge_txq_uld()
471 int nq = txq_info->ntxq; in alloc_sge_txq_uld() local
474 j = nq / adap->params.nports; in alloc_sge_txq_uld()
475 for (i = 0; i < nq; i++) { in alloc_sge_txq_uld()
Dt4_hw.c5093 int nq = min(n, 32); in t4_config_rss_range() local
5096 cmd.niqid = cpu_to_be16(nq); in t4_config_rss_range()
5099 start += nq; in t4_config_rss_range()
5100 n -= nq; in t4_config_rss_range()
5102 while (nq > 0) { in t4_config_rss_range()
5116 nq -= 3; in t4_config_rss_range()
/Linux-v4.19/drivers/net/ethernet/marvell/
Dmv643xx_eth.c507 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index); in txq_maybe_wake() local
509 if (netif_tx_queue_stopped(nq)) { in txq_maybe_wake()
510 __netif_tx_lock(nq, smp_processor_id()); in txq_maybe_wake()
512 netif_tx_wake_queue(nq); in txq_maybe_wake()
513 __netif_tx_unlock(nq); in txq_maybe_wake()
1013 struct netdev_queue *nq; in mv643xx_eth_xmit() local
1017 nq = netdev_get_tx_queue(dev, queue); in mv643xx_eth_xmit()
1036 netif_tx_stop_queue(nq); in mv643xx_eth_xmit()
1050 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index); in txq_kick() local
1054 __netif_tx_lock(nq, smp_processor_id()); in txq_kick()
[all …]
Dmvneta.c1754 struct netdev_queue *nq) in mvneta_txq_bufs_free() argument
1780 netdev_tx_completed_queue(nq, pkts_compl, bytes_compl); in mvneta_txq_bufs_free()
1787 struct netdev_queue *nq = netdev_get_tx_queue(pp->dev, txq->id); in mvneta_txq_done() local
1794 mvneta_txq_bufs_free(pp, txq, tx_done, nq); in mvneta_txq_done()
1798 if (netif_tx_queue_stopped(nq)) { in mvneta_txq_done()
1800 netif_tx_wake_queue(nq); in mvneta_txq_done()
2462 struct netdev_queue *nq = netdev_get_tx_queue(dev, txq_id); in mvneta_tx() local
2464 netdev_tx_sent_queue(nq, len); in mvneta_tx()
2468 netif_tx_stop_queue(nq); in mvneta_tx()
2470 if (!skb->xmit_more || netif_xmit_stopped(nq) || in mvneta_tx()
[all …]
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1263 int nq = min(n, 32); in t4vf_config_rss_range() local
1270 cmd.niqid = cpu_to_be16(nq); in t4vf_config_rss_range()
1276 start += nq; in t4vf_config_rss_range()
1277 n -= nq; in t4vf_config_rss_range()
1284 while (nq > 0) { in t4vf_config_rss_range()
1293 int nqbuf = min(3, nq); in t4vf_config_rss_range()
1295 nq -= nqbuf; in t4vf_config_rss_range()
/Linux-v4.19/arch/s390/mm/
Dpgtable.c753 unsigned char key, bool nq) in set_guest_storage_key() argument
802 page_set_storage_key(paddr, skey, !nq); in set_guest_storage_key()
826 bool nq, bool mr, bool mc) in cond_set_guest_storage_key() argument
845 rc = set_guest_storage_key(current->mm, addr, key, nq); in cond_set_guest_storage_key()
/Linux-v4.19/drivers/net/
Dtap.c189 struct tap_queue *nq; in tap_disable_queue() local
200 nq = rtnl_dereference(tap->taps[tap->numvtaps - 1]); in tap_disable_queue()
201 nq->queue_index = index; in tap_disable_queue()
203 rcu_assign_pointer(tap->taps[index], nq); in tap_disable_queue()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dfec_main.c763 struct netdev_queue *nq; in fec_enet_start_xmit() local
768 nq = netdev_get_tx_queue(ndev, queue); in fec_enet_start_xmit()
779 netif_tx_stop_queue(nq); in fec_enet_start_xmit()
1193 struct netdev_queue *nq; in fec_enet_tx_queue() local
1203 nq = netdev_get_tx_queue(ndev, queue_id); in fec_enet_tx_queue()
1278 if (netif_tx_queue_stopped(nq)) { in fec_enet_tx_queue()
1281 netif_tx_wake_queue(nq); in fec_enet_tx_queue()
/Linux-v4.19/arch/s390/kvm/
Dpriv.c921 bool mr = false, mc = false, nq; in handle_pfmf() local
951 nq = vcpu->run->s.regs.gprs[reg1] & PFMF_NQ; in handle_pfmf()
1003 key, NULL, nq, mr, mc); in handle_pfmf()
/Linux-v4.19/arch/s390/include/asm/
Dpgtable.h1109 unsigned char key, bool nq);
1112 bool nq, bool mr, bool mc);
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c65 int nq = bnx2x_num_queues ? : netif_get_num_default_rss_queues(); in bnx2x_calc_num_queues() local
69 nq = 1; in bnx2x_calc_num_queues()
71 nq = clamp(nq, 1, BNX2X_MAX_QUEUES(bp)); in bnx2x_calc_num_queues()
72 return nq; in bnx2x_calc_num_queues()
/Linux-v4.19/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c1974 struct netdev_queue *nq = netdev_get_tx_queue(port->dev, txq->log_id); in mvpp2_txq_done() local
1987 if (netif_tx_queue_stopped(nq)) in mvpp2_txq_done()
1989 netif_tx_wake_queue(nq); in mvpp2_txq_done()
2978 struct netdev_queue *nq = netdev_get_tx_queue(dev, txq_id); in mvpp2_tx() local
2989 netif_tx_stop_queue(nq); in mvpp2_tx()
/Linux-v4.19/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_core.c3856 u32 hq, lq, nq, eq, pubq; in rtl8xxxu_init_queue_reserved_page() local
3861 nq = 0; in rtl8xxxu_init_queue_reserved_page()
3870 nq = fops->page_num_norm; in rtl8xxxu_init_queue_reserved_page()
3872 val32 = (nq << RQPN_NPQ_SHIFT) | (eq << RQPN_EPQ_SHIFT); in rtl8xxxu_init_queue_reserved_page()
3875 pubq = fops->total_page_num - hq - lq - nq - 1; in rtl8xxxu_init_queue_reserved_page()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c728 int nq = trans->cfg->base_params->num_of_queues; in iwl_pcie_tx_start() local
731 int clear_dwords = (SCD_TRANS_TBL_OFFSET_QUEUE(nq) - in iwl_pcie_tx_start()