Searched refs:lle (Results 1 – 4 of 4) sorted by relevance
| /xnu-8019.80.24/bsd/net/ |
| H A D | if_llatbl.c | 92 static void htable_unlink_entry(struct llentry *lle); 93 static void htable_link_entry(struct lltable *llt, struct llentry *lle); 155 struct llentry *lle, *next; in htable_foreach_lle() local 161 LIST_FOREACH_SAFE(lle, &llt->lle_head[i], lle_next, next) { in htable_foreach_lle() 162 error = f(llt, lle, farg); in htable_foreach_lle() 173 htable_link_entry(struct lltable *llt, struct llentry *lle) in htable_link_entry() argument 178 if ((lle->la_flags & LLE_LINKED) != 0) { in htable_link_entry() 184 hashidx = llt->llt_hash(lle, llt->llt_hsize); in htable_link_entry() 187 lle->lle_tbl = llt; in htable_link_entry() 188 lle->lle_head = lleh; in htable_link_entry() [all …]
|
| H A D | if_llatbl.h | 129 #define LLE_WLOCK(lle) lck_rw_lock_exclusive(&(lle)->lle_lock) argument 130 #define LLE_RLOCK(lle) lck_rw_lock_shared(&(lle)->lle_lock) argument 131 #define LLE_WUNLOCK(lle) lck_rw_done(&(lle)->lle_lock) argument 132 #define LLE_RUNLOCK(lle) lck_rw_done(&(lle)->lle_lock) argument 133 #define LLE_DOWNGRADE(lle) lck_rw_lock_exclusive_to_shared(&(lle)->lle_lock) argument 134 #define LLE_TRY_UPGRADE(lle) lck_rw_lock_shared_to_exclusive(&(lle)->lle_lock) argument 135 #define LLE_LOCK_INIT(lle) lck_rw_init(&(lle)->lle_lock, &lle_lock_grp, &lle_lock_attr) argument 136 #define LLE_LOCK_DESTROY(lle) lck_rw_destroy(&(lle)->lle_lock, &lle_lock_grp) argument 137 #define LLE_WLOCK_ASSERT(lle) LCK_RW_ASSERT(&(lle)->lle_lock, LCK_RW_ASSERT_EXCLUSIVE) argument 139 #define LLE_REQ_INIT(lle) lck_mtx_init(&(lle)->req_mtx, &lle_lock_grp, &lle_lock_attr) argument [all …]
|
| /xnu-8019.80.24/bsd/netinet/ |
| H A D | in.c | 144 static void in_lltable_destroy_lle_unlocked(struct llentry *lle); 145 static void in_lltable_destroy_lle(struct llentry *lle); 148 const struct sockaddr *smask, uint16_t flags, struct llentry *lle); 149 static void in_lltable_free_entry(struct lltable *llt, struct llentry *lle); 152 static uint32_t in_lltable_hash(const struct llentry *lle, uint32_t hsize); 153 static void in_lltable_fill_sa_entry(const struct llentry *lle, struct sockaddr *sa); 155 static void in_lltable_delete_entry(struct lltable *llt, struct llentry *lle); 158 static int in_lltable_dump_entry(struct lltable *llt, struct llentry *lle, struct sysctl_req *wr); 2381 in_lltable_destroy_lle_unlocked(struct llentry *lle) in in_lltable_destroy_lle_unlocked() argument 2383 LLE_LOCK_DESTROY(lle); in in_lltable_destroy_lle_unlocked() [all …]
|
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | in6.c | 4524 in6_lltable_destroy_lle_unlocked(struct llentry *lle) in in6_lltable_destroy_lle_unlocked() argument 4526 LLE_LOCK_DESTROY(lle); in in6_lltable_destroy_lle_unlocked() 4527 LLE_REQ_DESTROY(lle); in in6_lltable_destroy_lle_unlocked() 4528 kfree_type(struct in6_llentry, lle); in in6_lltable_destroy_lle_unlocked() 4536 in6_lltable_destroy_lle(struct llentry *lle) in in6_lltable_destroy_lle() argument 4538 LLE_WUNLOCK(lle); in in6_lltable_destroy_lle() 4541 in6_lltable_destroy_lle_unlocked(lle); in in6_lltable_destroy_lle() 4549 struct in6_llentry *lle; in in6_lltable_new() local 4551 lle = kalloc_type(struct in6_llentry, Z_NOWAIT | Z_ZERO); in in6_lltable_new() 4552 if (lle == NULL) { /* NB: caller generates msg */ in in6_lltable_new() [all …]
|