Searched refs:val (Results 1 - 25 of 46) sorted by relevance

12

/bionic/libc/kernel/arch-x86/asm/
H A Dunaligned.h22 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
H A Dpercpu_32.h29 #define percpu_to_op(op,var,val) do { typedef typeof(var) T__; if (0) { T__ tmp__; tmp__ = (val); } switch (sizeof(var)) { case 1: asm(op "b %1,"__percpu_seg"%0" : "+m" (var) :"ri" ((T__)val)); break; case 2: asm(op "w %1,"__percpu_seg"%0" : "+m" (var) :"ri" ((T__)val)); break; case 4: asm(op "l %1,"__percpu_seg"%0" : "+m" (var) :"ri" ((T__)val)); break; default: __bad_percpu_size(); } } while (0)
32 #define x86_write_percpu(var,val) percpu_to_op("mov", per_cpu__##var, val)
34 #define x86_add_percpu(var,val) percpu_to_op("add", per_cpu__##var, val)
35 #define x86_sub_percpu(var,val) percpu_to_o
[all...]
H A Dpda.h59 #define pda_to_op(op,field,val) do { typedef typeof(_proxy_pda.field) T__; if (0) { T__ tmp__; tmp__ = (val); } switch (sizeof(_proxy_pda.field)) { case 2: asm(op "w %1,%%gs:%c2" : "+m" (_proxy_pda.field) : "ri" ((T__)val), "i"(pda_offset(field))); break; case 4: asm(op "l %1,%%gs:%c2" : "+m" (_proxy_pda.field) : "ri" ((T__)val), "i" (pda_offset(field))); break; case 8: asm(op "q %1,%%gs:%c2": "+m" (_proxy_pda.field) : "ri" ((T__)val), "i"(pda_offset(field))); break; default: __bad_pda_field(); } } while (0)
62 #define write_pda(field,val) pda_to_op("mov",field,val)
64 #define add_pda(field,val) pda_to_op("add",field,val)
65 #define sub_pda(field,val) pda_to_o
[all...]
H A Dmc146818rtc_32.h47 #define CMOS_WRITE(val, addr) rtc_cmos_write(val, addr)
H A Dbyteorder.h36 static __inline__ __attribute_const__ __u64 ___arch__swab64(__u64 val) argument
44 v.u = val;
H A 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/
H A Dpreempt.h24 #define add_preempt_count(val) do { preempt_count() += (val); } while (0)
25 #define sub_preempt_count(val) do { preempt_count() -= (val); } while (0)
H A Dvt_buffer.h22 #define scr_writew(val, addr) (*(addr) = (val))
H A Dswap.h57 unsigned long val; member in struct:__anon475
/bionic/libc/inet/
H A Dinet_aton.c70 in_addr_t val; local
85 val = 0; base = 10;
95 val = (val * base) + (c - '0');
98 val = (val << 4) |
113 *pp++ = val;
137 if ((val > 0xffffff) || (parts[0] > 0xff))
139 val |= parts[0] << 24;
143 if ((val >
[all...]
H A Dinet_addr.c67 struct in_addr val; local
69 if (inet_aton(cp, &val))
70 return (val.s_addr);
H A Dinet_pton.c108 u_int32_t val; local
127 val = 0; base = 10;
143 val = (val * base) + digit;
149 val = (val << 4) | digit;
164 *pp++ = val;
191 if (parts[0] > 0xff || val > 0xffffff)
193 val |= parts[0] << 24;
197 if ((parts[0] | parts[1]) > 0xff || val >
236 u_int val; local
[all...]
/bionic/libc/kernel/arch-mips/asm/
H A Dmipsmtregs.h26 #define write_c0_mvpcontrol(val) __write_32bit_c0_register($0, 1, val)
31 #define write_c0_vpecontrol(val) __write_32bit_c0_register($1, 1, val)
34 #define write_c0_vpeconf0(val) __write_32bit_c0_register($1, 2, val)
36 #define write_c0_tcstatus(val) __write_32bit_c0_register($2, 1, val)
40 #define write_c0_tccontext(val) __write_32bit_c0_register($2, 5, val)
[all...]
H A Dmipsregs.h475 #define write_r10k_perf_cntr(counter,val) do { __asm__ __volatile__( "mtpc\t%0, %1" : : "r" (val), "i" (counter)); } while (0)
477 #define write_r10k_perf_cntl(counter,val) do { __asm__ __volatile__( "mtps\t%0, %1" : : "r" (val), "i" (counter)); } while (0)
485 #define __write_ulong_c0_register(reg, sel, val) do { if (sizeof(unsigned long) == 4) __write_32bit_c0_register(reg, sel, val); else __write_64bit_c0_register(reg, sel, val); } while (0)
490 #define __write_64bit_c0_split(source, sel, val) do { unsigned long __flags; local_irq_save(__flags); if (sel == 0) __asm__ __volatile__( ".set\tmips64\n\t" "dsll\t%L0, %L0, 32\n\t" "dsrl\t%L0, %L0, 32\n\t" "dsll\t%M0, %M0, 32\n\t" "or\t%L0, %L0, %M0\n\t" "dmtc0\t%L0, " #source "\n\t" ".set\tmips0" : : "r" (val)); else __asm__ __volatile__( ".set\tmips64\n\t" "dsll\t%L0, %L0, 32\n\t" "dsrl\t%L0, %L0, 32\n\t" "dsll\t%M0, %M0, 32\n\t" "or\t%L0, %L0, %M0\n\t" "dmtc0\t%L0, " #source ", " #sel "\n\t" ".set\tmips0" : : "r" (val)); local_irq_restor
[all...]
H A Dposix_types.h75 long val[2]; member in struct:__anon96
79 int val[2]; member in struct:__anon96
/bionic/libc/private/
H A 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 *timeout);
/bionic/libc/kernel/arch-arm/asm/
H A Dmc146818rtc.h30 #define CMOS_WRITE(val, addr) ({ outb_p((addr),RTC_PORT(0)); outb_p((val),RTC_PORT(1)); })
H A Dunaligned.h30 #define __put_unaligned_le(val,ptr) ({ switch (sizeof(*(ptr))) { case 1: *(ptr) = (val); break; case 2: __put_unaligned_2_le((val),(__u8 *)(ptr)); break; case 4: __put_unaligned_4_le((val),(__u8 *)(ptr)); break; case 8: __put_unaligned_8_le((val),(__u8 *)(ptr)); break; default: __bug_unaligned_x(ptr); break; } (void) 0; })
31 #define __put_unaligned_be(val,ptr) ({ switch (sizeof(*(ptr))) { case 1: *(ptr) = (val); break; case 2: __put_unaligned_2_be((val),(__u8 *)(ptr)); break; case 4: __put_unaligned_4_be((val),(__u8 *)(ptr)); break; case 8: __put_unaligned_8_be((val),(__u
[all...]
H A Dcacheflush.h90 #define __cacheid_present(val) (val != read_cpuid(CPUID_ID))
91 #define __cacheid_vivt(val) ((val & (15 << 25)) != (14 << 25))
92 #define __cacheid_vipt(val) ((val & (15 << 25)) == (14 << 25))
94 #define __cacheid_vipt_nonaliasing(val) ((val & (15 << 25 | 1 << 23)) == (14 << 25))
95 #define __cacheid_vipt_aliasing(val) ((val
[all...]
/bionic/linker/
H A Dlinker_environ.c130 char* val = env_match(readp[0], name); local
131 if (val != NULL) {
133 if (val[0] == '\0')
134 val = NULL;
135 return val;
/bionic/libc/include/
H A Dgetopt.h60 /* if not NULL, set *flag to val when option found */
63 int val; member in struct:option
/bionic/libc/include/netinet/
H A Dip6.h274 * The pointer to the region will be returned to pointer variable "val",
281 #define IP6_EXTHDR_GET(val, typ, m, off, len) \
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) \
304 (val) = (typ)mtod((m), void *); \
310 (val) = (typ)mtod(_t, void *); \
312 (val) = (typ)NULL; \
/bionic/libc/bionic/
H A Darc4random.c177 u_int8_t val; local
182 val = arc4_getbyte();
184 return val;
190 u_int32_t val; local
191 val = arc4_getbyte() << 24;
192 val |= arc4_getbyte() << 16;
193 val |= arc4_getbyte() << 8;
194 val |= arc4_getbyte();
195 return val;
219 u_int32_t val; local
[all...]
H A Dsemaphore.c72 #define SEMCOUNT_FROM_VALUE(val) (((val) << SEMCOUNT_VALUE_SHIFT) & SEMCOUNT_VALUE_MASK)
389 int val; local
396 val = SEMCOUNT_TO_VALUE(sem->count);
397 if (val < 0)
398 val = 0;
400 *sval = val;
/bionic/libc/include/sys/
H A Datomics.h79 int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout);

Completed in 585 milliseconds

12