/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/ |
H A D | dbus-resources.c | 58 long size_value; /**< current size counter value */ 59 long unix_fd_value; /**< current unix fd counter value */ 62 long peak_size_value; /**< largest ever size counter value */ 63 long peak_unix_fd_value; /**< largest ever unix fd counter value */ 85 * @returns new counter or #NULL on failure 90 DBusCounter *counter; local 92 counter = dbus_new0 (DBusCounter, 1); 93 if (counter == NULL) 96 counter->refcount = 1; 98 return counter; 108 _dbus_counter_ref(DBusCounter *counter) argument 124 _dbus_counter_unref(DBusCounter *counter) argument 148 _dbus_counter_adjust_size(DBusCounter *counter, long delta) argument 182 _dbus_counter_notify(DBusCounter *counter) argument 202 _dbus_counter_adjust_unix_fd(DBusCounter *counter, long delta) argument 234 _dbus_counter_get_size_value(DBusCounter *counter) argument 246 _dbus_counter_get_unix_fd_value(DBusCounter *counter) argument 263 _dbus_counter_set_notify(DBusCounter *counter, long size_guard_value, long unix_fd_guard_value, DBusCounterNotifyFunction function, void *user_data) argument 278 _dbus_counter_get_peak_size_value(DBusCounter *counter) argument 284 _dbus_counter_get_peak_unix_fd_value(DBusCounter *counter) argument [all...] |
H A D | dbus-resources.h | 34 typedef void (* DBusCounterNotifyFunction) (DBusCounter *counter, 38 DBusCounter* _dbus_counter_ref (DBusCounter *counter); 39 void _dbus_counter_unref (DBusCounter *counter); 41 void _dbus_counter_adjust_size (DBusCounter *counter, 43 void _dbus_counter_adjust_unix_fd (DBusCounter *counter, 45 void _dbus_counter_notify (DBusCounter *counter); 46 long _dbus_counter_get_size_value (DBusCounter *counter); 47 long _dbus_counter_get_unix_fd_value (DBusCounter *counter); 49 void _dbus_counter_set_notify (DBusCounter *counter, 56 long _dbus_counter_get_peak_size_value (DBusCounter *counter); [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/php_db4/samples/ |
H A D | simple_counter.php | 9 // Get the current value of "counter" 10 $counter = $db->get("counter"); variable 11 print "Counter Value is $counter\n"; 13 // Increment $counter and put() it. 14 $db->put("counter", $counter+1);
|
H A D | transactional_counter.php | 15 $counter = $db->get("counter"); variable 22 print "Current value of counter is $counter\n"; 24 // Increment and reset counter, protect it with $txn 25 $db->put("counter", $counter+1, $txn);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/ |
H A D | res_counter.c | 17 void res_counter_init(struct res_counter *counter, struct res_counter *parent) argument 19 spin_lock_init(&counter->lock); 20 counter->limit = RESOURCE_MAX; 21 counter->soft_limit = RESOURCE_MAX; 22 counter->parent = parent; 25 int res_counter_charge_locked(struct res_counter *counter, unsigned long val) argument 27 if (counter->usage + val > counter->limit) { 28 counter->failcnt++; 32 counter 38 res_counter_charge(struct res_counter *counter, unsigned long val, struct res_counter **limit_fail_at) argument 69 res_counter_uncharge_locked(struct res_counter *counter, unsigned long val) argument 77 res_counter_uncharge(struct res_counter *counter, unsigned long val) argument 93 res_counter_member(struct res_counter *counter, int member) argument 112 res_counter_read(struct res_counter *counter, int member, const char __user *userbuf, size_t nbytes, loff_t *pos, int (*read_strategy)(unsigned long long val, char *st_buf)) argument 129 res_counter_read_u64(struct res_counter *counter, int member) argument 156 res_counter_write(struct res_counter *counter, int member, const char *buf, write_strategy_fn write_strategy) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/comedi/drivers/ |
H A D | ni_tiocmd.c | 58 static void ni_tio_configure_dma(struct ni_gpct *counter, short enable, argument 61 struct ni_gpct_device *counter_dev = counter->counter_dev; 71 ni_tio_set_bits(counter, 72 NITIO_Gi_Input_Select_Reg(counter->counter_index), 90 ni_tio_set_bits(counter, 91 NITIO_Gi_DMA_Config_Reg(counter-> 106 struct ni_gpct *counter = s->private; local 108 BUG_ON(counter == NULL); 112 spin_lock_irqsave(&counter->lock, flags); 113 if (counter 126 ni_tio_input_cmd(struct ni_gpct *counter, struct comedi_async *async) argument 174 ni_tio_output_cmd(struct ni_gpct *counter, struct comedi_async *async) argument 187 ni_tio_cmd_setup(struct ni_gpct *counter, struct comedi_async *async) argument 216 ni_tio_cmd(struct ni_gpct *counter, struct comedi_async *async) argument 241 ni_tio_cmdtest(struct ni_gpct *counter, struct comedi_cmd *cmd) argument 346 ni_tio_cancel(struct ni_gpct *counter) argument 368 should_ack_gate(struct ni_gpct *counter) argument 393 ni_tio_acknowledge_and_confirm(struct ni_gpct *counter, int *gate_error, int *tc_error, int *perm_stale_data, int *stale_data) argument 463 ni_tio_handle_interrupt(struct ni_gpct *counter, struct comedi_subdevice *s) argument 510 ni_tio_set_mite_channel(struct ni_gpct *counter, struct mite_channel *mite_chan) argument [all...] |
H A D | ni_tio.c | 37 originally based on the counter code from ni_660x.c and 53 static uint64_t ni_tio_clock_period_ps(const struct ni_gpct *counter, 55 static unsigned ni_tio_generic_clock_src_select(const struct ni_gpct *counter); 298 counter, 305 (struct ni_gpct *counter, 364 static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter) argument 366 write_register(counter, Gi_Reset_Bit(counter->counter_index), 367 NITIO_Gxx_Joint_Reset_Reg(counter->counter_index)); 370 void ni_tio_init_counter(struct ni_gpct *counter) argument 294 ni_gpct_device_construct(struct comedi_device *dev, void (*write_register) (struct ni_gpct * counter, unsigned bits, enum ni_gpct_register reg), unsigned (*read_register) (struct ni_gpct *counter, enum ni_gpct_register reg), enum ni_gpct_variant variant, unsigned num_counters) argument 425 ni_tio_counter_status(struct ni_gpct *counter) argument 439 ni_tio_set_sync_mode(struct ni_gpct *counter, int force_alt_sync) argument 477 ni_tio_set_counter_mode(struct ni_gpct *counter, unsigned mode) argument 544 ni_tio_arm(struct ni_gpct *counter, int arm, unsigned start_trigger) argument 717 ni_tio_set_source_subselect(struct ni_gpct *counter, unsigned int clock_source) argument 746 ni_tio_set_clock_src(struct ni_gpct *counter, unsigned int clock_source, unsigned int period_ns) argument 806 ni_tio_clock_src_modifiers(const struct ni_gpct *counter) argument 827 ni_m_series_clock_src_select(const struct ni_gpct *counter) argument 895 ni_660x_clock_src_select(const struct ni_gpct *counter) argument 952 ni_tio_generic_clock_src_select(const struct ni_gpct *counter) argument 969 ni_tio_clock_period_ps(const struct ni_gpct *counter, unsigned generic_clock_source) argument 1009 ni_tio_get_clock_src(struct ni_gpct *counter, unsigned int *clock_source, unsigned int *period_ns) argument 1021 ni_tio_set_first_gate_modifiers(struct ni_gpct *counter, unsigned int gate_source) argument 1037 ni_660x_set_first_gate(struct ni_gpct *counter, unsigned int gate_source) argument 1085 ni_m_series_set_first_gate(struct ni_gpct *counter, unsigned int gate_source) argument 1134 ni_660x_set_second_gate(struct ni_gpct *counter, unsigned int gate_source) argument 1193 ni_m_series_set_second_gate(struct ni_gpct *counter, unsigned int gate_source) argument 1219 ni_tio_set_gate_src(struct ni_gpct *counter, unsigned gate_index, unsigned int gate_source) argument 1289 ni_tio_set_other_src(struct ni_gpct *counter, unsigned index, unsigned int source) argument 1486 ni_tio_get_gate_src(struct ni_gpct *counter, unsigned gate_index, unsigned int *gate_source) argument 1576 ni_tio_insn_config(struct ni_gpct *counter, struct comedi_insn *insn, unsigned int *data) argument 1622 ni_tio_rinsn(struct ni_gpct *counter, struct comedi_insn *insn, unsigned int *data) argument 1677 ni_tio_next_load_register(struct ni_gpct *counter) argument 1689 ni_tio_winsn(struct ni_gpct *counter, struct comedi_insn *insn, unsigned int *data) argument [all...] |
H A D | ni_tio.h | 3 Header file for NI general purpose counter support code (ni_tio.c) 123 void (*write_register) (struct ni_gpct * counter, unsigned bits, 125 unsigned (*read_register) (struct ni_gpct * counter, 138 counter, unsigned bits, 143 counter, 150 extern void ni_tio_init_counter(struct ni_gpct *counter); 151 extern int ni_tio_rinsn(struct ni_gpct *counter, 153 extern int ni_tio_insn_config(struct ni_gpct *counter, 155 extern int ni_tio_winsn(struct ni_gpct *counter, 157 extern int ni_tio_cmd(struct ni_gpct *counter, struc [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/include/asm/ |
H A D | atomic.h | 32 #define atomic_read(v) (*(volatile int *)&(v)->counter) 41 #define atomic_set(v, i) ((v)->counter = (i)) 62 : "=&r" (temp), "=m" (v->counter) 63 : "Ir" (i), "m" (v->counter)); 77 : "=&r" (temp), "=m" (v->counter) 78 : "Ir" (i), "m" (v->counter)); 83 v->counter += i; 107 : "=&r" (temp), "=m" (v->counter) 108 : "Ir" (i), "m" (v->counter)); 122 : "=&r" (temp), "=m" (v->counter) [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/include/asm/ |
H A D | atomic64_64.h | 21 return (*(volatile long *)&(v)->counter); 33 v->counter = i; 46 : "=m" (v->counter) 47 : "er" (i), "m" (v->counter)); 60 : "=m" (v->counter) 61 : "er" (i), "m" (v->counter)); 78 : "=m" (v->counter), "=qm" (c) 79 : "er" (i), "m" (v->counter) : "memory"); 92 : "=m" (v->counter) 93 : "m" (v->counter)); [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/aes/ |
H A D | aes_ctr.c | 62 /* NOTE: the IV/counter CTR mode is big-endian. The rest of the AES code 65 /* increment counter (128-bit int) by 1 */ 66 static void AES_ctr128_inc(unsigned char *counter) { argument 69 /* Grab bottom dword of counter and increment */ 70 c = GETU32(counter + 12); 72 PUTU32(counter + 12, c); 78 /* Grab 1st dword of counter and increment */ 79 c = GETU32(counter + 8); 81 PUTU32(counter + 8, c); 87 /* Grab 2nd dword of counter an [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/camellia/ |
H A D | cmll_ctr.c | 62 /* NOTE: the IV/counter CTR mode is big-endian. The rest of the Camellia code 64 /* increment counter (128-bit int) by 1 */ 65 static void Camellia_ctr128_inc(unsigned char *counter) argument 69 /* Grab bottom dword of counter and increment */ 70 c = GETU32(counter + 12); 72 PUTU32(counter + 12, c); 78 /* Grab 1st dword of counter and increment */ 79 c = GETU32(counter + 8); 81 PUTU32(counter + 8, c); 87 /* Grab 2nd dword of counter an [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sh/include/asm/ |
H A D | atomic-llsc.h | 19 : "r" (i), "r" (&v->counter) 33 : "r" (i), "r" (&v->counter) 56 : "r" (i), "r" (&v->counter) 73 : "r" (i), "r" (&v->counter) 89 : "r" (~mask), "r" (&v->counter) 103 : "r" (mask), "r" (&v->counter)
|
H A D | atomic-irq.h | 14 v->counter += i; 23 v->counter -= i; 32 temp = v->counter; 34 v->counter = temp; 45 temp = v->counter; 47 v->counter = temp; 58 v->counter &= ~mask; 67 v->counter |= mask;
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/include/ |
H A D | iatomic.h | 18 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1384 29 #define atomic_read(v) ((v)->counter) 39 #define atomic_set(v,i) (((v)->counter) = (i)) 53 :"=m" (v->counter) 54 :"ir" (i), "m" (v->counter)); 69 :"=m" (v->counter) 70 :"ir" (i), "m" (v->counter)); 89 :"=m" (v->counter), "=qm" (c) 90 :"ir" (i), "m" (v->counter) : "memory"); 105 :"=m" (v->counter) 231 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1385 393 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1386 499 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1387 687 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1388 927 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1389 1015 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1390 1086 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1391 1111 typedef struct { volatile int counter; } atomic_t; member in struct:__anon1392 [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/parisc/include/asm/ |
H A D | spinlock_types.h | 16 volatile int counter; member in struct:__anon9882
|
H A D | spinlock.h | 63 * In the PA-RISC implementation, we have a spinlock and a counter. 64 * Readers use the lock to serialise their access to the counter (which 77 rw->counter++; 89 rw->counter--; 102 rw->counter++; 110 if (rw->counter < 0) 114 while (arch_spin_is_locked(&rw->lock) && rw->counter >= 0) 129 if (rw->counter != 0) { 133 while (rw->counter != 0) 139 rw->counter [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/include/asm/ |
H A D | atomic.h | 22 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter)); 29 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i)); 42 : "=&r" (t), "+m" (v->counter) 43 : "r" (a), "r" (&v->counter) 60 : "r" (a), "r" (&v->counter) 78 : "=&r" (t), "+m" (v->counter) 79 : "r" (a), "r" (&v->counter) 96 : "r" (a), "r" (&v->counter) 112 : "=&r" (t), "+m" (v->counter) 113 : "r" (&v->counter) [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/tools/perf/ |
H A D | builtin-stat.c | 12 Performance counter stats for '/home/mingo/hackbench': 144 #define MATCH_EVENT(t, c, counter) \ 145 (attrs[counter].type == PERF_TYPE_##t && \ 146 attrs[counter].config == PERF_COUNT_##c) 149 "Error: counter %d, sys_perf_event_open() syscall returned with %d (%s)\n" 151 static int create_perf_stat_counter(int counter) argument 153 struct perf_event_attr *attr = attrs + counter; 165 fd[cpu][counter][0] = sys_perf_event_open(attr, 167 if (fd[cpu][counter][0] < 0) 168 pr_debug(ERR_PERF_OPEN, counter, 197 nsec_counter(int counter) argument 209 read_counter(int counter) argument 278 int counter, ncreated = 0; local 371 print_noise(int counter, double avg) argument 380 nsec_printout(int counter, double avg) argument 392 abs_printout(int counter, double avg) argument 430 print_counter(int counter) argument 463 int i, counter; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/h8300/include/asm/ |
H A D | atomic.h | 13 #define atomic_read(v) (*(volatile int *)&(v)->counter) 14 #define atomic_set(v, i) (((v)->counter) = i) 24 ret = v->counter += i; 37 ret = v->counter -= i; 50 v->counter++; 51 ret = v->counter; 73 --v->counter; 74 ret = v->counter; 86 --v->counter; 87 ret = v->counter; [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/microblaze/include/asm/ |
H A D | atomic.h | 16 res = v->counter - 1; 18 v->counter = res;
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/avr32/include/asm/ |
H A D | atomic.h | 22 #define atomic_read(v) (*(volatile int *)&(v)->counter) 23 #define atomic_set(v, i) (((v)->counter) = i) 43 : "=&r"(result), "=o"(v->counter) 44 : "m"(v->counter), "rKs21"(i) 71 : "=&r"(result), "=o"(v->counter) 72 : "m"(v->counter), "r"(i) 103 : "=&r"(tmp), "=&r"(result), "=o"(v->counter) 104 : "m"(v->counter), "rKs21"(a), "rKs21"(u), "1"(result) 139 : "=&r"(tmp), "=&r"(result), "=o"(v->counter) 140 : "m"(v->counter), " [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/testrootfs/ |
H A D | init.c | 15 static volatile unsigned long long counter ; variable 26 counter = 0; 37 counter ++ ; 38 printf("Counter %llu\n", counter ); 39 write( pfd[1], (void *) &counter, sizeof(counter) ); 48 for(counter = i = 0; i < n; i ++ ) 53 counter += cnt ; 58 counter / n, (int) (counter / [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/include/asm/ |
H A D | atomic.h | 27 #define atomic_read(v) (*(volatile int *)&(v)->counter) 28 #define atomic_set(v,i) (((v)->counter) = (i)) 48 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) 49 : "r" (&v->counter), "Ir" (i) 66 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) 67 : "r" (&v->counter), "Ir" (i) 86 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) 87 : "r" (&v->counter), "Ir" (i) 104 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) 105 : "r" (&v->counter), "I 240 u64 __aligned(8) counter; member in struct:__anon7846 [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/blackfin/include/asm/ |
H A D | atomic.h | 23 #define atomic_set(v, i) (((v)->counter) = i) 25 #define atomic_read(v) __raw_uncached_fetch_asm(&(v)->counter) 41 __raw_atomic_update_asm(&v->counter, i); 46 __raw_atomic_update_asm(&v->counter, -i); 51 return __raw_atomic_update_asm(&v->counter, i); 56 return __raw_atomic_update_asm(&v->counter, -i); 61 __raw_atomic_update_asm(&v->counter, 1); 66 __raw_atomic_update_asm(&v->counter, -1); 71 __raw_atomic_clear_asm(&v->counter, mask); 76 __raw_atomic_set_asm(&v->counter, mas [all...] |