Lines Matching full:head
59 id_pool->head = 0; in sip_svc_id_mgr_create()
91 if (id_pool->head == SIP_SVC_ID_INVALID) { in sip_svc_id_mgr_alloc()
95 id = id_pool->id_list[id_pool->head]; in sip_svc_id_mgr_alloc()
102 if (id_pool->head == id_pool->tail) { in sip_svc_id_mgr_alloc()
103 id_pool->head = SIP_SVC_ID_INVALID; in sip_svc_id_mgr_alloc()
106 id_pool->head++; in sip_svc_id_mgr_alloc()
107 if (id_pool->head == id_pool->size) { in sip_svc_id_mgr_alloc()
108 id_pool->head = 0; in sip_svc_id_mgr_alloc()
140 if (id_pool->head == SIP_SVC_ID_INVALID) { in sip_svc_id_mgr_free()
141 id_pool->head = 0; in sip_svc_id_mgr_free()
148 if (id_pool->head == id_pool->tail) { in sip_svc_id_mgr_free()