/Linux-v6.1/Documentation/i2c/ |
D | i2c-topology.rst | 40 mux-locked or parent-locked muxes. 43 Mux-locked muxes 46 Mux-locked muxes does not lock the entire parent adapter during the 48 adapter are locked. Mux-locked muxes are mostly interesting if the 50 their tasks. Since the parent adapter is not fully locked during the 55 Mux-locked Example 62 | root |--+--| locked | '--------' 87 Mux-locked caveats 90 When using a mux-locked mux, be aware of the following restrictions: 93 If you build a topology with a mux-locked mux being the parent [all …]
|
/Linux-v6.1/kernel/locking/ |
D | qspinlock_paravirt.h | 91 (cmpxchg_acquire(&lock->locked, 0, _Q_LOCKED_VAL) == 0)) { in pv_hybrid_queued_unfair_trylock() 121 return !READ_ONCE(lock->locked) && in trylock_clear_pending() 142 * Try to clear pending bit & set locked bit in trylock_clear_pending() 289 * Wait for node->locked to become true, halt the vcpu after a short spin. 302 if (READ_ONCE(node->locked)) in pv_wait_node() 312 * Order pn->state vs pn->locked thusly: in pv_wait_node() 314 * [S] pn->state = vcpu_halted [S] next->locked = 1 in pv_wait_node() 316 * [L] pn->locked [RmW] pn->state = vcpu_hashed in pv_wait_node() 322 if (!READ_ONCE(node->locked)) { in pv_wait_node() 336 * If the locked flag is still not set after wakeup, it is a in pv_wait_node() [all …]
|
D | mcs_spinlock.h | 20 int locked; /* 1 if lock acquired */ member 61 * on this node->locked until the previous lock holder sets the node->locked 70 node->locked = 0; in mcs_spin_lock() 82 * Lock acquired, don't need to set node->locked to 1. Threads in mcs_spin_lock() 83 * only spin on its own node->locked value for lock acquisition. in mcs_spin_lock() 85 * and does not proceed to spin on its own node->locked, this in mcs_spin_lock() 87 * audit lock status, then set node->locked value here. in mcs_spin_lock() 94 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock() 118 arch_mcs_spin_unlock_contended(&next->locked); in mcs_spin_unlock()
|
/Linux-v6.1/arch/x86/kernel/cpu/resctrl/ |
D | pseudo_lock.c | 44 * pseudo-locked regions. 55 * pseudo-locking. This includes testing to ensure pseudo-locked regions 57 * as well as that these pseudo-locked regions can maintain their low cache 140 * @minor: The minor number of the device representing pseudo-locked region 143 * pseudo-locked region it belongs to. This is done by matching the minor 144 * number of the device to the pseudo-locked region it belongs. 146 * Minor numbers are assigned at the time a pseudo-locked region is associated 149 * Return: On success return pointer to resource group owning the pseudo-locked 167 * @list: Entry within the @pm_reqs list for a pseudo-locked region 188 * @plr: Pseudo-locked region [all …]
|
/Linux-v6.1/scripts/coccinelle/locks/ |
D | double_lock.cocci | 17 @locked@ 42 position p1 != locked.p1; 43 position locked.p; 45 expression x <= locked.E1; 46 expression E,locked.E1; 65 expression x <= locked.E1; 66 expression locked.E1; 69 position locked.p,p1,p2;
|
D | call_kern.cocci | 39 @locked exists@ 74 @depends on locked && patch@ 81 @depends on locked && !patch@ 90 p1 << locked.p1; 91 p2 << locked.p2; 101 p1 << locked.p1; 102 p2 << locked.p2;
|
/Linux-v6.1/tools/testing/selftests/drivers/net/dsa/ |
D | bridge_locked_port.sh | 92 bridge link set dev $swp1 locked on 102 bridge link set dev $swp1 locked off 108 log_test "Locked port ipv4" 123 bridge link set dev $swp1 locked on 132 bridge link set dev $swp1 locked off 140 log_test "Locked port vlan" 151 bridge link set dev $swp1 locked on 160 bridge link set dev $swp1 locked off 166 log_test "Locked port ipv6"
|
/Linux-v6.1/tools/testing/selftests/net/forwarding/ |
D | bridge_locked_port.sh | 92 bridge link set dev $swp1 locked on 102 bridge link set dev $swp1 locked off 108 log_test "Locked port ipv4" 123 bridge link set dev $swp1 locked on 132 bridge link set dev $swp1 locked off 140 log_test "Locked port vlan" 151 bridge link set dev $swp1 locked on 160 bridge link set dev $swp1 locked off 166 log_test "Locked port ipv6"
|
/Linux-v6.1/drivers/thermal/intel/ |
D | intel_quark_dts_thermal.c | 95 /* If DTS not locked, all trip points are configurable */ 97 /* If DTS locked, all trip points are not configurable */ 103 bool locked; member 132 if (!aux_entry->locked) { in soc_dts_enable() 139 pr_info("DTS is locked. Cannot enable DTS\n"); in soc_dts_enable() 160 if (!aux_entry->locked) { in soc_dts_disable() 168 pr_info("DTS is locked. Cannot disable DTS\n"); in soc_dts_disable() 220 if (aux_entry->locked) { in update_trip_temp() 328 if (!aux_entry->locked) { in free_soc_dts() 357 /* Check if DTS register is locked */ in alloc_soc_dts() [all …]
|
/Linux-v6.1/drivers/mtd/spi-nor/ |
D | otp.c | 188 /* no need to write the register if region is already locked */ in spi_nor_otp_lock_sr2() 253 int ret, locked; in spi_nor_mtd_otp_info() local 266 locked = ops->is_locked(nor, i); in spi_nor_mtd_otp_info() 267 if (locked < 0) { in spi_nor_mtd_otp_info() 268 ret = locked; in spi_nor_mtd_otp_info() 272 buf->locked = !!locked; in spi_nor_mtd_otp_info() 289 int locked; in spi_nor_mtd_otp_range_is_locked() local 292 * If any of the affected OTP regions are locked the entire range is in spi_nor_mtd_otp_range_is_locked() 293 * considered locked. in spi_nor_mtd_otp_range_is_locked() 298 locked = ops->is_locked(nor, region); in spi_nor_mtd_otp_range_is_locked() [all …]
|
D | swp.c | 84 * Return true if the entire region is locked (if @locked is true) or unlocked 85 * (if @locked is false); false otherwise. 88 uint64_t len, u8 sr, bool locked) in spi_nor_check_lock_status_sr() argument 101 if (locked) in spi_nor_check_lock_status_sr() 102 /* Requested range is a sub-range of locked range */ in spi_nor_check_lock_status_sr() 105 /* Requested range does not overlap with locked range */ in spi_nor_check_lock_status_sr() 191 /* lock_len: length of region that should end up locked */ in spi_nor_sr_lock() 257 /* If nothing in our range is locked, we don't need to do anything */ in spi_nor_sr_unlock() 261 /* If anything below us is locked, we can't use 'top' protection */ in spi_nor_sr_unlock() 265 /* If anything above us is locked, we can't use 'bottom' protection */ in spi_nor_sr_unlock() [all …]
|
/Linux-v6.1/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | locks.h | 58 bool locked; member 65 return __sync_bool_compare_and_swap(&lock->locked, false, true); in lock_impl_trylock() 68 bool old_locked = lock->locked; in lock_impl_trylock() 69 lock->locked = true; in lock_impl_trylock() 96 BUG_ON(!__sync_bool_compare_and_swap(&lock->locked, true, false)); in lock_impl_unlock() 102 bool old_locked = lock->locked; in lock_impl_unlock() 103 lock->locked = false; in lock_impl_unlock() 112 lock->locked = false; in lock_impl_init() 115 #define LOCK_IMPL_INITIALIZER {.locked = false}
|
/Linux-v6.1/include/linux/ |
D | hwspinlock.h | 172 * immediately fail if the hwspinlock is already locked. 179 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 193 * immediately fail if the hwspinlock is already locked. 199 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 218 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 235 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 255 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 265 * @hwlock: the hwspinlock to be locked 289 * @hwlock: the hwspinlock to be locked 312 * @hwlock: the hwspinlock to be locked [all …]
|
/Linux-v6.1/drivers/media/dvb-frontends/ |
D | lgs8gxx.c | 295 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_is_locked() argument 308 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked() 310 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked() 315 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_wait_ca_lock() argument 331 *locked = (ret == 0) ? 1 : 0; in lgs8gxx_wait_ca_lock() 359 u8 *locked) in lgs8gxx_autolock_gi() argument 384 err = lgs8gxx_wait_ca_lock(priv, locked); in lgs8gxx_autolock_gi() 385 if (err || !(*locked)) in lgs8gxx_autolock_gi() 393 *locked = 0; in lgs8gxx_autolock_gi() 403 u8 locked = 0, tmp_gi; in lgs8gxx_auto_detect() local [all …]
|
/Linux-v6.1/Documentation/x86/ |
D | resctrl.rst | 118 Corresponding region is pseudo-locked. No 224 When the resource group is in pseudo-locked mode this file will 226 pseudo-locked region. 248 cache pseudo-locked region is created by first writing 250 pseudo-locked region's schemata to the resource group's "schemata" 251 file. On successful pseudo-locked region creation the mode will 252 automatically change to "pseudo-locked". 490 pseudo-locked memory is made accessible to user space where an 494 The creation of a cache pseudo-locked region is triggered by a request 496 to be pseudo-locked. The cache pseudo-locked region is created as follows: [all …]
|
/Linux-v6.1/io_uring/ |
D | io_uring.h | 30 int __io_run_local_work(struct io_ring_ctx *ctx, bool *locked); 59 void io_req_task_complete(struct io_kiocb *req, bool *locked); 61 void io_req_task_submit(struct io_kiocb *req, bool *locked); 67 int io_poll_issue(struct io_kiocb *req, bool *locked); 285 bool locked; in io_run_local_work_locked() local 291 locked = true; in io_run_local_work_locked() 292 ret = __io_run_local_work(ctx, &locked); in io_run_local_work_locked() 294 if (WARN_ON_ONCE(!locked)) in io_run_local_work_locked() 299 static inline void io_tw_lock(struct io_ring_ctx *ctx, bool *locked) in io_tw_lock() argument 301 if (!*locked) { in io_tw_lock() [all …]
|
/Linux-v6.1/include/asm-generic/ |
D | qspinlock_types.h | 25 u8 locked; member 40 u8 locked; member 55 * 0- 7: locked byte 62 * 0- 7: locked byte 71 #define _Q_LOCKED_MASK _Q_SET_MASK(LOCKED)
|
/Linux-v6.1/drivers/media/common/siano/ |
D | smscoreapi.h | 678 u32 is_rf_locked; /* 0 - not locked, 1 - locked */ 679 u32 is_demod_locked; /* 0 - not locked, 1 - locked */ 803 u32 is_rf_locked; /* 0 - not locked, 1 - locked */ 804 u32 is_demod_locked; /* 0 - not locked, 1 - locked */ 817 u32 modem_state; /* 0 - Acquisition, 1 - Locked */ 845 u32 is_rf_locked; /* 0 - not locked, 1 - locked */ 846 u32 is_demod_locked; /* 0 - not locked, 1 - locked */ 859 u32 modem_state; /* 0 - Acquisition, 1 - Locked */ 943 u32 is_demod_locked; /* 0 - not locked, 1 - locked */ 947 u32 is_rf_locked; /* 0 - not locked, 1 - locked */ [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/i2c/ |
D | i2c-mux-gpmux.yaml | 49 mux-locked: 63 If mux-locked is not present, the multiplexer is assumed to be parent-locked. 66 The properties of mux-locked and parent-locked multiplexers are discussed 89 mux-locked;
|
/Linux-v6.1/arch/arc/include/asm/ |
D | spinlock.h | 23 " breq %[val], %[LOCKED], 1b \n" /* spin while LOCKED */ in arch_spin_lock() 24 " scond %[LOCKED], [%[slock]] \n" /* acquire */ in arch_spin_lock() 29 [LOCKED] "r" (__ARCH_SPIN_LOCK_LOCKED__) in arch_spin_lock() 50 " breq %[val], %[LOCKED], 4f \n" /* already LOCKED, just bail */ in arch_spin_trylock() 51 " scond %[LOCKED], [%[slock]] \n" /* acquire */ in arch_spin_trylock() 59 [LOCKED] "r" (__ARCH_SPIN_LOCK_LOCKED__) in arch_spin_trylock() 95 " brls %[val], %[WR_LOCKED], 1b\n" /* <= 0: spin while write locked */ in arch_read_lock() 115 " brls %[val], %[WR_LOCKED], 4f\n" /* <= 0: already write locked, bail */ in arch_read_trylock()
|
/Linux-v6.1/mm/ |
D | gup.c | 975 * mmap_lock must be held on entry. If @locked != NULL and *@flags 977 * is, *@locked will be set to 0 and -EBUSY returned. 981 int *locked) in faultin_page() argument 992 if (locked) in faultin_page() 1017 if (locked) in faultin_page() 1018 *locked = 0; in faultin_page() 1038 if (locked && !(fault_flags & FAULT_FLAG_RETRY_NOWAIT)) in faultin_page() 1039 *locked = 0; in faultin_page() 1110 * @locked: whether we're still with the mmap_lock held 1146 * If @locked != NULL, *@locked will be set to 0 when mmap_lock is [all …]
|
/Linux-v6.1/include/media/i2c/ |
D | upd64083.h | 28 /* YCS mode: Y/C separation (burst locked clocking) */ 30 /* YCS+ mode: 2D Y/C separation and YCNR (burst locked clocking) */ 35 /* MNNR mode: frame comb type YNR+C delay (line locked clocking) */ 37 /* YCNR mode: frame recursive YCNR (burst locked clocking) */
|
/Linux-v6.1/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 107 #define LOCKED "lo" macro 148 bool locked; in is_vma_lock_on_fault() local 151 locked = is_vmflag_set(addr, LOCKED); in is_vma_lock_on_fault() 152 if (!locked) in is_vma_lock_on_fault() 168 bool locked; in lock_check() local 171 locked = is_vmflag_set(addr, LOCKED); in lock_check() 172 if (!locked) in lock_check() 183 if (is_vmflag_set((unsigned long)map, LOCKED)) { in unlock_lock_check() 184 printf("VMA flag %s is present on page 1 after unlock\n", LOCKED); in unlock_lock_check()
|
/Linux-v6.1/drivers/video/fbdev/ |
D | ep93xx-fb.c | 27 #define EP93XXFB_VLINES_TOTAL 0x0000 /* SW locked */ 28 #define EP93XXFB_VSYNC 0x0004 /* SW locked */ 29 #define EP93XXFB_VACTIVE 0x0008 /* SW locked */ 30 #define EP93XXFB_VBLANK 0x0228 /* SW locked */ 31 #define EP93XXFB_VCLK 0x000c /* SW locked */ 34 #define EP93XXFB_HCLKS_TOTAL 0x0010 /* SW locked */ 35 #define EP93XXFB_HSYNC 0x0014 /* SW locked */ 36 #define EP93XXFB_HACTIVE 0x0018 /* SW locked */ 37 #define EP93XXFB_HBLANK 0x022c /* SW locked */ 38 #define EP93XXFB_HCLK 0x001c /* SW locked */ [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/ |
D | ia_css_err.h | 34 This warning can be avoided by unlocking locked frame-buffers more timely. */ 35 …ARNING_EXP_ID_LOCKED, /* < Exposure ID skipped because the frame associated to it was still locked. 36 This warning can be avoided by unlocking locked frame-buffers more timely. */ 38 This warning can be avoided by unlocking locked frame-buffers more timely. */
|