/linux-6.14.4/fs/ocfs2/dlm/ |
D | dlmlock.c | 1 // 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 …]
|
D | dlmconvert.c | 1 // 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 …]
|
D | dlmunlock.c | 1 // 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 …]
|
/linux-6.14.4/drivers/acpi/acpica/ |
D | utlock.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: utlock - Reader/Writer lock interfaces 6 * Copyright (C) 2000 - 2023, 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 …]
|
D | evglock.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: evglock - Global Lock support 6 * Copyright (C) 2000 - 2023, 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() 45 /* Attempt installation of the global lock handler */ in acpi_ev_init_global_lock_handler() 47 status = acpi_install_fixed_event_handler(ACPI_EVENT_GLOBAL, in acpi_ev_init_global_lock_handler() 52 * If the global lock does not exist on this platform, the attempt to in acpi_ev_init_global_lock_handler() [all …]
|
/linux-6.14.4/fs/lockd/ |
D | clntproc.c | 1 // 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 …]
|
D | svc4proc.c | 1 // SPDX-License-Identifier: GPL-2.0 28 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args() local 35 if (lock->lock_start > OFFSET_MAX || in nlm4svc_retrieve_args() 36 (lock->lock_len && ((lock->lock_len - 1) > (OFFSET_MAX - lock->lock_start)))) in nlm4svc_retrieve_args() 40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args() 41 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args() 47 int mode = lock_to_openmode(&lock->fl); in nlm4svc_retrieve_args() 49 lock->fl.c.flc_flags = FL_POSIX; in nlm4svc_retrieve_args() 51 error = nlm_lookup_file(rqstp, &file, lock); in nlm4svc_retrieve_args() 57 lock->fl.c.flc_file = file->f_file[mode]; in nlm4svc_retrieve_args() [all …]
|
D | svcproc.c | 1 // SPDX-License-Identifier: GPL-2.0 21 cast_to_nlm(__be32 status, u32 vers) in cast_to_nlm() argument 23 /* Note: status is assumed to be in network byte order !!! */ in cast_to_nlm() 25 switch (status) { in cast_to_nlm() 34 status = nlm_lck_denied; in cast_to_nlm() 37 status = nlm_lck_denied_nolocks; in cast_to_nlm() 41 return (status); in cast_to_nlm() 43 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) argument 45 #define cast_status(status) (status) argument 57 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args() local [all …]
|
D | trace.h | 1 /* 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-6.14.4/drivers/infiniband/hw/usnic/ |
D | usnic_fwd.c | 14 * - 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-6.14.4/drivers/media/dvb-frontends/ |
D | cxd2099.c | 1 // 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-6.14.4/drivers/power/supply/ |
D | surface_battery.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Battery driver for 7th-generation Microsoft Surface devices via Surface 6 * Copyright (C) 2019-2021 Maximilian Luz <[email protected]> 22 /* -- SAM interface. -------------------------------------------------------- */ 87 /* Get battery status (_STA) */ 112 /* -- Device structures. ---------------------------------------------------- */ 130 struct mutex lock; /* Guards access to state data below. */ member 140 /* -- Module parameters. ---------------------------------------------------- */ 147 /* -- State management. ----------------------------------------------------- */ 157 lockdep_assert_held(&bat->lock); in spwr_battery_present() [all …]
|
/linux-6.14.4/drivers/s390/crypto/ |
D | ap_queue.c | 1 // SPDX-License-Identifier: GPL-2.0 27 return aq->card->hwinfo.ep11 || aq->card->hwinfo.accel; in ap_q_supported_in_se() 32 return aq->card->hwinfo.ep11 || aq->card->hwinfo.accel; in ap_q_supports_bind() 37 return aq->card->hwinfo.ep11; in ap_q_supports_assoc() 57 struct ap_queue_status status; in ap_queue_enable_irq() local 61 status = ap_aqic(aq->qid, qirqctrl, virt_to_phys(ind)); in ap_queue_enable_irq() 62 if (status.async) in ap_queue_enable_irq() 63 return -EPERM; in ap_queue_enable_irq() 64 switch (status.response_code) { in ap_queue_enable_irq() 73 AP_QID_CARD(aq->qid), in ap_queue_enable_irq() [all …]
|
/linux-6.14.4/drivers/usb/host/ |
D | ehci-hub.c | 1 // 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 …]
|
/linux-6.14.4/drivers/usb/usbip/ |
D | stub_dev.c | 1 // 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 …]
|
D | vhci_sysfs.c | 1 // 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 …]
|
/linux-6.14.4/fs/ocfs2/ |
D | dlmglue.c | 1 // 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-6.14.4/drivers/hwmon/ |
D | adcxx.c | 1 // 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-6.14.4/drivers/target/sbp/ |
D | sbp_target.c | 1 // 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-6.14.4/drivers/platform/surface/aggregator/ |
D | controller.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-2022 Maximilian Luz <[email protected]> 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 …]
|
D | ssh_request_layer.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-2022 Maximilian Luz <[email protected]> 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 …]
|
/linux-6.14.4/Documentation/netlink/specs/ |
D | dpll.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 8 - 16 - 20 - 23 render-max: true 24 - 26 name: lock-status 28 provides information of dpll device lock status, valid values for 31 - 37 - [all …]
|
/linux-6.14.4/drivers/usb/gadget/udc/ |
D | gr_udc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * - Andreas Larsson <[email protected]> 15 * - Marko Isomaki 36 #include <linux/dma-mapping.h> 54 /* USB speed and corresponding string calculated from status register value */ 55 #define GR_SPEED(status) \ argument 56 ((status & GR_STATUS_SP) ? USB_SPEED_FULL : USB_SPEED_HIGH) 57 #define GR_SPEED_STR(status) usb_speed_string(GR_SPEED(status)) argument 64 /* ---------------------------------------------------------------------- */ 93 int buflen = ep->is_in ? req->req.length : req->req.actual; in gr_dbgprint_request() [all …]
|
/linux-6.14.4/drivers/usb/serial/ |
D | oti6858.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Ours Technology Inc. OTi-6858 USB to serial adapter driver. 6 * Copyright (C) 2006 Tomasz Michal Lukaszewski (FIXME: add e-mail) 7 * Copyright (C) 2001-2004 Greg Kroah-Hartman ([email protected]) 11 * are heavily based on pl2303 code, buffering code is a 1-to-1 copy. 17 * - analyzing traffic between device and the M$ Windows 2000 driver, 18 * - trying different bit combinations and checking pin states 20 * - receiving malformed frames and producing buffer overflows 22 * So, THIS CODE CAN DESTROY OTi-6858 AND ANY OTHER DEVICES, THAT ARE 25 * See Documentation/usb/usb-serial.rst for more information on using this [all …]
|
/linux-6.14.4/drivers/platform/surface/ |
D | surface_aggregator_cdev.c | 1 // 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 <[email protected]> 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 …]
|