Lines Matching refs:lst

40     auth_list *lst = NULL;  in alcs_rec_auth_select()  local
61 lst = get_list(ctx); in alcs_rec_auth_select()
77 list_for_each_entry_safe(node, next, &lst->lst_svr, lst, in alcs_rec_auth_select()
92 list_for_each_entry_safe(gnode, gnext, &lst->lst_svr_group, lst, in alcs_rec_auth_select()
130 auth_list *lst = get_list(ctx); in is_legal_key() local
134 if (lst) { in is_legal_key()
136 HAL_MutexLock(lst->list_mutex); in is_legal_key()
138 if (lst->revocation) { in is_legal_key()
139 int len = strlen(lst->revocation); in is_legal_key()
142 if (strncmp(keyseq, lst->revocation + i, seqlen) == 0) { in is_legal_key()
143 HAL_MutexUnlock(lst->list_mutex); in is_legal_key()
151 if (list_empty(&lst->lst_svr)) { in is_legal_key()
158 list_for_each_entry_safe(node, next, &lst->lst_svr, lst, in is_legal_key()
166 HAL_MutexUnlock(lst->list_mutex); in is_legal_key()
170 list_for_each_entry_safe(gnode, gnext, &lst->lst_svr_group, lst, in is_legal_key()
178 HAL_MutexUnlock(lst->list_mutex); in is_legal_key()
188 HAL_MutexUnlock(lst->list_mutex); in is_legal_key()
312 list_add_tail(&session->lst, svr_head); in alcs_rec_auth()
354 auth_list *lst = get_list(ctx); in alcs_remove_low_priority_key() local
357 HAL_MutexLock(lst->list_mutex); in alcs_remove_low_priority_key()
359 list_for_each_entry_safe(node, next, &lst->lst_svr, lst, svr_key_item) in alcs_remove_low_priority_key()
363 list_del(&node->lst); in alcs_remove_low_priority_key()
365 --lst->svr_count; in alcs_remove_low_priority_key()
368 HAL_MutexUnlock(lst->list_mutex); in alcs_remove_low_priority_key()
377 auth_list *lst = get_list(ctx); in add_svr_key() local
381 if (!lst || lst->svr_count >= KEY_MAXCOUNT || in add_svr_key()
387 HAL_MutexLock(lst->list_mutex); in add_svr_key()
388 list_for_each_entry_safe(node, next, &lst->lst_svr, lst, svr_key_item) in add_svr_key()
392 HAL_MutexUnlock(lst->list_mutex); in add_svr_key()
400 HAL_MutexUnlock(lst->list_mutex); in add_svr_key()
406 HAL_MutexUnlock(lst->list_mutex); in add_svr_key()
416 list_add_tail(&item->lst, &lst->lst_svr); in add_svr_key()
417 ++lst->svr_count; in add_svr_key()
418 HAL_MutexUnlock(lst->list_mutex); in add_svr_key()
432 auth_list *lst = get_list(ctx); in alcs_remove_svr_key() local
435 HAL_MutexLock(lst->list_mutex); in alcs_remove_svr_key()
437 list_for_each_entry_safe(node, next, &lst->lst_svr, lst, svr_key_item) in alcs_remove_svr_key()
441 list_del(&node->lst); in alcs_remove_svr_key()
443 --lst->svr_count; in alcs_remove_svr_key()
447 HAL_MutexUnlock(lst->list_mutex); in alcs_remove_svr_key()
454 auth_list *lst = get_list(ctx); in alcs_set_revocation() local
457 HAL_MutexLock(lst->list_mutex); in alcs_set_revocation()
460 if (lst->revocation) { in alcs_set_revocation()
461 coap_free(lst->revocation); in alcs_set_revocation()
462 lst->revocation = NULL; in alcs_set_revocation()
466 lst->revocation = (char *)coap_malloc(len + 1); in alcs_set_revocation()
467 strcpy(lst->revocation, seqlist); in alcs_set_revocation()
469 HAL_MutexUnlock(lst->list_mutex); in alcs_set_revocation()
518 list_for_each_entry_safe(node, next, &secure_resource_cb_head, lst, in get_resource_by_path()
604 list_for_each_entry_safe(node, next_node, &secure_resource_cb_head, lst, in alcs_resource_register_secure()
634 list_add_tail(&item->lst, &secure_resource_cb_head); in alcs_resource_register_secure()
647 list_for_each_entry(del_item, &secure_resource_cb_head, lst, in alcs_resource_cb_deinit()
650 list_del(&del_item->lst); in alcs_resource_cb_deinit()
656 list_entry(&secure_resource_cb_head, secure_resource_cb_item, lst); in alcs_resource_cb_deinit()
667 list_for_each_entry_safe(del_item, next_item, &auth_list_ctx->lst_svr, lst, in alcs_auth_list_deinit()
670 list_del(&del_item->lst); in alcs_auth_list_deinit()
682 &dev_lst->lst_svr_sessions, lst, session_item) in alcs_auth_list_deinit()
684 list_del(&del_session_item->lst); in alcs_auth_list_deinit()
707 list_for_each_entry_safe(node, next, ctl_head, lst, session_item) in alcs_rec_heart_beat()
791 list_for_each_entry_safe(node, next, head, lst, session_item) in on_svr_auth_timer()