Home
last modified time | relevance | path

Searched +full:wait +full:- +full:free +full:- +full:us (Results 1 – 25 of 1151) sorted by relevance

12345678910>>...47

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/
Di2c-arb-gpio-challenge.txt1 GPIO-based I2C Arbitration Using a Challenge & Response Mechanism
7 the standard I2C multi-master rules. Using GPIOs is generally useful in
21 others can see. These are all active low with pull-ups enabled. We'll
24 - OUR_CLAIM: output from us signaling to other hosts that we want the bus
25 - THEIR_CLAIMS: output from others signaling that they want the bus
37 4. Otherwise, wait for a few milliseconds and see if THEIR_CLAIMS are released.
38 5. If not, back off, release the claim and wait for a few more milliseconds.
43 - compatible: i2c-arb-gpio-challenge
44 - our-claim-gpio: The GPIO that we use to claim the bus.
45 - their-claim-gpios: The GPIOs that the other sides use to claim the bus.
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/i2c/
Di2c-arb-gpio-challenge.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO-based I2C Arbitration Using a Challenge & Response Mechanism
10 - Doug Anderson <dianders@chromium.org>
11 - Peter Rosin <peda@axentia.se>
18 standard I2C multi-master rules. Using GPIOs is generally useful in the case
30 others can see. These are all active low with pull-ups enabled. We'll
32 * OUR_CLAIM: output from us signaling to other hosts that we want the bus
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_dma.c5 * Permission is hereby granted, free of charge, to any person obtaining
37 * -EINVAL if GET pointer currently outside main push buffer
38 * -EBUSY if timeout exceeded
45 val = nvif_rd32(&chan->user, chan->user_get); in READ_GET()
46 if (chan->user_get_hi) in READ_GET()
47 val |= (uint64_t)nvif_rd32(&chan->user, chan->user_get_hi) << 32; in READ_GET()
61 return -EBUSY; in READ_GET()
64 if (val < chan->push.addr || in READ_GET()
65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET()
66 return -EINVAL; in READ_GET()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
Dnouveau_dma.c5 * Permission is hereby granted, free of charge, to any person obtaining
37 * -EINVAL if GET pointer currently outside main push buffer
38 * -EBUSY if timeout exceeded
45 val = nvif_rd32(chan->userd, chan->user_get); in READ_GET()
46 if (chan->user_get_hi) in READ_GET()
47 val |= (uint64_t)nvif_rd32(chan->userd, chan->user_get_hi) << 32; in READ_GET()
61 return -EBUSY; in READ_GET()
64 if (val < chan->push.addr || in READ_GET()
65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET()
66 return -EINVAL; in READ_GET()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dspace-info.c1 // SPDX-License-Identifier: GPL-2.0
5 #include "space-info.h"
8 #include "free-space-cache.h"
9 #include "ordered-data.h"
11 #include "block-group.h"
25 * reservations we care about total_bytes - SUM(space_info->bytes_) when
31 * code on the rules for each type, but generally block_rsv->reserved is how
32 * much space is accounted for in space_info->bytes_may_use.
46 * ->reserve
47 * space_info->bytes_may_reserve += num_bytes
[all …]
/kernel/linux/linux-6.6/fs/btrfs/
Dspace-info.c1 // SPDX-License-Identifier: GPL-2.0
5 #include "space-info.h"
8 #include "free-space-cache.h"
9 #include "ordered-data.h"
11 #include "block-group.h"
15 #include "extent-tree.h"
29 * reservations we care about total_bytes - SUM(space_info->bytes_) when
35 * code on the rules for each type, but generally block_rsv->reserved is how
36 * much space is accounted for in space_info->bytes_may_use.
50 * ->reserve
[all …]
/kernel/linux/linux-6.6/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * GPIO-based I2C Arbitration Using a Challenge & Response Mechanism
12 #include <linux/i2c-mux.h>
19 * struct i2c_arbitrator_data - Driver data for I2C arbitrator
23 * @slew_delay_us: microseconds to wait for a GPIO to go high.
38 * i2c_arbitrator_select - claim the I2C bus
40 * Use the GPIO-based signalling protocol; return -EBUSY if we fail.
48 stop_time = jiffies + usecs_to_jiffies(arb->wait_free_us) + 1; in i2c_arbitrator_select()
51 gpiod_set_value(arb->our_gpio, 1); in i2c_arbitrator_select()
52 udelay(arb->slew_delay_us); in i2c_arbitrator_select()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * GPIO-based I2C Arbitration Using a Challenge & Response Mechanism
12 #include <linux/i2c-mux.h>
19 * struct i2c_arbitrator_data - Driver data for I2C arbitrator
23 * @slew_delay_us: microseconds to wait for a GPIO to go high.
38 * i2c_arbitrator_select - claim the I2C bus
40 * Use the GPIO-based signalling protocol; return -EBUSY if we fail.
48 stop_time = jiffies + usecs_to_jiffies(arb->wait_free_us) + 1; in i2c_arbitrator_select()
51 gpiod_set_value(arb->our_gpio, 1); in i2c_arbitrator_select()
52 udelay(arb->slew_delay_us); in i2c_arbitrator_select()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
Dsleep.S2 * linux/arch/arm/mach-omap1/sleep.S
4 * Low-level OMAP7XX/1510/1610 sleep/wakeUp support
14 * This program is free software; you can redistribute it and/or modify it
16 * Free Software Foundation; either version 2 of the License, or (at your
31 * with this program; if not, write to the Free Software Foundation, Inc.,
69 stmfd sp!, {r0 - r12, lr}
81 @ prepare to put SDRAM into self-refresh manually
115 * Let's wait for the next wake up event to wake us up. r0 can't be
119 mcr p15, 0, r2, c7, c0, 4 @ wait for interrupt
126 @ re-enable Icache
[all …]
/kernel/linux/linux-6.6/arch/arm/mach-omap1/
Dsleep.S2 * linux/arch/arm/mach-omap1/sleep.S
4 * Low-level OMAP7XX/1510/1610 sleep/wakeUp support
14 * This program is free software; you can redistribute it and/or modify it
16 * Free Software Foundation; either version 2 of the License, or (at your
31 * with this program; if not, write to the Free Software Foundation, Inc.,
69 stmfd sp!, {r0 - r12, lr}
86 @ prepare to put SDRAM into self-refresh manually
118 * Let's wait for the next wake up event to wake us up. r0 can't be
122 mcr p15, 0, r2, c7, c0, 4 @ wait for interrupt
133 ldmfd sp!, {r0 - r12, pc}
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-tegra.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2010-2019, NVIDIA Corporation.
59 * eight 32 kHz clocks (~250 us). Outside of these updates the CPU is free to
60 * write. CPU is always free to read.
64 return readl(info->base + TEGRA_RTC_REG_BUSY) & 1; in tegra_rtc_check_busy()
68 * Wait for hardware to be ready for writing. This function tries to maximize
74 * AHB side) occurs every eight 32 kHz clocks (~250 us). The behavior of this
75 * function allows us to make some assumptions without introducing a race,
76 * because 250 us is plenty of time to read/write a value.
81 int retries = 500; /* ~490 us is the worst case, ~250 us is best */ in tegra_rtc_wait_while_busy()
[all …]
/kernel/linux/linux-6.6/drivers/rtc/
Drtc-tegra.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2010-2019, NVIDIA Corporation.
59 * eight 32 kHz clocks (~250 us). Outside of these updates the CPU is free to
60 * write. CPU is always free to read.
64 return readl(info->base + TEGRA_RTC_REG_BUSY) & 1; in tegra_rtc_check_busy()
68 * Wait for hardware to be ready for writing. This function tries to maximize
74 * AHB side) occurs every eight 32 kHz clocks (~250 us). The behavior of this
75 * function allows us to make some assumptions without introducing a race,
76 * because 250 us is plenty of time to read/write a value.
81 int retries = 500; /* ~490 us is the worst case, ~250 us is best */ in tegra_rtc_wait_while_busy()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
Daic7xxx.seq4 * Copyright (c) 1994-2001 Justin T. Gibbs.
5 * Copyright (c) 2000-2001 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
24 * GNU General Public License ("GPL") version 2 as published by the Free
60 * use byte 27 of the SCB as a pseudo-next pointer and to thread a list
61 * of SCBs that are awaiting selection. Since 0-0xfe are valid SCB indexes,
63 * this list every time a request sense occurs or after completing a non-tagged
78 if ((ahc->features & AHC_ULTRA2) != 0) {
82 if ((ahc->features & AHC_TWIN) != 0) {
88 if ((ahc->features & AHC_TWIN) != 0) {
[all …]
Daic79xx.seq4 * Copyright (c) 1994-2001, 2004 Justin T. Gibbs.
5 * Copyright (c) 2000-2002 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
24 * GNU General Public License ("GPL") version 2 as published by the Free
51 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
58 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
73 * If the kernel has caught up with us, thaw the queue.
100 cmp SCB_NEXT_COMPLETE[1], SCB_LIST_NULL jne . - 1;
124 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
128 * and re-selections. Make the LED status
[all …]
/kernel/linux/linux-6.6/drivers/scsi/aic7xxx/
Daic7xxx.seq4 * Copyright (c) 1994-2001 Justin T. Gibbs.
5 * Copyright (c) 2000-2001 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
24 * GNU General Public License ("GPL") version 2 as published by the Free
60 * use byte 27 of the SCB as a pseudo-next pointer and to thread a list
61 * of SCBs that are awaiting selection. Since 0-0xfe are valid SCB indexes,
63 * this list every time a request sense occurs or after completing a non-tagged
78 if ((ahc->features & AHC_ULTRA2) != 0) {
82 if ((ahc->features & AHC_TWIN) != 0) {
88 if ((ahc->features & AHC_TWIN) != 0) {
[all …]
Daic79xx.seq4 * Copyright (c) 1994-2001, 2004 Justin T. Gibbs.
5 * Copyright (c) 2000-2002 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
24 * GNU General Public License ("GPL") version 2 as published by the Free
51 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
58 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
73 * If the kernel has caught up with us, thaw the queue.
100 cmp SCB_NEXT_COMPLETE[1], SCB_LIST_NULL jne . - 1;
124 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
128 * and re-selections. Make the LED status
[all …]
/kernel/linux/linux-6.6/kernel/
Dumh.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * umh - the kernel usermode helper
42 if (info->cleanup) in call_usermodehelper_freeinfo()
43 (*info->cleanup)(info); in call_usermodehelper_freeinfo()
49 struct completion *comp = xchg(&sub_info->complete, NULL); in umh_complete()
70 spin_lock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
72 spin_unlock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
80 current->fs->umask = 0022; in call_usermodehelper_exec_async()
88 retval = -ENOMEM; in call_usermodehelper_exec_async()
94 new->cap_bset = cap_intersect(usermodehelper_bset, new->cap_bset); in call_usermodehelper_exec_async()
[all …]
/kernel/linux/linux-5.10/kernel/
Dumh.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * umh - the kernel usermode helper
43 if (info->cleanup) in call_usermodehelper_freeinfo()
44 (*info->cleanup)(info); in call_usermodehelper_freeinfo()
50 struct completion *comp = xchg(&sub_info->complete, NULL); in umh_complete()
71 spin_lock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
73 spin_unlock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
81 current->fs->umask = 0022; in call_usermodehelper_exec_async()
89 retval = -ENOMEM; in call_usermodehelper_exec_async()
95 new->cap_bset = cap_intersect(usermodehelper_bset, new->cap_bset); in call_usermodehelper_exec_async()
[all …]
/kernel/linux/linux-5.10/drivers/usb/storage/
Dusb.c1 // SPDX-License-Identifier: GPL-2.0+
6 * (c) 1999-2003 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
9 * (c) 2000 David L. Brown, Jr. (usb-storage@davidb.org)
10 * (c) 2003-2009 Alan Stern (stern@rowland.harvard.edu)
22 * similar to commands in the SCSI-II and ATAPI specifications.
25 * exhibits class-specific exemptions from the USB specification.
27 * that they are used to communicate wait, failed and OK on commands.
60 #include "uas-detect.h"
63 #define DRV_NAME "usb-storage"
66 MODULE_AUTHOR("Matthew Dharm <mdharm-usb@one-eyed-alien.net>");
[all …]
/kernel/linux/linux-6.6/drivers/usb/storage/
Dusb.c1 // SPDX-License-Identifier: GPL-2.0+
6 * (c) 1999-2003 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
9 * (c) 2000 David L. Brown, Jr. (usb-storage@davidb.org)
10 * (c) 2003-2009 Alan Stern (stern@rowland.harvard.edu)
22 * similar to commands in the SCSI-II and ATAPI specifications.
25 * exhibits class-specific exemptions from the USB specification.
27 * that they are used to communicate wait, failed and OK on commands.
60 #include "uas-detect.h"
63 #define DRV_NAME "usb-storage"
66 MODULE_AUTHOR("Matthew Dharm <mdharm-usb@one-eyed-alien.net>");
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmvmdio.c13 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
31 #include <linux/wait.h>
55 * - Kirkwood 88F6281 (Globalscale Dreamplug): 45us to 95us (Interrupt)
56 * - Armada 370 (Globalscale Mirabox): 41us to 43us (Polled)
58 #define MVMDIO_SMI_TIMEOUT 1000 /* 1000us = 1ms */
71 * but also reflects SMI completion), use that to wait for
89 /* Wait for the SMI unit to be ready for another operation
94 struct orion_mdio_dev *dev = bus->priv; in orion_mdio_wait_ready()
100 if (ops->is_done(dev)) in orion_mdio_wait_ready()
105 if (dev->err_interrupt <= 0) { in orion_mdio_wait_ready()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/
Dmvmdio.c13 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 #include <linux/wait.h>
58 * - Kirkwood 88F6281 (Globalscale Dreamplug): 45us to 95us (Interrupt)
59 * - Armada 370 (Globalscale Mirabox): 41us to 43us (Polled)
61 #define MVMDIO_SMI_TIMEOUT 1000 /* 1000us = 1ms */
69 * but also reflects SMI completion), use that to wait for
85 /* Wait for the SMI unit to be ready for another operation
90 struct orion_mdio_dev *dev = bus->priv; in orion_mdio_wait_ready()
94 if (dev->err_interrupt <= 0) { in orion_mdio_wait_ready()
95 if (!read_poll_timeout_atomic(ops->is_done, done, done, 2, in orion_mdio_wait_ready()
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0004_linux_fs.patch7 Change-Id: I873ae7d7b33cb7dc5143952c18515768fcb2ea55
9 diff --git a/fs/aio.c b/fs/aio.c
11 --- a/fs/aio.c
13 @@ -182,9 +182,8 @@ struct poll_iocb {
19 - bool work_scheduled;
20 - bool work_need_resched;
21 struct wait_queue_entry wait;
24 @@ -1622,51 +1621,6 @@ static void aio_poll_put_work(struct work_struct *work)
28 -/*
29 - * Safely lock the waitqueue which the request is on, synchronizing with the
[all …]
/kernel/linux/linux-5.10/kernel/locking/
Dqspinlock_paravirt.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 * pv_wait(u8 *ptr, u8 val) -- suspends the vcpu if *ptr == val
17 * pv_kick(cpu) -- wakes a suspended vcpu
31 * mitigates the slight slowdown for non-overcommitted guest with this
32 * aggressive wait-early mechanism.
63 * The pending bit is set by the queue head vCPU of the MCS wait queue in
67 * enter the MCS wait queue. So lock starvation shouldn't happen as long
72 * mode spinning on the lock unless the MCS wait queue is empty. In this
85 * present in the MCS wait queue but the pending bit isn't set. in pv_hybrid_queued_unfair_trylock()
88 int val = atomic_read(&lock->val); in pv_hybrid_queued_unfair_trylock()
[all …]
/kernel/linux/linux-6.6/kernel/locking/
Dqspinlock_paravirt.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 * pv_wait(u8 *ptr, u8 val) -- suspends the vcpu if *ptr == val
17 * pv_kick(cpu) -- wakes a suspended vcpu
31 * mitigates the slight slowdown for non-overcommitted guest with this
32 * aggressive wait-early mechanism.
63 * The pending bit is set by the queue head vCPU of the MCS wait queue in
67 * enter the MCS wait queue. So lock starvation shouldn't happen as long
72 * mode spinning on the lock unless the MCS wait queue is empty. In this
85 * present in the MCS wait queue but the pending bit isn't set. in pv_hybrid_queued_unfair_trylock()
88 int val = atomic_read(&lock->val); in pv_hybrid_queued_unfair_trylock()
[all …]

12345678910>>...47