/bionic/libc/kernel/arch-x86/asm/ |
H A D | unaligned.h | 22 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
|
H A D | percpu_32.h | 29 #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 D | pda.h | 59 #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 D | mc146818rtc_32.h | 47 #define CMOS_WRITE(val, addr) rtc_cmos_write(val, addr)
|
H A D | byteorder.h | 36 static __inline__ __attribute_const__ __u64 ___arch__swab64(__u64 val) argument 44 v.u = val;
|
H A D | pgtable-2level.h | 44 #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 D | preempt.h | 24 #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 D | vt_buffer.h | 22 #define scr_writew(val, addr) (*(addr) = (val))
|
H A D | swap.h | 57 unsigned long val; member in struct:__anon497
|
/bionic/libc/inet/ |
H A D | inet_aton.c | 70 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 D | inet_addr.c | 67 struct in_addr val; local 69 if (inet_aton(cp, &val)) 70 return (val.s_addr);
|
H A D | inet_pton.c | 108 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 D | mipsmtregs.h | 26 #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 D | mipsregs.h | 475 #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...] |
/bionic/libc/private/ |
H A D | bionic_futex.h | 33 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 D | mc146818rtc.h | 30 #define CMOS_WRITE(val, addr) ({ outb_p((addr),RTC_PORT(0)); outb_p((val),RTC_PORT(1)); })
|
H A D | unaligned.h | 30 #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 D | cacheflush.h | 90 #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 D | linker_environ.c | 130 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/bionic/ |
H A D | dlmalloc.c | 38 intptr_t val = (intptr_t) ptr; local 44 int digit = val & 15; 46 val >>= 4;
|
H A D | arc4random.c | 177 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...] |
/bionic/libc/include/ |
H A D | getopt.h | 60 /* if not NULL, set *flag to val when option found */ 63 int val; member in struct:option
|
/bionic/libc/kernel/common/linux/mfd/ |
H A D | msm-adie-codec.h | 39 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) 40 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) do { ((reg) = ((packed >> 16) & (0xff))); ((mask) = ((packed >> 8) & (0xff))); ((val) = ((packed) & (0xff))); } while (0); 64 u8 val; member in struct:adie_codec_register
|
/bionic/libc/include/netinet/ |
H A D | ip6.h | 274 * 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/include/sys/ |
H A D | atomics.h | 79 int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout);
|