Home
last modified time | relevance | path

Searched refs:count (Results 1 – 24 of 24) sorted by relevance

/sys/kern/
Dsemaphore.c25 Semaphore_Init(Semaphore *sema, int count, const char *name) in Semaphore_Init() argument
28 sema->count = count; in Semaphore_Init()
55 if (sema->count > 0) { in Semaphore_Acquire()
56 sema->count -= 1; in Semaphore_Acquire()
77 sema->count += 1; in Semaphore_Release()
92 if (sema->count > 0) { in Semaphore_TryAcquire()
93 sema->count -= 1; in Semaphore_TryAcquire()
112 kprintf("%-36s %8d\n", sema->name, sema->count); in Debug_Semaphores()
Dspinlock.c47 lock->count = 0; in Spinlock_Init()
94 lock->count++; in Spinlock_Lock()
142 lock->lock, lock->cpu, lock->count, in Debug_Spinlocks()
/sys/include/
Dsemaphore.h16 int count; member
21 void Semaphore_Init(Semaphore *sema, int count, const char *name);
Dspinlock.h19 uint64_t count; member
/sys/amd64/
Dmp.c30 volatile int count; member
160 __sync_add_and_fetch(&frame->count, 1); in MP_CrossCallTrap()
176 frame.count = 1; in MP_CrossCall()
191 while (frame.count < lastCPU) { in MP_CrossCall()
/lib/liblwip/src/core/snmp/
Dmsg_in.c126 msg_ps->invb.count = 0; in snmp_error_response()
257 (msg_ps->vb_idx < msg_ps->invb.count)) in snmp_msg_get_event()
380 (msg_ps->vb_idx == msg_ps->invb.count)) in snmp_msg_get_event()
446 (msg_ps->vb_idx < msg_ps->invb.count)) in snmp_msg_getnext_event()
525 (msg_ps->vb_idx == msg_ps->invb.count)) in snmp_msg_getnext_event()
635 (msg_ps->vb_idx < msg_ps->invb.count)) in snmp_msg_set_event()
722 (msg_ps->vb_idx == msg_ps->invb.count)) in snmp_msg_set_event()
730 (msg_ps->vb_idx < msg_ps->invb.count)) in snmp_msg_set_event()
776 (msg_ps->vb_idx == msg_ps->invb.count)) in snmp_msg_set_event()
784 msg_ps->invb.count = 0; in snmp_msg_set_event()
[all …]
Dmib_structs.c193 lrn->count = 0; in snmp_mib_lrn_alloc()
322 rn->count += 1; in snmp_mib_node_insert()
365 if (r->count > 1) in snmp_mib_node_find()
404 rn->count -= 1; in snmp_mib_node_delete()
432 if (rn->count == 0) in snmp_mib_node_delete()
652 if ((lrn->count == 0) || (lrn->head == NULL)) in empty_table()
Dmib2.c1073 snmp_mib_node_insert(&iflist_root, iflist_root.count + 1, &if_node); in snmp_inc_iflist()
1082 if(iflist_root.count == 0) iftable.maxlength = 0; in snmp_dec_iflist()
1219 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_arpidx_tree()
1225 if(arptree_root.count == 0) at.maxlength = 0; in snmp_delete_arpidx_tree()
1226 if(ipntomtree_root.count == 0) ipntomtable.maxlength = 0; in snmp_delete_arpidx_tree()
1421 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_ipaddridx_tree()
1426 if (ipaddrtree_root.count == 0) ipaddrtable.maxlength = 0; in snmp_delete_ipaddridx_tree()
1583 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_iprteidx_tree()
1589 if (iprtetree_root.count == 0) iprtetable.maxlength = 0; in snmp_delete_iprteidx_tree()
1911 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_udpidx_tree()
[all …]
Dmsg_out.c285 trap_msg.outvb.count = 0; in snmp_coldstart_trap()
298 trap_msg.outvb.count = 0; in snmp_authfail_trap()
/lib/liblwip/src/arch/
Dsys_arch.c102 static struct sys_sem *sys_sem_new_internal(u8_t count);
350 sys_sem_new_internal(u8_t count) in sys_sem_new_internal() argument
356 sem->c = count; in sys_sem_new_internal()
364 sys_sem_new(struct sys_sem **sem, u8_t count) in sys_sem_new() argument
367 *sem = sys_sem_new_internal(count); in sys_sem_new()
/lib/liblwip/test/unit/tcp/
Dtest_tcp_oos.c490 int count, expected_datalen; in START_TEST() local
502 count = tcp_oos_count(pcb); in START_TEST()
503 EXPECT_OOSEQ(count == k+1); in START_TEST()
579 int count; in START_TEST() local
592 count = tcp_oos_pbuf_count(pcb); in START_TEST()
593 EXPECT_OOSEQ(count == i); in START_TEST()
658 int count; in START_TEST() local
671 count = tcp_oos_pbuf_count(pcb); in START_TEST()
672 EXPECT_OOSEQ(count == i); in START_TEST()
/include/
Dstring.h19 char *strncat(char *s, const char *append, size_t count);
Dpthread.h32 unsigned count);
/lib/liblwip/src/include/lwip/
Dmem.h92 void *mem_calloc(mem_size_t count, mem_size_t size);
Dsnmp_msg.h117 u8_t count; member
Dsys.h139 err_t sys_sem_new(sys_sem_t *sem, u8_t count);
Dsnmp_structs.h187 u16_t count; member
/lib/liblwip/src/core/
Dmem.c646 void *mem_calloc(mem_size_t count, mem_size_t size) in mem_calloc() argument
651 p = mem_malloc(count * size); in mem_calloc()
654 memset(p, 0, count * size); in mem_calloc()
Dpbuf.c622 u8_t count; in pbuf_free() local
639 count = 0; in pbuf_free()
680 count++; in pbuf_free()
693 return count; in pbuf_free()
/sys/fs/o2fs/
Do2fs.c648 int count = 0; in O2FS_ReadDir() local
657 return count; in O2FS_ReadDir()
683 count++; in O2FS_ReadDir()
686 return count; in O2FS_ReadDir()
/lib/liblwip/src/netif/ppp/
Dppp.c1520 int count; in pppInputThread() local
1524 count = sio_read(pcrx->fd, pcrx->rxbuf, PPPOS_RX_BUFSIZE); in pppInputThread()
1525 if(count > 0) { in pppInputThread()
1526 pppInProc(pcrx, pcrx->rxbuf, count); in pppInputThread()
/lib/libc/posix/
Dpthread.c185 unsigned count) in pthread_barrier_init() argument
/lib/liblwip/doc/
Dsys_arch.txt48 - err_t sys_sem_new(sys_sem_t *sem, u8_t count)
52 The "count" argument specifies the initial state of the semaphore (which is
Drawapi.txt502 must *not* be reused by the application unless their ref-count is 1.