Searched refs:lle (Results 1 – 4 of 4) sorted by relevance
| /xnu-8792.41.9/bsd/net/ |
| H A D | if_llatbl.c | 90 static void htable_unlink_entry(struct llentry *lle); 91 static void htable_link_entry(struct lltable *llt, struct llentry *lle); 153 struct llentry *lle, *next; in htable_foreach_lle() local 159 LIST_FOREACH_SAFE(lle, &llt->lle_head[i], lle_next, next) { in htable_foreach_lle() 160 error = f(llt, lle, farg); in htable_foreach_lle() 171 htable_link_entry(struct lltable *llt, struct llentry *lle) in htable_link_entry() argument 176 if ((lle->la_flags & LLE_LINKED) != 0) { in htable_link_entry() 182 hashidx = llt->llt_hash(lle, llt->llt_hsize); in htable_link_entry() 185 lle->lle_tbl = llt; in htable_link_entry() 186 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-8792.41.9/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); 2358 in_lltable_destroy_lle_unlocked(struct llentry *lle) in in_lltable_destroy_lle_unlocked() argument 2360 LLE_LOCK_DESTROY(lle); in in_lltable_destroy_lle_unlocked() [all …]
|
| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | in6.c | 4574 in6_lltable_destroy_lle_unlocked(struct llentry *lle) in in6_lltable_destroy_lle_unlocked() argument 4576 LLE_LOCK_DESTROY(lle); in in6_lltable_destroy_lle_unlocked() 4577 LLE_REQ_DESTROY(lle); in in6_lltable_destroy_lle_unlocked() 4578 struct in6_llentry *in_lle = (struct in6_llentry *)lle; in in6_lltable_destroy_lle_unlocked() 4587 in6_lltable_destroy_lle(struct llentry *lle) in in6_lltable_destroy_lle() argument 4589 LLE_WUNLOCK(lle); in in6_lltable_destroy_lle() 4592 in6_lltable_destroy_lle_unlocked(lle); in in6_lltable_destroy_lle() 4600 struct in6_llentry *lle; in in6_lltable_new() local 4602 lle = kalloc_type(struct in6_llentry, Z_NOWAIT | Z_ZERO); in in6_lltable_new() 4603 if (lle == NULL) { /* NB: caller generates msg */ in in6_lltable_new() [all …]
|