Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 13 of 13) sorted by relevance

/DragonOS-0.1.2/docs/kernel/core_api/
Datomic.md68 ### `inline void atomic_set_mask(atomic_t *ato, long mask)`
72   将原子变量的值与mask变量进行or运算
80 **mask**
84 ### `inline void atomic_clear_mask(atomic_t *ato, long mask)` argument
88   将原子变量的值与mask变量进行and运算
96 **mask**
/DragonOS-0.1.2/kernel/src/common/
Datomic.h80 inline void atomic_set_mask(atomic_t *ato, long mask) in atomic_set_mask() argument
84 : "r"(mask) in atomic_set_mask()
93 inline void atomic_clear_mask(atomic_t *ato, long mask) in atomic_clear_mask() argument
97 : "r"(mask) in atomic_clear_mask()
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/
Dapic_timer.h49 static __always_inline void apic_timer_set_LVT(uint32_t vector, uint32_t mask, uint32_t mode) in apic_timer_set_LVT() argument
51 register uint32_t val = (mode << 17) | vector | (mask ? (APIC_LVT_INT_MASKED) : 0); in apic_timer_set_LVT()
Dapic.h111 mask : 1, // 第16位,屏蔽标志位,(0为未屏蔽, 1为已屏蔽) member
160 mask : 1, // 16 屏蔽标志位,(0为未屏蔽, 1为已屏蔽) member
331 …t deliver_status, uint8_t polarity, uint8_t irr, uint8_t trigger, uint8_t mask, uint8_t dest_apicI…
Dapic.c628 …t deliver_status, uint8_t polarity, uint8_t irr, uint8_t trigger, uint8_t mask, uint8_t dest_apicI… in apic_make_rte_entry() argument
638 entry->mask = mask; in apic_make_rte_entry()
/DragonOS-0.1.2/kernel/src/driver/pci/
Dmsi.h47 uint32_t mask; member
Dmsi.c65 cap_list.mask = in __msi_read_cap_list()
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal_types.rs532 pub fn flush_by_mask(&mut self, mask: &sigset_t) { in flush_by_mask()
535 if sig_is_member(mask, SignalNumber::from(unsafe { x._sinfo.data.si_signo })) { in flush_by_mask()
583 pub fn sigset_delmask(set: &mut sigset_t, mask: u64) { in sigset_delmask()
584 *set &= !mask; in sigset_delmask()
598 pub fn sigset_init(new_set: &mut sigset_t, mask: u64) { in sigset_init()
599 *new_set = mask; in sigset_init()
Dsignal.rs717 fn setup_sigcontext(context: &mut sigcontext, mask: &sigset_t, regs: &pt_regs) -> Result<i32, i32> { in setup_sigcontext()
720 context.oldmask = *mask; in setup_sigcontext()
791 let mask: sigset_t = unsafe { (*act).sa_mask }; in sys_sigaction() localVariable
831 sigset_init(&mut new_ka.sa_mask, mask); in sys_sigaction()
946 let mut mask: sigset_t = 0; in do_sigaction() localVariable
947 sigset_clear(&mut mask); in do_sigaction()
948 sigset_add(&mut mask, sig); in do_sigaction()
951 sq.flush_by_mask(&mask); in do_sigaction()
/DragonOS-0.1.2/kernel/src/driver/disk/
Data.c62 entry.mask = MASKED; in ata_init()
/DragonOS-0.1.2/kernel/src/driver/keyboard/
Dps2_keyboard.c179 entry.mask = MASKED; in ps2_keyboard_init()
/DragonOS-0.1.2/kernel/src/driver/mouse/
Dps2_mouse.c219 ps2_mouse_entry.mask = MASKED; in ps2_mouse_init()
/DragonOS-0.1.2/kernel/src/libs/
Dlz4.c735 U64 const mask = 0x0101010101010101ULL; in LZ4_NbCommonBytes()
736 U64 const t = (((val >> 8) - mask) | val) & mask; in LZ4_NbCommonBytes()