/linux/fs/ |
H A D | fs_pin.c | 1 // SPDX-License-Identifier: GPL-2.0 10 void pin_remove(struct fs_pin *pin) in pin_remove() argument 13 hlist_del_init(&pin->m_list); in pin_remove() 14 hlist_del_init(&pin->s_list); in pin_remove() 16 spin_lock_irq(&pin->wait.lock); in pin_remove() 17 pin->done = 1; in pin_remove() 18 wake_up_locked(&pin->wait); in pin_remove() 19 spin_unlock_irq(&pin->wait.lock); in pin_remove() 22 void pin_insert(struct fs_pin *pin, struct vfsmount *m) in pin_insert() argument 25 hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); in pin_insert() [all …]
|
/linux/drivers/media/cec/core/ |
H A D | cec-pin-priv.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * cec-pin-priv.h - internal cec-pin header 13 #include <media/cec-pin.h> 15 #define call_pin_op(pin, op, arg...) \ argument 16 ((pin && pin->ops->op && !pin->adap->devnode.unregistered) ? \ 17 pin->ops->op(pin->adap, ## arg) : 0) 19 #define call_void_pin_op(pin, op, arg...) \ argument 21 if (pin && pin->ops->op && \ 22 !pin->adap->devnode.unregistered) \ 23 pin->ops->op(pin->adap, ## arg); \ [all …]
|
H A D | cec-pin.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <media/cec-pin.h> 11 #include "cec-pin-priv.h" 61 /* Data bits are 0-7, EOM is bit 8 and ACK is bit 9 */ 73 { "Tx Wait", CEC_TIM_SAMPLE }, 74 { "Tx Wait for High", CEC_TIM_IDLE_SAMPLE }, 76 { "Tx Start Bit High", CEC_TIM_START_BIT_TOTAL - CEC_TIM_START_BIT_LOW }, 77 { "Tx Start Bit High Short", CEC_TIM_START_BIT_TOTAL_SHORT - CEC_TIM_START_BIT_LOW }, 78 { "Tx Start Bit High Long", CEC_TIM_START_BIT_TOTAL_LONG - CEC_TIM_START_BIT_LOW }, 82 { "Tx Data 0 High", CEC_TIM_DATA_BIT_TOTAL - CEC_TIM_DATA_BIT_0_LOW }, [all …]
|
H A D | cec-api.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cec-api.c - HDMI Consumer Electronics Control framework - API 21 #include <media/cec-pin.h> 22 #include "cec-priv.h" 23 #include "cec-pin-priv.h" 27 struct cec_fh *fh = filp->private_data; in cec_devnode_data() 29 return &fh->adap->devnode; in cec_devnode_data() 37 struct cec_fh *fh = filp->private_data; in cec_poll() 38 struct cec_adapter *adap = fh->adap; in cec_poll() 41 poll_wait(filp, &fh->wait, poll); in cec_poll() [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5250-snow-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/clock/maxim,max77686.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/sound/samsung-i2s.h> 30 stdout-path = "serial3:115200n8"; 33 gpio-keys { 34 compatible = "gpio-keys"; 35 pinctrl-names = "default"; [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | lantiq,pinctrl-xway.txt | 4 - compatible: "lantiq,<chip>-pinctrl", where <chip> is: 10 - reg: Should contain the physical address and length of the gpio/pinmux 13 Please refer to pinctrl-bindings.txt in this directory for details of the 15 phrase "pin configuration node". 17 Lantiq's pin configuration nodes act as a container for an arbitrary number of 19 pin, a group, or a list of pins or groups. This configuration can include the 20 mux function to select on those group(s), and two pin configuration parameters: 21 pull-up and open-drain 27 other words, a subnode that lists a mux function but no pin configuration 28 parameters implies no information about any pin configuration parameters. [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | ti,gpmc-child.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ti,gpmc-child.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 11 - Roger Quadros <rogerq@kernel.org> 24 gpmc,sync-clk-ps: 28 # Chip-select signal timings corresponding to GPMC_CONFIG2: 29 gpmc,cs-on-ns: 33 gpmc,cs-rd-off-ns: [all …]
|
H A D | ti,gpmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ti,gpmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 11 - Roger Quadros <rogerq@kernel.org> 16 - Asynchronous SRAM-like memories and ASICs 17 - Asynchronous, synchronous, and page mode burst NOR flash 18 - NAND flash 19 - Pseudo-SRAM devices [all …]
|
/linux/drivers/md/bcache/ |
H A D | journal.c | 1 // SPDX-License-Identifier: GPL-2.0 20 * entries (same as garbage collection would), then we replay them - reinserting 30 struct closure *cl = bio->bi_private; in journal_read_endio() 38 struct journal_device *ja = &ca->journal; in journal_read_bucket() 39 struct bio *bio = &ja->bio; in journal_read_bucket() 42 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket() 46 sector_t bucket = bucket_to_sector(ca->set, ca->sb.d[bucket_index]); in journal_read_bucket() 52 while (offset < ca->sb.bucket_size) { in journal_read_bucket() 53 reread: left = ca->sb.bucket_size - offset; in journal_read_bucket() 56 bio_reset(bio, ca->bdev, REQ_OP_READ); in journal_read_bucket() [all …]
|
H A D | journal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * The journal is treated as a circular buffer of buckets - a journal entry 16 * superblock - all the things that are frequently updated. This is for future 22 * Currently, we don't journal BTREE_REPLACE operations - this will hopefully be 23 * fixed eventually. This isn't a bug - BTREE_REPLACE is used for insertions 32 * journal entry still open - i.e. that has keys that haven't been flushed to 38 * zero, we pop it off - thus, the size of the fifo tells us the number of open 48 * might contain keys for many journal entries - we handle this by making sure 56 * last_seq - the oldest journal entry we still need. We write last_seq in each 61 * newest journal entry it contains - if we don't need that journal entry we [all …]
|
/linux/rust/kernel/sync/ |
H A D | condvar.rs | 1 // SPDX-License-Identifier: GPL-2.0 22 /// Creates a [`CondVar`] initialiser with the given name and a newly-created lock class. 51 /// #[pin] 54 /// #[pin] 62 /// e.value_changed.wait(&mut guard); 73 /// fn new_example() -> Result<Pin<KBox<Example>>> { 75 /// value <- new_mute 122 let wait = Opaque::<bindings::wait_queue_entry>::uninit(); wait_internal() localVariable 147 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { wait() method [all...] |
/linux/tools/testing/selftests/mm/ |
H A D | cow.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <sys/wait.h> 102 for (; size; addr += pagesize, size -= pagesize) in range_is_swapped() 115 if (pipe(comm_pipes->child_ready) < 0) in setup_comm_pipes() 116 return -errno; in setup_comm_pipes() 117 if (pipe(comm_pipes->parent_ready) < 0) { in setup_comm_pipes() 118 close(comm_pipes->child_read in setup_comm_pipes() [all...] |
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_gmbus.c | 3 * Copyright © 2006-2008,2010 Intel Corporation 27 * Chris Wilson <chris@chris-wilson.co.uk> 31 #include <linux/i2c-algo-bit.h> 77 /* Map gmbus pin pairs to names and registers. */ 153 unsigned int pin) in get_gmbus_pin() argument 155 struct drm_i915_private *i915 = to_i915(display->drm); in get_gmbus_pin() 188 if (pin >= size || !pins[pin].name) in get_gmbus_pin() 191 return &pins[pin]; in get_gmbus_pin() 194 bool intel_gmbus_is_valid_pin(struct intel_display *display, unsigned int pin) in intel_gmbus_is_valid_pin() argument 196 return get_gmbus_pin(display, pin); in intel_gmbus_is_valid_pin() [all …]
|
/linux/fs/bcachefs/ |
H A D | journal.c | 1 // SPDX-License-Identifier: GPL-2.0 32 return seq > j->seq_ondisk; in journal_seq_unwritten() 42 return atomic64_read(&j->seq) - j->seq_ondisk; in nr_unwritten_journal_entries() 47 return __journal_entry_is_open(j->reservations); in journal_entry_is_open() 52 union journal_res_state s = READ_ONCE(j->reservations); in bch2_journal_buf_to_text() 54 struct journal_buf *buf = j->buf + i; in bch2_journal_buf_to_text() 62 prt_human_readable_u64(out, vstruct_bytes(buf->data)); in bch2_journal_buf_to_text() 66 prt_printf(out, "%li jiffies\n", buf->expires - jiffies); in bch2_journal_buf_to_text() 69 if (buf->noflush) in bch2_journal_buf_to_text() 71 if (buf->must_flush) in bch2_journal_buf_to_text() [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | nand_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 23 * nand_read_byte - [DEFAULT] read one byte from the chip 30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte() 34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip 42 return (uint8_t) cpu_to_le16(readw(chip->legacy.IO_ADDR_R)); in nand_read_byte16() 46 * nand_select_chip - [DEFAULT] control CE line 48 * @chipnr: chipnumber to select, -1 for deselect 55 case -1: in nand_select_chip() 56 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_select_chip() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | wm9712.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9712.c -- Codec driver for Wolfson WM9712 AC97 Codecs. 87 MODULE_PARM_DESC(five_wire, "Set to '1' to use 5-wire touchscreen."); 94 * order to minimise this, a signal may be applied to the MASK pin to delay or 98 * 1 = High on pin stops conversions 99 * 2 = Edge triggered, edge on pin delays conversion by delay param (above) 100 * 3 = Edge triggered, edge on pin starts conversion after delay param 160 dev_dbg(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9712_phy_init() 167 dev_dbg(wm->dev, "setting 5-wire touchscreen mode.\n"); in wm9712_phy_init() 170 dev_warn(wm->dev, "pressure measurement is not " in wm9712_phy_init() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs42l42.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 13 The CS42L42 is a low-power audio codec designed for portable applications. 14 It provides a high-dynamic range, stereo DAC for audio playback and a mono 15 high-dynamic-range ADC for audio capture. There is an integrated headset 21 - cirrus,cs42l42 22 - cirrus,cs42l83 29 VP-supply: [all …]
|
/linux/fs/xfs/ |
H A D | xfs_dquot_item.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2003 Silicon Graphics, Inc. 55 qlf->qlf_type = XFS_LI_DQUOT; in xfs_qm_dquot_logitem_format() 56 qlf->qlf_size = 2; in xfs_qm_dquot_logitem_format() 57 qlf->qlf_id = qlip->qli_dquot->q_id; in xfs_qm_dquot_logitem_format() 58 qlf->qlf_blkno = qlip->qli_dquot->q_blkno; in xfs_qm_dquot_logitem_format() 59 qlf->qlf_len = 1; in xfs_qm_dquot_logitem_format() 60 qlf->qlf_boffset = qlip->qli_dquot->q_bufoffset; in xfs_qm_dquot_logitem_format() 63 xfs_dquot_to_disk(&ddq, qlip->qli_dquot); in xfs_qm_dquot_logitem_format() 70 * Increment the pin count of the given dquot. [all …]
|
/linux/virt/kvm/ |
H A D | eventfd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kvm eventfd support - use eventfd objects to signal various KVM events 17 #include <linux/wait.h> 46 struct kvm *kvm = irqfd->kvm; in irqfd_inject() 48 if (!irqfd->resampler) { in irqfd_inject() 49 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 1, in irqfd_inject() 51 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 0, in irqfd_inject() 55 irqfd->gsi, 1, false); in irqfd_inject() 62 list_for_each_entry_srcu(irqfd, &resampler->list, resampler_link, in irqfd_resampler_notify() 63 srcu_read_lock_held(&resampler->kvm->irq_srcu)) in irqfd_resampler_notify() [all …]
|
/linux/include/uapi/linux/ |
H A D | serial.h | 1 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ 33 unsigned short closing_wait; /* time to wait before closing */ 42 * For the close wait times, 0 means wait forever for serial port to 43 * flush its output. 65535 means don't wait at all. 64 #define PORT_RSA 13 /* RSA-DV II/S card */ 83 * Multiport serial configuration structure --- external structure 100 * Serial input interrupt line counters -- external structure 112 * struct serial_rs485 - serial interface for controlling RS485 settings. 133 * * %SER_RS485_ENABLED - RS485 enabled. 134 * * %SER_RS485_RTS_ON_SEND - Logical level for RTS pin when sending. [all …]
|
/linux/include/sound/ |
H A D | soc-jack.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * soc-jack.h 12 * struct snd_soc_jack_pin - Describes a pin to update based on jack detection 14 * @pin: name of the pin to update 16 * @invert: if non-zero then pin is enabled when status is not reported 21 const char *pin; member 27 * struct snd_soc_jack_zone - Describes voltage zones of jack detection 32 * @debounce_time: debounce_time for jack, codec driver should wait for this 45 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection
|
/linux/drivers/memory/ |
H A D | omap-gpmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2005-2006 Nokia Corporation 10 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> 33 #include <linux/omap-gpmc.h> 37 #include <linux/platform_data/mtd-nand-omap2.h> 39 #define DEVICE_NAME "omap-gpmc" 138 #define GPMC_CONFIG_WAITPINPOLARITY(pin) (BIT(pin) << 8) argument 235 u32 pin; member 258 /* Define chip-selects as reserved by default until probe completes */ 306 * gpmc_get_clk_period - get period of selected clock domain in ps [all …]
|
/linux/Documentation/driver-api/media/ |
H A D | cec-core.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 ---------------- 33 --------------------- 53 will be stored in adap->priv and can be used by the adapter ops. 95 Implementing the Low-Level CEC Adapter 96 -------------------------------------- 98 The following low-level adapter operations have to be implemented in 103 .. code-block:: none 107 /* Low-level callbacks */ 123 /* High-level callback */ [all …]
|
/linux/arch/sh/boards/ |
H A D | board-magicpanelr2.c | 1 // SPDX-License-Identifier: GPL-2.0 35 /* Wait until reset finished. Timeout is 100ms. */ 65 /* CS2: LAN (0x08000000 - 0x0bffffff) */ in setup_chip_select() 68 /* (SW:1.5 WR:3 HW:1.5), ext. wait */ in setup_chip_select() 71 /* CS4: CAN1 (0xb0000000 - 0xb3ffffff) */ in setup_chip_select() 74 /* (SW:1.5 WR:3 HW:1.5), ext. wait */ in setup_chip_select() 77 /* CS5a: CAN2 (0xb4000000 - 0xb5ffffff) */ in setup_chip_select() 80 /* (SW:1.5 WR:3 HW:1.5), ext. wait */ in setup_chip_select() 83 /* CS5b: CAN3 (0xb6000000 - 0xb7ffffff) */ in setup_chip_select() 86 /* (SW:1.5 WR:3 HW:1.5), ext. wait */ in setup_chip_select() [all …]
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_bo.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright (c) 2011-2024 Broadcom. All Rights Reserved. The term 21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 39 WARN_ON(vbo->tbo.base.funcs && in vmw_bo_release() 40 kref_read(&vbo->tbo.base.refcount) != 0); in vmw_bo_release() 43 xa_destroy(&vbo->detached_resources); in vmw_bo_release() 44 WARN_ON(vbo->is_dumb && !vbo->dumb_surface); in vmw_bo_release() 45 if (vbo->is_dumb && vbo->dumb_surface) { in vmw_bo_release() 46 res = &vbo->dumb_surface->res; in vmw_bo_release() 47 WARN_ON(vbo != res->guest_memory_bo); in vmw_bo_release() [all …]
|