/openbmc/linux/drivers/block/null_blk/ |
H A D | main.c | 771 static void put_tag(struct nullb_queue *nq, unsigned int tag) in put_tag() argument 773 clear_bit_unlock(tag, nq->tag_map); in put_tag() 775 if (waitqueue_active(&nq->wait)) in put_tag() 776 wake_up(&nq->wait); in put_tag() 779 static unsigned int get_tag(struct nullb_queue *nq) in get_tag() argument 784 tag = find_first_zero_bit(nq->tag_map, nq->queue_depth); in get_tag() 785 if (tag >= nq->queue_depth) in get_tag() 787 } while (test_and_set_bit_lock(tag, nq->tag_map)); in get_tag() 794 put_tag(cmd->nq, cmd->tag); in free_cmd() 799 static struct nullb_cmd *__alloc_cmd(struct nullb_queue *nq) in __alloc_cmd() argument [all …]
|
H A D | zoned.c | 377 struct nullb_device *dev = cmd->nq->dev; in null_zone_write() 613 struct nullb_device *dev = cmd->nq->dev; in null_zone_mgmt() 691 dev = cmd->nq->dev; in null_process_zoned_cmd()
|
H A D | null_blk.h | 26 struct nullb_queue *nq; member
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_fp.c | 159 struct bnxt_qplib_nq *nq = nq_work->nq; in bnxt_qpn_cqn_sched_task() local 161 if (cq && nq) { in bnxt_qpn_cqn_sched_task() 163 if (atomic_read(&cq->arm_state) && nq->cqn_handler) { in bnxt_qpn_cqn_sched_task() 164 dev_dbg(&nq->pdev->dev, in bnxt_qpn_cqn_sched_task() 166 __func__, cq, nq); in bnxt_qpn_cqn_sched_task() 167 nq->cqn_handler(nq, cq); in bnxt_qpn_cqn_sched_task() 235 static void clean_nq(struct bnxt_qplib_nq *nq, struct bnxt_qplib_cq *cq) in clean_nq() argument 237 struct bnxt_qplib_hwq *hwq = &nq->hwq; in clean_nq() 239 int budget = nq->budget; in clean_nq() 248 if (!NQE_CMP_VALID(nqe, nq->nq_db.dbinfo.flags)) in clean_nq() [all …]
|
H A D | qplib_fp.h | 421 struct bnxt_qplib_nq *nq; member 483 typedef int (*cqn_handler_t)(struct bnxt_qplib_nq *nq, 485 typedef int (*srqn_handler_t)(struct bnxt_qplib_nq *nq, 508 struct bnxt_qplib_nq *nq; member 512 void bnxt_qplib_nq_stop_irq(struct bnxt_qplib_nq *nq, bool kill); 513 void bnxt_qplib_disable_nq(struct bnxt_qplib_nq *nq); 514 int bnxt_qplib_nq_start_irq(struct bnxt_qplib_nq *nq, int nq_indx, 516 int bnxt_qplib_enable_nq(struct pci_dev *pdev, struct bnxt_qplib_nq *nq, 561 void bnxt_qplib_free_nq(struct bnxt_qplib_nq *nq); 562 int bnxt_qplib_alloc_nq(struct bnxt_qplib_res *res, struct bnxt_qplib_nq *nq); [all …]
|
H A D | main.c | 308 struct bnxt_qplib_nq *nq; in bnxt_re_stop_irq() local 312 nq = &rdev->nq[indx - 1]; in bnxt_re_stop_irq() 313 bnxt_qplib_nq_stop_irq(nq, false); in bnxt_re_stop_irq() 324 struct bnxt_qplib_nq *nq; in bnxt_re_start_irq() local 350 nq = &rdev->nq[indx - 1]; in bnxt_re_start_irq() 351 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq() 1052 static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_srqn_handler() argument 1074 static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_cqn_handler() argument 1093 bnxt_qplib_disable_nq(&rdev->nq[i - 1]); in bnxt_re_cleanup_res() 1109 rc = bnxt_qplib_enable_nq(rdev->en_dev->pdev, &rdev->nq[i - 1], in bnxt_re_init_res() [all …]
|
H A D | ib_verbs.c | 934 scq_nq = qplib_qp->scq->nq; in bnxt_re_destroy_qp() 935 rcq_nq = qplib_qp->rcq->nq; in bnxt_re_destroy_qp() 1685 struct bnxt_qplib_nq *nq = NULL; in bnxt_re_destroy_srq() local 1688 nq = qplib_srq->cq->nq; in bnxt_re_destroy_srq() 1692 if (nq) in bnxt_re_destroy_srq() 1693 nq->budget--; in bnxt_re_destroy_srq() 1734 struct bnxt_qplib_nq *nq = NULL; in bnxt_re_create_srq() local 1777 srq->qplib_srq.eventq_hw_ring_id = rdev->nq[0].ring_id; in bnxt_re_create_srq() 1778 nq = &rdev->nq[0]; in bnxt_re_create_srq() 1804 if (nq) in bnxt_re_create_srq() [all …]
|
H A D | bnxt_re.h | 167 struct bnxt_qplib_nq nq[BNXT_MAX_ROCE_MSIX]; member
|
/openbmc/linux/lib/crypto/ |
H A D | curve25519-hacl64.c | 544 ladder_smallloop_cmult_small_loop_step(u64 *nq, u64 *nqpq, u64 *nq2, u64 *nqpq2, in ladder_smallloop_cmult_small_loop_step() argument 549 point_swap_conditional(nq, nqpq, bit0); in ladder_smallloop_cmult_small_loop_step() 550 addanddouble_fmonty(nq2, nqpq2, nq, nqpq, q); in ladder_smallloop_cmult_small_loop_step() 556 ladder_smallloop_cmult_small_loop_double_step(u64 *nq, u64 *nqpq, u64 *nq2, in ladder_smallloop_cmult_small_loop_double_step() argument 560 ladder_smallloop_cmult_small_loop_step(nq, nqpq, nq2, nqpq2, q, byt); in ladder_smallloop_cmult_small_loop_double_step() 562 ladder_smallloop_cmult_small_loop_step(nq2, nqpq2, nq, nqpq, q, byt1); in ladder_smallloop_cmult_small_loop_double_step() 566 ladder_smallloop_cmult_small_loop(u64 *nq, u64 *nqpq, u64 *nq2, u64 *nqpq2, in ladder_smallloop_cmult_small_loop() argument 570 ladder_smallloop_cmult_small_loop_double_step(nq, nqpq, nq2, in ladder_smallloop_cmult_small_loop() 576 static __always_inline void ladder_bigloop_cmult_big_loop(u8 *n1, u64 *nq, in ladder_bigloop_cmult_big_loop() argument 583 ladder_smallloop_cmult_small_loop(nq, nqpq, nq2, nqpq2, q, in ladder_bigloop_cmult_big_loop() [all …]
|
/openbmc/linux/drivers/net/vmxnet3/ |
H A D | vmxnet3_xdp.c | 210 struct netdev_queue *nq; in vmxnet3_xdp_xmit_back() local 217 nq = netdev_get_tx_queue(adapter->netdev, tq->qid); in vmxnet3_xdp_xmit_back() 219 __netif_tx_lock(nq, smp_processor_id()); in vmxnet3_xdp_xmit_back() 221 __netif_tx_unlock(nq); in vmxnet3_xdp_xmit_back() 233 struct netdev_queue *nq; in vmxnet3_xdp_xmit() local 245 nq = netdev_get_tx_queue(adapter->netdev, tq->qid); in vmxnet3_xdp_xmit() 247 __netif_tx_lock(nq, smp_processor_id()); in vmxnet3_xdp_xmit() 255 __netif_tx_unlock(nq); in vmxnet3_xdp_xmit()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_trans_dquot.c | 78 struct xfs_dqtrx *oq, *nq; in xfs_trans_dup_dqinfo() local 97 nq = &nqa[i]; in xfs_trans_dup_dqinfo() 102 nq->qt_dquot = oq->qt_dquot; in xfs_trans_dup_dqinfo() 103 nq->qt_bcount_delta = nq->qt_icount_delta = 0; in xfs_trans_dup_dqinfo() 104 nq->qt_rtbcount_delta = 0; in xfs_trans_dup_dqinfo() 109 nq->qt_blk_res = oq->qt_blk_res - blk_res_used; in xfs_trans_dup_dqinfo() 112 nq->qt_rtblk_res = oq->qt_rtblk_res - in xfs_trans_dup_dqinfo() 116 nq->qt_ino_res = oq->qt_ino_res - oq->qt_ino_res_used; in xfs_trans_dup_dqinfo()
|
/openbmc/linux/arch/x86/crypto/ |
H A D | curve25519-x86_64.c | 977 u64 *nq = p01_tmp1; in point_add_and_double() local 981 u64 *x2 = nq; in point_add_and_double() 982 u64 *z2 = nq + (u32)4U; in point_add_and_double() 1024 fmul2(nq, dc1, ab1, tmp2); in point_add_and_double() 1028 static void point_double(u64 *nq, u64 *tmp1, u64 *tmp2) in point_double() argument 1030 u64 *x2 = nq; in point_double() 1031 u64 *z2 = nq + (u32)4U; in point_double() 1048 fmul2(nq, dc, ab, tmp2); in point_double()
|
/openbmc/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_main.c | 336 struct netdev_queue *nq; in tsnep_tx_enable() local 338 nq = netdev_get_tx_queue(tx->adapter->netdev, tx->queue_index); in tsnep_tx_enable() 340 __netif_tx_lock_bh(nq); in tsnep_tx_enable() 341 netif_tx_wake_queue(nq); in tsnep_tx_enable() 342 __netif_tx_unlock_bh(nq); in tsnep_tx_enable() 347 struct netdev_queue *nq; in tsnep_tx_disable() local 350 nq = netdev_get_tx_queue(tx->adapter->netdev, tx->queue_index); in tsnep_tx_disable() 352 __netif_tx_lock_bh(nq); in tsnep_tx_disable() 353 netif_tx_stop_queue(nq); in tsnep_tx_disable() 354 __netif_tx_unlock_bh(nq); in tsnep_tx_disable() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_uld.c | 111 unsigned int nq = rxq_info->nrxq + rxq_info->nciq; in alloc_uld_rxqs() local 125 for (i = 0; i < nq; i++, q++) { in alloc_uld_rxqs() 403 int nq = txq_info->ntxq; in free_sge_txq_uld() local 406 for (i = 0; i < nq; i++) { in free_sge_txq_uld() 426 int nq = txq_info->ntxq; in alloc_sge_txq_uld() local 429 j = nq / adap->params.nports; in alloc_sge_txq_uld() 430 for (i = 0; i < nq; i++) { in alloc_sge_txq_uld()
|
/openbmc/linux/drivers/net/ethernet/marvell/ |
H A D | mvneta.c | 1870 struct netdev_queue *nq, bool napi) in mvneta_txq_bufs_free() argument 1909 netdev_tx_completed_queue(nq, pkts_compl, bytes_compl); in mvneta_txq_bufs_free() 1916 struct netdev_queue *nq = netdev_get_tx_queue(pp->dev, txq->id); in mvneta_txq_done() local 1923 mvneta_txq_bufs_free(pp, txq, tx_done, nq, true); in mvneta_txq_done() 1927 if (netif_tx_queue_stopped(nq)) { in mvneta_txq_done() 1929 netif_tx_wake_queue(nq); in mvneta_txq_done() 2178 struct netdev_queue *nq; in mvneta_xdp_xmit_back() local 2189 nq = netdev_get_tx_queue(pp->dev, txq->id); in mvneta_xdp_xmit_back() 2191 __netif_tx_lock(nq, cpu); in mvneta_xdp_xmit_back() 2206 __netif_tx_unlock(nq); in mvneta_xdp_xmit_back() [all …]
|
H A D | mv643xx_eth.c | 496 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index); in txq_maybe_wake() local 498 if (netif_tx_queue_stopped(nq)) { in txq_maybe_wake() 499 __netif_tx_lock(nq, smp_processor_id()); in txq_maybe_wake() 501 netif_tx_wake_queue(nq); in txq_maybe_wake() 502 __netif_tx_unlock(nq); in txq_maybe_wake() 998 struct netdev_queue *nq; in mv643xx_eth_xmit() local 1002 nq = netdev_get_tx_queue(dev, queue); in mv643xx_eth_xmit() 1021 netif_tx_stop_queue(nq); in mv643xx_eth_xmit() 1035 struct netdev_queue *nq = netdev_get_tx_queue(mp->dev, txq->index); in txq_kick() local 1039 __netif_tx_lock(nq, smp_processor_id()); in txq_kick() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/ |
H A D | 0004-Fix-arbitrary-command-execution-in-ed-style-patches-.patch | 106 - if (fwrite ("w\nq\n", sizeof (char), (size_t) 4, pipefp) == 0 108 + if (fwrite ("w\nq\n", sizeof (char), (size_t) 4, tmpfp) == 0
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | 937 struct netdev_queue *nq; in fec_enet_start_xmit() local 942 nq = netdev_get_tx_queue(ndev, queue); in fec_enet_start_xmit() 953 netif_tx_stop_queue(nq); in fec_enet_start_xmit() 1447 struct netdev_queue *nq; in fec_enet_tx_queue() local 1457 nq = netdev_get_tx_queue(ndev, queue_id); in fec_enet_tx_queue() 1581 if (netif_tx_queue_stopped(nq)) { in fec_enet_tx_queue() 1584 netif_tx_wake_queue(nq); in fec_enet_tx_queue() 3944 struct netdev_queue *nq; in fec_enet_xdp_tx_xmit() local 3949 nq = netdev_get_tx_queue(fep->netdev, queue); in fec_enet_xdp_tx_xmit() 3951 __netif_tx_lock(nq, cpu); in fec_enet_xdp_tx_xmit() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 1272 int nq = min(n, 32); in t4vf_config_rss_range() local 1279 cmd.niqid = cpu_to_be16(nq); in t4vf_config_rss_range() 1285 start += nq; in t4vf_config_rss_range() 1286 n -= nq; in t4vf_config_rss_range() 1293 while (nq > 0) { in t4vf_config_rss_range() 1302 int nqbuf = min(3, nq); in t4vf_config_rss_range() 1304 nq -= nqbuf; in t4vf_config_rss_range()
|
/openbmc/linux/arch/s390/mm/ |
H A D | pgtable.c | 812 unsigned char key, bool nq) in set_guest_storage_key() argument 869 page_set_storage_key(paddr, skey, !nq); in set_guest_storage_key() 893 bool nq, bool mr, bool mc) in cond_set_guest_storage_key() argument 912 rc = set_guest_storage_key(current->mm, addr, key, nq); in cond_set_guest_storage_key()
|
/openbmc/linux/drivers/net/ |
H A D | tap.c | 192 struct tap_queue *nq; in tap_disable_queue() local 203 nq = rtnl_dereference(tap->taps[tap->numvtaps - 1]); in tap_disable_queue() 204 nq->queue_index = index; in tap_disable_queue() 206 rcu_assign_pointer(tap->taps[index], nq); in tap_disable_queue()
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_main.c | 2462 struct netdev_queue *nq; in igc_xdp_xmit_back() local 2470 nq = txring_txq(ring); in igc_xdp_xmit_back() 2472 __netif_tx_lock(nq, cpu); in igc_xdp_xmit_back() 2474 txq_trans_cond_update(nq); in igc_xdp_xmit_back() 2476 __netif_tx_unlock(nq); in igc_xdp_xmit_back() 2543 struct netdev_queue *nq; in igc_finalize_xdp() local 2548 nq = txring_txq(ring); in igc_finalize_xdp() 2550 __netif_tx_lock(nq, cpu); in igc_finalize_xdp() 2552 __netif_tx_unlock(nq); in igc_finalize_xdp() 2881 struct netdev_queue *nq = txring_txq(ring); in igc_xdp_xmit_zc() local [all …]
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_nic.c | 837 struct netdev_queue *nq; in aq_nic_xmit_xdpf() local 848 nq = netdev_get_tx_queue(ndev, tx_ring->idx); in aq_nic_xmit_xdpf() 849 __netif_tx_lock(nq, cpu); in aq_nic_xmit_xdpf() 862 __netif_tx_unlock(nq); in aq_nic_xmit_xdpf()
|
/openbmc/linux/net/sched/ |
H A D | sch_api.c | 320 struct netdev_queue *nq; in qdisc_lookup_rcu() local 329 nq = dev_ingress_queue_rcu(dev); in qdisc_lookup_rcu() 330 if (nq) in qdisc_lookup_rcu() 331 q = qdisc_match_from_root(rcu_dereference(nq->qdisc_sleeping), in qdisc_lookup_rcu()
|
/openbmc/linux/arch/s390/kvm/ |
H A D | priv.c | 1070 bool mr = false, mc = false, nq; in handle_pfmf() local 1100 nq = vcpu->run->s.regs.gprs[reg1] & PFMF_NQ; in handle_pfmf() 1152 key, NULL, nq, mr, mc); in handle_pfmf()
|