Home
last modified time | relevance | path

Searched refs:frb_cnt (Results 1 – 3 of 3) sorted by relevance

/xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c3229 uint32_t frb_cnt = fsw_flow_route_buckets; in fsw_dp_ctor() local
3244 if (frb_cnt == 0) { in fsw_dp_ctor()
3245 frb_cnt = NX_FSW_FRB_HASHSZ; in fsw_dp_ctor()
3246 ASSERT(frb_cnt != 0); in fsw_dp_ctor()
3265 if ((frb_cnt & (frb_cnt - 1)) != 0) { in fsw_dp_ctor()
3266 frb_cnt--; in fsw_dp_ctor()
3267 frb_cnt |= (frb_cnt >> 1); in fsw_dp_ctor()
3268 frb_cnt |= (frb_cnt >> 2); in fsw_dp_ctor()
3269 frb_cnt |= (frb_cnt >> 4); in fsw_dp_ctor()
3270 frb_cnt |= (frb_cnt >> 8); in fsw_dp_ctor()
[all …]
/xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_manager.c143 size_t frb_cnt, size_t frib_cnt) in flow_mgr_create() argument
151 ASSERT(frb_cnt != 0 && ((frb_cnt & (frb_cnt - 1)) == 0)); in flow_mgr_create()
185 fm->fm_route_buckets = flow_route_buckets_alloc(frb_cnt, &frb_sz, &frb_tot_sz); in flow_mgr_create()
191 *(size_t *)(uintptr_t)&fm->fm_route_buckets_cnt = frb_cnt; in flow_mgr_create()
H A Dflow_route.c130 flow_route_buckets_alloc(size_t frb_cnt, size_t *frb_sz, size_t *tot_sz) in flow_route_buckets_alloc() argument
141 *tot_sz = frb_tot_sz = (sizeof(void *) + (frb_cnt * (*frb_sz)) + cache_sz); in flow_route_buckets_alloc()
163 ASSERT(((intptr_t)frb + (frb_cnt * (*frb_sz))) <= in flow_route_buckets_alloc()
168 "(total %zu bytes, frb_buf 0x%llx) ALLOC", SK_KVA(frb), frb_cnt, in flow_route_buckets_alloc()