/external/kernel-headers/original/asm-x86/ |
D | bitops_32.h | 40 static inline void set_bit(int nr, volatile unsigned long * addr) in set_bit() argument 45 :"Ir" (nr)); in set_bit() 57 static inline void __set_bit(int nr, volatile unsigned long * addr) in __set_bit() argument 62 :"Ir" (nr)); in __set_bit() 75 static inline void clear_bit(int nr, volatile unsigned long * addr) in clear_bit() argument 80 :"Ir" (nr)); in clear_bit() 91 static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) in clear_bit_unlock() argument 94 clear_bit(nr, addr); in clear_bit_unlock() 97 static inline void __clear_bit(int nr, volatile unsigned long * addr) in __clear_bit() argument 102 :"Ir" (nr)); in __clear_bit() [all …]
|
/external/kernel-headers/original/asm-arm/ |
D | bitops.h | 150 extern void _set_bit_le(int nr, volatile unsigned long * p); 151 extern void _clear_bit_le(int nr, volatile unsigned long * p); 152 extern void _change_bit_le(int nr, volatile unsigned long * p); 153 extern int _test_and_set_bit_le(int nr, volatile unsigned long * p); 154 extern int _test_and_clear_bit_le(int nr, volatile unsigned long * p); 155 extern int _test_and_change_bit_le(int nr, volatile unsigned long * p); 164 extern void _set_bit_be(int nr, volatile unsigned long * p); 165 extern void _clear_bit_be(int nr, volatile unsigned long * p); 166 extern void _change_bit_be(int nr, volatile unsigned long * p); 167 extern int _test_and_set_bit_be(int nr, volatile unsigned long * p); [all …]
|
/external/kernel-headers/original/asm-generic/bitops/ |
D | le.h | 7 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) argument 12 #define generic_test_le_bit(nr, addr) test_bit(nr, addr) argument 13 #define generic___set_le_bit(nr, addr) __set_bit(nr, addr) argument 14 #define generic___clear_le_bit(nr, addr) __clear_bit(nr, addr) argument 16 #define generic_test_and_set_le_bit(nr, addr) test_and_set_bit(nr, addr) argument 17 #define generic_test_and_clear_le_bit(nr, addr) test_and_clear_bit(nr, addr) argument 19 #define generic___test_and_set_le_bit(nr, addr) __test_and_set_bit(nr, addr) argument 20 #define generic___test_and_clear_le_bit(nr, addr) __test_and_clear_bit(nr, addr) argument 26 #define generic_test_le_bit(nr, addr) \ argument 27 test_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) [all …]
|
D | non-atomic.h | 6 #define BITOP_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) argument 7 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) argument 18 static inline void __set_bit(int nr, volatile unsigned long *addr) in __set_bit() argument 20 unsigned long mask = BITOP_MASK(nr); in __set_bit() 21 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in __set_bit() 26 static inline void __clear_bit(int nr, volatile unsigned long *addr) in __clear_bit() argument 28 unsigned long mask = BITOP_MASK(nr); in __clear_bit() 29 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in __clear_bit() 43 static inline void __change_bit(int nr, volatile unsigned long *addr) in __change_bit() argument 45 unsigned long mask = BITOP_MASK(nr); in __change_bit() [all …]
|
D | atomic.h | 6 #define BITOP_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) argument 7 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) argument 67 static inline void set_bit(int nr, volatile unsigned long *addr) in set_bit() argument 69 unsigned long mask = BITOP_MASK(nr); in set_bit() 70 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in set_bit() 88 static inline void clear_bit(int nr, volatile unsigned long *addr) in clear_bit() argument 90 unsigned long mask = BITOP_MASK(nr); in clear_bit() 91 unsigned long *p = ((unsigned long *)addr) + BITOP_WORD(nr); in clear_bit() 109 static inline void change_bit(int nr, volatile unsigned long *addr) in change_bit() argument 111 unsigned long mask = BITOP_MASK(nr); in change_bit() [all …]
|
/external/kernel-headers/original/asm-generic/ |
D | ioctl.h | 44 #define _IOC(dir,type,nr,size) \ argument 47 ((nr) << _IOC_NRSHIFT) | \ 58 #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) argument 59 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument 60 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 61 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 62 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument 63 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument 64 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument 67 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) argument [all …]
|
/external/kernel-headers/original/asm-mips/ |
D | ioctl.h | 57 #define _IOC(dir, type, nr, size) \ argument 60 ((nr) << _IOC_NRSHIFT) | \ 71 #define _IO(type, nr) _IOC(_IOC_NONE, (type), (nr), 0) argument 72 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) argument 73 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) argument 74 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) argument 75 #define _IOR_BAD(type, nr, size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) argument 76 #define _IOW_BAD(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), sizeof(size)) argument 77 #define _IOWR_BAD(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), sizeof(size)) argument 81 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) argument [all …]
|
D | bitops.h | 58 static inline void set_bit(unsigned long nr, volatile unsigned long *addr) in set_bit() argument 60 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in set_bit() 61 unsigned short bit = nr & SZLONG_MASK; in set_bit() 105 a += nr >> SZLONG_LOG; in set_bit() 123 static inline void clear_bit(unsigned long nr, volatile unsigned long *addr) in clear_bit() argument 125 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in clear_bit() 126 unsigned short bit = nr & SZLONG_MASK; in clear_bit() 170 a += nr >> SZLONG_LOG; in clear_bit() 186 static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) in clear_bit_unlock() argument 189 clear_bit(nr, addr); in clear_bit_unlock() [all …]
|
/external/mesa3d/src/mesa/tnl_dd/ |
D | t_dd_dmatmp.h | 48 #define ALLOC_ELTS(nr) 0 argument 51 #define INCR_ELTS( nr ) argument 76 static void *TAG(emit_elts)( struct gl_context *ctx, GLuint *elts, GLuint nr, in TAG() 83 for ( i = 0 ; i+1 < nr ; i+=2, elts += 2 ) { in TAG() 88 if (i < nr) { in TAG() 116 GLuint j, nr; in TAG() local 124 for (j = start; j < count; j += nr ) { in TAG() 125 nr = MIN2( currentsz, count - j ); in TAG() 126 TAG(emit_verts)( ctx, j, nr, ALLOC_VERTS(nr) ); in TAG() 145 GLuint j, nr; in TAG() local [all …]
|
D | t_dd_dmatmp2.h | 75 GLuint *elts, GLuint nr ) in TAG() 80 for ( i = 0 ; i+1 < nr ; i+=2, elts += 2 ) { in TAG() 84 if (i < nr) { in TAG() 94 GLuint start, GLuint nr ) in TAG() 99 for ( i = 0 ; i+1 < nr ; i+=2, start += 2 ) { in TAG() 103 if (i < nr) { in TAG() 171 GLuint j, nr; in TAG() local 180 for (j = start; j + 1 < count; j += nr - 1 ) { in TAG() 184 nr = MIN2( dmasz, count - j ); in TAG() 185 dest = ALLOC_ELTS( (nr-1)*2 ); in TAG() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/tnl_dd/ |
D | t_dd_dmatmp.h | 48 #define ALLOC_ELTS(nr) 0 argument 51 #define INCR_ELTS( nr ) argument 76 static void *TAG(emit_elts)( struct gl_context *ctx, GLuint *elts, GLuint nr, in TAG() 83 for ( i = 0 ; i+1 < nr ; i+=2, elts += 2 ) { in TAG() 88 if (i < nr) { in TAG() 116 GLuint j, nr; in TAG() local 124 for (j = start; j < count; j += nr ) { in TAG() 125 nr = MIN2( currentsz, count - j ); in TAG() 126 TAG(emit_verts)( ctx, j, nr, ALLOC_VERTS(nr) ); in TAG() 145 GLuint j, nr; in TAG() local [all …]
|
D | t_dd_dmatmp2.h | 75 GLuint *elts, GLuint nr ) in TAG() 80 for ( i = 0 ; i+1 < nr ; i+=2, elts += 2 ) { in TAG() 84 if (i < nr) { in TAG() 94 GLuint start, GLuint nr ) in TAG() 99 for ( i = 0 ; i+1 < nr ; i+=2, start += 2 ) { in TAG() 103 if (i < nr) { in TAG() 171 GLuint j, nr; in TAG() local 180 for (j = start; j + 1 < count; j += nr - 1 ) { in TAG() 184 nr = MIN2( dmasz, count - j ); in TAG() 185 dest = ALLOC_ELTS( (nr-1)*2 ); in TAG() [all …]
|
/external/mesa3d/src/gallium/auxiliary/indices/ |
D | u_unfilled_indices.c | 30 unsigned nr, in translate_ubyte_ushort() argument 36 for (i = 0; i < nr; i++) in translate_ubyte_ushort() 41 unsigned nr, in translate_memcpy_ushort() argument 44 memcpy(out, in, nr*sizeof(short)); in translate_memcpy_ushort() 48 unsigned nr, in translate_memcpy_uint() argument 51 memcpy(out, in, nr*sizeof(int)); in translate_memcpy_uint() 55 static void generate_linear_ushort( unsigned nr, in generate_linear_ushort() argument 60 for (i = 0; i < nr; i++) in generate_linear_ushort() 64 static void generate_linear_uint( unsigned nr, in generate_linear_uint() argument 69 for (i = 0; i < nr; i++) in generate_linear_uint() [all …]
|
D | u_indices.c | 29 unsigned nr, in translate_memcpy_ushort() argument 32 memcpy(out, in, nr*sizeof(short)); in translate_memcpy_ushort() 36 unsigned nr, in translate_memcpy_uint() argument 39 memcpy(out, in, nr*sizeof(int)); in translate_memcpy_uint() 46 unsigned nr, in u_index_translator() argument 74 *out_nr = nr; in u_index_translator() 83 *out_nr = nr; in u_index_translator() 89 *out_nr = nr; in u_index_translator() 95 *out_nr = (nr - 1) * 2; in u_index_translator() 101 *out_nr = nr * 2; in u_index_translator() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/indices/ |
D | u_unfilled_indices.c | 30 unsigned nr, in translate_ubyte_ushort() argument 36 for (i = 0; i < nr; i++) in translate_ubyte_ushort() 41 unsigned nr, in translate_memcpy_ushort() argument 44 memcpy(out, in, nr*sizeof(short)); in translate_memcpy_ushort() 48 unsigned nr, in translate_memcpy_uint() argument 51 memcpy(out, in, nr*sizeof(int)); in translate_memcpy_uint() 55 static void generate_linear_ushort( unsigned nr, in generate_linear_ushort() argument 60 for (i = 0; i < nr; i++) in generate_linear_ushort() 64 static void generate_linear_uint( unsigned nr, in generate_linear_uint() argument 69 for (i = 0; i < nr; i++) in generate_linear_uint() [all …]
|
D | u_indices.c | 29 unsigned nr, in translate_memcpy_ushort() argument 32 memcpy(out, in, nr*sizeof(short)); in translate_memcpy_ushort() 36 unsigned nr, in translate_memcpy_uint() argument 39 memcpy(out, in, nr*sizeof(int)); in translate_memcpy_uint() 46 unsigned nr, in u_index_translator() argument 74 *out_nr = nr; in u_index_translator() 83 *out_nr = nr; in u_index_translator() 89 *out_nr = nr; in u_index_translator() 95 *out_nr = (nr - 1) * 2; in u_index_translator() 101 *out_nr = nr * 2; in u_index_translator() [all …]
|
/external/tcpdump/ |
D | print-cnfp.c | 85 register const struct nfrec *nr; in cnfp_print() local 115 nr = (const struct nfrec *)&nh[1]; in cnfp_print() 118 nr = (const struct nfrec *)&nh->sequence; in cnfp_print() 124 for (; nrecs-- && (const u_char *)(nr + 1) <= snapend; nr++) { in cnfp_print() 129 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_print() 130 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_print() 131 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_print() 132 EXTRACT_32BITS(&nr->last_time)%1000); in cnfp_print() 137 (EXTRACT_32BITS(&nr->masks) >> 24) & 0xff); in cnfp_print() 139 (EXTRACT_32BITS(&nr->asses) >> 16) & 0xffff); in cnfp_print() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
D | draw_pt_fetch.c | 67 unsigned i, nr = 0, ei = 0; in draw_pt_fetch_prepare() local 91 key.element[nr].type = TRANSLATE_ELEMENT_INSTANCE_ID; in draw_pt_fetch_prepare() 92 key.element[nr].input_format = PIPE_FORMAT_R32_USCALED; in draw_pt_fetch_prepare() 93 key.element[nr].output_format = PIPE_FORMAT_R32_USCALED; in draw_pt_fetch_prepare() 94 key.element[nr].output_offset = dst_offset; in draw_pt_fetch_prepare() 98 key.element[nr].type = TRANSLATE_ELEMENT_NORMAL; in draw_pt_fetch_prepare() 99 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 100 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare() 101 key.element[nr].input_offset = draw->pt.vertex_element[ei].src_offset; in draw_pt_fetch_prepare() 102 key.element[nr].instance_divisor = draw->pt.vertex_element[ei].instance_divisor; in draw_pt_fetch_prepare() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt_fetch.c | 67 unsigned i, nr = 0, ei = 0; in draw_pt_fetch_prepare() local 91 key.element[nr].type = TRANSLATE_ELEMENT_INSTANCE_ID; in draw_pt_fetch_prepare() 92 key.element[nr].input_format = PIPE_FORMAT_R32_USCALED; in draw_pt_fetch_prepare() 93 key.element[nr].output_format = PIPE_FORMAT_R32_USCALED; in draw_pt_fetch_prepare() 94 key.element[nr].output_offset = dst_offset; in draw_pt_fetch_prepare() 98 key.element[nr].type = TRANSLATE_ELEMENT_NORMAL; in draw_pt_fetch_prepare() 99 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 100 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare() 101 key.element[nr].input_offset = draw->pt.vertex_element[ei].src_offset; in draw_pt_fetch_prepare() 102 key.element[nr].instance_divisor = draw->pt.vertex_element[ei].instance_divisor; in draw_pt_fetch_prepare() [all …]
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
D | syscall.h | 18 intptr_t SandboxSyscall(int nr, 49 inline intptr_t SandboxSyscall(int nr, 59 SandboxSyscall(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5) { in SandboxSyscall() argument 60 return SandboxSyscall(nr, in SandboxSyscall() 76 inline intptr_t SandboxSyscall(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5) 80 SandboxSyscall(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5) { in SandboxSyscall() argument 81 return SandboxSyscall(nr, in SandboxSyscall() 91 inline intptr_t SandboxSyscall(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4) 94 inline intptr_t SandboxSyscall(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4) { in SandboxSyscall() argument 95 return SandboxSyscall(nr, p0, p1, p2, p3, p4, 0); in SandboxSyscall() [all …]
|
/external/linux-tools-perf/util/include/linux/ |
D | bitops.h | 21 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) argument 23 static inline void set_bit(int nr, unsigned long *addr) in set_bit() argument 25 addr[nr / BITS_PER_LONG] |= 1UL << (nr % BITS_PER_LONG); in set_bit() 28 static inline void clear_bit(int nr, unsigned long *addr) in clear_bit() argument 30 addr[nr / BITS_PER_LONG] &= ~(1UL << (nr % BITS_PER_LONG)); in clear_bit() 33 static __always_inline int test_bit(unsigned int nr, const unsigned long *addr) in test_bit() argument 35 return ((1UL << (nr % BITS_PER_LONG)) & in test_bit() 36 (((unsigned long *)addr)[nr / BITS_PER_LONG])) != 0; in test_bit()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_prim.h | 40 static INLINE boolean u_validate_pipe_prim( unsigned pipe_prim, unsigned nr ) in u_validate_pipe_prim() argument 46 ok = (nr >= 1); in u_validate_pipe_prim() 49 ok = (nr >= 2); in u_validate_pipe_prim() 53 ok = (nr >= 2); in u_validate_pipe_prim() 56 ok = (nr >= 3); in u_validate_pipe_prim() 61 ok = (nr >= 3); in u_validate_pipe_prim() 64 ok = (nr >= 4); in u_validate_pipe_prim() 67 ok = (nr >= 4); in u_validate_pipe_prim() 78 static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr ) in u_trim_pipe_prim() argument 99 *nr = 0; in u_trim_pipe_prim() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_prim.h | 40 static INLINE boolean u_validate_pipe_prim( unsigned pipe_prim, unsigned nr ) in u_validate_pipe_prim() argument 46 ok = (nr >= 1); in u_validate_pipe_prim() 49 ok = (nr >= 2); in u_validate_pipe_prim() 53 ok = (nr >= 2); in u_validate_pipe_prim() 56 ok = (nr >= 3); in u_validate_pipe_prim() 61 ok = (nr >= 3); in u_validate_pipe_prim() 64 ok = (nr >= 4); in u_validate_pipe_prim() 67 ok = (nr >= 4); in u_validate_pipe_prim() 78 static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr ) in u_trim_pipe_prim() argument 99 *nr = 0; in u_trim_pipe_prim() [all …]
|
/external/kernel-headers/original/linux/ |
D | poll.h | 78 #define FDS_LONGS(nr) (((nr)+FDS_BITPERLONG-1)/FDS_BITPERLONG) argument 79 #define FDS_BYTES(nr) (FDS_LONGS(nr)*sizeof(long)) argument 88 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() argument 90 nr = FDS_BYTES(nr); in get_fd_set() 92 return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0; in get_fd_set() 94 memset(fdset, 0, nr); in get_fd_set() 99 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() argument 102 return __copy_to_user(ufdset, fdset, FDS_BYTES(nr)); in set_fd_set() 107 void zero_fd_set(unsigned long nr, unsigned long *fdset) in zero_fd_set() argument 109 memset(fdset, 0, FDS_BYTES(nr)); in zero_fd_set()
|
/external/e2fsprogs/lib/ext2fs/ |
D | bitops.c | 33 int ext2fs_set_bit(unsigned int nr,void * addr) in ext2fs_set_bit() argument 38 ADDR += nr >> 3; in ext2fs_set_bit() 39 mask = 1 << (nr & 0x07); in ext2fs_set_bit() 45 int ext2fs_clear_bit(unsigned int nr, void * addr) in ext2fs_clear_bit() argument 50 ADDR += nr >> 3; in ext2fs_clear_bit() 51 mask = 1 << (nr & 0x07); in ext2fs_clear_bit() 57 int ext2fs_test_bit(unsigned int nr, const void * addr) in ext2fs_test_bit() argument 62 ADDR += nr >> 3; in ext2fs_test_bit() 63 mask = 1 << (nr & 0x07); in ext2fs_test_bit()
|