/openbmc/linux/fs/ocfs2/cluster/ |
H A D | quorum.c | 94 struct o2quo_state *qs = &o2quo_state; in o2quo_make_decision() local 96 spin_lock_bh(&qs->qs_lock); in o2quo_make_decision() 98 lowest_hb = find_first_bit(qs->qs_hb_bm, O2NM_MAX_NODES); in o2quo_make_decision() 100 lowest_reachable = test_bit(lowest_hb, qs->qs_conn_bm); in o2quo_make_decision() 103 "lowest: %d (%sreachable)\n", qs->qs_heartbeating, in o2quo_make_decision() 104 qs->qs_connected, lowest_hb, lowest_reachable ? "" : "un"); in o2quo_make_decision() 106 if (!test_bit(o2nm_this_node(), qs->qs_hb_bm) || in o2quo_make_decision() 107 qs->qs_heartbeating == 1) in o2quo_make_decision() 110 if (qs->qs_heartbeating & 1) { in o2quo_make_decision() 113 quorum = (qs->qs_heartbeating + 1)/2; in o2quo_make_decision() [all …]
|
/openbmc/linux/kernel/bpf/ |
H A D | queue_stack_maps.c | 30 static bool queue_stack_map_is_empty(struct bpf_queue_stack *qs) in queue_stack_map_is_empty() argument 32 return qs->head == qs->tail; in queue_stack_map_is_empty() 35 static bool queue_stack_map_is_full(struct bpf_queue_stack *qs) in queue_stack_map_is_full() argument 37 u32 head = qs->head + 1; in queue_stack_map_is_full() 39 if (unlikely(head >= qs->size)) in queue_stack_map_is_full() 42 return head == qs->tail; in queue_stack_map_is_full() 67 struct bpf_queue_stack *qs; in queue_stack_map_alloc() local 71 queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc() 73 qs = bpf_map_area_alloc(queue_size, numa_node); in queue_stack_map_alloc() 74 if (!qs) in queue_stack_map_alloc() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | libqos.c | 19 QOSState *qs = g_new0(QOSState, 1); in qtest_vboot() local 22 qs->qts = qtest_init(cmdline); in qtest_vboot() 23 qs->ops = ops; in qtest_vboot() 25 ops->alloc_init(&qs->alloc, qs->qts, ALLOC_NO_FLAGS); in qtest_vboot() 26 qs->pcibus = ops->qpci_new(qs->qts, &qs->alloc); in qtest_vboot() 30 return qs; in qtest_vboot() 39 QOSState *qs; in qtest_boot() local 43 qs = qtest_vboot(ops, cmdline_fmt, ap); in qtest_boot() 46 return qs; in qtest_boot() 52 void qtest_common_shutdown(QOSState *qs) in qtest_common_shutdown() argument [all …]
|
H A D | libqos-pc.c | 20 QOSState *qs; in qtest_pc_boot() local 24 qs = qtest_vboot(&qos_ops, cmdline_fmt, ap); in qtest_pc_boot() 27 qtest_irq_intercept_in(qs->qts, "ioapic"); in qtest_pc_boot() 29 return qs; in qtest_pc_boot() 32 void qtest_pc_shutdown(QOSState *qs) in qtest_pc_shutdown() argument 34 return qtest_common_shutdown(qs); in qtest_pc_shutdown()
|
H A D | libqos-spapr.c | 20 QOSState *qs; in qtest_spapr_boot() local 24 qs = qtest_vboot(&qos_ops, cmdline_fmt, ap); in qtest_spapr_boot() 27 return qs; in qtest_spapr_boot() 30 void qtest_spapr_shutdown(QOSState *qs) in qtest_spapr_shutdown() argument 32 return qtest_common_shutdown(qs); in qtest_spapr_shutdown()
|
/openbmc/qemu/tests/qtest/ |
H A D | numa-test.c | 322 QTestState *qs; in pc_dynamic_cpu_cfg() local 327 qs = qtest_init(cli); in pc_dynamic_cpu_cfg() 330 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg() 332 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg() 338 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg() 340 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg() 344 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'x-exit-preconfig' }"))); in pc_dynamic_cpu_cfg() 345 qtest_qmp_eventwait(qs, "RESUME"); in pc_dynamic_cpu_cfg() 348 resp = qtest_qmp(qs, "{ 'execute': 'query-hotpluggable-cpus'}"); in pc_dynamic_cpu_cfg() 376 qtest_quit(qs); in pc_dynamic_cpu_cfg() [all …]
|
H A D | rtas-test.c | 10 QOSState *qs; in run_test_rtas_get_time_of_day() local 16 qs = qtest_spapr_boot("%s", machine); in run_test_rtas_get_time_of_day() 19 ret = qrtas_get_time_of_day(qs->qts, &qs->alloc, &tm, &ns); in run_test_rtas_get_time_of_day() 24 qtest_shutdown(qs); in run_test_rtas_get_time_of_day()
|
H A D | usb-hcd-uhci-test.c | 18 static QOSState *qs; variable 25 qusb_pci_init_one(qs->pcibus, &uhci, QPCI_DEVFN(0x1d, 0), 4); in test_port() 77 qs = qtest_pc_boot("%s", cmd); in main() 79 qs = qtest_spapr_boot("%s", cmd); in main() 85 global_qtest = qs->qts; in main() 87 qtest_shutdown(qs); in main()
|
H A D | qmp-test.c | 291 QTestState *qs = qtest_initf("%s --preconfig", common_args); in test_qmp_preconfig() local 295 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'query-commands' }"))); in test_qmp_preconfig() 298 g_assert(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'query-cpus-fast' }"))); in test_qmp_preconfig() 301 rsp = qtest_qmp(qs, "{ 'execute': 'query-status' }"); in test_qmp_preconfig() 308 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'x-exit-preconfig' }"))); in test_qmp_preconfig() 309 qtest_qmp_eventwait(qs, "RESUME"); in test_qmp_preconfig() 312 rsp = qtest_qmp(qs, "{ 'execute': 'query-status' }"); in test_qmp_preconfig() 319 g_assert(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'x-exit-preconfig' }"))); in test_qmp_preconfig() 322 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'query-cpus-fast' }"))); in test_qmp_preconfig() 324 qtest_quit(qs); in test_qmp_preconfig()
|
H A D | erst-test.c | 39 QOSState *qs; member 93 qtest_shutdown(s->qs); in cleanup_vm() 101 s->qs = qtest_pc_boot("%s", cmd); in setup_vm_cmd() 106 s->dev = get_erst_device(s->qs->pcibus); in setup_vm_cmd()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 721 * @qs: the queue set 726 static void init_qset_cntxt(struct sge_qset *qs, unsigned int id) in init_qset_cntxt() argument 728 qs->rspq.cntxt_id = id; in init_qset_cntxt() 729 qs->fl[0].cntxt_id = 2 * id; in init_qset_cntxt() 730 qs->fl[1].cntxt_id = 2 * id + 1; in init_qset_cntxt() 731 qs->txq[TXQ_ETH].cntxt_id = FW_TUNNEL_SGEEC_START + id; in init_qset_cntxt() 732 qs->txq[TXQ_ETH].token = FW_TUNNEL_TID_START + id; in init_qset_cntxt() 733 qs->txq[TXQ_OFLD].cntxt_id = FW_OFLD_SGEEC_START + id; in init_qset_cntxt() 734 qs->txq[TXQ_CTRL].cntxt_id = FW_CTRL_SGEEC_START + id; in init_qset_cntxt() 735 qs->txq[TXQ_CTRL].token = FW_CTRL_TID_START + id; in init_qset_cntxt() [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.c | 382 struct queue_set *qs = nic->qs; in nicvf_refill_rbdr() local 383 int rbdr_idx = qs->rbdr_cnt; in nicvf_refill_rbdr() 395 rbdr = &qs->rbdr[rbdr_idx]; in nicvf_refill_rbdr() 404 if (qcount >= (qs->rbdr_len - 1)) in nicvf_refill_rbdr() 407 refill_rb_cnt = qs->rbdr_len - qcount - 1; in nicvf_refill_rbdr() 628 struct queue_set *qs, int qidx) in nicvf_reclaim_snd_queue() argument 640 struct queue_set *qs, int qidx) in nicvf_reclaim_rcv_queue() argument 650 struct queue_set *qs, int qidx) in nicvf_reclaim_cmp_queue() argument 745 static void nicvf_rcv_queue_config(struct nicvf *nic, struct queue_set *qs, in nicvf_rcv_queue_config() argument 752 rq = &qs->rq[qidx]; in nicvf_rcv_queue_config() [all …]
|
H A D | nicvf_ethtool.c | 217 for (qidx = 0; qidx < nic->qs->rq_cnt; qidx++) { in nicvf_get_qset_strings() 225 for (qidx = 0; qidx < nic->qs->sq_cnt; qidx++) { in nicvf_get_qset_strings() 282 (nic->qs->rq_cnt + nic->qs->sq_cnt); in nicvf_get_sset_count() 290 (snic->qs->rq_cnt + snic->qs->sq_cnt); in nicvf_get_sset_count() 306 for (qidx = 0; qidx < nic->qs->rq_cnt; qidx++) { in nicvf_get_qset_stats() 309 *((*data)++) = ((u64 *)&nic->qs->rq[qidx].stats) in nicvf_get_qset_stats() 313 for (qidx = 0; qidx < nic->qs->sq_cnt; qidx++) { in nicvf_get_qset_stats() 316 *((*data)++) = ((u64 *)&nic->qs->sq[qidx].stats) in nicvf_get_qset_stats() 475 struct queue_set *qs = nic->qs; in nicvf_get_ringparam() local 478 ring->rx_pending = qs->cq_len; in nicvf_get_ringparam() [all …]
|
H A D | nicvf_main.c | 319 mbx.cpi_cfg.rq_cnt = nic->qs->rq_cnt; in nicvf_config_cpi() 441 nic->snicvf[sqs]->qs->rq_cnt = MAX_RCV_QUEUES_PER_QS; in nicvf_request_sqs() 444 nic->snicvf[sqs]->qs->rq_cnt = rx_queues; in nicvf_request_sqs() 449 nic->snicvf[sqs]->qs->sq_cnt = MAX_SND_QUEUES_PER_QS; in nicvf_request_sqs() 452 nic->snicvf[sqs]->qs->sq_cnt = tx_queues; in nicvf_request_sqs() 456 nic->snicvf[sqs]->qs->cq_cnt = in nicvf_request_sqs() 457 max(nic->snicvf[sqs]->qs->rq_cnt, nic->snicvf[sqs]->qs->sq_cnt); in nicvf_request_sqs() 667 sq = &nic->qs->sq[cqe_tx->sq_idx]; in nicvf_snd_pkt_handler() 852 struct queue_set *qs = nic->qs; in nicvf_cq_intr_handler() local 853 struct cmp_queue *cq = &qs->cq[cq_idx]; in nicvf_cq_intr_handler() [all …]
|
H A D | nicvf_queues.h | 58 /* Default queue count per QS, its lengths and threshold values */ 244 u8 cq_qs; /* CQ's QS to which this RQ is assigned */ 245 u8 cq_idx; /* CQ index (0 to 7) in the QS */ 246 u8 cont_rbdr_qs; /* Continue buffer ptrs - QS num */ 247 u8 cont_qs_rbdr_idx; /* RBDR idx in the cont QS */ 248 u8 start_rbdr_qs; /* First buffer ptrs - QS num */ 249 u8 start_qs_rbdr_idx; /* RBDR idx in the above QS */ 266 u8 cq_qs; /* CQ's QS to which this SQ is pointing */ 267 u8 cq_idx; /* CQ index (0 to 7) in the above QS */ 335 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs,
|
/openbmc/qemu/tests/unit/ |
H A D | check-qstring.c | 51 QString *qs; in qstring_from_substr_test() local 53 qs = qstring_from_substr("virtualization", 3, 10); in qstring_from_substr_test() 54 g_assert(qs != NULL); in qstring_from_substr_test() 55 g_assert(strcmp(qstring_get_str(qs), "tualiza") == 0); in qstring_from_substr_test() 57 qobject_unref(qs); in qstring_from_substr_test()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ae_adapt.c | 84 vf_cb = kzalloc(struct_size(vf_cb, ae_handle.qs, qnum_per_vf), in hns_ae_get_handle() 112 ae_handle->qs[i] = &ring_pair_cb->q; in hns_ae_get_handle() 113 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle() 114 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle() 144 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle() 158 ret = hns_rcb_wait_tx_ring_clean(handle->qs[i]); in hns_ae_wait_flow_down() 190 hns_rcb_ring_enable_hw(handle->qs[i], val); in hns_ae_ring_enable_all() 316 q = handle->qs[i]; in hns_ae_set_mtu() 344 hns_rcb_int_clr_hw(handle->qs[k], in hns_ae_start() 347 hns_rcbv2_int_clr_hw(handle->qs[k], in hns_ae_start() [all …]
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | socinfo.c | 737 struct qcom_socinfo *qs; in qcom_socinfo_probe() local 748 qs = devm_kzalloc(&pdev->dev, sizeof(*qs), GFP_KERNEL); in qcom_socinfo_probe() 749 if (!qs) in qcom_socinfo_probe() 752 qs->attr.family = "Snapdragon"; in qcom_socinfo_probe() 753 qs->attr.machine = socinfo_machine(&pdev->dev, in qcom_socinfo_probe() 755 qs->attr.soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u", in qcom_socinfo_probe() 757 qs->attr.revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.%u", in qcom_socinfo_probe() 760 if (!qs->attr.soc_id || !qs->attr.revision) in qcom_socinfo_probe() 764 qs->attr.serial_number = devm_kasprintf(&pdev->dev, GFP_KERNEL, in qcom_socinfo_probe() 767 if (!qs->attr.serial_number) in qcom_socinfo_probe() [all …]
|
/openbmc/linux/fs/qnx4/ |
H A D | inode.c | 46 struct qnx4_sb_info *qs; in qnx4_remount() local 49 qs = qnx4_sb(sb); in qnx4_remount() 50 qs->Version = QNX4_VERSION; in qnx4_remount() 191 struct qnx4_sb_info *qs; in qnx4_fill_super() local 193 qs = kzalloc(sizeof(struct qnx4_sb_info), GFP_KERNEL); in qnx4_fill_super() 194 if (!qs) in qnx4_fill_super() 196 s->s_fs_info = qs; in qnx4_fill_super() 240 struct qnx4_sb_info *qs = qnx4_sb(sb); in qnx4_kill_sb() local 242 if (qs) { in qnx4_kill_sb() 243 kfree(qs->BitMap); in qnx4_kill_sb() [all …]
|
/openbmc/qemu/qobject/ |
H A D | qstring.c | 96 QString *qs; in qstring_destroy_obj() local 99 qs = qobject_to(QString, obj); in qstring_destroy_obj() 100 g_free((char *)qs->string); in qstring_destroy_obj() 101 g_free(qs); in qstring_destroy_obj()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | cxgb4vf_main.c | 367 int qs, msi; in name_msix_vecs() local 369 for (qs = 0, msi = MSIX_IQFLINT; qs < pi->nqsets; qs++, msi++) { in name_msix_vecs() 371 "%s-%d", dev->name, qs); in name_msix_vecs() 634 int qs; in setup_sge_queues() local 636 for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { in setup_sge_queues() 644 netdev_get_tx_queue(dev, qs), in setup_sge_queues() 649 rxq->rspq.idx = qs; in setup_sge_queues() 665 int qs; in setup_sge_queues() local 667 for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { in setup_sge_queues() 707 int qs, err; in setup_rss() local [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | atomic_ops.h | 55 : [old] "=d" (old), [ptr] "+QS" (*ptr) \ 83 : [ptr] "+QS" (*ptr) : [val] "i" (val) : "cc", "memory");\ 134 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+QS" (*ptr)\ 183 : [old] "+d" (old), [ptr] "+QS" (*ptr) in __atomic64_cmpxchg() 195 : [old] "+d" (old), [ptr] "+QS" (*ptr) in __atomic64_cmpxchg_bool()
|
/openbmc/u-boot/drivers/net/mscc_eswitch/ |
H A D | ocelot_switch.c | 98 QS, enumerator 235 priv->regs[QS] + QS_XTR_GRP_CFG(i)); in ocelot_cpu_capture_setup() 240 priv->regs[QS] + QS_INJ_GRP_CFG(i)); in ocelot_cpu_capture_setup() 346 mscc_flush(priv->regs[QS], ocelot_regs_qs); in ocelot_initialize() 426 return mscc_send(priv->regs[QS], ocelot_regs_qs, in ocelot_send() 436 byte_cnt = mscc_recv(priv->regs[QS], ocelot_regs_qs, rxbuf, IFH_LEN, in ocelot_recv() 457 { QS, "qs" }, in ocelot_probe()
|
/openbmc/linux/fs/qnx6/ |
H A D | inode.c | 303 struct qnx6_sb_info *qs; in qnx6_fill_super() local 308 qs = kzalloc(sizeof(struct qnx6_sb_info), GFP_KERNEL); in qnx6_fill_super() 309 if (!qs) in qnx6_fill_super() 311 s->s_fs_info = qs; in qnx6_fill_super() 476 kfree(qs); in qnx6_fill_super() 483 struct qnx6_sb_info *qs = QNX6_SB(sb); in qnx6_put_super() local 484 brelse(qs->sb_buf); in qnx6_put_super() 485 iput(qs->longfile); in qnx6_put_super() 486 iput(qs->inodes); in qnx6_put_super() 487 kfree(qs); in qnx6_put_super()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | mscc,vsc7514-switch.yaml | 70 - description: qs target 95 - const: qs 163 reg-names = "sys", "rew", "qs", "ptp", "port0", "port1", 210 reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
|