Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 51) sorted by relevance

123

/bionic/libc/kernel/arch-mips/asm/
Dmipsregs.h475 #define write_r10k_perf_cntr(counter,val) do { __asm__ __volatile__( "mtpc\t%0, %1" : : "r… argument
477 #define write_r10k_perf_cntl(counter,val) do { __asm__ __volatile__( "mtps\t%0, %1" : : "r… argument
485 …g, sel, val) do { if (sizeof(unsigned long) == 4) __write_32bit_c0_register(reg, sel, val); … argument
490val) do { unsigned long __flags; local_irq_save(__flags); if (sel == 0) __asm__ __volat… argument
492 #define write_c0_index(val) __write_32bit_c0_register($0, 0, val) argument
495 #define write_c0_random(val) __write_32bit_c0_register($1, 0, val) argument
497 #define write_c0_entrylo0(val) __write_ulong_c0_register($2, 0, val) argument
500 #define write_c0_entrylo1(val) __write_ulong_c0_register($3, 0, val) argument
502 #define write_c0_conf(val) __write_32bit_c0_register($3, 0, val) argument
505 #define write_c0_context(val) __write_ulong_c0_register($4, 0, val) argument
[all …]
Dmipsmtregs.h26 #define write_c0_mvpcontrol(val) __write_32bit_c0_register($0, 1, val) argument
31 #define write_c0_vpecontrol(val) __write_32bit_c0_register($1, 1, val) argument
34 #define write_c0_vpeconf0(val) __write_32bit_c0_register($1, 2, val) argument
36 #define write_c0_tcstatus(val) __write_32bit_c0_register($2, 1, val) argument
40 #define write_c0_tccontext(val) __write_32bit_c0_register($2, 5, val) argument
169 #define write_vpe_c0_vpecontrol(val) mttc0(1, 1, val) argument
171 #define write_vpe_c0_vpeconf0(val) mttc0(1, 2, val) argument
174 #define write_vpe_c0_count(val) mttc0(9, 0, val) argument
176 #define write_vpe_c0_status(val) mttc0(12, 0, val) argument
179 #define write_vpe_c0_cause(val) mttc0(13, 0, val) argument
[all …]
Duaccess.h56 #define __GET_USER_DW(val, ptr) __get_user_asm_ll32(val, ptr) argument
57val, size, ptr) do { switch (size) { case 1: __get_user_asm(val, "lb", ptr); break; case 2:… argument
61val, insn, addr) { long __gu_tmp; __asm__ __volatile__( "1: " insn " %1, %3 \n" "2: … argument
62val, addr) { union { unsigned long long l; __typeof__(*(addr)) t; } __gu_tmp; __asm__… argument
Dposix_types.h75 long val[2]; member
79 int val[2]; member
/bionic/libc/inet/
Dinet_aton.c70 in_addr_t val; in inet_aton() local
85 val = 0; base = 10; in inet_aton()
95 val = (val * base) + (c - '0'); in inet_aton()
98 val = (val << 4) | in inet_aton()
113 *pp++ = val; in inet_aton()
137 if ((val > 0xffffff) || (parts[0] > 0xff)) in inet_aton()
139 val |= parts[0] << 24; in inet_aton()
143 if ((val > 0xffff) || (parts[0] > 0xff) || (parts[1] > 0xff)) in inet_aton()
145 val |= (parts[0] << 24) | (parts[1] << 16); in inet_aton()
149 if ((val > 0xff) || (parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) in inet_aton()
[all …]
Dinet_pton.c108 u_int32_t val; in inet_pton4() local
127 val = 0; base = 10; in inet_pton4()
143 val = (val * base) + digit; in inet_pton4()
149 val = (val << 4) | digit; in inet_pton4()
164 *pp++ = val; in inet_pton4()
191 if (parts[0] > 0xff || val > 0xffffff) in inet_pton4()
193 val |= parts[0] << 24; in inet_pton4()
197 if ((parts[0] | parts[1]) > 0xff || val > 0xffff) in inet_pton4()
199 val |= (parts[0] << 24) | (parts[1] << 16); in inet_pton4()
203 if ((parts[0] | parts[1] | parts[2] | val) > 0xff) in inet_pton4()
[all …]
Dinet_addr.c67 struct in_addr val; in inet_addr() local
69 if (inet_aton(cp, &val)) in inet_addr()
70 return (val.s_addr); in inet_addr()
/bionic/libc/kernel/arch-x86/asm/
Dpercpu_32.h29val) do { typedef typeof(var) T__; if (0) { T__ tmp__; tmp__ = (val); } switch (sizeof(var… argument
32 #define x86_write_percpu(var,val) percpu_to_op("mov", per_cpu__##var, val) argument
34 #define x86_add_percpu(var,val) percpu_to_op("add", per_cpu__##var, val) argument
35 #define x86_sub_percpu(var,val) percpu_to_op("sub", per_cpu__##var, val) argument
36 #define x86_or_percpu(var,val) percpu_to_op("or", per_cpu__##var, val) argument
Dpda.h59val) do { typedef typeof(_proxy_pda.field) T__; if (0) { T__ tmp__; tmp__ = (val); } switc… argument
62 #define write_pda(field,val) pda_to_op("mov",field,val) argument
64 #define add_pda(field,val) pda_to_op("add",field,val) argument
65 #define sub_pda(field,val) pda_to_op("sub",field,val) argument
66 #define or_pda(field,val) pda_to_op("or",field,val) argument
Dunaligned.h22 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) )) argument
Dmc146818rtc_32.h47 #define CMOS_WRITE(val, addr) rtc_cmos_write(val, addr) argument
Dbyteorder.h36 static __inline__ __attribute_const__ __u64 ___arch__swab64(__u64 val) in ___arch__swab64() argument
44 v.u = val; in ___arch__swab64()
Dpgtable-2level.h44 #define __swp_type(x) (((x).val >> 1) & 0x1f)
45 #define __swp_offset(x) ((x).val >> 8)
49 #define __swp_entry_to_pte(x) ((pte_t) { (x).val })
/bionic/libc/kernel/common/linux/
Dpreempt.h24 #define add_preempt_count(val) do { preempt_count() += (val); } while (0) argument
25 #define sub_preempt_count(val) do { preempt_count() -= (val); } while (0) argument
Dvt_buffer.h22 #define scr_writew(val, addr) (*(addr) = (val)) argument
/bionic/libc/private/
Dbionic_futex.h33 extern int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout);
36 extern int __futex_syscall3(volatile void *ftx, int op, int val);
37 extern int __futex_syscall4(volatile void *ftx, int op, int val, const struct timespec *timeout);
54 extern int __futex_wake_ex(volatile void *ftx, int pshared, int val);
55 extern int __futex_wait_ex(volatile void *ftx, int pshared, int val, const struct timespec *timeou…
/bionic/libc/kernel/arch-arm/asm/
Dunaligned.h30val,ptr) ({ switch (sizeof(*(ptr))) { case 1: *(ptr) = (val); break; case 2: __put_una… argument
31val,ptr) ({ switch (sizeof(*(ptr))) { case 1: *(ptr) = (val); break; case 2: __put_una… argument
Dcacheflush.h90 #define __cacheid_present(val) (val != read_cpuid(CPUID_ID)) argument
91 #define __cacheid_vivt(val) ((val & (15 << 25)) != (14 << 25)) argument
92 #define __cacheid_vipt(val) ((val & (15 << 25)) == (14 << 25)) argument
94 #define __cacheid_vipt_nonaliasing(val) ((val & (15 << 25 | 1 << 23)) == (14 << 25)) argument
95 #define __cacheid_vipt_aliasing(val) ((val & (15 << 25 | 1 << 23)) == (14 << 25 | 1 << 23)) argument
Dmc146818rtc.h30 #define CMOS_WRITE(val, addr) ({ outb_p((addr),RTC_PORT(0)); outb_p((val),RTC_PORT(1)); }) argument
/bionic/libc/bionic/
Darc4random.c177 u_int8_t val; in __arc4_getbyte() local
182 val = arc4_getbyte(); in __arc4_getbyte()
184 return val; in __arc4_getbyte()
190 u_int32_t val; in arc4_getword() local
191 val = arc4_getbyte() << 24; in arc4_getword()
192 val |= arc4_getbyte() << 16; in arc4_getword()
193 val |= arc4_getbyte() << 8; in arc4_getword()
194 val |= arc4_getbyte(); in arc4_getword()
195 return val; in arc4_getword()
219 u_int32_t val; in arc4random() local
[all …]
Ddlmalloc.c38 intptr_t val = (intptr_t) ptr; in __bionic_itox() local
44 int digit = val & 15; in __bionic_itox()
46 val >>= 4; in __bionic_itox()
Dsemaphore.c72 #define SEMCOUNT_FROM_VALUE(val) (((val) << SEMCOUNT_VALUE_SHIFT) & SEMCOUNT_VALUE_MASK) argument
389 int val; in sem_getvalue() local
396 val = SEMCOUNT_TO_VALUE(sem->count); in sem_getvalue()
397 if (val < 0) in sem_getvalue()
398 val = 0; in sem_getvalue()
400 *sval = val; in sem_getvalue()
/bionic/linker/
Dlinker_environ.c130 char* val = env_match(readp[0], name); in linker_env_get() local
131 if (val != NULL) { in linker_env_get()
133 if (val[0] == '\0') in linker_env_get()
134 val = NULL; in linker_env_get()
135 return val; in linker_env_get()
/bionic/libc/kernel/common/linux/mfd/
Dmsm-adie-codec.h39 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument
40 …CK_ENTRY(packed, reg, mask, val) do { ((reg) = ((packed >> 16) & (0xff))); ((mask) = ((packe… argument
64 u8 val; member
/bionic/libc/include/netinet/
Dip6.h281 #define IP6_EXTHDR_GET(val, typ, m, off, len) \ argument
286 (val) = (typ)(mtod((m), char *) + (off)); \
292 (val) = (typ)(mtod(_t, char *) + _tmp); \
294 (val) = (typ)NULL; \
300 #define IP6_EXTHDR_GET0(val, typ, m, off, len) \ argument
304 (val) = (typ)mtod((m), void *); \
310 (val) = (typ)mtod(_t, void *); \
312 (val) = (typ)NULL; \

123