Searched refs:count (Results 1 - 25 of 70) sorted by relevance

123

/bionic/libc/bionic/
H A Dsched_cpualloc.c32 cpu_set_t* __sched_cpualloc(size_t count) argument
34 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count));
H A Dsched_cpucount.c34 int count = 0; local
37 count += __builtin_popcount(set->__bits[nn]);
39 return count;
H A Dstrtotimeval.c43 int count; local
49 count = 0;
52 if ( ++count < 7 )
57 for ( ; count < 6; count++ )
H A Dcpuacct.c37 int count; local
43 count = snprintf(buf, sizeof(buf), "/acct/uid/%d/tasks", uid);
47 buf[count - sizeof("tasks")] = 0;
52 buf[count - sizeof("tasks")] = '/';
H A Dsemaphore.c71 /* convert a value into the corresponding sem->count bit pattern */
74 /* convert a sem->count bit pattern into the corresponding signed value */
77 /* the value +1 as a sem->count bit-pattern. */
80 /* the value -1 as a sem->count bit-pattern. */
87 #define SEM_GET_SHARED(sem) ((sem)->count & SEMCOUNT_SHARED_MASK)
103 sem->count = SEMCOUNT_FROM_VALUE(value);
105 sem->count |= SEMCOUNT_SHARED_MASK;
113 int count; local
119 count = SEMCOUNT_TO_VALUE(sem->count);
[all...]
H A Dsystem_properties_compat.c47 unsigned volatile count; member in struct:prop_area_compat
72 unsigned count = pa->count; local
82 while(count--) {
124 for (i = 0; i < pa->count; i++) {
H A Dlibc_init_common.cpp150 int count = 0; local
151 while (fini_array[count] != NULL) {
152 ++count;
156 while (count > 0) {
157 void (*func)() = (void (*)()) fini_array[--count];
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dfwrite.c49 * Write `count' objects (each size `size') from memory to the given file.
53 fwrite(const void * __restrict buf, size_t size, size_t count, FILE * __restrict fp) argument
60 * ANSI and SUSv2 require a return value of 0 if size or count are 0.
62 if ((count == 0) || (size == 0))
67 * at least one of {count, size} is at least 2^16, since if both
71 if (((count | size) > 0xFFFF) &&
72 (count > SIZE_MAX / size)) {
78 n = count * size;
93 count = (n - uio.uio_resid) / size;
95 return (count);
[all...]
/bionic/libc/kernel/arch-arm/asm/
H A Dsemaphore.h30 atomic_t count; member in struct:semaphore
35 #define __SEMAPHORE_INIT(name, cnt) { .count = ATOMIC_INIT(cnt), .wait = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait), }
36 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
/bionic/libc/kernel/common/linux/netfilter/
H A Dxt_multiport.h34 u_int8_t count; member in struct:xt_multiport
41 u_int8_t count; member in struct:xt_multiport_v1
H A Dxt_connbytes.h40 } count; member in struct:xt_connbytes_info
H A Dxt_statistic.h46 u_int32_t count; member in struct:xt_statistic_info::__anon410::__anon412
/bionic/libc/include/sys/
H A Dsendfile.h36 extern ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
H A Dsha1.h20 uint32_t count[2]; member in struct:__anon80
H A Datomics.h80 int __futex_wake(volatile void *ftx, int count);
/bionic/libc/kernel/common/linux/
H A Dkeychord.h27 __u16 count; member in struct:input_keychord
H A Dpercpu_counter.h29 s64 count; member in struct:percpu_counter
H A Dmutex.h29 atomic_t count; member in struct:mutex
44 #define __MUTEX_INITIALIZER(lockname) { .count = ATOMIC_INIT(1) , .wait_lock = SPIN_LOCK_UNLOCKED , .wait_list = LIST_HEAD_INIT(lockname.wait_list) __DEBUG_MUTEX_INITIALIZER(lockname) __DEP_MAP_MUTEX_INITIALIZER(lockname) }
H A Dproc_fs.h34 int count, int *eof, void *data);
36 unsigned long count, void *data);
60 atomic_t count; member in struct:proc_dir_entry
/bionic/libc/netbsd/net/
H A Dgetservent.c56 int nn,count; local
71 count = q[0]; /* get aliascount */
74 total += (count+1)*sizeof(char*);
75 for (nn = 0; nn < count; nn++) {
88 p2 += (count+1)*sizeof(char*);
106 for (nn = 0; nn < count; nn++) {
/bionic/libc/include/
H A Dsemaphore.h36 volatile unsigned int count; member in struct:__anon42
/bionic/libc/kernel/arch-x86/asm/
H A Dio_32.h31 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
/bionic/libc/kernel/common/linux/nfsd/
H A Dxdr.h44 __u32 count; member in struct:nfsd_readargs
101 __u32 count; member in struct:nfsd_readdirargs
121 unsigned long count; member in struct:nfsd_readres
126 int count; member in struct:nfsd_readdirres
/bionic/libc/private/
H A Dbionic_futex.h37 extern int __futex_wake(volatile void *ftx, int count);
/bionic/libc/stdio/
H A Dfread.c48 fread(void *buf, size_t size, size_t count, FILE *fp) argument
56 * The ANSI standard requires a return value of 0 for a count
60 if ((resid = count * size) == 0)
151 return (count);
174 return (count);

Completed in 596 milliseconds

123