Home
last modified time | relevance | path

Searched refs:frib (Results 1 – 2 of 2) sorted by relevance

/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c237 struct flow_route_id_bucket *frib; in flow_route_id_buckets_alloc() local
242 *frib_sz = P2ROUNDUP(sizeof(*frib), cache_sz); in flow_route_id_buckets_alloc()
258 frib = (struct flow_route_id_bucket *) in flow_route_id_buckets_alloc()
260 frib_pbuf = (void **)((intptr_t)frib - sizeof(void *)); in flow_route_id_buckets_alloc()
262 ASSERT(((intptr_t)frib + (frib_cnt * (*frib_sz))) <= in flow_route_id_buckets_alloc()
267 "(total %zu bytes, frib_buf 0x%llx) ALLOC", SK_KVA(frib), frib_cnt, in flow_route_id_buckets_alloc()
270 return frib; in flow_route_id_buckets_alloc()
274 flow_route_id_buckets_free(struct flow_route_id_bucket *frib, size_t tot_sz) in flow_route_id_buckets_free() argument
279 frib_pbuf = (void **)((intptr_t)frib - sizeof(void *)); in flow_route_id_buckets_free()
281 SK_DF(SK_VERB_MEM, "frib 0x%llx (frib_buf 0x%llx) FREE", SK_KVA(frib), in flow_route_id_buckets_free()
[all …]
H A Dflow_manager.c236 struct flow_route_id_bucket *frib = in flow_mgr_create() local
238 flow_route_id_bucket_init(frib); in flow_mgr_create()
240 *(size_t *)(uintptr_t)&frib->frib_idx = i; in flow_mgr_create()
319 struct flow_route_id_bucket *frib = in flow_mgr_destroy() local
321 ASSERT(frib->frib_idx == i); in flow_mgr_destroy()
322 flow_route_id_bucket_destroy(frib); in flow_mgr_destroy()