Home
last modified time | relevance | path

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

12345678910>>...42

/linux/fs/ocfs2/dlm/
H A Ddlmlock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * underlying calls for lock creation
45 struct dlm_lock *lock, int flags);
49 static void dlm_lock_detach_lockres(struct dlm_lock *lock);
57 return -ENOMEM; in dlm_init_lock_cache()
66 /* Tell us whether we can grant a new lock request.
68 * caller needs: res->spinlock
71 * returns: 1 if the lock can be granted, 0 otherwise.
74 struct dlm_lock *lock) in dlm_can_grant_new_lock() argument
78 list_for_each_entry(tmplock, &res->granted, list) { in dlm_can_grant_new_lock()
[all …]
H A Ddlmunlock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
43 struct dlm_lock *lock,
48 struct dlm_lock *lock,
54 struct dlm_lock *lock,
67 * So to unlock a converting lock, you must first cancel the
76 * taken: res->spinlock and lock->spinlock taken and dropped
78 * returns: DLM_NORMAL, DLM_NOLOCKMGR, status from network
79 * all callers should have taken an extra ref on lock coming in
83 struct dlm_lock *lock, in dlmunlock_common() argument
88 enum dlm_status status; in dlmunlock_common() local
[all …]
H A Ddlmconvert.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * underlying calls for lock conversion
37 * needs a spinlock held on entry (res->spinlock) and it is the
38 * only one that holds a lock on exit (res->spinlock).
43 struct dlm_lock *lock, int flags,
48 struct dlm_lock *lock, int flags, int type);
55 * taken: takes and drops res->spinlock
61 struct dlm_lock *lock, int flags, int type) in dlmconvert_master() argument
64 enum dlm_status status; in dlmconvert_master() local
66 spin_lock(&res->spinlock); in dlmconvert_master()
[all …]
/linux/drivers/acpi/acpica/
H A Dutlock.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: utlock - Reader/Writer lock interfaces
6 * Copyright (C) 2000 - 2025, Intel Corp.
21 * PARAMETERS: lock - Pointer to a valid RW lock
23 * RETURN: Status
25 * DESCRIPTION: Reader/writer lock creation and deletion interfaces.
28 acpi_status acpi_ut_create_rw_lock(struct acpi_rw_lock *lock) in acpi_ut_create_rw_lock() argument
30 acpi_status status; in acpi_ut_create_rw_lock() local
32 lock->num_readers = 0; in acpi_ut_create_rw_lock()
33 status = acpi_os_create_mutex(&lock->reader_mutex); in acpi_ut_create_rw_lock()
[all …]
H A Devglock.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: evglock - Global Lock support
6 * Copyright (C) 2000 - 2025, Intel Corp.
27 * RETURN: Status
29 * DESCRIPTION: Install a handler for the global lock release event
35 acpi_status status; in acpi_ev_init_global_lock_handler() local
39 /* If Hardware Reduced flag is set, there is no global lock */ in acpi_ev_init_global_lock_handler()
49 /* Attempt installation of the global lock handler */ in acpi_ev_init_global_lock_handler()
51 status = acpi_install_fixed_event_handler(ACPI_EVENT_GLOBAL, in acpi_ev_init_global_lock_handler()
56 * If the global lock does not exist on this platform, the attempt to in acpi_ev_init_global_lock_handler()
[all …]
/linux/fs/lockd/
H A Dclntproc.c1 // SPDX-License-Identifier: GPL-2.0-only
49 memcpy(c->data, &cookie, 4); in nlmclnt_next_cookie()
50 c->len=4; in nlmclnt_next_cookie()
56 refcount_inc(&lockowner->count); in nlmclnt_get_lockowner()
62 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmclnt_put_lockowner()
64 list_del(&lockowner->list); in nlmclnt_put_lockowner()
65 spin_unlock(&lockowner->host->h_lock); in nlmclnt_put_lockowner()
66 nlmclnt_release_host(lockowner->host); in nlmclnt_put_lockowner()
73 list_for_each_entry(lockowner, &host->h_lockowners, list) { in nlm_pidbusy()
74 if (lockowner->pid == pid) in nlm_pidbusy()
[all …]
H A Dtrace.h1 /* SPDX-License-Identifier: GPL-2.0 */
50 const struct nlm_lock *lock,
53 __be32 status
56 TP_ARGS(lock, addr, addrlen, status),
62 __field(unsigned long, status)
69 __entry->oh = ~crc32_le(0xffffffff, lock->oh.data, lock->oh.len);
70 __entry->svid = lock->svid;
71 __entry->fh = nfs_fhandle_hash(&lock->fh);
72 __entry->start = lock->lock_start;
73 __entry->len = lock->lock_len;
[all …]
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_fwd.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
45 int status; in usnic_fwd_devcmd_locked() local
46 struct net_device *netdev = ufdev->netdev; in usnic_fwd_devcmd_locked()
48 lockdep_assert_held(&ufdev->lock); in usnic_fwd_devcmd_locked()
50 status = enic_api_devcmd_proxy_by_index(netdev, in usnic_fwd_devcmd_locked()
55 if (status) { in usnic_fwd_devcmd_locked()
56 if (status == ERR_EINVAL && cmd == CMD_DEL_FILTER) { in usnic_fwd_devcmd_locked()
58 ufdev->name, vnic_idx, cmd); in usnic_fwd_devcmd_locked()
60 usnic_err("Dev %s vnic idx %u cmd %u failed with status %d\n", in usnic_fwd_devcmd_locked()
[all …]
/linux/drivers/media/dvb-frontends/
H A Dcxd2099.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2010-2013 Digital Devices GmbH
47 struct mutex lock; /* device access lock */ member
55 int status = 0; in read_block() local
57 if (ci->lastaddress != adr) in read_block()
58 status = regmap_write(ci->regmap, 0, adr); in read_block()
59 if (!status) { in read_block()
60 ci->lastaddress = adr; in read_block()
65 if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) in read_block()
66 len = ci->cfg.max_i2c; in read_block()
[all …]
/linux/drivers/s390/crypto/
H A Dap_queue.c1 // SPDX-License-Identifier: GPL-2.0
28 return aq->card->hwinfo.ep11 || aq->card->hwinfo.accel; in ap_q_supported_in_se()
33 return aq->card->hwinfo.ep11 || aq->card->hwinfo.accel; in ap_q_supports_bind()
38 return aq->card->hwinfo.ep11; in ap_q_supports_assoc()
58 struct ap_queue_status status; in ap_queue_enable_irq() local
62 status = ap_aqic(aq->qid, qirqctrl, virt_to_phys(ind)); in ap_queue_enable_irq()
63 if (status.async) in ap_queue_enable_irq()
64 return -EPERM; in ap_queue_enable_irq()
65 switch (status.response_code) { in ap_queue_enable_irq()
74 AP_QID_CARD(aq->qid), in ap_queue_enable_irq()
[all …]
/linux/drivers/usb/host/
H A Dehci-hub.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2001-2004 by David Brownell
6 /* this file is part of ehci-hcd.c */
8 /*-------------------------------------------------------------------------*/
16 /*-------------------------------------------------------------------------*/
26 return !udev->maxchild && udev->persist_enabled && in persist_enabled_on_companion()
27 udev->bus->root_hub->speed < USB_SPEED_HIGH; in persist_enabled_on_companion()
36 u32 status; in ehci_handover_companion_ports() local
41 if (!ehci->owned_ports) in ehci_handover_companion_ports()
55 port = HCS_N_PORTS(ehci->hcs_params); in ehci_handover_companion_ports()
[all …]
H A Dxen-hcd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * xen-hcd.c
25 /* Private per-URB data */
31 int status; member
35 /* virtual roothub port status */
37 __u32 status; member
43 /* status of attached device */
46 enum usb_device_state status; member
64 spinlock_t lock; member
102 return (struct xenhcd_info *)hcd->hcd_priv; in xenhcd_hcd_to_info()
[all …]
/linux/fs/ocfs2/
H A Ddlmglue.c1 // SPDX-License-Identifier: GPL-2.0-or-later
65 * Return value from ->downconvert_worker functions.
74 * ->post_unlock callback */
76 * ->post_unlock() callback. */
117 struct ocfs2_meta_lvb *lvb = ocfs2_dlm_lvb(&lockres->l_lksb); in ocfs2_dump_meta_lvb_info()
120 lockres->l_name, function, line); in ocfs2_dump_meta_lvb_info()
122 lvb->lvb_version, be32_to_cpu(lvb->lvb_iclusters), in ocfs2_dump_meta_lvb_info()
123 be32_to_cpu(lvb->lvb_igeneration)); in ocfs2_dump_meta_lvb_info()
125 (unsigned long long)be64_to_cpu(lvb->lvb_isize), in ocfs2_dump_meta_lvb_info()
126 be32_to_cpu(lvb->lvb_iuid), be32_to_cpu(lvb->lvb_igid), in ocfs2_dump_meta_lvb_info()
[all …]
/linux/drivers/usb/usbip/
H A Dstub_dev.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2003-2008 Takahiro Hirofuchi
15 * usbip_status shows the status of usbip-host as long as this driver is bound
22 int status; in usbip_status_show() local
26 return -ENODEV; in usbip_status_show()
29 spin_lock_irq(&sdev->ud.lock); in usbip_status_show()
30 status = sdev->ud.status; in usbip_status_show()
31 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show()
33 return sysfs_emit(buf, "%d\n", status); in usbip_status_show()
39 * is used to transfer usbip requests by kernel threads. -1 is a magic number
[all …]
H A Dvhci_sysfs.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2003-2008 Takahiro Hirofuchi
4 * Copyright (C) 2015-2016 Nobuo Iwata
13 /* Hardening for Spectre-v1 */
24 * hs 0000 004 000 00000000 000003 1-2.3
26 * ss 0008 004 000 00000000 000004 2-3.4
31 * /sys/devices/platform/vhci_hcd.0/status and in debug output.
42 port, vdev->ud.status); in port_show_vhci()
45 port, vdev->ud.status); in port_show_vhci()
47 if (vdev->ud.status == VDEV_ST_USED) { in port_show_vhci()
[all …]
H A Dvudc_sysfs.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2015-2016 Samsung Electronics
22 /* called with udc->lock held */
26 struct vep *ep0 = to_vep(udc->gadget.ep0); in get_gadget_descs()
27 struct usb_device_descriptor *ddesc = &udc->dev_desc; in get_gadget_descs()
31 if (!udc->driver || !udc->pullup) in get_gadget_descs()
32 return -EINVAL; in get_gadget_descs()
40 spin_unlock(&udc->lock); in get_gadget_descs()
41 ret = udc->driver->setup(&(udc->gadget), &req); in get_gadget_descs()
42 spin_lock(&udc->lock); in get_gadget_descs()
[all …]
/linux/drivers/target/sbp/
H A Dsbp_target.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <linux/firewire-constants.h>
40 0x390104d8, /* command_set: SPC-2 */
58 ret = sbp_run_transaction(req->card, TCODE_READ_QUADLET_REQUEST, in read_peer_guid()
59 req->node_addr, req->generation, req->speed, in read_peer_guid()
65 ret = sbp_run_transaction(req->card, TCODE_READ_QUADLET_REQUEST, in read_peer_guid()
66 req->node_addr, req->generation, req->speed, in read_peer_guid()
83 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
84 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid()
85 sess = se_sess->fabric_sess_ptr; in sbp_session_find_by_guid()
[all …]
/linux/drivers/hwmon/
H A Dadcxx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 #include <linux/hwmon-sysfs.h>
41 struct mutex lock; member
55 int status; in adcxx_show() local
58 if (mutex_lock_interruptible(&adc->lock)) in adcxx_show()
59 return -ERESTARTSYS; in adcxx_show()
61 if (adc->channels == 1) { in adcxx_show()
62 status = spi_read(spi, rx_buf, sizeof(rx_buf)); in adcxx_show()
64 tx_buf[0] = attr->index << 3; /* other bits are don't care */ in adcxx_show()
65 status = spi_write_then_read(spi, tx_buf, sizeof(tx_buf), in adcxx_show()
[all …]
/linux/drivers/platform/surface/aggregator/
H A Dcontroller.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
38 /* -- Safe counters. -------------------------------------------------------- */
41 * ssh_seq_reset() - Reset/initialize sequence ID counter.
46 WRITE_ONCE(c->value, 0); in ssh_seq_reset()
50 * ssh_seq_next() - Get next sequence ID.
57 u8 old = READ_ONCE(c->value); in ssh_seq_next()
61 while (unlikely((ret = cmpxchg(&c->value, old, new)) != old)) { in ssh_seq_next()
70 * ssh_rqid_reset() - Reset/initialize request ID counter.
75 WRITE_ONCE(c->value, 0); in ssh_rqid_reset()
[all …]
H A Dssh_request_layer.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
11 #include <linux/error-injection.h>
29 * SSH_RTL_REQUEST_TIMEOUT - Request timeout.
32 * response in this time-frame after finishing the underlying packet
33 * transmission, the request will be completed with %-ETIMEDOUT as status
39 * SSH_RTL_REQUEST_TIMEOUT_RESOLUTION - Request timeout granularity.
41 * Time-resolution for timeouts. Should be larger than one jiffy to avoid
42 * direct re-scheduling of reaper work_struct.
47 * SSH_RTL_MAX_PENDING - Maximum number of pending requests.
[all …]
H A Dssh_packet_layer.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
10 #include <linux/error-injection.h>
34 * system below is similar to a state-machine for packets, however, there are
41 * - submit
42 * - transmission start (process next item in queue)
43 * - transmission finished (guaranteed to never be parallel to transmission
45 * - ACK received
46 * - NAK received (this is equivalent to issuing re-submit for all pending
48 * - timeout (this is equivalent to re-issuing a submit or canceling)
[all …]
/linux/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Provides user-space access to the SSAM EC via the /dev/surface/aggregator
6 * Copyright (C) 2020-2022 Maximilian Luz <luzmaximilian@gmail.com>
30 /* -- Main structures. ------------------------------------------------------ */
38 struct rw_semaphore lock; member
79 kref_get(&cdev->kref); in ssam_cdev_get()
87 kref_put(&cdev->kref, __ssam_cdev_release); in ssam_cdev_put()
91 /* -- Notifier handling. ---------------------------------------------------- */
96 struct ssam_cdev_client *client = cdev_nf->client; in ssam_cdev_notifier()
98 size_t n = struct_size(&event, data, in->length); in ssam_cdev_notifier()
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-mcp23s08.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <linux/pinctrl/pinconf-generic.h>
22 #include "pinctrl-mcp23s08.h"
89 .disable_locking = true, /* mcp->lock protects the regmap */
136 .disable_locking = true, /* mcp->lock protects the regmap */
142 return regmap_read(mcp->regmap, reg << mcp->reg_shift, val); in mcp_read()
147 return regmap_write(mcp->regmap, reg << mcp->reg_shift, val); in mcp_write()
153 return regmap_update_bits(mcp->regmap, reg << mcp->reg_shift, in mcp_update_bits()
210 return -ENOTSUPP; in mcp_pinctrl_get_group_pins()
228 unsigned int data, status; in mcp_pinconf_get() local
[all …]
/linux/drivers/usb/serial/
H A Dgeneric.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2010 - 2013 Johan Hovold (jhovold@gmail.com)
6 * Copyright (C) 1999 - 2002 Greg Kroah-Hartman (greg@kroah.com)
40 struct device *dev = &serial->interface->dev; in usb_serial_generic_probe()
42 dev_info(dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n"); in usb_serial_generic_probe()
43 dev_info(dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n"); in usb_serial_generic_probe()
51 struct device *dev = &serial->interface->dev; in usb_serial_generic_calc_num_ports()
54 num_ports = max(epds->num_bulk_in, epds->num_bulk_out); in usb_serial_generic_calc_num_ports()
58 return -ENODEV; in usb_serial_generic_calc_num_ports()
109 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open()
[all …]
/linux/drivers/dma/hsu/
H A Dhsu.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <linux/dma-mapping.h>
28 #include <linux/percpu-defs.h>
54 if (hsuc->direction == DMA_MEM_TO_DEV) in hsu_chan_enable()
56 else if (hsuc->direction == DMA_DEV_TO_MEM) in hsu_chan_enable()
64 struct dma_slave_config *config = &hsuc->config; in hsu_dma_chan_start()
65 struct hsu_dma_desc *desc = hsuc->desc; in hsu_dma_chan_start()
70 if (hsuc->direction == DMA_MEM_TO_DEV) { in hsu_dma_chan_start()
71 bsr = config->dst_maxburst; in hsu_dma_chan_start()
72 mtsr = config->dst_addr_width; in hsu_dma_chan_start()
[all …]

12345678910>>...42