Home
last modified time | relevance | path

Searched +full:lock +full:- +full:status (Results 1 – 25 of 1040) sorted by relevance

12345678910>>...42

/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_passivelock.h3 * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
38 * This file contains the passive lock, which synchronizes passive threads.
39 * The passive lock allows multiple readers to access a resource
41 * Several writer threads are allowed - but only one can write at a given time
58 /****h* Component Library/Passive Lock
60 * Passive Lock
63 * The Passive Lock provides synchronization between multiple threads that
[all …]
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutlock.c3 * Module Name: utlock - Reader/Writer lock interfaces
11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
165 * PARAMETERS: Lock - Pointer to a valid RW lock
167 * RETURN: Status
169 * DESCRIPTION: Reader/writer lock creation and deletion interfaces.
[all …]
/freebsd/contrib/ofed/opensm/complib/
H A Dcl_dispatcher.c2 * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
67 p_disp - Pointer to Dispatcher object
80 cl_spinlock_acquire(&p_disp->lock); in __cl_disp_worker()
83 while (cl_qlist_count(&p_disp->msg_fifo)) { in __cl_disp_worker()
86 (cl_disp_msg_t *) cl_qlist_remove_head(&p_disp->msg_fifo); in __cl_disp_worker()
89 p_disp->last_msg_queue_time_us = in __cl_disp_worker()
[all …]
/freebsd/sys/contrib/dev/acpica/components/events/
H A Devglock.c3 * Module Name: evglock - Global Lock support
11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
175 * RETURN: Status
177 * DESCRIPTION: Install a handler for the global lock release event
185 ACPI_STATUS Status; in AcpiEvInitGlobalLockHandler() local
[all …]
/freebsd/sys/contrib/ck/include/
H A Dck_elide.h2 * Copyright 2013-2015 Samy Al Bahra.
33 * non-TSO architectures with TM support.
41 * skip_-prefixed counters represent the number of consecutive
42 * elisions to forfeit. retry_-prefixed counters represent the
45 * _busy: Lock was busy
97 unsigned int status) in _ck_elide_fallback() argument
100 st->n_fallback++; in _ck_elide_fallback()
104 if (st->skip != 0) in _ck_elide_fallback()
107 if (status & CK_PR_RTM_EXPLICIT) { in _ck_elide_fallback()
108 if (CK_PR_RTM_CODE(status) == CK_ELIDE_LOCK_BUSY) { in _ck_elide_fallback()
[all …]
/freebsd/sys/dev/nvmf/controller/
H A Dnvmft_qpair.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2023-2024 Chelsio Communications, Inc.
11 #include <sys/lock.h>
39 struct mtx lock; member
52 struct nvmft_controller *ctrlr = qp->ctrlr; in nvmft_qpair_error()
63 nvmft_printf(ctrlr, "error %d on %s\n", error, qp->name); in nvmft_qpair_error()
71 struct nvmft_controller *ctrlr = qp->ctrlr; in nvmft_receive_capsule()
78 qp->name, le16toh(cmd->cid), cmd->opc); in nvmft_receive_capsule()
90 /* Don't bother byte-swapping CID. */ in nvmft_receive_capsule()
[all …]
H A Dnvmft_controller.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2023-2024 Chelsio Communications, Inc.
11 #include <sys/lock.h>
37 sbuf_printf(&sb, "nvmft%u: ", ctrlr->cntlid); in nvmft_printf()
56 ctrlr->cntlid = cntlid; in nvmft_controller_alloc()
57 ctrlr->np = np; in nvmft_controller_alloc()
58 mtx_init(&ctrlr->lock, "nvmft controller", NULL, MTX_DEF); in nvmft_controller_alloc()
59 callout_init(&ctrlr->ka_timer, 1); in nvmft_controller_alloc()
60 TASK_INIT(&ctrlr->shutdown_task, 0, nvmft_controller_shutdown, ctrlr); in nvmft_controller_alloc()
[all …]
H A Dctl_frontend_nvmf.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2023-2024 Chelsio Communications, Inc.
13 #include <sys/lock.h>
45 #define NVMFT_NC(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptrs[0])
46 #define NVMFT_QP(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptrs[1])
73 mtx_lock(&np->lock); in nvmft_online()
74 np->online = true; in nvmft_online()
75 mtx_unlock(&np->lock); in nvmft_online()
84 mtx_lock(&np->lock); in nvmft_offline()
[all …]
/freebsd/sys/dev/isci/
H A Disci.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
117 while (ep->type && ep->type != type) in isci_probe()
120 if (ep->desc) in isci_probe()
122 device_set_desc(device, ep->des in isci_probe()
190 SCI_STATUS status; isci_detach() local
283 uint32_t status = 0; isci_initialize() local
410 uint32_t status; isci_allocate_dma_buffer() local
463 scif_cb_lock_associate(SCI_CONTROLLER_HANDLE_T controller,SCI_LOCK_HANDLE_T lock) scif_cb_lock_associate() argument
484 scif_cb_lock_disassociate(SCI_CONTROLLER_HANDLE_T controller,SCI_LOCK_HANDLE_T lock) scif_cb_lock_disassociate() argument
502 scif_cb_lock_acquire(SCI_CONTROLLER_HANDLE_T controller,SCI_LOCK_HANDLE_T lock) scif_cb_lock_acquire() argument
518 scif_cb_lock_release(SCI_CONTROLLER_HANDLE_T controller,SCI_LOCK_HANDLE_T lock) scif_cb_lock_release() argument
[all...]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_multicast.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
39 #include <linux/dma-mapping.h>
67 spinlock_t lock; member
105 spinlock_t lock; member
129 static void join_handler(int status, struct ib_sa_mcmember_rec *rec,
131 static void leave_handler(int status, struct ib_sa_mcmember_rec *rec,
137 struct rb_node *node = port->table.rb_node; in mcast_find()
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme_qpair.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2012-2014 Intel Corporation
65 nvme_printf(qpair->ctrlr, "%s sqid:%d cid:%d nsid:%x " in nvme_admin_qpair_print_command()
67 get_opcode_string(true, cmd->opc, buf, sizeof(buf)), qpair->id, in nvme_admin_qpair_print_command()
68 cmd->cid, le32toh(cmd->nsid), le32toh(cmd->cdw10), in nvme_admin_qpair_print_command()
69 le32toh(cmd->cdw11)); in nvme_admin_qpair_print_command()
78 switch (cmd->opc) { in nvme_io_qpair_print_command()
85 nvme_printf(qpair->ctrlr, "%s sqid:%d cid:%d nsid:%d " in nvme_io_qpair_print_command()
87 get_opcode_string(false, cmd->opc, buf, sizeof(buf)), in nvme_io_qpair_print_command()
[all …]
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_vl15intf.c3 * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
4 * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
5 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
61 ib_api_status_t status; in vl15_send_mad() local
62 boolean_t resp_expected = p_madw->resp_expected; in vl15_send_mad()
68 method = p_smp->method; in vl15_send_mad()
69 attr_id = p_smp->attr_id; in vl15_send_mad()
72 Non-response-expected mads are not throttled on the wire in vl15_send_mad()
[all …]
H A Dosm_db_files.c2 * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2007 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
95 cl_spinlock_t lock; member
130 cl_list_construct(&p_db->domains); in osm_db_construct()
136 p_domain_imp = (osm_db_domain_imp_t *) p_db_domain->p_domain_imp; in osm_db_domain_destroy()
140 cl_spinlock_destroy(&p_domain_imp->lock); in osm_db_domain_destroy()
142 st_free_table(p_domain_imp->p_hash); in osm_db_domain_destroy()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dagg-rx.c1 // SPDX-License-Identifier: ISC
10 * no special handling is needed. AC_BE/AC_BK use tids 0-3. Just check in mt76_aggr_tid_to_timeo()
20 tid->head = ieee80211_sn_inc(tid->head); in mt76_aggr_release()
22 skb = tid->reorder_buf[idx]; in mt76_aggr_release()
26 tid->reorder_buf[idx] = NULL; in mt76_aggr_release()
27 tid->nframes--; in mt76_aggr_release()
38 while (ieee80211_sn_less(tid->head, head)) { in mt76_rx_aggr_release_frames()
39 idx = tid->head % tid->size; in mt76_rx_aggr_release_frames()
47 int idx = tid->head % tid->size; in mt76_rx_aggr_release_head()
49 while (tid->reorder_buf[idx]) { in mt76_rx_aggr_release_head()
[all …]
H A Dtx.c1 // SPDX-License-Identifier: ISC
11 if (!txq->sta) in mt76_txq_get_qid()
14 return txq->ac; in mt76_txq_get_qid()
20 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_tx_check_agg_ssn()
25 if (!sta || !ieee80211_is_data_qos(hdr->frame_control) || in mt76_tx_check_agg_ssn()
26 !ieee80211_is_data_present(hdr->frame_control)) in mt76_tx_check_agg_ssn()
29 tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK; in mt76_tx_check_agg_ssn()
30 txq = sta->txq[tid]; in mt76_tx_check_agg_ssn()
31 mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_tx_check_agg_ssn()
32 if (!mtxq->aggr) in mt76_tx_check_agg_ssn()
[all …]
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_aer.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
10 #include <sys/lock.h>
26 uint16_t status; member
28 struct mtx *lock; member
46 req = nvmf_allocate_request(sc->admin, &cmd, nvmf_complete_aer, aer, in nvmf_submit_aer()
50 req->aer = true; in nvmf_submit_aer()
64 if (ns_list->ns[0] == 0xffffffff) { in nvmf_handle_changed_namespaces()
69 for (u_int i = 0; i < nitems(ns_list->ns); i++) { in nvmf_handle_changed_namespaces()
70 if (ns_list->ns[i] == 0) in nvmf_handle_changed_namespaces()
[all …]
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_trans.c1 /*-
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
47 u8 status; member
54 spinlock_t lock; /* Protects all members of this struct */ member
66 return &fdev->trans->transactions[tid]; in find_tid()
74 spin_lock_irqsave(&fdev->trans->lock, flags); in alloc_tid()
76 if (list_empty(&fdev->trans->free_queue)) { in alloc_tid()
82 ret = list_first_entry(&fdev->trans->free_queue, in alloc_tid()
84 list_del(&ret->list_item); in alloc_tid()
[all …]
H A Dmlx5fpga_xfer.c1 /*-
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
42 u8 status; member
48 spinlock_t lock; /* Protects all members of this struct */ member
57 u8 status);
61 const struct mlx5_fpga_transaction *xfer = xfer_state->xfer; in xfer_complete()
62 u8 status = xfer_state->status; in xfer_complete() local
65 xfer->complete1(xfer, status); in xfer_complete()
68 /* Xfer state spin lock must be locked */
[all …]
/freebsd/usr.bin/lockf/
H A Dlockf.130 .Nd execute a command while holding a file lock
45 utility acquires an exclusive lock on a
51 While holding the lock, it executes a
59 releases the lock, and removes the
64 .Bx Ns -style
69 is not considered to constitute a lock.
90 This can be used to lock inside a shell script.
98 This will guarantee lock ordering, as well as implement
100 with concurrent unlink, drop and re-acquire activity.
104 option is not used, then no guarantees around lock ordering can be made.
[all …]
/freebsd/sys/dev/acpica/Osd/
H A DOsdSynch.c1 /*-
4 * Copyright (c) 2007-2009 Jung-uk Kim <jkim@FreeBSD.org>
39 #include <sys/lock.h>
89 snprintf(as->as_name, sizeof(as->as_name), "ACPI sema (%p)", as); in AcpiOsCreateSemaphore()
90 mtx_init(&as->as_lock, as->as_name, NULL, MTX_DEF); in AcpiOsCreateSemaphore()
91 cv_init(&as->as_cv, as->as_name); in AcpiOsCreateSemaphore()
92 as->as_maxunits = MaxUnits; in AcpiOsCreateSemaphore()
93 as->as_units = InitialUnits; in AcpiOsCreateSemaphore()
98 as->as_name, MaxUnits, InitialUnits)); in AcpiOsCreateSemaphore()
113 mtx_lock(&as->as_lock); in AcpiOsDeleteSemaphore()
[all …]
/freebsd/sys/dev/vmware/pvscsi/
H A Dpvscsi.c1 /*-
4 * SPDX-License-Identifier: (BSD-2-Clause OR GPL-2.0)
190 struct mtx lock; member
235 snprintf(cfg, sizeof(cfg), "hw.pvscsi.%d.%s", device_get_unit(sc->dev), in pvscsi_get_tunable()
246 if (!sc->frozen) { in pvscsi_freeze()
247 xpt_freeze_simq(sc->sim, 1); in pvscsi_freeze()
248 sc->frozen = 1; in pvscsi_freeze()
256 return (bus_read_4(sc->mm_res, offset)); in pvscsi_reg_read()
263 bus_write_4(sc->mm_res, offset, val); in pvscsi_reg_write()
286 if (sc->use_msg) { in pvscsi_intr_enable()
[all …]
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_multicast.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
18 * - Redistributions of source code must retain the above
22 * - Redistributions in binary form must reproduce the above
64 if_t dev = mcast->priv->dev; in ipoib_mcast_free()
67 ipoib_dbg_mcast(mcast->priv, "deleting multicast group %16D\n", in ipoib_mcast_free()
68 mcast->mcmember.mgid.raw, ":"); in ipoib_mcast_free()
70 if (mcast->ah) in ipoib_mcast_free()
71 ipoib_put_ah(mcast->ah); in ipoib_mcast_free()
73 tx_dropped = mcast->pkt_queue.ifq_len; in ipoib_mcast_free()
[all …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBThread.cpp1 //===-- SBThread.cpp ------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
46 #include "lldb/lldb-enumerations.h"
93 std::unique_lock<std::recursive_mutex> lock; in GetQueue() local
94 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetQueue()
98 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueue()
99 queue_sp = exe_ctx.GetThreadPtr()->GetQueue(); in GetQueue()
111 return this->operator bool(); in IsValid()
116 std::unique_lock<std::recursive_mutex> lock; in operator bool() local
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DModuleCache.cpp1 //===-- ModuleCache.cpp ---------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
31 const char *kLockDirName = ".lock";
57 ModuleLock(const FileSpec &root_dir_spec, const UUID &uuid, Status &error);
67 static Status MakeDirectory(const FileSpec &dir_path) { in MakeDirectory()
89 module_uuid = module_sp->GetUUID(); in DeleteExistingModule()
95 Status error; in DeleteExistingModule()
96 ModuleLock lock(root_dir_spec, module_uuid, error); in DeleteExistingModule() local
98 LLDB_LOGF(log, "Failed to lock module %s: %s", in DeleteExistingModule()
[all …]
/freebsd/tools/tools/vhba/
H A Dvhba.c1 /*-
42 TAILQ_INIT(&vhba->actv); in vhba_attach()
43 TAILQ_INIT(&vhba->done); in vhba_attach()
44 vhba->devq = cam_simq_alloc(VHBA_MAXCMDS); in vhba_attach()
45 if (vhba->devq == NULL) { in vhba_attach()
48 …vhba->sim = cam_sim_alloc(vhba_action, vhba_poll, VHBA_MOD, vhba, 0, &vhba->lock, VHBA_MAXCMDS, VH… in vhba_attach()
49 if (vhba->sim == NULL) { in vhba_attach()
50 cam_simq_free(vhba->devq); in vhba_attach()
54 mtx_lock(&vhba->lock); in vhba_attach()
55 if (xpt_bus_register(vhba->sim, 0, 0) != CAM_SUCCESS) { in vhba_attach()
[all …]

12345678910>>...42