/linux-6.8/rust/kernel/sync/ |
D | lock.rs | 3 //! Generic kernel lock and guard. 5 //! It contains a generic Rust lock and guard that allow for different backends (e.g., mutexes, 117 pub fn lock(&self) -> Guard<'_, T, B> { in lock() 122 unsafe { Guard::new(self, state) } in lock() 126 /// A lock guard. 129 /// when a guard goes out of scope. It also provides a safe and convenient way to access the data 131 #[must_use = "the lock unlocks immediately when the guard is unused"] 132 pub struct Guard<'a, T: ?Sized, B: Backend> { struct 138 // SAFETY: `Guard` is sync when the data protected by the lock is also sync. argument 139 unsafe impl<T: Sync + ?Sized, B: Backend> Sync for Guard<'_, T, B> {} implementation [all …]
|
D | condvar.rs | 8 use super::{lock::Backend, lock::Guard, LockClassKey}; 51 /// let mut guard = e.value.lock(); 52 /// while *guard != v { 53 /// e.value_changed.wait(&mut guard); 105 fn wait_internal<T: ?Sized, B: Backend>(&self, wait_state: u32, guard: &mut Guard<'_, T, B>) { in wait_internal() 117 guard.do_unlocked(|| unsafe { bindings::schedule() }); in wait_internal() 125 /// Atomically releases the given lock (whose ownership is proven by the guard) and puts the 129 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait() 130 self.wait_internal(bindings::TASK_UNINTERRUPTIBLE, guard); in wait() 140 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible() [all …]
|
D | locked_by.rs | 53 /// let guard = dir.inner.lock(); 54 /// let inner_file = file.inner.access(&guard); 55 /// pr_info!("{} {}", guard.bytes_used, inner_file.bytes_used); 60 /// let mut guard = dir.inner.lock(); 61 /// guard.bytes_used += 10; 63 /// let file_inner = file.inner.access_mut(&mut guard);
|
/linux-6.8/drivers/char/tpm/ |
D | tpm_tis_i2c.c | 33 /* Default Guard Time of 250µs until interface capability register is read */ 37 /* Guard Time of 250µs after I2C slave NACK */ 41 /* Guard Time bit masks; SR is repeated start, RW is read then write, etc. */ 277 * Guard Time: 282 * Before the Guard Time is read (or after the TPM failed to send an I2C NACK), 283 * a Guard Time of 250µs applies. 285 * Various flags in the same register indicate if a guard time is needed: 286 * - SR: <I2C read with repeated start> <guard time> <I2C read> 287 * - RR: <I2C read> <guard time> <I2C read> 288 * - RW: <I2C read> <guard time> <I2C write> [all …]
|
/linux-6.8/include/rdma/ |
D | signature.h | 33 * enum ib_t10_dif_bg_type - Signature T10-DIF block-guard types 45 * @bg_type: T10-DIF block guard type (CRC|CSUM) 47 * @bg: seed of guard computation. 48 * @app_tag: application tag of guard block 49 * @ref_tag: initial guard block reference tag. 103 * | GUARD | APPTAG | REFTAG |
|
/linux-6.8/Documentation/mm/ |
D | vmalloced-kernel-stacks.rst | 25 Virtually-mapped kernel stacks with guard pages causes kernel stack 30 support for virtually mapped stacks with guard pages. This feature 53 - If the stack overflows into a guard page, something reasonable 64 with guard pages. This causes kernel stack overflows to be caught 123 Leading and trailing guard pages help detect stack overflows. When stack 124 overflows into the guard pages, handlers have to be careful not overflow 131 Testing VMAP allocation with guard pages 135 and trailing guard page? The following lkdtm tests can help detect any
|
/linux-6.8/arch/parisc/math-emu/ |
D | cnv_float.h | 88 #define Dbl_to_sgl_mantissa(srcA,srcB,dest,inexact,guard,sticky,odd) \ argument 90 guard = Dbit3p2(srcB); \ 92 inexact = guard | sticky; \ 95 #define Dbl_to_sgl_denormalized(srcA,srcB,exp,dest,inexact,guard,sticky,odd,tiny) \ argument 101 guard = inexact >> 31; \ 124 if (guard && (sticky || odd)) { \ 134 guard = odd; \ 136 inexact |= guard; \ 144 guard = inexact >> 31; \ 157 guard = inexact >> 31; \ [all …]
|
/linux-6.8/drivers/virt/coco/ |
D | tsm.c | 104 guard(rwsem_write)(&tsm_rwsem); in tsm_report_privlevel_store() 117 guard(rwsem_read)(&tsm_rwsem); in tsm_report_privlevel_floor_show() 128 guard(rwsem_write)(&tsm_rwsem); in tsm_report_inblob_write() 144 guard(rwsem_read)(&tsm_rwsem); in tsm_report_generation_show() 151 guard(rwsem_read)(&tsm_rwsem); in tsm_report_provider_show() 185 guard(rwsem_read)(&tsm_rwsem); in read_cached_report() 213 guard(rwsem_write)(&tsm_rwsem); in tsm_report_read() 321 guard(rwsem_read)(&tsm_rwsem); in tsm_report_make_item() 366 guard(rwsem_write)(&tsm_rwsem); in tsm_register() 382 guard(rwsem_write)(&tsm_rwsem); in tsm_unregister()
|
/linux-6.8/drivers/gpu/drm/i915/ |
D | i915_vma_resource.h | 82 * @guard: The size of guard area preceding and trailing the bind. 129 u32 guard; member 194 * @guard: The size of the guard area preceding and trailing the bind. 214 u32 guard) in i915_vma_resource_init() argument 232 vma_res->guard = guard; in i915_vma_resource_init()
|
/linux-6.8/arch/x86/include/asm/ |
D | cpu_entry_area.h | 35 /* The exception stacks' physical storage. No guard pages required */ 40 /* The effective cpu entry area mapping with guard pages. */ 95 * a read-only guard page. On 32-bit the GDT must be writeable, so 96 * it needs an extra guard page. 116 * Exception stacks used for IST entries with guard pages.
|
/linux-6.8/scripts/ |
D | syscallnr.sh | 57 guard=_ASM_$(basename "$outfile" | 62 echo "#ifndef $guard" 63 echo "#define $guard" 73 echo "#endif /* $guard */"
|
D | gcc-x86_32-has-stack-protector.sh | 5 # -mstack-protector-guard-reg, added by 8 …* -S -x c -c -m32 -O0 -fstack-protector -mstack-protector-guard-reg=fs -mstack-protector-guard-sym…
|
D | syscallhdr.sh | 68 guard=_UAPI_ASM_$(basename "$outfile" | 73 echo "#ifndef $guard" 74 echo "#define $guard" 97 echo "#endif /* $guard */"
|
/linux-6.8/drivers/media/dvb-frontends/ |
D | lgs8gxx_priv.h | 20 u16 curr_gi; /* current guard interval */ 42 #define GI_MASK 0x03 /* Guard Interval Mask */ 43 #define GI_420 0x00 /* 1/9 Guard Interval */ 45 #define GI_945 0x02 /* 1/4 Guard Interval */
|
/linux-6.8/drivers/infiniband/sw/rxe/ |
D | rxe_verbs.h | 82 spinlock_t sq_lock; /* guard queue */ 89 spinlock_t producer_lock; /* guard queue producer */ 90 spinlock_t consumer_lock; /* guard queue consumer */ 251 spinlock_t state_lock; /* guard requester and completer */ 366 spinlock_t port_lock; /* guard port */ 396 spinlock_t pending_lock; /* guard pending_mmaps */ 399 spinlock_t mmap_offset_lock; /* guard mmap_offset */
|
/linux-6.8/drivers/gpio/ |
D | gpio-tangier.c | 101 guard(raw_spinlock_irqsave)(&priv->lock); in tng_gpio_set() 115 guard(raw_spinlock_irqsave)(&priv->lock); in tng_gpio_direction_input() 134 guard(raw_spinlock_irqsave)(&priv->lock); in tng_gpio_direction_output() 166 guard(raw_spinlock_irqsave)(&priv->lock); in tng_gpio_set_debounce() 205 guard(raw_spinlock_irqsave)(&priv->lock); in tng_irq_ack() 218 guard(raw_spinlock_irqsave)(&priv->lock); in tng_irq_unmask_mask() 258 guard(raw_spinlock_irqsave)(&priv->lock); in tng_irq_set_type() 314 guard(raw_spinlock_irqsave)(&priv->lock); in tng_irq_set_wake() 467 guard(raw_spinlock_irqsave)(&priv->lock); in tng_gpio_suspend() 490 guard(raw_spinlock_irqsave)(&priv->lock); in tng_gpio_resume()
|
D | gpio-sim.c | 73 guard(mutex)(&chip->lock); in gpio_sim_apply_pull() 116 guard(mutex)(&chip->lock); in gpio_sim_get() 235 guard(mutex)(&chip->lock); in gpio_sim_dbg_show() 722 guard(mutex)(&dev->lock); in gpio_sim_device_config_dev_name_show() 1024 guard(mutex)(&dev->lock); in gpio_sim_device_config_live_store() 1070 guard(mutex)(&dev->lock); in gpio_sim_bank_config_chip_name_show() 1087 guard(mutex)(&dev->lock); in gpio_sim_bank_config_label_show() 1099 guard(mutex)(&dev->lock); in gpio_sim_bank_config_label_store() 1122 guard(mutex)(&dev->lock); in gpio_sim_bank_config_num_lines_show() 1143 guard(mutex)(&dev->lock); in gpio_sim_bank_config_num_lines_store() [all …]
|
/linux-6.8/include/linux/ |
D | t10-pi.h | 14 * Type 1 defines the contents of the guard and reference tags 16 * Type 2 defines the contents of the guard and reference tags and 19 * Type 3 defines the contents of the guard tag only
|
/linux-6.8/Documentation/arch/arm64/ |
D | memory.rst | 39 fffffbfffe000000 fffffbfffe7fffff 8MB [guard region] 41 fffffbffff800000 fffffbffffffffff 8MB [guard region] 43 fffffe0000000000 ffffffffffffffff 2TB [guard region] 56 fffffbfffe000000 fffffbfffe7fffff 8MB [guard region] 58 fffffbffff800000 fffffbffffffffff 8MB [guard region] 60 ffffffe000000000 ffffffffffffffff 128GB [guard region]
|
/linux-6.8/Documentation/dev-tools/ |
D | kfence.rst | 59 requires 2 pages, one for the object itself and the other one used as a guard 60 page; object pages are interleaved with guard pages, and every object page is 61 therefore surrounded by two guard pages. 174 KFENCE also uses pattern-based redzones on the other side of an object's guard 257 object page are "guard pages", whose attributes are changed to a protected 275 | x GUARD x | J : RED- | x GUARD x | RED- : J | x GUARD x | 316 <http://llvm.org/docs/GwpAsan.html>`_. GWP-ASan also relies on guard pages and
|
/linux-6.8/drivers/iio/imu/bmi323/ |
D | bmi323_core.c | 320 guard(mutex)(&data->mutex); in bmi323_set_mode() 397 guard(mutex)(&data->mutex); in bmi323_get_error_status() 442 guard(mutex)(&data->mutex); in bmi323_step_wtrmrk_en() 511 guard(mutex)(&data->mutex); in bmi323_motion_event_en() 545 guard(mutex)(&data->mutex); in bmi323_tap_event_en() 655 guard(mutex)(&data->mutex); in in_accel_gesture_tap_wait_dur_store() 705 guard(mutex)(&data->mutex); in in_accel_gesture_tap_wait_timeout_store() 779 guard(mutex)(&data->mutex); in bmi323_read_event_config() 829 guard(mutex)(&data->mutex); in bmi323_write_event_value() 939 guard(mutex)(&data->mutex); in bmi323_read_event_value() [all …]
|
/linux-6.8/Documentation/devicetree/bindings/display/ |
D | atmel,lcdc.txt | 55 - atmel,guard-time: lcd guard time (Delay in frame periods) 70 atmel,guard-time = <9>;
|
/linux-6.8/Documentation/devicetree/bindings/input/ |
D | microchip,cap11xx.yaml | 83 microchip,signal-guard: 92 The signal guard isolates the signal from virtual grounds. 93 If enabled then the behavior of the channel is changed to signal guard. 175 microchip,signal-guard: false
|
/linux-6.8/include/uapi/linux/dvb/ |
D | frontend.h | 43 * @FE_CAN_GUARD_INTERVAL_AUTO: Can auto-detect guard interval 432 * enum fe_guard_interval - Guard interval 434 * @GUARD_INTERVAL_AUTO: Autodetect the guard interval 435 * @GUARD_INTERVAL_1_128: Guard interval 1/128 436 * @GUARD_INTERVAL_1_32: Guard interval 1/32 437 * @GUARD_INTERVAL_1_16: Guard interval 1/16 438 * @GUARD_INTERVAL_1_8: Guard interval 1/8 439 * @GUARD_INTERVAL_1_4: Guard interval 1/4 440 * @GUARD_INTERVAL_19_128: Guard interval 19/128 441 * @GUARD_INTERVAL_19_256: Guard interval 19/256 [all …]
|
/linux-6.8/include/uapi/linux/ |
D | libc-compat.h | 28 * guard macros of the form __UAPI_DEF_FOO and set their values to 1, else 31 * (d) Back in the UAPI header with the conflicting definitions, guard the 103 * if the glibc code didn't define them. This guard matches 104 * the guard in glibc/inet/netinet/in.h which defines the
|