Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 37) sorted by relevance

12

/kernel/lib/libc/
A Datoi.c47 long value = 0; in atol() local
54 value = value * 16 + hexval(*num++); in atol()
62 value = value * 10 + *num++ - '0'; in atol()
66 value = -value; in atol()
68 return value; in atol()
78 value = value * 16 + hexval(*num++); in atoul()
82 value = value * 10 + *num++ - '0'; in atoul()
85 return value; in atoul()
95 value = value * 16 + hexval(*num++); in atoull()
99 value = value * 10 + *num++ - '0'; in atoull()
[all …]
/kernel/arch/x86/include/arch/
A Dasm_macros.h29 .macro push_value value
30 pushq \value
34 .macro pop_value value
35 popq \value
42 .macro sub_from_sp value
43 sub $\value, %rsp
44 .cfi_adjust_cfa_offset \value
47 .macro add_to_sp value
48 add $\value, %rsp
49 .cfi_adjust_cfa_offset -\value
A Dspinlock.h22 unsigned long value; member
39 return (uint)__atomic_load_n(&lock->value, __ATOMIC_RELAXED) - 1; in arch_spin_lock_holder_cpu()
A Dx86.h296 static inline void set_##REG(uint16_t value) { \
299 : "r"(value)); \
302 uint16_t value; \
304 : "=r"(value)); \
305 return value; \
/kernel/kernel/
A Dcmdline.cpp114 const char* value = cmdline_get(key); in cmdline_get_bool() local
115 if (value == NULL) { in cmdline_get_bool()
118 if ((strcmp(value, "0") == 0) || in cmdline_get_bool()
119 (strcmp(value, "false") == 0) || in cmdline_get_bool()
120 (strcmp(value, "off") == 0)) { in cmdline_get_bool()
134 uint32_t value = (res < 0) ? _default : static_cast<uint32_t>(res); in cmdline_get_uint32() local
138 return value; in cmdline_get_uint32()
148 long long value = strtoll(value_str, &end, 0); in cmdline_get_uint64() local
152 return value; in cmdline_get_uint64()
/kernel/target/arm64/boot-shim/
A Ddebug.c16 void uart_print_hex(uint64_t value) { in uart_print_hex() argument
20 uart_pputc(digits[(value >> i) & 0xf]); in uart_print_hex()
29 void uart_print_hex(uint64_t value) { in uart_print_hex() argument
A Ddebug.h17 void uart_print_hex(uint64_t value);
/kernel/arch/arm64/
A Dspinlock.cpp27 : [lock] "r"(&lock->value), [val] "r"(val) in arch_spin_lock()
41 : [lock] "r"(&lock->value), [val] "r"(val) in arch_spin_trylock()
48 __atomic_store_n(&lock->value, 0UL, __ATOMIC_SEQ_CST); in arch_spin_unlock()
/kernel/target/pc/multiboot/
A Dpaging.c44 uint64_t value; in read_msr() local
45 __asm__("rdmsr" : "=A"(value) : "c"(msr)); in read_msr()
46 return value; in read_msr()
49 static void write_msr(uint32_t msr, uint64_t value) { in write_msr() argument
50 __asm__ volatile("wrmsr" :: "c"(msr), "A"(value)); in write_msr()
/kernel/arch/arm64/include/arch/
A Dasm_macros.h49 .macro sub_from_sp value
50 sub sp, sp, #\value
51 .cfi_adjust_cfa_offset \value
54 .macro add_to_sp value
55 add sp, sp, #\value
56 .cfi_adjust_cfa_offset -\value
A Dspinlock.h23 unsigned long value; member
38 return (uint)__atomic_load_n(&lock->value, __ATOMIC_RELAXED) - 1; in arch_spin_lock_holder_cpu()
/kernel/lib/counters/include/lib/
A Dcounters.h113 static inline void kcounter_max(const struct k_counter_desc* var, int64_t value) { in kcounter_max() argument
115 while (prev_value < value && !atomic_cmpxchg_64_relaxed(kcounter_slot(var), &prev_value, value)) in kcounter_max()
/kernel/object/
A Dfutex_context.cpp52 int value; in FutexWait() local
53 zx_status_t result = value_ptr.copy_from_user(&value); in FutexWait()
57 if (value != current_value) { in FutexWait()
165 int value; in FutexRequeue() local
166 zx_status_t result = wake_ptr.copy_from_user(&value); in FutexRequeue()
168 if (value != current_value) return ZX_ERR_BAD_STATE; in FutexRequeue()
A Dsocket_dispatcher.cpp471 zx_status_t SocketDispatcher::SetReadThreshold(size_t value) TA_NO_THREAD_SAFETY_ANALYSIS { in SetReadThreshold() argument
474 if (value > data_.max_size()) in SetReadThreshold()
476 read_threshold_ = value; in SetReadThreshold()
478 if (value == 0) { in SetReadThreshold()
492 zx_status_t SocketDispatcher::SetWriteThreshold(size_t value) TA_NO_THREAD_SAFETY_ANALYSIS { in SetWriteThreshold() argument
497 if (value > peer_->data_.max_size()) in SetWriteThreshold()
499 write_threshold_ = value; in SetWriteThreshold()
501 if (value == 0) { in SetWriteThreshold()
A Dhandle.cpp205 Handle* Handle::FromU32(uint32_t value) TA_NO_THREAD_SAFETY_ANALYSIS { in FromU32() argument
206 uintptr_t handle_addr = IndexToHandle(value & kHandleIndexMask); in FromU32()
213 return likely(handle->base_value() == value) ? handle : nullptr; in FromU32()
/kernel/arch/x86/
A Dperf_mon.cpp659 rec->value = value; in x86_perfmon_write_value_record()
1136 uint64_t value; member
1149 uint32_t value = *addr; in read_mc_counter32() local
1151 *last_value_addr = value; in read_mc_counter32()
1154 if (value < last_value) { in read_mc_counter32()
1158 return value - last_value; in read_mc_counter32()
1171 uint64_t value = *addr; in read_mc_counter64() local
1173 *last_value_addr = value; in read_mc_counter64()
1174 return value - last_value; in read_mc_counter64()
1322 value = (value >> 17) & 0x1ff; in read_mc_rp_slice_freq()
[all …]
/kernel/include/arch/
A Dops.h76 static inline void arch_set_blocking_disallowed(bool value) { in arch_set_blocking_disallowed() argument
77 WRITE_PERCPU_FIELD32(blocking_disallowed, value); in arch_set_blocking_disallowed()
/kernel/lib/vdso/
A Dvdso.cpp70 uintptr_t info, value, size; member
88 void get_symbol_entry(size_t i, uintptr_t* value, size_t* size) { in get_symbol_entry() argument
89 *value = window_.data()->table[i].value; in get_symbol_entry()
93 void set_symbol_entry(size_t i, uintptr_t value, size_t size) { in set_symbol_entry() argument
94 window_.data()->table[i].value = value; in set_symbol_entry()
103 #define get_symbol(symbol, value, size) \ argument
104 get_symbol_entry(PASTE(VDSO_DYNSYM_, symbol,), value, size)
/kernel/dev/hdcp/amlogic_s912/
A Dhdcp.cpp29 #define DISPLAY_SET_MASK(mask, start, count, value) \ argument
31 (((value) << (start)) & DISPLAY_MASK(start, count)))
42 #define SET_BIT32(x, dest, value, count, start) \ argument
44 (((value) << (start)) & DISPLAY_MASK(start, count)))
/kernel/syscalls/
A Dobject.cpp684 size_t value = socket->GetReadThreshold(); in sys_object_get_property() local
693 size_t value = socket->GetWriteThreshold(); in sys_object_get_property() local
776 uintptr_t value = 0; in sys_object_set_property() local
780 return process->set_debug_addr(value); in sys_object_set_property()
788 size_t value = 0; in sys_object_set_property() local
792 return socket->SetReadThreshold(value); in sys_object_set_property()
800 size_t value = 0; in sys_object_set_property() local
804 return socket->SetWriteThreshold(value); in sys_object_set_property()
810 size_t value = 0; in sys_object_set_property() local
814 if (value == 0u) { in sys_object_set_property()
[all …]
/kernel/arch/arm64/include/arch/arm64/
A Dmp.h107 #define WRITE_PERCPU_FIELD32(field, value) \ argument
108 arm64_write_percpu_u32(offsetof(struct arm64_percpu, field), (value))
/kernel/arch/x86/include/arch/x86/
A Dmp.h122 #define WRITE_PERCPU_FIELD32(field, value) \ argument
123 x86_write_gs_offset32(offsetof(struct x86_percpu, field), (value))
/kernel/dev/iommu/intel/
A Dhw.h318 static_assert(fbl::is_pod<RootEntry>::value, "not POD");
325 static_assert(fbl::is_pod<RootTable>::value, "not POD");
369 static_assert(fbl::is_pod<ContextEntry>::value, "not POD");
376 static_assert(fbl::is_pod<ContextTable>::value, "not POD");
446 static_assert(fbl::is_pod<ExtendedContextEntry>::value, "not POD");
453 static_assert(fbl::is_pod<ExtendedContextTable>::value, "not POD");
469 static_assert(fbl::is_pod<PasidEntry>::value, "not POD");
494 static_assert(fbl::is_pod<PasidState>::value, "not POD");
/kernel/object/include/object/
A Dsocket_dispatcher.h58 zx_status_t SetReadThreshold(size_t value);
60 zx_status_t SetWriteThreshold(size_t value);
/kernel/platform/pc/
A Dtimer.cpp145 zx_duration_t value; in discrete_time_roundup() local
148 value = ns_per_tsc_rounded_up; in discrete_time_roundup()
152 value = ns_per_hpet_rounded_up; in discrete_time_roundup()
156 value = ns_per_pit_rounded_up; in discrete_time_roundup()
163 return zx_time_add_duration(t, value); in discrete_time_roundup()

Completed in 42 milliseconds

12