/openbmc/qemu/scsi/ |
H A D | pr-manager-helper.c | 2 * Persistent reservation manager that talks to qemu-pr-helper 15 #include "scsi/pr-manager.h" 18 #include "io/channel-socket.h" 19 #include "pr-helper.h" 20 #include "qapi/qapi-events-block.h" 28 #define TYPE_PR_MANAGER_HELPER "pr-manager-helper" 38 QemuMutex lock; member 47 qapi_event_send_pr_manager_status_changed(id, !!pr_mgr->ioc); in pr_manager_send_status_changed_event() 51 /* Called with lock held. */ 55 ssize_t r = qio_channel_read_all(pr_mgr->ioc, buf, sz, errp); in pr_manager_helper_read() [all …]
|
/openbmc/linux/arch/powerpc/platforms/4xx/ |
H A D | uic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 raw_spinlock_t lock; member 59 sr = 1 << (31-src); in uic_unmask_irq() 60 raw_spin_lock_irqsave(&uic->lock, flags); in uic_unmask_irq() 61 /* ack level-triggered interrupts here */ in uic_unmask_irq() 63 mtdcr(uic->dcrbase + UIC_SR, sr); in uic_unmask_irq() 64 er = mfdcr(uic->dcrbase + UIC_ER); in uic_unmask_irq() 66 mtdcr(uic->dcrbase + UIC_ER, er); in uic_unmask_irq() 67 raw_spin_unlock_irqrestore(&uic->lock, flags); in uic_unmask_irq() 77 raw_spin_lock_irqsave(&uic->lock, flags); in uic_mask_irq() [all …]
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | apr.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. 48 * apr_send_pkt() - Send a apr message from apr device 57 struct packet_router *apr = dev_get_drvdata(adev->dev.parent); in apr_send_pkt() 62 spin_lock_irqsave(&adev->svc.lock, flags); in apr_send_pkt() 64 hdr = &pkt->hdr; in apr_send_pkt() 65 hdr->src_domain = APR_DOMAIN_APPS; in apr_send_pkt() 66 hdr->src_svc = adev->svc.id; in apr_send_pkt() 67 hdr->dest_domain = adev->domain_id; in apr_send_pkt() 68 hdr->dest_svc = adev->svc.id; in apr_send_pkt() [all …]
|
/openbmc/qemu/.github/workflows/ |
H A D | lockdown.yml | 1 # Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown 10 pull-requests: write 14 runs-on: ubuntu-latest 16 - uses: dessant/repo-lockdown@v2 18 pr-comment: | 21 This repository is a read-only mirror of the project's repostories hosted 22 on https://gitlab.com/qemu-project/qemu.git. 29 lock-pr: true 30 close-pr: true
|
/openbmc/linux/drivers/fpga/ |
H A D | dfl-fme-pr.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017-2018 Intel Corporation, Inc. 23 #include <linux/fpga/fpga-mgr.h> 24 #include <linux/fpga/fpga-bridge.h> 25 #include <linux/fpga/fpga-region.h> 26 #include <linux/fpga-dfl.h> 29 #include "dfl-fme.h" 30 #include "dfl-fme-pr.h" 37 list_for_each_entry(fme_region, &fme->region_list, node) in dfl_fme_region_find_by_port_id() 38 if (fme_region->port_id == port_id) in dfl_fme_region_find_by_port_id() [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | unwind.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 1999-2004 Hewlett-Packard Co 4 * David Mosberger-Tang <davidm@hpl.hp.com> 6 * - Change pt_regs_off() to make it less dependent on pt_regs structure. 11 * time-consuming, so this implementation translates the unwind 14 * They are cached for later re-use. Each script is specific for a 19 * the "IA-64 Software Conventions and Runtime Architecture" manual. 23 * by the unw.lock spinlock 24 * o each unwind script has its own read-write lock; a thread must acquire 25 * a read lock before executing a script and must acquire a write lock [all …]
|
H A D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Architecture-specific trap handling. 5 * Copyright (C) 1998-2003 Hewlett-Packard Co 6 * David Mosberger-Tang <davidm@hpl.hp.com> 37 if (ia64_boot_param->fpswa) in trap_init() 39 fpswa_interface = __va(ia64_boot_param->fpswa); in trap_init() 46 spinlock_t lock; in die() member 50 .lock = __SPIN_LOCK_UNLOCKED(die.lock), in die() 51 .lock_owner = -1, in die() 59 spin_lock_irq(&die.lock); in die() [all …]
|
/openbmc/linux/tools/testing/nvdimm/test/ |
H A D | iomap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 49 return ops->nfit_test_lookup(resource); in __get_nfit_res() 68 (void __iomem *) nfit_res->buf + (offset) \ 69 - nfit_res->res.start \ 80 return (void __iomem *) nfit_res->buf + offset in __wrap_devm_ioremap() 81 - nfit_res->res.start; in __wrap_devm_ioremap() 92 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap() 103 percpu_ref_kill(&pgmap->ref); in nfit_test_kill() 105 wait_for_completion(&pgmap->done); in nfit_test_kill() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 9 #include "dm-core.h" 10 #include "dm-rq.h" 11 #include "dm-uevent.h" 12 #include "dm-ima.h" 29 #include <linux/pr.h> 32 #include <linux/blk-crypto.h> 33 #include <linux/blk-crypto-profile.h> 46 * dm_io into one list, and reuse bio->bi_private as the list head. Before [all …]
|
/openbmc/linux/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Jan-Bernd Themann <themann@de.ibm.com> 49 static int msg_level = -1; 69 "[2^x - 1], x = [7..14]. Default = " 72 "[2^x - 1], x = [7..14]. Default = " 75 "[2^x - 1], x = [7..14]. Default = " 78 "[2^x - 1], x = [7..14]. Default = " 102 .compatible = "IBM,lhea-ethernet", 140 if (!test_bit(__EHEA_DISABLE_PORT_RESET, &port->flags)) in ehea_schedule_port_reset() 141 schedule_work(&port->reset_task); in ehea_schedule_port_reset() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/util-linux/util-linux/ |
H A D | libfdisk-cfdisk-and-sfdisk-sector-size-improvements.patch | 16 Addresses: https://github.com/util-linux/util-linux/pull/3235 18 Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/3237] 20 Signed-off-by: Karel Zak <kzak@redhat.com> 21 --- 25 diff --git a/libfdisk/src/wipe.c b/libfdisk/src/wipe.c 27 --- a/libfdisk/src/wipe.c 29 @@ -133,6 +133,7 @@ int fdisk_do_wipe(struct fdisk_context *cxt) 33 + blkid_probe_set_sectorsize(pr, cxt->sector_size); 36 blkid_wipe_all(pr); 37 @@ -176,6 +177,8 @@ int fdisk_check_collisions(struct fdisk_context *cxt) [all …]
|
/openbmc/linux/fs/gfs2/ |
H A D | lock_dlm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright 2004-2011 Red Hat, Inc. 26 * gfs2_update_stats - Update time based stats 52 s64 delta = sample - s->stats[index]; in gfs2_update_stats() 53 s->stats[index] += (delta >> 3); in gfs2_update_stats() 55 s->stats[index] += (s64)(abs(delta) - s->stats[index]) >> 2; in gfs2_update_stats() 59 * gfs2_update_reply_times - Update locking statistics 62 * This assumes that gl->gl_dstamp has been set earlier. 64 * The rtt (lock round trip time) is an estimate of the time [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | prservice.py | 4 # SPDX-License-Identifier: GPL-2.0-only 17 … bb.fatal("Connecting to PR service %s:%s failed: %s" % (host_params[0], host_params[1], str(exc))) 23 bb.error("Not using network based PR service") 28 bb.error("Making connection failed to remote PR service") 42 bb.error("Not using network based PR service") 47 bb.error("Making connection failed to remote PR service") 81 with open(df, "a") as f, bb.utils.fileslocked(["%s.lock" % df]) as locks: 88 f.write("#----------\t --------\t --------\t --------\t ----\n")
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/nspr/ |
H A D | nspr_4.36.bb | 3 LICENSE = "GPL-2.0-only | MPL-2.0 | LGPL-2.1-only" 8 SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ 9 file://0001-remove-rpath-from-tests.patch \ 10 file://0002-Fix-build-failure-on-x86_64.patch \ 11 file://0003-Add-nios2-support.patch \ 12 file://0004-md-Fix-build-with-musl.patch \ 13 file://0005-Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch \ 14 file://0006-config-nspr-config.in-don-t-pass-LDFLAGS.patch \ 18 CACHED_CONFIGUREVARS:append:libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE \ 19 -D_PR_HAVE_LARGE_OFF_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP \ [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | bitbake-prserv-tool | 5 # SPDX-License-Identifier: GPL-2.0-only 11 echo -e "Usage: $base command" 13 …echo -e "\texport <file.conf>: export and lock down the AUTOPR values from the PR service into a f… 14 …echo -e "\timport <file.conf>: import the AUTOPR values from the exported file into the PR service… 19 s=`bitbake -e | grep ^CACHE= | cut -f2 -d\"` 21 bitbake -m 24 rm -f ${s}/bb_cache*.dat.* 32 rm -f ${file} 35 bitbake -R conf/prexport.conf -p 36 s=`bitbake -R conf/prexport.conf -e | grep ^PRSERV_DUMPFILE= | cut -f2 -d\"` [all …]
|
/openbmc/linux/include/net/netns/ |
H A D | sctp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 * the Out-of-the-blue (OOTB) packets. A control sock will be created 46 /* Lock that protects both addr_waitq and auto_asconf_splist */ 49 /* Lock that protects the local_addr_list writers */ 56 * RTO.Initial - 3 seconds 57 * RTO.Min - 1 second 58 * RTO.Max - 60 seconds 59 * RTO.Alpha - 1/8 (3 when converted to right shifts.) 60 * RTO.Beta - 1/4 (2 when converted to right shifts.) 72 /* Max.Burst - 4 */ [all …]
|
/openbmc/openbmc/poky/meta/classes/ |
H A D | buildhistory.bbclass | 6 # Copyright (C) 2011-2016 Intel Corporation 7 # Copyright (C) 2007-2011 Koen Kooi <koen@openembedded.org> 9 # SPDX-License-Identifier: MIT 12 IMAGE_CLASSES += "image-artifact-names" 19 # Setting this to non-empty will remove the old content of the buildhistory as part of 29 # the "version-going-backwards" check still works. When relying on that, be careful 43 BUILDHISTORY_SDK_FILES ?= "conf/local.conf conf/bblayers.conf conf/auto.conf conf/locked-sigs.inc c… 85 mkdir --parents ${BUILDHISTORY_DIR_PACKAGE} 87 class-native|class-cross|class-crosssdk) 118 self.pr = "r0" [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | dlmglue.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 64 * Return value from ->downconvert_worker functions. 73 * ->post_unlock callback */ 75 * ->post_unlock() callback. */ 116 struct ocfs2_meta_lvb *lvb = ocfs2_dlm_lvb(&lockres->l_lksb); in ocfs2_dump_meta_lvb_info() 119 lockres->l_name, function, line); in ocfs2_dump_meta_lvb_info() 121 lvb->lvb_version, be32_to_cpu(lvb->lvb_iclusters), in ocfs2_dump_meta_lvb_info() 122 be32_to_cpu(lvb->lvb_igeneration)); in ocfs2_dump_meta_lvb_info() 124 (unsigned long long)be64_to_cpu(lvb->lvb_isize), in ocfs2_dump_meta_lvb_info() 125 be32_to_cpu(lvb->lvb_iuid), be32_to_cpu(lvb->lvb_igid), in ocfs2_dump_meta_lvb_info() [all …]
|
/openbmc/linux/drivers/of/ |
H A D | dynamic.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * of_node_get() - Increment refcount of a node 36 kobject_get(&node->kobj); in of_node_get() 42 * of_node_put() - Decrement refcount of a node 49 kobject_put(&node->kobj); in of_node_put() 77 func("changeset: " prefix "%-15s %pOF%s%s\n", \ 79 prop ? ":" : "", prop ? prop->name : ""); \ 87 struct of_reconfig_data *pr = p; in of_reconfig_notify() local 89 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify() 96 * of_reconfig_get_state_change() - Returns new state of device [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | dlmconstants.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 6 ** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. 27 * Lock Modes 30 #define DLM_LOCK_IV (-1) /* invalid */ 44 * Do not queue the lock request on the wait queue if it cannot be granted 45 * immediately. If the lock cannot be granted because of this flag, DLM will 46 * either return -EAGAIN from the dlm_lock call or will return 0 from 47 * dlm_lock and -EAGAIN in the lock status block when the AST is executed. 51 * Used to cancel a pending lock request or conversion. A converting lock is [all …]
|
/openbmc/linux/Documentation/driver-api/md/ |
H A D | md-cluster.rst | 5 The cluster MD is a shared-device RAID for a cluster, it supports 9 1. On-disk format 12 Separate write-intent-bitmaps are used for each cluster node. 14 and may not yet have finished. The on-disk layout is:: 17 ------------------------------------------------------------------- 26 - set the appropriate bit (if not already set) 27 - commit the write to all mirrors 28 - schedule the bit to be cleared after a timeout. 40 2.1 Bitmap lock resource (bm_lockres) 41 ------------------------------------- [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | ich.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 33 uint32_t pr[5]; /* 0x74 */ member 176 bool lockdown; /* lock down controller settings? */ 192 uint32_t *pr; /* only for ich9 */ member
|
/openbmc/linux/drivers/clk/imx/ |
H A D | clk-composite-7ulp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <linux/clk-provider.h> 14 #include "../clk-fractional-divider.h" 39 spin_lock_irqsave(gate->lock, flags); in pcc_gate_enable() 44 val = readl(gate->reg); in pcc_gate_enable() 46 writel(val, gate->reg); in pcc_gate_enable() 48 spin_unlock_irqrestore(gate->lock, flags); in pcc_gate_enable() 84 pr_info("PCC PR is 0 for clk:%s, bypass\n", name); in imx_ulp_clk_hw_composite() 91 return ERR_PTR(-ENOMEM); in imx_ulp_clk_hw_composite() 92 mux_hw = &mux->hw; in imx_ulp_clk_hw_composite() [all …]
|
/openbmc/linux/fs/ocfs2/dlm/ |
H A D | dlmcommon.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 123 u8 migrate_done; /* set to 1 means node has migrated all lock resources */ 166 /* This is the inter-dlm communication version */ 172 return dlm->lockres_hash[(i / DLM_BUCKETS_PER_PAGE) % DLM_HASH_PAGES] + (i % DLM_BUCKETS_PER_PAGE); in dlm_lockres_hash() 178 return dlm->master_hash[(i / DLM_BUCKETS_PER_PAGE) % DLM_HASH_PAGES] + in dlm_master_hash() 182 /* these keventd work queue items are for less-frequently 239 i->func = f; in dlm_init_work_item() 240 INIT_LIST_HEAD(&i->list); in dlm_init_work_item() 241 i->data = data; in dlm_init_work_item() 242 i->dlm = dlm; /* must have already done a dlm_grab on this! */ in dlm_init_work_item() [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | w6692.c | 1 // SPDX-License-Identifier: GPL-2.0-only 58 u32 fmask; /* feature mask - bit set per card nr */ 60 spinlock_t lock; /* hw lock */ member 82 card->dch.debug = debug; in _set_debug() 83 card->bc[0].bch.debug = debug; in _set_debug() 84 card->bc[1].bch.debug = debug; in _set_debug() 116 return inb(card->addr + offset); in ReadW6692() 122 outb(value, card->addr + offset); in WriteW6692() 128 return inb(bc->addr + offset); in ReadW6692B() 134 outb(value, bc->addr + offset); in WriteW6692B() [all …]
|